How to deactivate a LVM2 physical volume to remove the drive?
lvchange -an <lvpath> vgchange -an <vgname> If you also want to remove the device maps you can use dmsetup ls dmsetup remove <name>
lvchange -an <lvpath> vgchange -an <vgname> If you also want to remove the device maps you can use dmsetup ls dmsetup remove <name>
After a bit of trial and error… as mentioned in the possible answers, it turned out to require xfs_growfs rather than resize2fs. CentOS 7, fdisk /dev/xvda Create new primary partition, set type as linux lvm. n p 3 t 8e w Create a new primary volume and extend the volume group to the new volume. … Read more