How do you increase a KVM guest’s disk space?
stop the VM run qemu-img resize vmdisk.img +10G to increase image size by 10Gb start the VM, resize the partitions and LVM structure within it normally
stop the VM run qemu-img resize vmdisk.img +10G to increase image size by 10Gb start the VM, resize the partitions and LVM structure within it normally
Check for files on located under mount points. Frequently if you mount a directory (say a sambafs) onto a filesystem that already had a file or directories under it, you lose the ability to see those files, but they’re still consuming space on the underlying disk. I’ve had file copies while in single user mode … Read more
Deleting the filename doesn’t actually delete the file. Some other process is holding the file open, causing it to not be deleted; restart or kill that process to release the file. Use lsof +L1 to find out which process is using a deleted (unlinked) file.
The AWS CLI now supports the –query parameter which takes a JMESPath expressions. This means you can sum the size values given by list-objects using sum(Contents[].Size) and count like length(Contents[]). This can be be run using the official AWS CLI as below and was introduced in Feb 2014 aws s3api list-objects –bucket BUCKETNAME –output json … Read more