Template:egAddHardDiskToVolumeGroup
Syntax
{{egAddHardDiskToVolumeGroup}}
Usage
Code
{{egAddHardDiskToVolumeGroup}}
Result
- Add a hard disk to the LVM and to the partition /dev/xeon_01/lv_export
umount '/export'
fdisk '/dev/sdb'
Add a new primary partition with n and use the whole space. Change the partition type to 8e (Linux LVM) with t. Review the changes with p. Save and exit with w.
pvcreate '/dev/sdb1'
vgextend 'xeon_01' '/dev/sdb1'
pvscan
lvextend --extents '+100%FREE' '/dev/xeon_01/lv_export'
resize2fs '/dev/xeon_01/lv_export'
mount '/export'