2018-09-07 12:16:13 +00:00
|
|
|
# lvextend
|
|
|
|
# Extends a logical volume in an existing volume group.
|
|
|
|
# A volume group is a collection of logical and physical volumes.
|
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend volume in volume mylv in groug vg0
|
|
|
|
# (defined by volume path /dev/vg0/mylv)
|
|
|
|
# to 12 gigabyte:
|
2018-09-07 12:16:13 +00:00
|
|
|
lvextend -L 12G /dev/vg0/mylv
|
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend volume in volume mylv in groug vg0
|
|
|
|
# (defined by volume path /dev/vg0/mylv)
|
|
|
|
# by 1 gigabyte:
|
|
|
|
lvextend -L +1G /dev/vg0/mylv
|
2018-09-07 12:16:13 +00:00
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend volume in volume mylv in groug vg0
|
|
|
|
# (defined by volume path /dev/vg0/mylv)
|
|
|
|
# to use all of the unallocated space in the volume group vg0:
|
|
|
|
lvextend -L +100%FREE /dev/vg0/mylv
|
2018-09-07 12:16:13 +00:00
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend ext4 filesystem after changing a logical volume
|
|
|
|
# (takes volume path as parameter):
|
2018-09-07 12:16:13 +00:00
|
|
|
ext2resize /dev/vg0/mylv
|
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend btrfs filesystem after changing a logical volume
|
|
|
|
# (takes the mount point as parameter, not the volume path):
|
2018-09-07 12:16:13 +00:00
|
|
|
btrfs filesystem resize max /mylv
|
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend xfs filesystem after changing a logical volume
|
|
|
|
# (takes the mount point as parameter, not the volume path):
|
2018-09-07 12:16:13 +00:00
|
|
|
xfs_growfs /mylv
|
|
|
|
|
2018-09-15 11:50:54 +00:00
|
|
|
# Extend jfs filesystem after changing a logical volume
|
|
|
|
# (takes the mount point as parameter, not the volume path);
|
2018-09-07 12:16:13 +00:00
|
|
|
# Just remount:
|
2018-09-15 11:50:54 +00:00
|
|
|
mount -o remount,resize /home
|