Applies to: WRN
Issue Summary
A WRN recorder is experiencing one of the following storage issues:
- Storage drives are unmounting
- OS drive is almost full
A universal script is attached to this article that addresses these issues.
IMPORTANT: Perform the steps in the Resolution section before running the script.
The script will fail to perform the actions needed to resolve the mounting issues if
the steps are not followed prior to running the script.
Resolution
To correct storage issues:
- Unplug all USB sticks and external hard drives.
- Right-click the WRN desktop and open Terminal.
- Run the following command, then enter your credentials if prompted:
sudo cat /etc/fstab
-
Verify that the file contains the following mount points:
NOTE: If the mount points do not match those above and/or there are duplicate entries, contact Technical Support for further guidance. - Download universalwrnscript.sh (attached to this article) and save it to the WRN desktop.
- Run the following command, then enter your credentials if prompted:
sudo chmod +x /home/wave/Desktop/universalwrnscript.sh
-
Run the following command, then enter your credentials if prompted:
sudo /home/wave/Desktop/universalwrnscript.sh
IMPORTANT: The script may take a few minutes to complete. Do not perform additional actions during this time. If the recorder is experiencing unexpected reboots, crashes, or other ongoing hardware issues, do not run the script; contact Technical Support. -
When the script finishes, run:
sudo cat /etc/fstab -
Verify that device entries are now in the following general format. Example: (UUIDs will vary, but the format will remain the same)
UUID=12345678 /mnt/sda ext4 defaults,nofail,x-systemd.device-timeout=60s 0 2
UUID=56781234 /mnt/sdb ext4 defaults,nofail,x-systemd.device-timeout=60s 0 2
UUID=14235867 /mnt/sdc ext4 defaults,nofail,x-systemd.device-timeout=60s 0 2
UUID=23146758 /mnt/sdd ext4 defaults,nofail,x-systemd.device-timeout=60s 0 2
NOTE: If your system has less than four drives, only the lines corresponding to the connected drives will update with UUID mount points. The remaining lines
will not change and stay the same after the script runs. - Open the WAVE Client.
- Right-click the location server and select Server Settings.
- Confirm /opt/Hanwha/mediaserver/var/data is set to Reserved and is not selected for Stores analytics and motion data.
- Open a web browser and navigate to https://ip_address_of_waveserver:7001/, then log in using your credentials.
- In the menu tree on the left, click Servers.
The URL changes to https://ip_address:7001/#/settings/servers/[server_ID]
- Add ?advanced= to the end of the server URL.
Example: https://ip_address:7001/#/settings/servers/bbcf2bd-af31-ccab-abcd-efg-1234?advanced=
- Under Storage Locations, set Reserved space for /opt/Hanwha/mediaserver/var/data to at least 5GB if allowed. Otherwise, set to highest amount possible.
-
Verify the Available space is greater than 5 GB.
If the available space is still less than 5 GB, delete the contents of the Downloads and Trash folders using the following commands:
sudo rm -rf /home/wave/Downloads/*
sudo rm -rf /home/wave/.local/share/Trash/*
IMPORTANT: Contact Technical Support if the available space on the OS drive
cannot be increased to more than 5 GB.