Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Resizing from disk1

...

should show that /data is now larger than before.

Resizing from disk1

Add a x(g,m,k) new partition  type 8E (Linux LVM) 

Code Block
themeEmacs
cfdisk /dev/sda
reboot
pvcreate /dev/sda3

Extend the vg_nmis64_data with the new partition

Code Block
themeEmacs
vgextend vg_nmis64_data /dev/sda3

The Logical Volume needs to be extended.

Code Block
themeEmacs
lvextend -L+x(g,m,k) /dev/vg_nmis64_data/lv_data
where
x(g,m,k) is the assigned size in the disk 1 -L+200G as example

Now we extend the filesystem this can take a while depends of the size assigned.

Code Block
themeEmacs
resize2fs /dev/vg_nmis64_data/lv_data

Verify the new size.

Code Block
themeEmacs
df -h 

pvs