[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

resize2fs: Either the superblock or the partition table is likely to be corrupt!



Hi there,

  I was doing an extremely simple task: shrink my home partition /
resize my root partition.

Steps:

# df -h
  According to df, /home is 670G and / is 5.6G, so I decide to remove
20G from one to move it to the other.

# umount /home
# resize2fs /dev/mapper/gotlib-home 650G
... do some e2fsck dance
# lvreduce -L-20G /dev/mapper/gotlib-home
# mount /home

# lvextend -L+20G /dev/mapper/gotlib-root

Go get my debian CD installer, reboot, go to graphical rescue mode,
click , click, click, mount /home to run a shell into, then:

# resize2fs /dev/mapper/gotlib-root

So far everything seems to be going very well...

And then that's where I start crying, because on the next reboot, I am
asked to enter in maintenance mode:

# e2fsck -f /dev/mapper/gotlib-home
e2fsck 1.41.3 (12-Oct-2008)
The filesystem size (according to the superblock) is 178399232 blocks
The physical size of the device is 173156352 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes

I tried to force :

# resize2fs -f /dev/mapper/gotlib-home

But I really do not know what I am doing, any help at this point will
be very appreciated !

Thanks,
-- 
Mathieu


Random info, from current workstation:
# lvdisplay
  --- Logical volume ---
  LV Name                /dev/gotlib/root
  VG Name                gotlib
  LV UUID                FnEtLa-ckzZ-R4V9-K7iV-nEKA-DqFE-Fltq5w
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                26.52 GB
  Current LE             6788
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
  --- Logical volume ---
  LV Name                /dev/gotlib/home
  VG Name                gotlib
  LV UUID                9elvQJ-afoe-xw1S-AccD-0ZkM-wXR4-shhIkN
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                660.54 GB
  Current LE             169098
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

# vgdisplay
  --- Volume group ---
  VG Name               gotlib
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               698.39 GB
  PE Size               4.00 MB
  Total PE              178789
  Alloc PE / Size       178789 / 698.39 GB
  Free  PE / Size       0 / 0
  VG UUID               E0vONq-XIr0-fKHf-M6j9-xa4Q-S1AD-6vtyuf


# lvmdiskscan
  /dev/ram0  [       64.00 MB]
  /dev/root  [       26.52 GB]
  /dev/ram1  [       64.00 MB]
  /dev/dm-1  [       11.34 GB]
  /dev/ram2  [       64.00 MB]
  /dev/dm-2  [      660.54 GB]
  /dev/ram3  [       64.00 MB]
  /dev/ram4  [       64.00 MB]
  /dev/ram5  [       64.00 MB]
  /dev/ram6  [       64.00 MB]
  /dev/ram7  [       64.00 MB]
  /dev/ram8  [       64.00 MB]
  /dev/ram9  [       64.00 MB]
  /dev/ram10 [       64.00 MB]
  /dev/ram11 [       64.00 MB]
  /dev/ram12 [       64.00 MB]
  /dev/ram13 [       64.00 MB]
  /dev/ram14 [       64.00 MB]
  /dev/ram15 [       64.00 MB]
  /dev/sdc1  [      243.14 MB]
  /dev/sdc2  [      698.40 GB] LVM physical volume
  1 disk
  19 partitions
  0 LVM physical volume whole disks
  1 LVM physical volume


Reply to: