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

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



On Thu, 2012-01-19 at 17:41 +0000, Simon Hobson wrote:
> 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,

Thanks for confirming. 

James


_______________________________________________
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®.