LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-22-2019, 06:17 AM   #1
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Rep: Reputation: Disabled
Creating shared disks in VSphere 6.5 - Oracle 12c RAC


Dear All,

I am installing Oracle db 12c release 2 on Oracle Linux 7 server using vSphere 6.5. I am going through the following documentation provided by Oracle for installation.

Code:
https://oracle-base.com/articles/12c/oracle-db-12cr2-rac-installation-on-oracle-linux-7-using-virtualbox
This installation process described in the above link is for virtual box. The document mentions creating shared disks using the following commands:
Code:
 
On the host server, create 4 sharable virtual disks and associate them as virtual media using the following commands. You can pick a different location, but make sure they are outside the existing VM directory.

$ mkdir -p /u04/VirtualBox/ol7-122-rac
$ cd /u04/VirtualBox/ol7-122-rac
$
$ # Create the disks and associate them with VirtualBox as virtual media.
$ VBoxManage createhd --filename asm1.vdi --size 20480 --format VDI --variant Fixed
$ VBoxManage createhd --filename asm2.vdi --size 20480 --format VDI --variant Fixed
$ VBoxManage createhd --filename asm3.vdi --size 20480 --format VDI --variant Fixed
$ VBoxManage createhd --filename asm4.vdi --size 20480 --format VDI --variant Fixed
$
$ # Connect them to the VM.
$ VBoxManage storageattach ol7-122-rac1 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
$ VBoxManage storageattach ol7-122-rac1 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable
$ VBoxManage storageattach ol7-122-rac1 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3.vdi --mtype shareable
$ VBoxManage storageattach ol7-122-rac1 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4.vdi --mtype shareable
$
$ # Make shareable.
$ VBoxManage modifyhd asm1.vdi --type shareable
$ VBoxManage modifyhd asm2.vdi --type shareable
$ VBoxManage modifyhd asm3.vdi --type shareable
$ VBoxManage modifyhd asm4.vdi --type shareable
Code:
----Text from document
Start the virtual machine by clicking the "Start" button on the toolbar. When the server has started, log in as the root user so you can configure the shared disks. The current disks can be seen by issuing the following commands.

# cd /dev
# ls sd*
sda  sda1  sda2  sdb  sdc  sdd  sde
#
How can I do the above if I am working with vSphere? I know these commands of VBoxManage would not work in vSphere. Should I create separate disks?? How can i make it shared as mentioned above?? I would be glad for your help.

Note: The link to the Oracle document is attached above.
 
Old 04-22-2019, 06:58 AM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
First of all, be careful with Oracle licensing if you are running it on VMs. If you are running RAC, I would avoid it. If it is on a cluster, you must license the number of cores in the entire cluster. For RAC on VMWare, it isn't all that straight forward. Here is what you will have to do:

1. Setup Virtual interfaces on the VMs for the private cluster interconnects that are on their own little separate network.

2. Create the shared disks for ASM to use. They must be thick provisioned, eager zeroed. You have to set a special flag called the multi-writer flag in the disk configuration advanced parameters.

Here is a VMWare KB that should help:

https://kb.vmware.com/s/article/1034165
 
1 members found this post helpful.
Old 05-02-2019, 12:18 PM   #3
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Dear Tyler,

Thank you very much. That really helped.
 
Old 04-08-2021, 03:17 PM   #4
Marmurray
LQ Newbie
 
Registered: Mar 2021
Posts: 1

Rep: Reputation: Disabled
Quote:
Thanks for sharing this with us! I am looking into vSphere quick boot now, and this helps.
VMware vSphere is not a specific product or software. Vmware Vsphere is the commercial name for the entire VMware pro product suite. The VMware vSphere product suite consists of virtualization, management, and an interface that integrates everything. The two main components of vSphere are the ESXi server and vCenter Server. ESXi is the hypervisor that creates and runs virtual machines. At the same time, the vCenter Server software helps us centrally manage the entire virtualization infrastructure.
It takes you some time to get everything about vSphere, but fixing the issues becomes easier when you learn about it.
Thanks for this!

Last edited by Marmurray; 04-19-2021 at 07:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check 11g & 12c oracle error messages ? PoleStar Linux - Newbie 1 10-14-2016 01:20 PM
can not input while installing oracle 12c with X11 server problem gbcbooks Linux - Server 5 04-10-2016 10:12 PM
LXer: Oracle Database 12c's data redaction security smashed live on stage LXer Syndicated Linux News 0 08-09-2014 02:00 AM
shared disks for rac nirmaltom Linux - Server 12 02-27-2007 09:02 AM
RHAS 3.0 i64, Oracle 10g, Oracle RAC, and ASM xmdms Linux - Enterprise 10 01-05-2007 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration