User reduced LVM logical volume without resizing filesystem

Posted by Matthew on Server Fault See other posts from Server Fault or by Matthew
Published on 2012-06-18T20:26:40Z Indexed on 2012/06/18 21:18 UTC
Read the original article Hit count: 245

Filed under:
|

I received an email yesterday that one of our users was trying to make room for a heartbeat/clustering package which requires its own partition to act as a voting disk. To do this, he attempted to reduce the size of the root partition's logical volume, and then create a new logical volume for this purpose. However, he forgot to resize the filesystem first (or include the -r switch in the command). He also forgot to unmount the root partition by running this process from a rescue cd. The system is now refusing to boot into the OS with the following error:

Either the superblock or the partition table is likely to be corrupt! Unexpected Inconsistency; run fsck manually.

The system them drops the user into single user mode.

Is it possible to rescue the filesystem, or is it hosed? Its running ext3.

© Server Fault or respective owner

Related posts about filesystems

Related posts about lvm