The resize process should finish right after you click the enter button to execute the command. If you are using a Linux operating system as a host, open the terminal and type the following command to resize VDI: VBoxManage modifymedium '/pathtovdifile' -resize .Update: I have just checked with Debian GNU/Linux Jessie 8.2 running kernel 3.16 and parted 3.2, the partprobe now succeeds after partition table edition with cfdisk with no reboot. Method 2: Increase VirtualBox disk space using Linux command line. But such a setup is not obvious at all with distribution installers. I have been recommended to simply discard that stupid old partition table and run pvcreate directly on the device as Grub2 is able to load a kernel image directly from a file system on a LVM partition. Now I can run pvresize to get new free space, lvextend and resize2fs to allocate some more space to a file system.Locate the disk which needs to be expanded. reboot a second time OR run partprobe from parted package only if / is not mounted there Select Disks from the left navigation window of the Virtual Machine.The commands in this section assume sda as disk device. create a partition entry with the same number and start sector until the end of disk If you require more space, you can expand the last partition of your disk after resizing the disk.delete the old primary PV partion in fdisk.reboot a first time to see the new disk size in fdisk.I really hope it will be better soon with newer kernel versions. Update: My system is a Debian Lenny with kernel 2.6.26 and the disk I have extended is the main disk with a large PV containing the "root" LV for "/".Īs far as the root file system / is mounted on the disk that has been resized, the partition table and disk size are not refreshed by a SCSI rescan with Linux 2.6.26. But the first one - change partition size declared in the partition table (still) seems to require a reboot. On Linux, I expects to do all steps online too and I already know steps 2, 3 and 4 work online. How to refresh the virtual disk size and partition table information available in Linux kernel without reboot ?Īs far as I know all that steps are possible for a running Windows, without reboot and even without any user actions thanks to VMWare tools. My disk is a SCSI virtual disk connected thanks to the virtual LSI Logic controller. use free extents for lvresize operationsīut I am stuck on the first step: fdisk and sfdisk still display the old size for the disk.extend the partition: delete and create a larger one with fdisk.The next expected steps for Linux system are: Use lvextend to extend the logical volume of the file system to the maximum space that you have added (or a lesser amount if required). After that you can change the disk sapce by editing the. VMware allows to extend the size of a virtual disk online - when the VM is running. Before Increasing the disk size you need to shutdown your VM.
0 Comments
Leave a Reply. |