* Defragmenting open files
@ 2013-02-28 13:02 Swâmi Petaramesh
0 siblings, 0 replies; only message in thread
From: Swâmi Petaramesh @ 2013-02-28 13:02 UTC (permalink / raw)
To: BTRFS, Linux
Hi folks,
My BTRFS systems now have slowed down to the point where I finally
decided to trash all my snapshots and try and defrag it all.
I basically wrote a shell script that goes down the complete FS tree,
runs a "filefrag" over each file and issues a "btrfs filesystem defrag
$blah" against every files which number of fragments is > 1.
I'm currently running it, but I notice that for every file that is
likely open (i.e. /bin/bash), my script spits out :
failed to open /bin/bash
open:: Text file busy
total 1 failures
FAILED !
I expected that the BTRS defragmentation was done by the kernel and was
able to handle open files, but apparently not ?
Another question is : Is there a way to determine if a directory needs a
defrag ? filefrag doesn't seem to be able to work properly against a
directory...
TIA.
Kind regards.
--
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E
Ne cherchez pas : Je ne suis pas sur Facebook.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-28 13:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-28 13:02 Defragmenting open files Swâmi Petaramesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).