Lvm

From Attie's Wiki
Jump to: navigation, search

Extend a volume

# make the new partition (type 0x8E)
fdisk ${NEW_DISK}
 
# initialize it as a physical volume
pvcreate ${NEW_PARTITION}
 
# show the physical volumes
pvdisplay
 
# show the volume groups (to identify the one which needs extending)
vgdisplay
 
# extend the volume group with the new partition
vgextend ${VOLGROUP} ${NEW_PARTITION}
 
# verify the change
vgdisplay
 
# resize the logical volume (and the underlying filesystem), using all available space
lvextend --resizefs --extends +100%FREE
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox