how to fixe-my logical volume partition-size-error ?
I have a centOS 5 server and recently I tried to shrink the /usr partition online:
[root@us-vm1 ~]# lvreduce -L 1G /dev/vg00/lv_usr
WARNING: Reducing active and open logical volume to 1.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv_usr? [y/n]: y
Reducing logical volume lv_usr to 1.00 GB
Logical volume lv_usr successfully resized
[root@us-vm1 ~]# df -h /usr
Filesystem Size Used Avail Use% Mounted on
5.9G 2.1G 3.5G 37% /usr
[root@us-vm1 ~]# resize2fs /dev/vg00/lv_usr
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg00/lv_usr is mounted on /usr; on-line resizing required
On-line shrinking from 1572864 to 262144 not supported.
after reboot I get error at boot post:
The filesystem size (according to the superblock)is 1572864 blocks
The physical size of the devoce is 262144 blocks
Either the superblock or the partition table is likely to be corrupt!
I boot to single user mode and rescue mode, and use e2fsck tried to fix it, no luck.
anybody has a solution, thanks in advance!