LVM

LVm has a very peculiar way of working. i did a pvmove. Then an lvresize. then i did a pvremove. And then a resize2fs later. now it doesn’t mount seems to have a bad geometry. i guess this means the process did not update the Master File Table inode entries.i thought the resize2fs was supposed to do the same. Infact e2fsck now says bad superblock. But running it once seems to fix the error…Hmm.. i am missing something.
And it gets funnier.. i can now(after e2fsck) mount the device from my live usb version and the maintenance mode of my usual ubuntu image. But not in the usual mode. Very funny business going on…

Ah.. what i missed was that i should have resized the filesystem before the logical volume. that caused the problem. but still can’t understand why it would mount fine in single user mode? because the removed pv was an external device?? not sure… ofcourse it mounts on the rescue system because there are no previous data/bindings so it sees a normal filesystem. Somehow the old system caches?? some of the fs data??

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s