Bo's Oracle Station

查看: 3157|回复: 1

裸设备的问题

[复制链接]

81

主题

181

帖子

781

积分

高级会员

Rank: 4

积分
781
发表于 2017-4-12 14:58:43 | 显示全部楼层 |阅读模式
唐sir
   裸设备建磁盘组报错,请教原因,环境用的是推出来的,裸设备磁盘不是用loop,用的是虚机上增加的盘
   报告如下错误,提示找不到路径下有磁盘:
   SQL> create diskgroup newdata normal redundancy
  2  failgroup newdata_group_1 disk '/dev/raw/raw1' name raw1,'/dev/raw/raw2' name raw2
  3  failgroup newdata_group_2 disk '/dev/raw/raw3' name raw3,'/dev/raw/raw4' name raw4
  4  ;
create diskgroup newdata normal redundancy
*
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/raw/raw4' matches no disks
ORA-15014: path '/dev/raw/raw4' is not in the discovery set
ORA-15031: disk specification '/dev/raw/raw3' matches no disks
ORA-15014: path '/dev/raw/raw3' is not in the discovery set
ORA-15031: disk specification '/dev/raw/raw2' matches no disks
ORA-15014: path '/dev/raw/raw2' is not in the discovery set
ORA-15031: disk specification '/dev/raw/raw1' matches no disks
ORA-15014: path '/dev/raw/raw1' is not in the discovery set


   当前的状态
   [root@station79 ~]# raw -qa
/dev/raw/raw1:  bound to major 8, minor 113
/dev/raw/raw2:  bound to major 8, minor 129
/dev/raw/raw3:  bound to major 8, minor 145
/dev/raw/raw4:  bound to major 8, minor 161
/dev/raw/raw5:  bound to major 8, minor 177
/dev/raw/raw6:  bound to major 8, minor 193

   权限的情况:
[oracle@station79 ~]$ ls -l /dev/raw
crw------- 1 oracle asmadmin 162, 1 Apr 12 14:29 raw1
crw------- 1 oracle asmadmin 162, 2 Apr 12 14:29 raw2
crw------- 1 oracle asmadmin 162, 3 Apr 12 14:29 raw3
crw------- 1 oracle asmadmin 162, 4 Apr 12 14:29 raw4
crw------- 1 oracle asmadmin 162, 5 Apr 12 14:29 raw5
crw------- 1 oracle asmadmin 162, 6 Apr 12 14:29 raw6

    /etc/sysconfig/rwadevices的内容
[oracle@station79 ~]$ cat /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/sdh1
/dev/raw/raw2 /dev/sdi1
/dev/raw/raw3 /dev/sdj1
/dev/raw/raw4 /dev/sdk1
/dev/raw/raw5 /dev/sdl1
/dev/raw/raw6 /dev/sdm1

    服务的情况:
[root@station79 ~]# service rawdevices status
/dev/raw/raw1:  bound to major 8, minor 113
/dev/raw/raw2:  bound to major 8, minor 129
/dev/raw/raw3:  bound to major 8, minor 145
/dev/raw/raw4:  bound to major 8, minor 161
/dev/raw/raw5:  bound to major 8, minor 177
/dev/raw/raw6:  bound to major 8, minor 193

   这几个盘的情况:
   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdg: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sdg1               1        2610    20964793+  83  Linux

Disk /dev/sdh: 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/sdh1               1        1305    10482381   83  Linux

Disk /dev/sdi: 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/sdi1               1        1305    10482381   83  Linux

Disk /dev/sdj: 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/sdj1               1        1305    10482381   83  Linux

Disk /dev/sdk: 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/sdk1               1        1305    10482381   83  Linux

Disk /dev/sdl: 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/sdl1               1        1305    10482381   83  Linux

Disk /dev/sdm: 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/sdm1               1        1305    10482381   83  Linux

    asm_diskstring的状态保持推出来的默认值:
SQL> show parameter asm_disk
NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
asm_diskgroups                       string                            FRA, DATA
asm_diskstring                       string                            /dev/oracleasm/disks/*


回复

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-4-12 16:03:34 | 显示全部楼层
把asm_diskstring设空试试,与loop比较,应该更简单才对。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-20 01:32 , Processed in 0.038463 second(s), 24 queries .

快速回复 返回顶部 返回列表