Resize your Linux root '/' mount with LVM Print

  • Resize your Linux root '/' mount with LVM, how to increease dev/mapper/ubuntu--vg-ubuntu--l
  • 0

https://www.youtube.com/watch?v=Fgq5qtgMamI

 

1.sudo fdisk -l : find new drive or lsblk or df -h

 

2.sudo pvscan

 

3.sudo fdisk /dev/sdb

n

p

1

[enter]

[enter]

t

8e

w

5.lsblk and see /dev/sdb1 added if /dev/sdb1 is not seen then reboot before continuing further

 

6.sudo pvcreate /dev/sdb1

7.sudo vgdisplay : look for VG Name value (ubuntu-vg, vg00 etc)

 

8.sudo vgextend ubuntu-vg /dev/sdb1

 

9.sudo pvscan

 

10.sudo lvdisplay : look for LV Path value

 

11.sudo lvextend /dev/ubuntu-vg/ubuntu-lv /dev/sdb1

 

12.sudo resize2fs /dev/ubuntu-vg/ubuntu-lv lsblk will now show your size increase

 

https://www.youtube.com/watch?v=Fgq5qtgMamI

 


Was this answer helpful?

« Back