Centos 7 Zero Free Space
Centos 7 Zero Free Space
I have a number of Centos 7 KVM virtual machines using either XFS or EXT4 file system. Is there a safe easy way to ZERO out all unused disk space? I am wanting to make the backups I do of the entire KVM smaller when compressed.
Re: Centos 7 Zero Free Space
Removed.
Last edited by tunk on 2018/04/26 16:39:32, edited 1 time in total.
Re: Centos 7 Zero Free Space
You can always dd if=/dev/zero of=/tmp/somefile; rm -f /tmp/somefile but there is a window there where something else might request disk space and not be able to obtain it as the filesystem will be full. If you're on a filesystem that has a storage device that supports TRIM then fstrim can discard all unallocated blocks.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke