Empulse Group a collection of notes from a sys admin, musician, and father


LVM expand

Use 'parted' to partition the new array with a single LVM physical partition.

[root@www ~]# parted
(parted) mklabel gpt
(parted) mkpart
Start? 0
End? -1Partition name?  []? primary
File system type?  [ext2]?
Start? 0
End? -1
(parted) print
(parted) set 1 lvm on
(parted) print
(parted) quit
[root@www ~]# pvcreate /dev/sdb1

Expand the / logical volume into the new space in the volume group.

[root@www ~]# vgextend vglocal20120206 /dev/sdb1
[root@www ~]# lvextend /dev/vglocal20120206/root00 /dev/sdb1

Grow the file system with tune2fs or ext2online.

[root@www ~]# resize2fs /dev/mapper/vglocal20120206-root00
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.