如果使用asmlib,必须使用losetup命令创建块设备,如下:
[root@odb01 ~]# for i in {1..10};do losetup /dev/loop$i /u02/asmdisks/asmdisk$i;done [root@odb01 ~]# ll /dev/loop* brw-rw---- 1 root disk 7, 1 Sep 4 14:35 /dev/loop1 brw-rw---- 1 root disk 7, 10 Sep 4 14:35 /dev/loop10 brw-rw---- 1 root disk 7, 2 Sep 4 14:35 /dev/loop2 brw-rw---- 1 root disk 7, 3 Sep 4 14:35 /dev/loop3 brw-rw---- 1 root disk 7, 4 Sep 4 14:35 /dev/loop4 brw-rw---- 1 root disk 7, 5 Sep 4 14:35 /dev/loop5 brw-rw---- 1 root disk 7, 6 Sep 4 14:35 /dev/loop6 brw-rw---- 1 root disk 7, 7 Sep 4 14:35 /dev/loop7 brw-rw---- 1 root disk 7, 8 Sep 4 14:35 /dev/loop8 brw-rw---- 1 root disk 7, 9 Sep 4 14:35 /dev/loop9 crw-rw---- 1 root disk 10, 237 Sep 4 14:35 /dev/loop-control [root@odb02 ~]# for i in {1..10};do losetup /dev/loop$i /u02/asmdisks/asmdisk$i;done [root@odb02 ~]# ll /dev/loop* 5.4 创建ASM磁盘 [root@odb01 ~]# for i in {1..10};do oracleasm createdisk vol$i /dev/loop$i;done [root@odb02 ~]# oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk "VOL1" Instantiating disk "VOL2" Instantiating disk "VOL3" Instantiating disk "VOL4" Instantiating disk "VOL5" Instantiating disk "VOL6" Instantiating disk "VOL7" Instantiating disk "VOL8" Instantiating disk "VOL9" Instantiating disk "VOL10" 5.5 使用ASM磁盘在安装Grid组件时,在配置“Storage Option”中选择第一个选项“Configure ASM using block devices”,如下图:
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx