How to Resize rac1.vdi in VirtualBox

Questions relating to Oracle Real Application Clusters (RAC) and Clusterware.

Moderator: Tim...

How to Resize rac1.vdi in VirtualBox

Postby zdc9119 » Sun Oct 21, 2012 7:17 pm

I'm trying to setup a RAC environment by following the article ""Oracle Database 11g Release 2 RAC on Linux Using VirtualBox". I'm using OL5.6 on my MacBook Pro with a 8g memory. I'm using VirutalBox 4.1.18 and set up the two nodes, each with 45g hard disk. But, I'm seeing the disk space is only 7.6G on each node, which is pretty much the size of the file rac1.vdi or rac2.vdi. So how can I resize the file system /u01 on the disk to make it upto 45g?

Thanks.
zdc9119
Member
 
Posts: 3
Joined: Sun Oct 21, 2012 4:45 pm

Re: How to Resize rac1.vdi in VirtualBox

Postby Tim... » Sun Oct 21, 2012 8:09 pm

Hi.

Di you unzip the installation media on to each VM? If so, that is a big waste of space. I have the installation media on the host system and access it using shared folders on each VM.

If you need to increase the size of the file system you will need to follow the instructions given here:

http://www.oracle-base.com/articles/lin ... gement.php

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17937
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK

Re: How to Resize rac1.vdi in VirtualBox

Postby zdc9119 » Mon Oct 22, 2012 2:34 am

So in my case I just need to use the commands: lvextend and resize2fs on the LV /dev/VolGroup00/LogVol00, am I right about that?
Yes, I unzipped the software on each node. I'll switch to using the shared drive.

Thank you so much, Tim!
zdc9119
Member
 
Posts: 3
Joined: Sun Oct 21, 2012 4:45 pm

Re: How to Resize rac1.vdi in VirtualBox

Postby Tim... » Mon Oct 22, 2012 7:55 am

Hi.

There has to be more physical space for those to work. You will have to add another virtual drive to create a new physical volume, then add that to the logical volume.

Of course, if you remove the software, you probably won't need all the extra space. :)

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17937
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK

Re: How to Resize rac1.vdi in VirtualBox

Postby zdc9119 » Mon Oct 22, 2012 12:57 pm

That's what I thought initially, but just wondering what's the point then to set it as Dynamically Extend...at beginning?

Thanks, Tim!
zdc9119
Member
 
Posts: 3
Joined: Sun Oct 21, 2012 4:45 pm

Re: How to Resize rac1.vdi in VirtualBox

Postby Tim... » Mon Oct 22, 2012 2:38 pm

Hi.

Dynamically expanding means it doesn't preallocate the space at VM creation. For example, if I create a VM with a 100G disk and preallocate the storage, the virtual disk will consume 100G of disk space from the start.

If I say dynamically expanding, it will only take a little but of space, but can expand up to 100G as I fill the virtual disk. Dynamically expanding is therefore an attempt to save space on the host disk by not preallocating and therefore wasting space. It has nothing to do with expansion of the virtual disk when it has reached its defined size.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17937
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK


Return to Oracle RAC and Clusterware

Who is online

Users browsing this forum: No registered users and 1 guest