Mucking with a mounted filesystem?

Mark Komarinski mkomarinski at wayga.org
Thu Jul 9 16:51:21 EDT 2009


Kenny Lussier wrote:
> Hi All,
>
> I am running into a disk space issue on an older server. I'd like to
> do a tune2fs -m 1 (or maybe 0) to get rid of most, if not all of the
> reserved block space on the partition that is close to full. The disk
> is actually an iSCSI volume mounted from an EqualLogic array, and then
> exported via NFS to 6 other servers.
>
> Has anyone ever run tune2fs on a mounted/in-use filesystem? Is this safe to do?
>   
Yes, it's safe to do, no remounting or anything else required.   I 
haven't done it on an iSCSI-backed disk, but I've done it on LVM and 
regular disk-backed ext3 filesystems and do not thing that the back-end 
disk type has anything to do with it working or not.  Here's my output 
from doing it on an LVM-backed filesystem (and that filesystem contains 
the directory I'm running it from):

mkomarinski at murphy:~$ sudo tune2fs -m 5 /dev/vg00/home
tune2fs 1.41.3 (12-Oct-2008)
Setting reserved blocks percentage to 5% (655360 blocks)
mkomarinski at murphy:~$ sudo tune2fs -m 1 /dev/vg00/home
tune2fs 1.41.3 (12-Oct-2008)
Setting reserved blocks percentage to 1% (131072 blocks)
mkomarinski at murphy:~$ sudo tune2fs -m 0 /dev/vg00/home
tune2fs 1.41.3 (12-Oct-2008)
Setting reserved blocks percentage to 0% (0 blocks)
mkomarinski at murphy:~$

-Mark


More information about the gnhlug-discuss mailing list