Issue Summary
The OS drive on WRN-1632(S) and WRN-816S is almost full. WAVE displays the following error notification: Reason: System disk */option/Hanwha/mediaserver/var/data is almost full
NOTE: The above image is the Ubuntu Operating System drive.
Resolution
Reserve the WAVE Drive
To ensure proper drive configuration:
- 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 set as the drive 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 will change to https://ip_address:7001/#/settings/servers/[server_ID]
- Add ?advanced= to the end of the URL.
Example: https://ip_address:7001/#/settings/servers/bbcf2bd-af31-ccab-abcd-efg-1234?advanced=
- In the Storage Locations section, change the Reserved space for /opt/Hanwha/mediaserver/var/data to 2GB.
Modify Ownership of /etc and /system Folders
To ensure the system folders have the correct ownership:
- Open Ubuntu Terminal and issue the following commands:
ls –l /etc
ls –l /system
If the ownership is not set to root:root, enter the following commands:
sudo chown -R root:root /etc
sudo chown -R root:root /system
- Confirm the folder permissions have been set correctly and all the files are owned by root:root.
Confirm Largest Files on OS Drive
To confirm large files are filling up the OS drive, use the Disk Usage Utility on Ubuntu Desktop to check whether the /var/log/syslog file is one of the largest files on the OS drive and may grow to 5-7 GB.
If the log file is already 5-7GB in size, run the sudo rm /var/log/syslog command in the terminal to remove it.
NOTE: For the next steps, you will need the Ubuntu password for the
Ubuntu account.
Restart Services or Reboot WAVE Server
To restart services, open Ubuntu Terminal and issue the following commands:
sudo systemctl stop hanwha-mediaserver
sudo systemctl start hanwha-mediaserver
To reboot WAVE server, power cycle the WAVE server.
Modify the rsyslog File
To modify the rsyslog file:
- Open Ubuntu Terminal and run the sudo nano /etc/logrotate.d/rsyslog command.
- Add the line su root syslog to the top of the file, above the /var/log/sys line, and make the changes shown in the following screenshot (highlighted in yellow).
- Save the file and exit.
Modify the 50-default.conf File
To modify the 50-default.conf file:
- Open Ubuntu Terminal and navigate to /etc/rsyslog.d/
- Run the sudo nano 50-default.conf command to modify the 50-default.conf file.
- Add a free line under the statement auth,authpriv.* and insert the following lines:
$outchannel mysyslog,/var/log/syslog,367001600
*.*;auth,authpriv.none :omfile:$mysyslog
- Comment out *.*;auth,authpriv.none ~/var/log/syslog by placing a # in front of it.
- Save the file and exit.
Restart rsyslog Service
To restart rsyslog service:
- Open Ubuntu Terminal.
- Run the sudo systemctl restart rsyslog.service command.
- Run the sudo systemctl status rsyslog.service command to ensure it is running.
- Run the sudo logrotate –d /etc/logrotate.d/rsyslog command.
You should see the service enact the rotation.
Monitor the WAVE Server
Monitor the WAVE server over several days to ensure the syslog files are rotating correctly after reaching 350MB. If the system is working correctly, you should see the syslog, syslog.1 and syslog.2 files in the /var/log/ folder.
NOTE: The amount of time will vary for each system based on the number of
cameras connected.