Read here for more details: Have you considered using the scsi-rescan -a command to rescan the scsi bus? Or you can increase the size of the existing disk if your guest OS supports this. This is rather important step, because a disk that has been partitioned in 4 primary partitions already can not be extended any more. You need to rescan the disks before you can make the bigger partition.

Uploader: Digor
Date Added: 27 December 2006
File Size: 47.60 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 20425
Price: Free* [*Free Regsitration Required]

virtualization – How to extend a Linux PV partition online after virtual disk growth – Server Fault

So I lvmm to: Sorry, I lack the time to fully write that one out. I was very hesitant when LVM become stable before use it in a production system Phisical or Virtual it doesn’t matter. Great post, I had to extend a volume on my linux boxes.

Once you get back to the main command within fdisk, type w to write your partitions to the disk.

Hopefully this will save future searchers from futile attempts. You can do this without a reboot. I just extended my VMware disk also, and had to scour other answers to find the correct command. There is also one more step to the above which is expanding ext or whatever filesystem you eax using once you have resized the partition.


This is your logical volume’s name e. Choose your partition number.

Extend LVM partition on VMWare guest / ESX

You’ll get a message about the kernel still using the old partition table, and to reboot to use the new table. DaveJ 11 Apr But other than that, I really do not use LVM for anything else. Email Required, but never shown. When you’re asked to enter the “Hex code”, enter 8eand confirm by hitting enter. I created a VM of 40 GB of hard disk.

Works like a charm. Sign up using Email and Password. Brian Afshar Friday, September 28, at Using physical volume s on command line. This worked beautifully for me when I extended the disk space from 20G to llvm. It ‘s strongly recommended to. You’ve not provided us enough detail to tell you the exact commands you’ll need but essentially you’ll need to use the lvextend command to extend the logical volume, then the e2fsck command esc then the resize2fs command to actually expand your filesystem.

Linux LVM Best Practice |VMware Communities

I agree with you and I already know by practice that add a new SCSI disk to a Linux machine can be done online for all the steps listed.


The following steps can cause dataloss beyond recovery.

Does it recognise a new vmware disk when you rescan? Adrian Thursday, August 4, at Comment Link Well documented steps, Good Job! I’m not sure if there was a way to do this live in my particular instance – I ended up calling on a friend who is much ovm versed in Linux administration, and we couldn’t figure out a way to do it.

Karvin Friday, November 11, at Miguel Lvvm Arribas Friday, August 3, at This is rather esxx step, because a disk that has been partitioned in 4 primary partitions already can not be extended any more. You install the OS, setup the server, move the sites on this new server and you’re on. I can’t see any purpose for it in a VM since we can expand paritions in other ways – it just adding a unneeded layer.