The SRM appliance has two main disks: system and support.
The support disk contains an lvm ext4 file system.
The support partition stores the logs of VMware-related services.
The mount point of the partition is "/opt/vmware/support"
Storage Replication Adapter(SRA) logs don't currently have restriction for the size of the logs they produce. Having logs that are not managed will cause the support partition of the disk to fill up. This will result in the unplanned failure of the SRM server services due to the lack of any space available on disk for the log files.
3. Set the script to be executable:
chmod 755 /opt/vmware/bin/clean-sras-logs.sh4. Manually execute the script to rotate the log files inside the SRAs log partition.
/opt/vmware/bin/clean-sras-logs.sh
touch /etc/cron.d/sras.cron
2. Fill the content with the below text using a text editor :
0 0 * * * root /bin/bash /opt/vmware/bin/clean-sras-logs.sh
systemctl restart crond
1. As root user, remove the file /etc/cron.d/sras.cron:
cd /etc/cron.d rm sras.cron
Restart the crond service:
systemctl restart crond
1. As root user, remove the file /opt/vmware/bin/clean-sras-logs.sh
cd /opt/vmware/bin rm clean-sras-logs.sh