Oracle 12cR1 12101 2node RAC on CentOS 64 on VMware Workstation 9Part 7.docx
- 文档编号:5151526
- 上传时间:2022-12-13
- 格式:DOCX
- 页数:10
- 大小:114.43KB
Oracle 12cR1 12101 2node RAC on CentOS 64 on VMware Workstation 9Part 7.docx
《Oracle 12cR1 12101 2node RAC on CentOS 64 on VMware Workstation 9Part 7.docx》由会员分享,可在线阅读,更多相关《Oracle 12cR1 12101 2node RAC on CentOS 64 on VMware Workstation 9Part 7.docx(10页珍藏版)》请在冰豆网上搜索。
Oracle12cR1121012nodeRAConCentOS64onVMwareWorkstation9Part7
Oracle12cR112.1.0.12-nodeRAConCentOS6.4onVMwareWorkstation9–Part VII
PostedonJuly10,2013byoraclejedi•PostedinLinux,Oracle,RAC,VMware•Tagged12.1.0.1,12c,12cR1,12cR1RAC,centos,CentOS6.4,install,redhat,RedHat6.4,stepbystep,VMWareWorkstation•2Comments
TimeRequired:
60minutes
ClassMaterials:
∙20GBofdiskspace
∙anASCIItexteditor
NextwearegoingtoaddshareddiskfortheRACclustertouse.
InearlierreleasesofOracleRAC,amimimalRACcouldbestooduponlessthan5GBofASMdisk.WithOracle12cthatisnolongerpossible.
ForthisdemonstrationIamgoingtocreatea20GBshareddisk.Ifyouaretightonspaceyoujustaboutshoehornitintoa10GBdisk.
MakesurebothVMsareshutdown.Ifyouwanttomakeacloneofyourprogressthennowisyourlastchancetodosowithoutthecomplicationofsharedexternaldisk.
WewilladdanewdisktoRuggerofirst,andthenaddthesamediskintoMagda.
UsingtheVMwareWorkstationmenu,rightclickonRuggeroandselectSettings.
ThiswillbringuptheVirtualMachineSettingsmenu.ClickontheAddbutton.
AttheAddHardwareWizardmenu,selectHardDiskandclickNext.
SelectCreateanewvirtualdiskandclickNext.
WhentheSelectaDiskTypemenuappears,selectSCSI(Recommended)andformodecheckIndepenentandtheradiobuttonPersistent.
WhentheSpecifyDiskCapacitymenuappear,setthenewdisksizeat20GB.Youcanscrapebywith10GBifyoudisablearchive-logmodeanddispensewiththesampleschemas,butIwanttokeepthese.
ChecktheAllalldiskspacenow.buttonandStorevirtualdiskasasinglefile
NOTE:
TheselasttwooptionsareveryimportantforourRAC.TryingtocreateashareddiskwithVMwareWorkstationusingthin-provisioningwillresultindiskcorruption.
NextVMwareWorkstationwillaskwhereyouwanttostoreyournewdiskandwhatyouwanttocallit.BydefaultitwillwanttoplacethevirtualdiskinthesamedirectoryastherestoftheRuggeroVM.Howeverthisnewdiskistobeshared,soIprefertoplaceitinaseparatedirectory.
VMwareWorkstationstoresitsVMsbydefaultintheuser’sDocumentsdirectoryunderasub-directorycalledVirtualMachines.Inthisdirectoryyouwillfindsub-directoriesforbothourVMsRuggeroandMagda.
Ihavecreatedanewsub-directorycalledSharedDiskandthenaddedafurthersub-directoryforeachRACclusterIhavesetupunderVMwareWorkstation.
SinceIamnamingthisclusterLaRondine,IamstoringthesharedvirtualdiskintheSharedDisk/LaRondinesub-directorywiththenameasmdisk01.vmdk.
VMwarewillaskyouconfirmyourselection.PressFinishtoconfirm.
NowweneedtomoveournewdisktoadifferentvirtualSCSIdevicewithintheVM.Inordertoavoidallmannerofclusterdiskissues,weneedtoplacetheshareddisksonadifferentSCSIcontrollertothelocaldisks.
HighlighttheRuggeroVMintheVMwareWorkstationmenuandselectSettings.WhentheVirtualMachineSettingsmenuappears,highlightHardDisk2andselecttheAdvancedbuttonontherighthandside.
TheHardDiskAdvancedSettingsmenuallowstomodifytheVirtualdevicenode.BydefaultthiswillbesettoSCSI0:
1,butweneedtochangethistoSCSI1:
0.ThiswillmoveournewdisktoSCSIcontroller1,device0.
Nextwewillhavetoresorttoalittlehackingtomakeourshareddiskreallysharable.WearenowleveragingVMfunctionalitythatisnotreallysupportedinVMwareWorkstation9,butdoesappeartowork,atleastfordemopurposes.
NavigatetothedirectorywheretheRuggeroVMfilesarestored,inmostcasesthiswillbeDocuments/VirtualMachines/Ruggero.InthereyouwillfindafilecalledRuggero.vmx
TheVMXfilecontainsthehardwareprofileoftheVMswehavecreated.Beforewedoanythingelse,makeacopyofitsowehavesomethingtogobacktoifwemakeamess.
OpentheVMXfilewithanASCIIeditor.MakesureyouhaveaneditorabletoopenandsaveinASCIIformat.WordProcessorsareapoorchoicehereastheyaremorelikelytoaddsymbolsthatwillcorruptthefile.
OpentheVMXfileandaddthefollowingdirectives:
disk.EnableUUID="TRUE"
disk.locking="FALSE"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.dataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1.sharedBus="virtual"
ThesechangesforcetheVMstonottrytobufferreadsandwritestothedisk,whichwouldresultinblockcorruptiontotheshareddatabase.ThenewdirectivescanbeaddedanywhereintheVMXfile,althoughItendtoaddthemimmediatelyabovetheSCSIsettings.
Thefollowingisasub-sectiontakenfromtheVMXfileofmyRuggeroVM.Ihavenotdumpedtheentirefileforthesakeofclarity.
replay.supported="FALSE"
disk.EnableUUID="TRUE"
disk.locking="FALSE"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.dataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1.sharedBus="virtual"
scsi0.pciSlotNumber="16"
scsi0.present="TRUE"
scsi0.virtualDev="lsilogic"
scsi0:
0.fileName="Ruggero-000004.vmdk"
scsi0:
0.present="TRUE"
scsi0:
0.redo=""
scsi0:
1.present="FALSE"
scsi1.present="TRUE"
scsi1.virtualDev="lsilogic"
scsi1:
0.fileName="D:
\VirtualMachines\SharedDisk\LaRondine\asmdisk01.vmdk"
scsi1:
0.mode="independent-persistent"
scsi1:
0.present="TRUE"
serial0.fileType="thinprint"
serial0.present="TRUE"
sound.autodetect="TRUE"
NownavigatetotheVMXfileforMagdaandaddthesamedirectivesfordisk,diskLibandscsi1.YoudoNOTneedtousetheVMwareinterfacetomakethesechanges.EditingtheVMXfiledirectlyisthebetteroption.
ThefollowingistakenfromtheVMXfileofmyMagdaVM.AgainIhavenotdumpedtheentirefileforthesakeofclarity.AsyoucanseeIhavecopiedtheentriesfordisk,diskLibandscsi1fromtheRuggeroVMXfile.
replay.supported="FALSE"
disk.EnableUUID="TRUE"
disk.locking="FALSE"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.dataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1.sharedBus="virtual"
scsi1.present="TRUE"
scsi1.virtualDev="lsilogic"
scsi1:
0.fileName="D:
\VirtualMachines\SharedDisk\LaRondine\asmdisk01.vmdk"
scsi1:
0.mode="independent-persistent"
scsi1:
0.present="TRUE"
scsi0.pciSlotNumber="16"
scsi0.present="TRUE"
scsi0.virtualDev="lsilogic"
scsi0:
0.fileName="Ruggero-cl1.vmdk"
scsi0:
0.present="TRUE"
scsi0:
0.redo=""
serial0.fileType="thinprint"
serial0.present="TRUE"
sound.autodetect="TRUE"
NowyoucanstartupbothRuggeroandMagda.Asyoudoso,youmightnoticeasmallwarninginthebottomrighthandcorneroftheVMwarewindowthatstates:
ClusteringisnotsupportedforWMwareWorkstation–thissettingwillbeignored
Don’tworryaboutthis.Thisisexpectedbehavior.
WhenRuggeroisfullbootedup,weshouldbeabletocreateapartitiontableonthenewshareddisk,whichwillbepresentedtoLinuxas/dev/sdb.
Inthefollowingexamplewecreateapartitionatthe1MBoffset.
[root@ruggero~]#fdisk/dev/sdb
DevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabel
BuildinganewDOSdisklabelwithdiskidentifier0xd5b605e3.
Changeswillremaininmemoryonly,untilyoudecidetowritethem.
Afterthat,ofcourse,thepreviouscontentwon'tberecoverable.
Warning:
invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)
WARNING:
DOS-compatiblemodeisdeprecated.It'sstronglyrecommendedto
switchoffthemode(command'c')andchangedisplayunitsto
sectors(command'u').
Command(mforhelp):
u
Changingdisplay/entryunitstosectors
Command(mforhelp):
n
Commandaction
eextended
pprimarypartition(1-4)
p
Partitionnumber(1-4):
1
Firstsector(63-41943039,default63):
2048
Lastsector,+sectorsor+size{K,M,G}(2048-41943039,default41943039):
Usingdefaultvalue41943039
Command(mforhelp):
w
Thepartitiontablehasbeenaltered!
Callingioctl()tore-readpartitiontable.
Syncingdisks.
WehavecreatedapartitiononthenewshareddiskandnowwehavetocreateaUDEVruleforthenewdisk.
IfwehaveOracleEnterpriseLinuxthenwecouldusetheformerlyfreeASMLibtooltostampandmanagethedisksacrossourcluster.HoweverOraclenolongerprovidesthatoptionfornonOraclebrandedLinux,sowearegoingtouseUDEVrulesinstead.
FirstweneedtoknowtheSCSIIDofthenewdisk.TheSCSIIDisauniqueidentifierthatisconstantacrossallmachinesthataccessaphysicaldisk.Itallowsustoknowexactlywhichdiskwearetalkingtoregardlessofwhichmachinewemightbeaccessingitfrom.
[root@ruggero~]#scsi_id-g-u-d/dev/sdb
36000c2991392fe6ed8ed10c219bf3bb3
NextwearegoingtocreateaUDEVruletomanagethisdisk.Createafilecalled/etc/udev/rules.d/99-oracleasm.rulesandaddthefollowingentriestothefileasasingleline:
KERNEL=="sd?
1",BUS=="scsi",PROGRAM=="/sbin/scsi_id-g-u-d/dev/$parent",
RESULT=="36000c2991392fe6ed8ed10c219bf3bb3",NAME="oracleasm/asm-disk1",
OWNER="oracle",GROUP="asmadmin",MODE="0660"
Intheaboveexample,IhaveinstructedtheUDEVrulesprocessortoscanfordeviceswiththenamesd?
1meaningitwillpickupdiskpartitionsonSCSIdisks.
IftheSCSIIDmatchestheoneshown,thediskwillbepresentedas/dev/oracleasm/asm-disk1andwillbeownedbyoraclewithagroupownershipofasmadmin.ThiswillallowASMtomanagethedisk.
NowwecanstarttheUDEVrulesprocessoranddetermine
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Oracle 12cR1 12101 2node RAC on CentOS 64 VMware Workstation Part 12 cR1 node
![提示](https://static.bdocx.com/images/bang_tan.gif)
链接地址:https://www.bdocx.com/doc/5151526.html