root 用户身份创建 ASM 磁盘。
# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
Marking disk "/dev/sdc1" as an ASM disk: [ OK ]
# /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1
Marking disk "/dev/sdd1" as an ASM disk: [ OK ]
# /etc/init.d/oracleasm createdisk VOL3 /dev/sde1
Marking disk "/dev/sde1" as an ASM disk: [ OK ]
Verify that the ASM disks are visible from every node.
# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
如果通过ASM磁盘或是磁盘组找到ASM磁盘对应的物理磁盘呢?
#/etc/init.d/oracleasm querydisk -d VOL1
Disk "VOL1" is a valid ASM disk on device [8, 33]
#ll /dev/sd*1
brw-r----- 1 root disk 8, 1 Apr 12 16:38 /dev/sda1
brw-r----- 1 root disk 8, 17 Apr 12 16:39 /dev/sdb1
brw-r----- 1 root disk 8, 33 Apr 12 16:39 /dev/sdc1
brw-r----- 1 root disk 8, 49 Apr 12 16:39 /dev/sdd1
可知VOL1 是由 /dev/sdc1 构建