SlideShare a Scribd company logo
1 of 17
Download to read offline
How to Replace ASMlib with the udev Device Manager
for New and Existing Oracle Instances
Author: Jason Ganovsky
Editor: Allison Pranger
05/11/2011
PURPOSE AND OVERVIEW
Oracle recently announced that ASMlib will not be certified or supported on Red Hat Enterprise Linux 6.
Oracle has indicated that all other major components of the Oracle database stack, including ASM and RAC,
will be supported on Red Hat Enterprise Linux 6 moving forward, and the certification process is currently
underway.
Udev is a native component of Red Hat Enterprise Linux and as such is fully supported by Red Hat. Oracle
has published several white papers and technical guides on configuring their database with udev-managed
devices, demonstrating their support for the technology as well.
The purpose of this document is to explain how the udev device manager can be used to replace ASMlib
for ASM-backed Oracle instances. This document attempts to bridge the gap for those familiar with either
udev or ASMlib, but not necessarily with both. Additionally, it details how to create new ASM disk groups
from scratch using udev and explains how to perform an in-place migration from an ASMlib implementation
on Red Hat Enterprise Linux 5 to an equivalent, supported udev configuration without requiring any re-
installation or re-configuration of database components.
SETTING UP ASMLIB FOR ASM ON RED HAT ENTERPRISE LINUX 5
In order to understand how ASMlib works and what it does in terms of server configuration, a detailed
ASMlib setup is outlined below.
1. Install the relevant ASMlib components for your operating system/kernel combination.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 1
2. Run /etc/init.d/oracleasm configure and assign the appropriate environment variables.
NOTE: Creating new ASM disks will fail if you use non-standard Oracle user/group names and fail to specify
them correctly here.
3. Run /etc/init.d/oracleasm createdisk for each partition that will be assigned to a disk
group.
4. Note that Oracle creates new device entries under /dev/oracleasm/disks for each disk
created. The key benefits of ASMlib are that it creates consistent device names, assigns the
correct user/group ownership for files (dbauser/dbagroup), and assigns the correct permissions
(660).
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 2
CONFIGURING UDEV FOR ASM ON RED HAT ENTERPRISE LINUX 5
This section provides background information for a later section, Moving from ASMlib to udev on a Running
Oracle Server, which explains how to change ASMlib-tagged disks to udev-managed devices.
The steps below describe how to create udev rules for new disk groups for use by ASM.
1. Each SCSI block device is assigned a unique identifier that is used as the basis for udev device
rules. To obtain this identifier, run the following command for each SCSI block device that will be
used as part of an ASM disk group: scsi_id -g -u -s /block/sdx, where sdx represents an
appropriate block device, such as /block/sdb.
2. Create a new udev rules file in /etc/udev/rules.d using the unique identifiers obtained in step
1. Udev will use this configuration file to create persistent/consistent device names, assign the
correct ownership for your Oracle operating system user and group (typically oracle and dba
respectively, or oracle and oracle in this example), and assign the correct rights to those users
(rw for the block device or 0660). Give the new rules file a name that identifies it as ASM specific,
(for example, /etc/udev/rules.d/99-asm.rules) using the following template for each block
device:
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
RESULT=="insert-uuid-from-step-1-here",
NAME+="oracleasm/disks/DSK#" OWNER="linux-oracle-user"
GROUP="linux-oracle-group" MODE="0660"
3. Reboot or run start_udev and verify that all entries have been properly created in
/dev/oracleasm/disks. Also, verify that your Oracle Linux user and group have ownership of
all devices to be used with ASM and that the permissions are set to 0660.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 3
4. Continue with the next section to configure ASM on Red Hat Enterprise Linux 5.
CONFIGURING ASM ON RED HAT ENTERPRISE LINUX 5
Regardless of whether you used udev or ASMlib to create persistent device names and set up the
appropriate block-device permissions, you can use the following steps to configure Oracle ASM on Red Hat
Enterprise Linux 5.
1. Prior to configuring ASM, you must set up CSS. Run $ORACLE_HOME/bin/localconfig add as
root.
2. As the Oracle operating system user, run dbca to configure ASM storage.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 4
3. Select Configure Automatic Storage Management and click Next.
4. Configure a new ASM SYS user password (for consistency, you can use the existing SYS
password) and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 5
5. Click Create New.
6. Give the disk group a name and select all available disks.
NOTE: It might be required to click Change Disk Discovery Path and point to /dev/oracleasm/disks/* in
order for Oracle to recognize the appropriate block devices.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 6
7. Click Finish.
8. Click Yes to perform another operation.
9. Select Create a Database and click Next.
10. Select General Purpose and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 7
11. Name the database asmdb and click Next.
12. Deselect Configure Enterprise Manager and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 8
13. Choose passwords for SYS/SYSTEM and click Next.
14. Select ASM for storage and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 9
15. Select the newly created disk group and click Next.
16. Select Oracle Managed Files and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 10
17. Deselect Specify Flash Recovery Area and click Next.
18. Do not select Sample Schemas and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 11
19. Use the default settings for memory, sizing, character sets, and connection mode and click Next.
20. Use the default security settings and click Next.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 12
21. Deselect Enable Automatic Maintenance and click Next.
22. Click Finish.
23. Click OK.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 13
MOVING FROM ASMLIB TO UDEV ON A RUNNING ORACLE SERVER
This section assumes that you have already set up and configured ASM and ASMlib and that they are
hosting databases.
In the following example, a database named newdb is running on ASM disk group DG1, which is backed by
ASMlib-managed devices. DG1 comprises partitions /dev/sdb1, /dev/sdc1, and /dev/sdd1 mapped to
ASM DSK1, DSK2, and DSK3 respectively.
1. Shut down all Oracle database services and ensure the ASM disk group is unmounted.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 14
2. Shut down and disable the ASM service. To ensure the integrity of the disk-group data, the server
should be rebooted and you should verify that /dev/oracleasm no longer exists before
continuing.
3. Configure /etc/udev/rules.d/99-asm.rules as noted in the section Configuring udev for
ASM on Red Hat Enterprise Linux 5.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 15
4. Run start_udev or reboot the server and verify that the /dev/oracleasm/disk entries are in
place.
5. Verify that ASM starts and the disk group mounts properly.
6. Verify that the ASM-backed database starts properly.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 16
At this point, ASMlib has been replaced by udev for the specified disk group.
How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 17
Copyright © 2011 Red Hat, Inc. “Red Hat,” Red Hat Linux, the Red Hat “Shadowman” logo, and the products
listed are trademarks of Red Hat, Inc., registered in the U.S. and other countries. Linux® is the registered
trademark of Linus Torvalds in the U.S. and other countries.
www.redhat.com

More Related Content

What's hot

A MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverA MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverKeith Hollman
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaultAnar Godjaev
 
Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Arun Sharma
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)K Kumar Guduru
 
你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能maclean liu
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryKeith Hollman
 
Database security best_practices
Database security best_practicesDatabase security best_practices
Database security best_practicesTarik Essawi
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUGKeith Hollman
 
1Z0-053 Exam-Oracle Database 11g: Administration II
1Z0-053 Exam-Oracle Database 11g: Administration II 1Z0-053 Exam-Oracle Database 11g: Administration II
1Z0-053 Exam-Oracle Database 11g: Administration II Isabella789
 
En rhel-deploy-oracle-rac-database-12c-rhel-7
En rhel-deploy-oracle-rac-database-12c-rhel-7En rhel-deploy-oracle-rac-database-12c-rhel-7
En rhel-deploy-oracle-rac-database-12c-rhel-7Rotua Damanik
 
20160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab0120160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab01Ivan Ma
 

What's hot (20)

A MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverA MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole Crossover
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vault
 
21 Rac
21 Rac21 Rac
21 Rac
 
Instalar MySQL CentOS
Instalar MySQL CentOSInstalar MySQL CentOS
Instalar MySQL CentOS
 
241 Pdfsam
241 Pdfsam241 Pdfsam
241 Pdfsam
 
141 Rac
141 Rac141 Rac
141 Rac
 
Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7
 
Oracle GoldenGate
Oracle GoldenGateOracle GoldenGate
Oracle GoldenGate
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 
12c installation
12c installation12c installation
12c installation
 
你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online Recovery
 
Database security best_practices
Database security best_practicesDatabase security best_practices
Database security best_practices
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
 
1Z0-053 Exam-Oracle Database 11g: Administration II
1Z0-053 Exam-Oracle Database 11g: Administration II 1Z0-053 Exam-Oracle Database 11g: Administration II
1Z0-053 Exam-Oracle Database 11g: Administration II
 
Mastering VMware datacenter
Mastering VMware datacenterMastering VMware datacenter
Mastering VMware datacenter
 
En rhel-deploy-oracle-rac-database-12c-rhel-7
En rhel-deploy-oracle-rac-database-12c-rhel-7En rhel-deploy-oracle-rac-database-12c-rhel-7
En rhel-deploy-oracle-rac-database-12c-rhel-7
 
Habilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHELHabilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHEL
 
20160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab0120160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab01
 

Viewers also liked

security-checklist-database
security-checklist-databasesecurity-checklist-database
security-checklist-databaseMohsen B
 
Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Mohsen B
 
Finding root blocker in oracle database
Finding root blocker in oracle databaseFinding root blocker in oracle database
Finding root blocker in oracle databaseMohsen B
 
Cygwin installation
Cygwin installationCygwin installation
Cygwin installationMohsen B
 
7_GRIIT_Project_Ruchita_Sagar
7_GRIIT_Project_Ruchita_Sagar7_GRIIT_Project_Ruchita_Sagar
7_GRIIT_Project_Ruchita_SagarParimal Lokhande
 
Restore procedure
Restore procedureRestore procedure
Restore procedureMohsen B
 
Conozca office2000
Conozca office2000Conozca office2000
Conozca office2000pitterm
 
Automate DG Best Practices
Automate DG  Best PracticesAutomate DG  Best Practices
Automate DG Best PracticesMohsen B
 
Simple network troubleshooting
Simple network troubleshootingSimple network troubleshooting
Simple network troubleshootingMohsen B
 
Huge pages
Huge pagesHuge pages
Huge pagesMohsen B
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2Mohsen B
 

Viewers also liked (18)

security-checklist-database
security-checklist-databasesecurity-checklist-database
security-checklist-database
 
Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301
 
Rac
RacRac
Rac
 
Economics
EconomicsEconomics
Economics
 
Finding root blocker in oracle database
Finding root blocker in oracle databaseFinding root blocker in oracle database
Finding root blocker in oracle database
 
Financing Education in Thailand
Financing Education in ThailandFinancing Education in Thailand
Financing Education in Thailand
 
Cman
CmanCman
Cman
 
Cygwin installation
Cygwin installationCygwin installation
Cygwin installation
 
7_GRIIT_Project_Ruchita_Sagar
7_GRIIT_Project_Ruchita_Sagar7_GRIIT_Project_Ruchita_Sagar
7_GRIIT_Project_Ruchita_Sagar
 
Restore procedure
Restore procedureRestore procedure
Restore procedure
 
Conozca office2000
Conozca office2000Conozca office2000
Conozca office2000
 
Automate DG Best Practices
Automate DG  Best PracticesAutomate DG  Best Practices
Automate DG Best Practices
 
Simple network troubleshooting
Simple network troubleshootingSimple network troubleshooting
Simple network troubleshooting
 
Red Tide Phenomenon
Red Tide PhenomenonRed Tide Phenomenon
Red Tide Phenomenon
 
Huge pages
Huge pagesHuge pages
Huge pages
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
 
Feature Writing
Feature  WritingFeature  Writing
Feature Writing
 
Art of Questioning
Art of QuestioningArt of Questioning
Art of Questioning
 

Similar to Rhel asmlib to_udev

Create Diskgroup Sqlplus Command
Create Diskgroup Sqlplus CommandCreate Diskgroup Sqlplus Command
Create Diskgroup Sqlplus CommandArun Sharma
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsMarkus Michalewicz
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Markus Michalewicz
 
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsWhat's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsMarkus Michalewicz
 
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdfAlireza Kamrani
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Sharekutrovsky
 
10g rac asm
10g rac asm10g rac asm
10g rac asmVictor
 
Exam 1Z0-053 Oracle Database 11g: Administration II
Exam 1Z0-053 Oracle Database 11g: Administration IIExam 1Z0-053 Oracle Database 11g: Administration II
Exam 1Z0-053 Oracle Database 11g: Administration IIEllina Beckman
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionMarkus Michalewicz
 
O Racle Asm Best Practices Presentation
O Racle Asm Best Practices PresentationO Racle Asm Best Practices Presentation
O Racle Asm Best Practices Presentationeraz
 
Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Ludovico Caldara
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020Anil Nair
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Markus Michalewicz
 
Guide to clone_sles_instances
Guide to clone_sles_instancesGuide to clone_sles_instances
Guide to clone_sles_instancesSatheesh Thomas
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices Filip Verloy
 
configuring+oracle+rds+with+glasfish+server
configuring+oracle+rds+with+glasfish+serverconfiguring+oracle+rds+with+glasfish+server
configuring+oracle+rds+with+glasfish+serverhunghtc83
 

Similar to Rhel asmlib to_udev (20)

Create Diskgroup Sqlplus Command
Create Diskgroup Sqlplus CommandCreate Diskgroup Sqlplus Command
Create Diskgroup Sqlplus Command
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
 
EBS on ACFS white paper
EBS on ACFS white paperEBS on ACFS white paper
EBS on ACFS white paper
 
Rac&asm
Rac&asmRac&asm
Rac&asm
 
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsWhat's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
 
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf
🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
 
10g rac asm
10g rac asm10g rac asm
10g rac asm
 
Exam 1Z0-053 Oracle Database 11g: Administration II
Exam 1Z0-053 Oracle Database 11g: Administration IIExam 1Z0-053 Oracle Database 11g: Administration II
Exam 1Z0-053 Oracle Database 11g: Administration II
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
O Racle Asm Best Practices Presentation
O Racle Asm Best Practices PresentationO Racle Asm Best Practices Presentation
O Racle Asm Best Practices Presentation
 
Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
Oracle database 12c asm administration
Oracle database 12c asm administrationOracle database 12c asm administration
Oracle database 12c asm administration
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
Guide to clone_sles_instances
Guide to clone_sles_instancesGuide to clone_sles_instances
Guide to clone_sles_instances
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices
 
configuring+oracle+rds+with+glasfish+server
configuring+oracle+rds+with+glasfish+serverconfiguring+oracle+rds+with+glasfish+server
configuring+oracle+rds+with+glasfish+server
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 

Recently uploaded

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

Rhel asmlib to_udev

  • 1. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances Author: Jason Ganovsky Editor: Allison Pranger 05/11/2011 PURPOSE AND OVERVIEW Oracle recently announced that ASMlib will not be certified or supported on Red Hat Enterprise Linux 6. Oracle has indicated that all other major components of the Oracle database stack, including ASM and RAC, will be supported on Red Hat Enterprise Linux 6 moving forward, and the certification process is currently underway. Udev is a native component of Red Hat Enterprise Linux and as such is fully supported by Red Hat. Oracle has published several white papers and technical guides on configuring their database with udev-managed devices, demonstrating their support for the technology as well. The purpose of this document is to explain how the udev device manager can be used to replace ASMlib for ASM-backed Oracle instances. This document attempts to bridge the gap for those familiar with either udev or ASMlib, but not necessarily with both. Additionally, it details how to create new ASM disk groups from scratch using udev and explains how to perform an in-place migration from an ASMlib implementation on Red Hat Enterprise Linux 5 to an equivalent, supported udev configuration without requiring any re- installation or re-configuration of database components. SETTING UP ASMLIB FOR ASM ON RED HAT ENTERPRISE LINUX 5 In order to understand how ASMlib works and what it does in terms of server configuration, a detailed ASMlib setup is outlined below. 1. Install the relevant ASMlib components for your operating system/kernel combination. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 1
  • 2. 2. Run /etc/init.d/oracleasm configure and assign the appropriate environment variables. NOTE: Creating new ASM disks will fail if you use non-standard Oracle user/group names and fail to specify them correctly here. 3. Run /etc/init.d/oracleasm createdisk for each partition that will be assigned to a disk group. 4. Note that Oracle creates new device entries under /dev/oracleasm/disks for each disk created. The key benefits of ASMlib are that it creates consistent device names, assigns the correct user/group ownership for files (dbauser/dbagroup), and assigns the correct permissions (660). How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 2
  • 3. CONFIGURING UDEV FOR ASM ON RED HAT ENTERPRISE LINUX 5 This section provides background information for a later section, Moving from ASMlib to udev on a Running Oracle Server, which explains how to change ASMlib-tagged disks to udev-managed devices. The steps below describe how to create udev rules for new disk groups for use by ASM. 1. Each SCSI block device is assigned a unique identifier that is used as the basis for udev device rules. To obtain this identifier, run the following command for each SCSI block device that will be used as part of an ASM disk group: scsi_id -g -u -s /block/sdx, where sdx represents an appropriate block device, such as /block/sdb. 2. Create a new udev rules file in /etc/udev/rules.d using the unique identifiers obtained in step 1. Udev will use this configuration file to create persistent/consistent device names, assign the correct ownership for your Oracle operating system user and group (typically oracle and dba respectively, or oracle and oracle in this example), and assign the correct rights to those users (rw for the block device or 0660). Give the new rules file a name that identifies it as ASM specific, (for example, /etc/udev/rules.d/99-asm.rules) using the following template for each block device: KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="insert-uuid-from-step-1-here", NAME+="oracleasm/disks/DSK#" OWNER="linux-oracle-user" GROUP="linux-oracle-group" MODE="0660" 3. Reboot or run start_udev and verify that all entries have been properly created in /dev/oracleasm/disks. Also, verify that your Oracle Linux user and group have ownership of all devices to be used with ASM and that the permissions are set to 0660. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 3
  • 4. 4. Continue with the next section to configure ASM on Red Hat Enterprise Linux 5. CONFIGURING ASM ON RED HAT ENTERPRISE LINUX 5 Regardless of whether you used udev or ASMlib to create persistent device names and set up the appropriate block-device permissions, you can use the following steps to configure Oracle ASM on Red Hat Enterprise Linux 5. 1. Prior to configuring ASM, you must set up CSS. Run $ORACLE_HOME/bin/localconfig add as root. 2. As the Oracle operating system user, run dbca to configure ASM storage. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 4
  • 5. 3. Select Configure Automatic Storage Management and click Next. 4. Configure a new ASM SYS user password (for consistency, you can use the existing SYS password) and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 5
  • 6. 5. Click Create New. 6. Give the disk group a name and select all available disks. NOTE: It might be required to click Change Disk Discovery Path and point to /dev/oracleasm/disks/* in order for Oracle to recognize the appropriate block devices. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 6
  • 7. 7. Click Finish. 8. Click Yes to perform another operation. 9. Select Create a Database and click Next. 10. Select General Purpose and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 7
  • 8. 11. Name the database asmdb and click Next. 12. Deselect Configure Enterprise Manager and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 8
  • 9. 13. Choose passwords for SYS/SYSTEM and click Next. 14. Select ASM for storage and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 9
  • 10. 15. Select the newly created disk group and click Next. 16. Select Oracle Managed Files and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 10
  • 11. 17. Deselect Specify Flash Recovery Area and click Next. 18. Do not select Sample Schemas and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 11
  • 12. 19. Use the default settings for memory, sizing, character sets, and connection mode and click Next. 20. Use the default security settings and click Next. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 12
  • 13. 21. Deselect Enable Automatic Maintenance and click Next. 22. Click Finish. 23. Click OK. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 13
  • 14. MOVING FROM ASMLIB TO UDEV ON A RUNNING ORACLE SERVER This section assumes that you have already set up and configured ASM and ASMlib and that they are hosting databases. In the following example, a database named newdb is running on ASM disk group DG1, which is backed by ASMlib-managed devices. DG1 comprises partitions /dev/sdb1, /dev/sdc1, and /dev/sdd1 mapped to ASM DSK1, DSK2, and DSK3 respectively. 1. Shut down all Oracle database services and ensure the ASM disk group is unmounted. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 14
  • 15. 2. Shut down and disable the ASM service. To ensure the integrity of the disk-group data, the server should be rebooted and you should verify that /dev/oracleasm no longer exists before continuing. 3. Configure /etc/udev/rules.d/99-asm.rules as noted in the section Configuring udev for ASM on Red Hat Enterprise Linux 5. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 15
  • 16. 4. Run start_udev or reboot the server and verify that the /dev/oracleasm/disk entries are in place. 5. Verify that ASM starts and the disk group mounts properly. 6. Verify that the ASM-backed database starts properly. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 16
  • 17. At this point, ASMlib has been replaced by udev for the specified disk group. How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances | Jason Ganovsky 17 Copyright © 2011 Red Hat, Inc. “Red Hat,” Red Hat Linux, the Red Hat “Shadowman” logo, and the products listed are trademarks of Red Hat, Inc., registered in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. www.redhat.com