Saturday, August 16, 2014

Oracle 12c on Oracle Linux 6.5 on Hyper-V (Server 2012R2 Updated) on Storage Spaces with De-duplication

 What more do you need.... :)


The following are for those who encountered some issues with installing Oracle Linux 6.5 on Hyper-V in the hopes of installing the Oracle 12c database on top of Oracle Linux 6.5.
Though Oracle 12c on Oracle Linux 6.5 is not supported on Hyper-V by Oracle, it may be necessary for the purpose of demonstrations and proof of concept.


Configuration environment:
  1. Server 2012R2 OS With GUI Updated
  2. Storage spaces enabled on,
  3. 4 drives in mirror mode
  4. De-Duplication enabled with 0 days schedule time (always applying de-duplication algorithms on all files)
Hyper-V Environment:
  1. OS with 4GB RAM
  2. 4 core CPU and set with maximum compatibility for live migration
  3. Boot disk, IDE, 320 GB
  4. Additional SCSI disk, 320 GB for u01 partition



Major symptoms encountered:
  1. Installation of Oracle Linux 6.5 went well (partition layout of /boot, 16GB SWAP, rest as / partition as default of ext4) but on reboot freezes on loading some modules.
  2. Some cases, loading completes and user able to login with root (now the real problem happens)
  3. Oracle Linux 6.5 OS keeps on using a lot of memory, giving up to 12GB RAM will still result in its using the swap partition.
  4. Attempting to format SCSI 320 GB disk (/dev/sdb) as MBR and ext4.
    1. Mounting works but cannot browse using Gnome explorer, nor ls via terminal.
    2. Un-mounting operation freezes, cannot umount drive.
    3. Shutting down OS will wait at un-mounting file systems.
    4. Force power down is necessary.

Could it be a configuration issue?








Mitigation Step 1 Attempted:
  1. Using kickstart script from oracle dev days VM's
  2. Formatting and mounting works but cannot browse using Gnome explorer, nor ls via terminal.
  3. Un-mounting operation freezes, cannot umount drive.
  4. Shutting down OS will wait at un-mounting file systems.
  5. Force power down is necessary.
 Same Symptoms Encountered:
  1. mkdir /u01/* failed
  2. umount /u01 failed
  3. repeated attempts of re-installation failed
  4. Shutting down OS will wait at un-mounting file systems
  5.  Force power down is necessary


Could it be  a storage spaces (and de-duplication) problem?




Mitigation Step 2 Attempted:
  1. Create VM on a host without de-duplication or storage spaces
  2. Oracle Linux used about 400MB RAM, no excessive usage of swap partition
  3. VM was configured with 2100 MB RAM
  4. Initial attempt worked with formatting and mounting of /dev/sb1 as /u01
  5. Gnome explorer worked, ls /u01 worke
 Same Symptoms Encountered:
  1. mkdir /u01/* failed
  2. umount /u01 failed
  3. repeated attempts of re-installation failed
  4. Shutting down OS will wait at un-mounting file systems
  5. Force power down is necessary

Could it be a disk IDE/SCSI problem?

Mitigation Step 3 Attempted:
  1. Create VM with both drives as IDE0 and IDE1
 Same Symptoms Encountered:
  1. mkdir /u01/* failed
  2. umount /u01 failed
  3. repeated attempts of re-installation failed
  4. Shutting down OS will wait at un-mounting file systems
  5. Force power down is necessary 



Beyond an IDE/SCSI disk problem?

 Mitigation Step 4 Attempted:

  1. Create VM with disk0 as IDE and disk1 as SCSI 
  2. Installed as normal but used ext3 partitions

Final Result (What everyone is waiting for!!!):
  1. Installation of Oracle Linux 6.5 worked
  2. Formatting, mounting of /dev/sdb1 as /u01 worked
  3. mkdir /u01/temp worked
  4. unmounting worked
  5. reboot worked.


At this point installation of Oracle 12c was successful....

 -------------------------------------------------------------------------------------------------------------------

Conclusion (IMHO)

The implemetation of ext4 on top of Hyper-V may be an issue causing disk processes to be in a busy wait.

Using ext3 worked as it has less resilient features implemented as compared to ext4.


Further tests:
xfs, btrfs etc...




Googling for a solution at this time (2014/08/10) did not produce any valid results but if anyone has encountered something similar with a working solution please share your experiences by posting in the comments or pm me.