01 Creation with ASM Storage

References

Richmond Cluster (11)

Using Raw Logical Volumes on Linux.

Overview

BANKSTOWN is being built as the Data Guard standby node for the PENRITH cluster.

Configuration

Here are the configuration details for BANKSTOWN:

Name

Host name

eth0 IP

Value

bankstown.yaocm.id.au

10.1.1.244

Disk Configuration

As BANKSTOWN is a stand-alone node, I can use raw devices for the basis of the ASM disks. The reference procedure is in Richmond Cluster (11) from my OCM 10G build.

Partioning

The result of the partitioning of /dev/sdb is:

(parted) print Model: VMware, VMware Virtual S (scsi) Disk /dev/sdb: 8590MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 0.51kB 3681MB 3681MB primary 2 3681MB 8590MB 4909MB primary

Raw Device Set Up

The raw devices were set up as follows:

[root@bankstown ~]# raw -qa [root@bankstown ~]# vi /etc/sysconfig/rawdevices [root@bankstown ~]# cat /etc/sysconfig/rawdevices # raw device bindings # format: # # example: /dev/raw/raw1 /dev/sda1 # /dev/raw/raw2 8 5 /dev/raw/raw1 /dev/sdb1 /dev/raw/raw2 /dev/sdb2 [root@bankstown ~]# service rawdevices restart Assigning devices: /dev/raw/raw1 --> /dev/sdb1 /dev/raw/raw1: bound to major 8, minor 17 /dev/raw/raw2 --> /dev/sdb2 /dev/raw/raw2: bound to major 8, minor 18 done [root@bankstown ~]# ls -l /dev/raw total 0 crw------- 1 root root 162, 1 Jan 9 05:13 raw1 crw------- 1 root root 162, 2 Jan 9 05:13 raw2 [root@bankstown ~]# chown asm:oinstall /dev/raw/raw[12] [root@bankstown ~]# chmod 660 /dev/raw/raw[12] [root@bankstown ~]# ls -l /dev/raw total 0 crw-rw---- 1 asm oinstall 162, 1 Jan 9 05:13 raw1 crw-rw---- 1 asm oinstall 162, 2 Jan 9 05:13 raw2

ASM Disk Configuration

The disk discovery string is now:

asm_diskstring = /dev/raw

Used dbca to mount the following disks with external redundancy (a lie!):

DATA

RECOVERY

/dev/raw/raw1
/dev/raw/raw2

The result is:

[asm@bankstown ~]$ asmcmd lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name MOUNTED EXTERN N 512 4096 1048576 3510 3460 0 3460 0 DATA/ MOUNTED EXTERN N 512 4096 1048576 4681 4631 0 4631 0 RECOVERY/