LVM2 problem after resize

Issues related to hardware problems
Post Reply
roelvdh
Posts: 1
Joined: 2015/10/01 17:31:42

LVM2 problem after resize

Post by roelvdh » 2015/10/01 17:42:18

I have a very large LVM device containing end-of-year backups. It grows every year and thus extensions are sometimes necessary. During the last extension something must have gone wrong. The newly extended device could correctly be activated but failed being mounted, as the filesystem size now seems to differ from the physical size of the device.
I haven't yet tried to shrink the device back to its former state as I am unsure whether this would be the best approach.
Any better ideas?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: LVM2 problem after resize

Post by aks » 2015/10/20 16:20:19

It's hard to know, since we don't know what the problem is.
With filesystems and disks damage is often permanent...

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: LVM2 problem after resize

Post by gerald_clark » 2015/10/20 19:27:40

If it is an ext filesystem, and the lv size was increased, resize2fs with no size option will resize it to the size of the logical volume.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: LVM2 problem after resize

Post by TrevorH » 2015/10/21 08:08:46

Are you sure you didn't shrink it instead of growing it? There's a major difference between e.g. lvextend -L+64G ... and lvextend -L64G ...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply