vCenter

How to extend LVM disks in vCenter

13/05/2014 // 0 Comments

LVM disk extension can be a challenging experience for who are not familiar with unix environment.  I will try to explain it as simple as possible in this guide. Heads up: You need to reboot the virtual machine twice! There is no live-extension way for LVM in vSphere environment. If you want to do it live-extension, you need to add new VMDK hard disk to the VM and extend in the LVM console. I will write about that later. This guide is based on Ubuntu 12.04 LTS.   1. Enter your VM’s “Edit Properties” menu. Choose your hard drive and give more space as you want: 2. In the same window, click “Options” tab, choose “Boot Options” and enable “Force BIOS Setup” on the right side: 3. Click “OK”. 4. Go to g-parted web site and download the ISO file from there: http://gparted.org/ 5. Right click on your VM and click “Open Console”. Click the “Connect CDROM” button on top right and choose “Connect to ISO image on local disk”. 6. Choose your g-parted ISO file and click “OK”. 7. Now reboot your VM. You will see the BIOS screen. Go to “Boot” tab. Using UP-DOWN arrow select “CD-ROM drive” and bring it before Hard Drive using “+” sign on your keyboard. Go to Exit tab and select “Exit Saving Changes”. This will reboot your virtual machine. 8. You will see boot screen of g-parted. Click “Enter” for G-Parted Live. (You can hit Enter for default selections for 9-10-11 steps) 9. Choose “Don’t touch keymap” for Configuring console-data. 10. It will ask for language selection. Type your language number and hit Enter. Default is 33 (English). 11. Choose G-Parted mod, default is “0”. 12. G-parted will boot and Device manager screen will be shown in the screen. Now select LVM device which’s File System is “extended”. […]