查看ASM磁盘组对应的磁盘路径
[root@linux1 ~]# oracleasm listdisksCV01CV02CV03DATA1如果我们知道当前系统下有多少ASM磁盘组,但不知道每个磁盘组对应的具体磁盘路径,利用用下列命令来查找。[root@linux1 ~]# ls -l /dev/oracleasm/disks/total 0brw-rw---- 1 grid oinstall 8, 17 Jun 18 22:00
·
[root@linux1 ~]# oracleasm listdisks
CV01
CV02
CV03
DATA1
如果我们知道当前系统下有多少ASM磁盘组,但不知道每个磁盘组对应的具体磁盘路径,利用用下列命令来查找。
[root@linux1 ~]# ls -l /dev/oracleasm/disks/
total 0
brw-rw---- 1 grid oinstall 8, 17 Jun 18 22:00 CV01
brw-rw---- 1 grid oinstall 8, 33 Jun 18 22:00 CV02
brw-rw---- 1 grid oinstall 8, 49 Jun 18 22:00 CV03
brw-rw---- 1 grid oinstall 8, 65 Jun 18 22:00 DATA1
比如,我们要查找DATA1磁盘组的系统磁盘路径。
[root@linux1 ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 274 2096482+ 82 Linux swap / Solaris
/dev/sda3 275 2610 18763920 8e Linux LVM
Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 130 1044193+ 83 Linux
Disk /dev/sdc: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 130 1044193+ 83 Linux
Disk /dev/sdd: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 130 1044193+ 83 Linux
Disk /dev/sde: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 1305 10482381 83 Linux
Disk /dev/sdf: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 1305 10482381 83 Linux
Disk /dev/sdg: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 1305 10482381 83 Linux
[root@linux1 ~]# oracleasm querydisk /dev/sde1
Device "/dev/sde1" is marked an ASM disk with the label "DATA1"
更多推荐
已为社区贡献1条内容
所有评论(0)