配置
[root@tpps-ora01 ~]#oracleasm configure –i Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y
The next two configuration options take substrings to match device names. The substring \etc. You may enter more than one substring pattern, separated by spaces. The special string \
Device order to scan for ASM disks []:sd Devices to exclude from scanning []:
Writing Oracle ASM library driver configuration: done
初始化
[root@tpps-ora01 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm Loading module \
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@tpps-ora01 ~]#fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n Command action e extended
p primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-1011, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1011, default 1011): Using default value 1011
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table.
The new table will be used at the next reboot.
保存分区
[root@tpps-ora01 ~]# partprobe 创建asm分区
[root@tpps-ora01 ~]# oracleasm createdisk crs_disk01 /dev/sdb1
列出分区
[root@tpps-ora01 ~]# oracleasm listdisks
节点2
[root@tpps-ora02 ~]#iscsiadm -m discovery -t sendtargets -p 10.10.11.51 10.10.11.51:3260,1 iqn.2006-01.com.openfiler:tsn.54527546e345
[root@tpps-ora02 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -p 10.10.11.51 -l
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260]
iscsiadm: Could not login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260].
iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure) iscsiadm: Could not log into all portals
[root@tpps-ora02 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.authmethod -v CHAP
[root@tpps-ora02 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.username -v openfiler
[root@tpps-ora02 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -o update -n node.session.auth.password -v password
[root@tpps-ora02 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.54527546e345 -p 10.10.11.51 -l
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260]
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.54527546e345, portal: 10.10.11.51,3260] successful.
可以看到
初始化oracleasm
[root@tpps-ora02 ~]#oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm Loading module \
Mounting ASMlib driver filesystem: /dev/oracleasm
扫描disk
[root@tpps-ora02 ~]#oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \Instantiating disk \次节点也可看到分区了
[root@tpps-ora02 ~]# oracleasm listdisks CRS_DISK01
CRS_DISK02 CRS_DISK03 DATA_DISK01 DATA_DISK02 DATA_DISK03 FLASH_DISK01 FLASH_DISK02 FLASH_DISK03
4安装cluster ware
挂载
[root@tpps-ora01 tmp]# mount -o loop GRID_11.2.0.1_X86-64.iso /mnt
在本机上打开软件
然后执行
[root@tpps-ora01 tmp]# export DISPLAY=10.10.0.104:0.0 [root@tpps-ora01 tmp]#xhost +
access control disabled, clients can connect from any host [root@tpps-ora01 tmp]# xclock
Warning: Missing charsets in String to FontSet conversion
切换用户,执行安装
选择“Skip software update”