[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Clean deleted space in linux diks?



James Pifer wrote:

I'm not exactly sure how their reclamation process works. They say I
have to zero out the space, then their reclamation should recover it. No
snapshots involved. So my question, should this command zero out the
space?
cat /dev/zero > null-file ; rm null-file

Yes, unless the free space is such that you can't create a file that big. If you watch while it's running, you should see the file grow and grow while the free space gets less and less. When the filesystem is almost full, cat should report an error when it cannot write any more, and a few seconds later you should have your free space back - all overwritten with zeros.

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.