Last modified on 14 September 2013, at 05:54

RAC Attack - Oracle Cluster Database at Home/RAC Attack 12c/Create Virtualbox Shared Storage


  1. Shutdown the server:
    [root@collabn1 ~]# shutdown -h now
    
    Broadcast message from root@collabn1.racattack
           (/dev/pts/0) at 9:06 ...
    
    The system is going down for halt NOW!
    
  2. In the VirtualBox Manager, select the machine collabn1, click Settings -> Storage.

    Select Controller SATA and click on the Add Hard Disk button:

    Virtualbox 4: Create Shared Storage - Add Hard Disk


    Click on Create New Disk:

    Virtualbox 4: Create Shared Storage - Select New Disk


  3. Leave VDI (VirtualBox Disk Image) selected and click Next.

    RA-vbox 4214-create vm-primary hard disk type


  4. For the shared storage, select Fixed size and click Next.

    Virtualbox 4: Create Shared Storage - Fixed Size


  5. Change the location of the file to the folder racattack12 previously created.

    Enter asm1.vdi as disk name.

    Enter 5.00Gb as disk size.

    Click Create.

    Virtualbox 4: Create Shared Storage - Disk Name and Size

  6. Now the disk is physically created with a size of 5Gb, so it can take more time to complete.

    Virtualbox 4: Create Shared Storage - Creation in progress

  7. Repeat the steps to create three more disks:
    • asm2.vdi (5.00GB)
    • asm3.vdi (5.00GB)
    • asm4.vdi (5.00GB)
  8. Finally, four virtual disks should have been created for asm.

    Click OK.

    Virtualbox 4: Create Shared Storage - 4 disks created

  9. Make all the asm devices sharable: from VirtualBox Manager, click File -> Virtual Media Manager.

    Virtualbox 4: Create Shared Storage - virtual media manager

  10. For each asm devices: right-click -> Modify:

    Virtualbox 4: Create Shared Storage - virtual media manager modify

  11. Select Shareable and click OK. Do it for the four asm devices.

    Virtualbox 4: Create Shared Storage - virtual media manager shareable

  12. Start the machine collabn1.

    You should see now four more disks named /dev/sd*:

    [root@collabn1 ~]# ls -l /dev/sd*
    brw-rw----. 1 root disk 8,  0 Jul 28 10:16 /dev/sda
    brw-rw----. 1 root disk 8,  1 Jul 28 10:16 /dev/sda1
    brw-rw----. 1 root disk 8,  2 Jul 28 10:16 /dev/sda2
    brw-rw----. 1 root disk 8, 16 Jul 28 10:16 /dev/sdb
    brw-rw----. 1 root disk 8, 32 Jul 28 10:16 /dev/sdc
    brw-rw----. 1 root disk 8, 48 Jul 28 10:16 /dev/sdd
    brw-rw----. 1 root disk 8, 64 Jul 28 10:16 /dev/sde