Lvm

From Attie's Wiki
Revision as of 11:56, 30 November 2016 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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