LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to tell if volume is already dirty (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-tell-if-volume-is-already-dirty-749097/)

anon091 08-20-2009 02:05 PM

How to tell if volume is already dirty
 
Is there a command I can use to tell me if any volumes/drives/whatever are marked as dirty and will automatically run an e2fsck when I reboot the server?

MS3FGX 08-20-2009 02:15 PM

Well a volume should only be marked as such if it wasn't properly unmounted at shutdown, and if it is dirty, then the system would have already checked it at boot.

So you wouldn't have dirty filesystems on a running system unless you had previously mounted a filesystem that wasn't in fstab and the system had a hard crash.

anon091 08-20-2009 02:18 PM

OK. I have a RAID 5 (setup in the BIOS) array which had one of the drives fail over to the hot spares because one of the other drives failed and threw a bunch of errors in the messages log. so i thought it might have marked it as dirty because of that. I know how to check if a volume is marked as dirty on a Windows server, thought there might be an equivolent command in linux, since i've had server automatically do a check upon reboot before, which i thought was because of hard drive problems. maybe not.

karamarisan 08-20-2009 02:26 PM

If you'd like to check manually, try `tune2fs -l`. It spits out a lot of useful info about your filesystem, including whether it's clean or dirty. As MS3FGX said, though, Linux systems check this at every boot, so if you reboot reasonably often, this isn't something you need to worry about often.

anon091 08-20-2009 02:29 PM

thanks, i'll check it out


All times are GMT -5. The time now is 06:14 AM.