public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* FYI: better workaround for updating 'df' info after 'rm' on xfs-vols
@ 2013-02-26  1:41 Linda Walsh
  2013-02-26  4:50 ` Dave Chinner
  0 siblings, 1 reply; 5+ messages in thread
From: Linda Walsh @ 2013-02-26  1:41 UTC (permalink / raw)
  To: xfs-oss

Some time ago I reported that after I deleted
some large amount of space from one of my xfs volumes,
'df' still showed the original, pre-delete space, though
'du' only showed the expected amount.

Mentioned that I had tried 'sync' to no avail, and had
only found umount/mount to cause the figures to synchronize.

Someone suggested cat [1|3] >/proc/sys/vm/drop_caches.
That works as a 1 time event, but I've found that doing
so only works once/system uptime (if you 'cat' drop_caches'
it retains the last value you put there, and doesn't accept
a new value with fewer bits set than what you echo'd to it
originally (you can change from 1>3, but then not from 3>1 or
(3|1)>0.  So not so useful.

Prob w/unmounting was inuse file descriptors (being exported
by samba to clients being the most likely culprit).

This might not be wise if the FS was actively being written
to for a backup, but temporarily doing a

    mount -o remount,ro /backups && mount -o remount,rw /backups

seemed to do the trick and cause the disk space to update without
me having to stop processes with FD's open on the vol.


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-02 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26  1:41 FYI: better workaround for updating 'df' info after 'rm' on xfs-vols Linda Walsh
2013-02-26  4:50 ` Dave Chinner
2013-02-26  5:47   ` Linda Walsh
2013-02-26 20:54     ` Dave Chinner
2013-04-02 18:17   ` Linda Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox