Applicable to:
- SolusVM
Symptoms
The disk space of OpenVZ ploop-based VPS on the node's file system is much more than the disk space inside the VPS.
Cause
https://wiki.openvz.org/Man/ploop.8#Ballooning
Resolution
- Connect to OpenVZ node via SSH
- Execute the following command to discard the ploop balloon:
# vzctl compact CTID
or
# ploop-balloon discard /vz/private/CTID/root.hdd/DiskDescriptor.xml
Note: replace CTID with the actual container ID.
For bulk operations use the below steps:
- Create a
/bin/compress
file and paste the below content:
# cat /bin/compress
#!/bin/sh
vzlist -a | awk '{print $1}' | sed '/CTID/d' > ctid.txt echo "Compact started on $(date)" >> compactlogs.txt
for i in `cat ctid.txt`
do
vzctl compact $i;
done
echo "Compact finished on $(date)" >> compactlogs.txt - Set the permissions for it:
# chmod 700 /bin/compress
- Run the below command on the Screen session and run a script:
# /bin/compress
Comments
0 comments
Please sign in to leave a comment.