RAC+ASM 3 years in production Stories to sharePresented by: Christo Kutrovsky
Who Am I2Oracle ACE
10 years in Oracle field
Joined Pythian 2003
Part of Pythian Consulting Team
Special projects
Performance tuning
Critical services“oracle pinup”
Pythian FactsFounded in 199790 employees120 customers worldwide20 customers more than $1 billion in revenue5 offices in 5 countries10 years profitable private company
What Pythian doesPythian provides database and application infrastructure services.
Agenda52 nodes RAC
ASMLIB with multipathing
Migrating to new servers with ASM
Thin provisioning
ASM + restores = danger
Device naming conventions
spfile location
JBOD configuration62 Node RAC for High Availability
2 Node RACs for HA7Two node RAC nodes
13 databases
Dev databases
Shutdown databases (and ASM) on node1
Perform maintenance
Unplug the interconnect cable
What happens?2 nodes RAC8VIPVIPNode 1Node 2SID_A1SID_A2SID_B1SID_B2InterconnectASMDGFibre ChannelOCR/V
2 nodes RAC9VIPVIPNode 1Node 2SID_A1SID_A2SID_B1SID_B2InterconnectASMDGFibre ChannelOCR/V
10I can’tSee Node 1I can’tSee Node 2VIPVIPNode 1Node 2SID_A1SID_A2SID_B1SID_B2InterconnectASMDGFibre ChannelOCR/V
One is not Quorum1150% chance your working node gets restarted
Depends on clusterware version
Who will shoot the other guy firstOne is not Quorum12Conclusion?
Turn off clusterware when you have only 2 nodes and performing maintenance
Upgrade to a more predicable clusterware
Lowest ‘leader’ always survives
Add a 3th tie-breaker node
doesn’t have to run a database, just clusterware (observer)One is not Quorum13Production cases, what happens ifAll Network dies on one node?
All disk dies on one node?14ASMLIBwith Multi Pathing
Building ASMLIB devices when multipathing is present15Devices used for creating asmlib
/dev/emcpowerc1
/dev/mapper/raid10_data_disk
Devices used to create asmdiskgroup
ASMLIB
The reboot changes everything
ASMLIB re-discovers the devices without multipath
Difficult to diagnoseVisual16/dev/mapper/data1/dev/mapper/data2/dev/sdb/dev/sdc/dev/sdd/dev/sdeHBA1HBA2LUN_1LUN_2
Building ASMLIB devices when multipathing is present17Do not use ASMLIB
If you have to (why?)
Must setup “ORACLEASM_SCANORDER”
asm_diskstring parameter
Permissions
Udev files
Boot/startup scriptRemoving ASMLIB18Why
Extra layer
Requires new driver for every new kernel
Can cause downtime if not careful
ASMLIB header is the same as ASM DISK header
Just has extra field for ASMLIB name
Disks can be accessed directly, without ASMLIB without having to drop/recreate themRemoving ASMLIB19Unmount all affected diskgroups
Change or set asm_diskstring
Remount diskgroups via new paths
Can be done in rolling fashion in RAC20SAN Migration

RAC+ASM: Stories to Share