Expand a Hard Disk with Ubuntu LVM

 On vCenter new disk 20G


Scan new disk

echo "- - -" > /sys/class/scsi_host/host32/scan


#parted

When your system comes back up, check on your new partition


So now let's pull it into our LVM configuration. First we'll create the physical volume:

1/ Create physical volume

Check disk

#pvdisplay

Now, extend our volume group (mmvn) into our new physical volume (/dev/sdb):

2/ Extend volume group


The whole purpose of this exercise is to expand the root filesystem, so let's find our main logical volume:

#lvdisplay

Now, let's extend the logical volume to all free space available:

3/ Extend logical volume


Or

lvextend -L +5G /dev/mmvn/root

4/ Next, extend the filesystem

# resize2fs /dev/mapper/mmvn-root

5/ Verify partition


REFERENCE

https://vsudo.net/blog/lvextend-lvm-partition.html


Bài đăng phổ biến từ blog này

HƯỚNG DẪN CÀI ĐẶT PYCHARM TRÊN WINDOWS 10

Bài 1: Khai báo biến trong python

Bài 3. Trim ký tự khoảng trắng