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

PowerShell: Set VM Dynamic Memory in Virtual Machine Manager

# setVmDynamicMemoryInVmm.ps1 # Optimize Dynamic RAM $minGb='16GB' $maxGb='32GB' $startupGb='2GB' $buffer=20 $memoryWeight=5000 $forcedRestart=$false $vmmServer='localhost' function getUnoptimizedMemoryVms{…

How to Create USB Bootable Drive on Ubuntu

Navigate to Start Menu > System Tools > Startup Disk Creator Verify that the Source…

PowerShell: List All Hyper-V Snapshots of All VMs in All Clusters in Domain

# listHyperVSnapshots.ps1 $clusterName='*' function listAllHyperVSnapshots([string[]]$clusterName){ function includeRSAT{ $ErrorActionPreference='stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #$rsatWindows7x32='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x86-RefreshPkg.msu' $rsatWindows7x64='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x64-RefreshPkg.msu' $rsatWindows81='https://download.microsoft.com/download/1/8/E/18EA4843-C596-4542-9236-DE46F780806E/Windows8.1-KB2693643-x64.msu' $rsat1709…
Other project: DragonCoin.com