Mucking with a mounted filesystem?
Kenny Lussier
klussier at gmail.com
Thu Jul 9 16:35:31 EDT 2009
On Thu, Jul 9, 2009 at 4:26 PM, Michael
ODonnell<michael.odonnell at comcast.net> wrote:
>
>
>> 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?
>
> I don't know specifically whether that's safe to do with a mounted
> filesystem but if your situation allows you might be able to
> accomplish it by first doing an on-the-fly remount such that your
> filesystem is temporarily ReadOnly, then do your tune2fs thing,
> then restore ReadWrite mode with another on-the-fly remount:
>
> mount -oremount,ro /your/filesystem
> tune2fs -whatever /dev/yourDevice
> mount -oremount,rw /your/filesystem
Going ReadOnly isn't an option, unfortunately. There are several apps
that are constantly reading and writing to this file system which
would die a horrible, unnatural, painful death if they suddenly
couldn't write.
Thanks,
Kenny
More information about the gnhlug-discuss
mailing list