Page 1 of 1

fsck on lvm root filesystem

Posted: 2019/09/30 15:55:26
by trucall
Hi All,

I've a question about a distro centos 6.
I had an issue on the disk and I'm a bit confused about fsck behaviour.

I executed:

fsck -n

on the volume ( with option -n because mounted, only for a read check ) and I have some errors:

- Block bitmap differences
- Free blocks count wrong for group
- Free blocks count wrong

I restarted my system in single user mode, I unmounted the root filesystem and I executed the same command in order to check and repair the filesystem but the command didn't report any error.

After a reboot at runlevel 3, the same command return same issue as before:

Block bitmap differences
Free blocks count wrong for group
Free blocks count wrong

Do you have any idea about this behavior?

Is fsck reliable on a mounted lvm filesystem?

The system is working fine but I would like to clarify this behaviour.

Thanks
tru

Re: fsck on lvm root filesystem

Posted: 2019/09/30 16:48:59
by TrevorH
[
Is fsck reliable on a mounted lvm filesystem?
No. It will almost always report trivial problems like the one you quote.

Re: fsck on lvm root filesystem

Posted: 2019/09/30 21:47:08
by trucall
Thanks TrevorH,

I just made a little test on some others system, the behaviour is similar.