I have Window 7 Professional with Oracle VM VirtualBox version 4122 r80657 with Linux Centos 6 Servers.
I increased my Oracle VM VirtualBox from 20gb to 40 gb.
I tried to copy a large folder from my old Centos 5 Server to this new Centos 6 server and it said there was not enough space.
When I look at the machine its says under the Drive information:
Type Normal (VDI)
Virtual Size 40 GB
Actual Size 14 GB
Details Dynamically allocated storage.
df -kh .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centos6webserver-lv_root
17G 14G 1.8G 89% /
vgdisplay vg_centos6webserver
--- Volume group ---
VG Name vg_centos6webserver
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 19.51 GiB
PE Size 4.00 MiB
Total PE 4994
Alloc PE / Size 4994 / 19.51 GiB
Free PE / Size 0 / 0
VG UUID IbyHuz-uNpx-ZgX5-pGnr-4P5r-R5MR-b0PWoP
I created /dev/sda3 and it is empty and when I look in fdisk I see this
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 2611 20458496 8e Linux LVM
/dev/sda3 2611 5221 20966162+ 83 Linux
So my question is how do I make so that I can increase the LVM drive with the empty space on sda3 ???
I am new to linux so need help. I think I am doing something silly or missed something somewhere but any help would be appresiated.
Cheers
Oracle VM VirtualBox from 20gb to 40 gb
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Oracle VM VirtualBox from 20gb to 40 gb
Moving this discussion to "Linux Guests", since the Windows Host is not relevant to the question asked.
Anyway, when you increased your disk size that was all that was increased. The partitions on the disk were unchanged. You need to use a partition manager inside the guest to manipulate such things as partition size. Unfortunately your choice of LVM partitions complicates this: typically one would boot up the VM with a gparted live cd, but I don't think gparted supports LVM, and I don't know what does.
Anyway, when you increased your disk size that was all that was increased. The partitions on the disk were unchanged. You need to use a partition manager inside the guest to manipulate such things as partition size. Unfortunately your choice of LVM partitions complicates this: typically one would boot up the VM with a gparted live cd, but I don't think gparted supports LVM, and I don't know what does.
-
Dingo-Den
- Posts: 3
- Joined: 6. Nov 2012, 13:54
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux Centos 6.2
- Location: Australia
- Contact:
Re: Oracle VM VirtualBox from 20gb to 40 gb
I just installed Centos 6 and it made up the directory structure. The only thing I did was increase the size and add a new device sda3. I installed gparted on the virtual pc and I did not know what to do it just seemed to view the disks and had an option to delete? I could see the following drives in gparted
Partition File System Mount Point Size Used Unused Flags
/dev/sda1 ext4 /boot 400MiB 70.02 429.98 boot
/dev/sda2 ! Lvm2 19.51 GiB ---- ------ lvm
/dev/sda3 ! Unknown 19.99 Gib ---- -----
Unallocated Unallocated 5.23 MiB ---- -----
I have spend four days moving a Centos 5 Web Server over to this VM Centos 6 and I hope that is not all gone to waist.
I did not create the boot disk of gparted and that is the bit I missed but as you say it does not change lvm drives but I hope out there somewhere somwone has a solution.
I am new to Linux but I can usually follow direction
Partition File System Mount Point Size Used Unused Flags
/dev/sda1 ext4 /boot 400MiB 70.02 429.98 boot
/dev/sda2 ! Lvm2 19.51 GiB ---- ------ lvm
/dev/sda3 ! Unknown 19.99 Gib ---- -----
Unallocated Unallocated 5.23 MiB ---- -----
I have spend four days moving a Centos 5 Web Server over to this VM Centos 6 and I hope that is not all gone to waist.
I did not create the boot disk of gparted and that is the bit I missed but as you say it does not change lvm drives but I hope out there somewhere somwone has a solution.
I am new to Linux but I can usually follow direction
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Oracle VM VirtualBox from 20gb to 40 gb
You're asking at the wrong place. Extending the partition is OS specific and should be addressed at the forum of the OS.
Google change partition size linux lvm or ask the CentOS forum.
Google change partition size linux lvm or ask the CentOS forum.
-
Dingo-Den
- Posts: 3
- Joined: 6. Nov 2012, 13:54
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux Centos 6.2
- Location: Australia
- Contact:
Re: Oracle VM VirtualBox from 20gb to 40 gb
OK I have moved on and this can be marked as resolved.