not clean volume according to tune2fs, what's wrong though?
I did a tune2fs -l on some volumes of mine, and a few say "not clean" as the filesystem state. But how do I tell what's causing it to be not clean, or how severe it is, so i know how soon i need to schedule downtime to run a e2fsck on that volume?
|
I don't know that you can tell. Try dumpe2fs - it may tell you more. Redirect the output to a file - it'll be large, and you might need the info later ...
If it were me, I'd be scheduling that downtime. |
If the volume is mounted it will always have that set. That gets set when the file system is mounted so that if the system shuts down and the volume is not unmounted properly (which clears that flag) upon next boot it will know it has to check it.
Regards, Alunduil |
That's what a lot of doco on the net says, but isn't true (anymore). All my (mounted) ext[34] filesystems currently report "clean".
And the OP appears to have some that are indeed "clean". |
Hi,
I suggest that the OP take the system down then boot with a maintenance LiveCD or Install CD in single user mode. Then perform the necessary maintenance on the filesystem(s) in question. :hattip: |
I do have some on that same server that say clean. I was just wondering if there was a way to tell, kinda like how when you run chkdsk on a windows system, it will at least give you some inclination at to what the problems are.
|
Hi,
Quote:
Linux Documentation Project Rute Tutorial & Exposition Linux Command Guide Utimate Linux Newbie Guide LinuxSelfHelp Getting Started with Linux Bash Reference Manual Advanced Bash-Scripting Guide Linux Home Networking :hattip: The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
Hey Onebuck. I have read some of those links before when you've posted them in other threads. But I can't run fsck when a volume is mounted because it would do bad things I thought I read somewhere, so i'm not entirely sure what your last post was trying to get at. I understand different exit codes mean different things. I dont see anything saying e2fsck error code in the tune2fs output either.
|
Perhaps that should be rephrased as:
"I shouldn't run fsck when a volume is mounted because it might do bad things" If you can get to single user mode you can (generally) safely run the checks - mounted or otherwise. But why bother - reboot and force the checks; probably quicker. And you're correct - the return codes for the tool to (hopefully) fix things don't describe the actual problem that was being fixed. In this case anyway. |
Hi,
Quote:
I do suggest that when a check of the filesystem is required then reboot with a LiveCD or InstallCD to insure single user mode. That way there will be no conflicts or potential problems when attempting repairs on the filesystem. Perform the repairs on a unmounted filesystem. :hattip: |
Thanks for confirming Syg. I was trying to understand what was wrong, I know I need to take it offline and check it. Thanks for the help you two.
|
All times are GMT -5. The time now is 09:27 AM. |