Increase LVM

Extending Existing Logical volume:

Steps:

1) Identify partitions

2) Identify Volume Group

3) Extend Volume Group

4) Extend Logical Volume


Identify partitions:

identify and format disk to LVM partition 8e once created create a PV as below

#pvcreate /dev/sdd (10G)


Identify Volume Group:

list volume groups  available on the machine using vgs

# vgs

  VG   #PV #LV #SN Attr   VSize   VFree

  vgname   1   5   0 wz--n- 299.04g    0


Extend Volume Group:

#vgextend vgname /dev/sdd

# vgs

  VG   #PV #LV #SN Attr   VSize   VFree

  vgname   1   5   0 wz--n- 309.04g    0


Extend Logical Volume:

#lvextend -l +100%FREE /dev/vgname/lvname (Adds maximum available free space to the Logical Voulme)

or

#lvextend -l +10G /dev/vgname/lvname ( Increase Logical Volume by 10G )


#resize2fs /dev/vgname/lvname

Comments

Popular posts from this blog

Cloudbees FlowServer - Debug

PIP Errors and Fix

Terraform Basics