Posted On March 31, 2019

How to expand volume of a linux virtual machine residing in a ESXi host

kimconnect 0 comments
blog.KimConnect.com >> Linux , Virtualization >> How to expand volume of a linux virtual machine residing in a ESXi host
1. Power off VM
2. Expand volume size
3. Power on VM
4. Confirm new volume size
# fdisk -l
5. Create primary partition
# fdisk /dev/sda
# p
# n
# p
# 3
# [enter] [enter]
# t
# 3
# 8e
# w
# exit
# sudo reboot
6. Verify changes
# fdisk -l
7. Convert new partion to physical volume
# vgextend centos /dev/sda3
8. Verify
# vgdisplay centos | grep "Free"
9. Extend Logical Volume
# lvextend -l+100%FREE /dev/mapper/centos-root
10. Expand file system inside Logical Volume
# xfs_growfs /dev/centos/root
11. Verify that / has the new space available
# df -h /

Other commands
----------------------------------------------
Install Epel:
yum install epel-release

Install gparted
yum install gparted

view persistent schemes
lsblk -f

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Backup and Restore Prerequisites

1. Remote machine is Centos and Local machine is Windows, install Cygwin (including "Admin," "Base,"…

Install ScreenConnect on CentOS

If this server is not behind a firewall, then the below instructions would suffice:1. Install…

How To Upgrade NextCloud 28 to 31 in Docker Compose

1. Upgrade in the incremental progression of one major version at a timeLogin to your…
Other project: DragonCoin.com