In this Document
Solution
2. Configure LUNs for ASM:
5. To make the disk available enter the following commands:
8. Ensure that the devices can be seen in /dev/mapper:
10. Setup the ASM parameter (ORACLEASM_SCANORDER), in the file for ASMLIB configuration, /etc/sysconfig/oracleasm, for forcing ASM to bind with the multipath devices
Before being able to configure udev to explicitly name devices, SCSI_ID (scsi_id(8)) should first be configured to return their device identifiers. SCSI commands are sent directly to the device via the SG_IO ioctl interface. Modify the /etc/scsi_id.config file - add or replace the 'option=-b' parameter/value pair (if exists) with 'option=-g', for example:
1b. List all SCSI devices
Using the command SCSI_ID for each /block/a-h (for example, for /dev/sda we type scsi_id -g -s /block/sdb) generates the output:
The two initial SCSI ids represent the local disks (/dev/sda and /dev/sdb). The remaining five represent the SCSI ids of the fibre channel attached LUNs. As a subset of the output string, scsi_id generates for the fibre LUNs matches the World Wide Identifier (WWID). A simple example would be a disk connected to two Fibre Channel ports. Should one controller, port or switch fail, the operating system can route I/O through the remaining controller transparently to the application, with no changes visible to the applications, other than perhaps incremental latency.
1c. Obtain Clusterware device unique SCSI identifiers:
From the output above, note that multiple devices share common SCSI identifiers. It should now be evident that devices such as /dev/sdh and /dev/sdi refer to the same shared storage device (LUN).
Another command can be used for listing the SCSI identifiers.
1d. Run fdisk to create partitions for ASM disks:
(System Administrator's Task)
MUST run fdisk on respective devices
fdisk /dev/?
Example:
1e. Run the fdisk(8) and/or 'cat /proc/partitions' commands to ensure devices are visible. (If Real Application Clusters (RAC), Clusterware devices are visible on each node.) For example:
2. Configure LUNs for ASM:
(System Administrator's Task)2a. Verify Multipath Devices:
Once multipathing has been configured and the multipathd service started, the multipathed devices should now be available.3. Automatic Storage Management Library (ASMLIB) setup:
For detailed multipathing commands, please refer to
Update the kernel partition table with the new partition as follow (If Real Application Clusters (RAC), do on each node.):
Then verify that all multipaths are active by executing:
In fact, various device names are created and used to refer to multipathed devices, for example:
3a. Verify that ASMLIB has not been installed already before installing (If Real Application Clusters (RAC), run this command on each node):
For example (as root): 3b. Check status (If Real Application Clusters (RAC), run this command on each node):
Failed example:Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
If status failed ("no" displayed), then:
Configuring the Oracle ASM library driver, for example:
Default user to own the driver interface []: grid -----> input Grid Infrastructure/ASM user name
Default group to own the driver interface []: asmadmin -----> input Grid Infrastructure/ASM group name
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
3c. Check status again:
4. Create ASM diskgroups:
4a. Check prior to createdisk command:
4b. After Check, do createdisk command:
5. To make the disk available enter the following commands:
5a. Scan ASM disks:
5b. List ASM disks:
6. Check the ASM diskgroups:
For example (as root) (If Real Application Clusters (RAC), do on each node.):
7. Ensure that the allocated devices can be seen in /dev/mpath:
For example (as root) (f Real Application Clusters (RAC), do on each node.):8. Ensure that the devices can be seen in /dev/mapper:
For example (as root) (f Real Application Clusters (RAC), do on each node.):9. Check the device type:
For example (as root) (f Real Application Clusters (RAC), do on each node.):10. Setup the ASM parameter (ORACLEASM_SCANORDER), in the file for ASMLIB configuration, /etc/sysconfig/oracleasm, for forcing ASM to bind with the multipath devices
10a. Check the file, /etc/sysconfig/oracleasm:
10b. Make a backup of the original file, /etc/sysconfig/oracleasm-_dev_oracleasm
10c. Modify the ORACLEASM_SCANORDER and ORACLEASM_SCANEXCLUDE parameters in /etc/sysconfig/oracleasm:
# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER="mpath dm"
# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE="sd"
10d. save file
10e. Restart oracleasm:
10f. Check mulitpath device against /proc/partitions file:
10g. Check mulitpath device against the file, /dev/oracleasm/disks:
10f. Check oracleasm disks again:
Additional Resources
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-734278/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13750068/viewspace-734278/
1066

被折叠的 条评论
为什么被折叠?



