查看: 17118|回复: 42

【讨论】请教,LINUX RAC,共享存储的盘符不一致,有无影响?

[复制链接]
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
跳转到指定楼层
1#
发表于 2015-1-4 14:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
LINUX5.8,  RAC11203, 2节点。

节点1的存储情况,其中,暗红色为ASM的共享存储。


[root@rac1 ~]# fdisk -l

Disk /dev/sda: 48.3 GB, 48318382080 bytes
255 heads, 63 sectors/track, 5874 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        5874    47078482+  8e  Linux LVM

Disk /dev/sdb: 365.0 GB, 365072220160 bytes
255 heads, 63 sectors/track, 44384 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       44384   356514448+  83  Linux

Disk /dev/sdc: 319.9 GB, 319975063552 bytes
255 heads, 63 sectors/track, 38901 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       38901   312472251   83  Linux

Disk /dev/sdd: 9663 MB, 9663676416 bytes
64 heads, 32 sectors/track, 9216 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        9216     9437168   83  Linux

Disk /dev/sde: 8589 MB, 8589934592 bytes
64 heads, 32 sectors/track, 8192 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1        8192     8388592   83  Linux

Disk /dev/sdf: 212.6 GB, 212600881152 bytes
255 heads, 63 sectors/track, 25847 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1       25847   207615996   83  Linux

Disk /dev/dm-0: 43.9 GB, 43989860352 bytes
255 heads, 63 sectors/track, 5348 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
[root@rac1 ~]#


节点2的存储情况,
起初,节点2的盘符和节点1的一样,但在往节点2添加了一块100G的存储后,系统自动命名为 /dev/sdc,导致节点2上的ASM共享的盘符变化了(都往后挪动了一位),请问:这种变化会不会影响系统使用? 我担心
重启节点1服务器后,出现共享存储异常。
谢谢。

[root@rac2 ~]# fdisk -l

Disk /dev/sda: 48.3 GB, 48318382080 bytes
255 heads, 63 sectors/track, 5874 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        5874    47078482+  8e  Linux LVM

Disk /dev/sdb: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       13054   104856223+  8e  Linux LVM

Disk /dev/sdc: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sde: 9663 MB, 9663676416 bytes
64 heads, 32 sectors/track, 9216 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1        9216     9437168   83  Linux

Disk /dev/sdd: 319.9 GB, 319975063552 bytes
255 heads, 63 sectors/track, 38901 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       38901   312472251   83  Linux

Disk /dev/sdf: 8589 MB, 8589934592 bytes
64 heads, 32 sectors/track, 8192 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1        8192     8388592   83  Linux

Disk /dev/sdg: 212.6 GB, 212600881152 bytes
255 heads, 63 sectors/track, 25847 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1       25847   207615996   83  Linux

Disk /dev/dm-0: 43.9 GB, 43989860352 bytes
255 heads, 63 sectors/track, 5348 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
[root@rac2 ~]#



论坛徽章:
4
2014年新春福章
日期:2014-02-18 16:49:31马上有钱
日期:2014-02-18 16:49:31喜羊羊
日期:2015-03-04 14:54:422015年新春福章
日期:2015-03-06 11:59:47
2#
发表于 2015-1-4 15:22 | 只看该作者
盘符不能乱

使用道具 举报

回复
论坛徽章:
5
2014年新春福章
日期:2014-02-18 16:48:49马上加薪
日期:2014-02-18 16:48:49优秀写手
日期:2014-05-09 05:59:53暖羊羊
日期:2015-04-02 19:01:52沸羊羊
日期:2015-07-07 16:43:58
3#
发表于 2015-1-4 15:24 | 只看该作者
肯定会有影响的,我之前在虚拟机上试验过,ASM直接就起不来了

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
4#
 楼主| 发表于 2015-1-4 15:39 | 只看该作者
hoplite 发表于 2015-1-4 15:05
影响,

使用UDEV绑定

我的测试环境,就是用UDEV绑定的,刚才测试了一把,没有影响,
虽然两边的盘符不一致,但ASM能正常使用。


这是重启后的情况,RAC1
[root@rac41 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 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        5221    41833260   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: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1044     8385898+  83  Linux

Disk /dev/sdd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         261     2096451   83  Linux

Disk /dev/dm-0: 36.5 GB, 36574330880 bytes
255 heads, 63 sectors/track, 4446 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 6241 MB, 6241124352 bytes
255 heads, 63 sectors/track, 758 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
[root@rac41 ~]#



这是重启后的情况,RAC2
[root@rac42 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 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        5221    41833260   8e  Linux LVM

Disk /dev/sdb: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdb doesn't contain a valid partition table

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: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        1044     8385898+  83  Linux

Disk /dev/sde: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1         261     2096451   83  Linux

Disk /dev/dm-0: 36.5 GB, 36574330880 bytes
255 heads, 63 sectors/track, 4446 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 6241 MB, 6241124352 bytes
255 heads, 63 sectors/track, 758 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
[root@rac42 ~]#

3  /dev/sdb 已经被使用。

[root@rac42 backup]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               vgvolbackup
  PV Size               500.00 MB / not usable 4.00 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              124
  Free PE               74
  Allocated PE          50
  PV UUID               7OfIul-rwhS-CHDK-P8TY-Eeu6-o3L3-KMeKdC
   
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               39.90 GB / not usable 20.79 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              1276
  Free PE               0
  Allocated PE          1276
  PV UUID               SouLqF-ECVU-5BpC-fzpc-8E0w-PyHv-gEJoOL
   
[root@rac42 backup]#


4  我查看ASM的共享存储,OK,可以在数据库下执行CREATE USER命令。

使用道具 举报

回复
论坛徽章:
10
咸鸭蛋
日期:2012-05-08 17:24:15秀才
日期:2016-02-18 09:24:30天枰座
日期:2016-01-20 19:29:54天蝎座
日期:2016-01-14 14:30:05秀才
日期:2015-11-30 09:59:23秀才
日期:2015-10-19 15:49:552015年新春福章
日期:2015-03-06 11:58:39慢羊羊
日期:2015-03-04 14:53:33优秀写手
日期:2014-12-17 06:00:16秀才
日期:2016-02-18 10:08:14
5#
发表于 2015-1-4 15:41 | 只看该作者
影响,ASM 起不来。
我碰过一次, 存储工程师,化共享存储的时候两边没有一一对应,找了好久原因。

使用道具 举报

回复
论坛徽章:
10
咸鸭蛋
日期:2012-05-08 17:24:15秀才
日期:2016-02-18 09:24:30天枰座
日期:2016-01-20 19:29:54天蝎座
日期:2016-01-14 14:30:05秀才
日期:2015-11-30 09:59:23秀才
日期:2015-10-19 15:49:552015年新春福章
日期:2015-03-06 11:58:39慢羊羊
日期:2015-03-04 14:53:33优秀写手
日期:2014-12-17 06:00:16秀才
日期:2016-02-18 10:08:14
6#
发表于 2015-1-4 15:42 | 只看该作者
ZALBB 发表于 2015-1-4 15:39
我的测试环境,就是用UDEV绑定的,刚才测试了一把,没有影响,
虽然两边的盘符不一致,但ASM能正常使用。 ...

UDEV 绑定.....   好吧。
日志有什么异样的信息么?

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
7#
 楼主| 发表于 2015-1-4 15:48 | 只看该作者
huzhichengforce 发表于 2015-1-4 15:41
影响,ASM 起不来。
我碰过一次, 存储工程师,化共享存储的时候两边没有一一对应,找了好久原因。

你那时是使用什么方式管理共享存储的? asmlib, or udev , 还是其他?

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
8#
 楼主| 发表于 2015-1-4 15:49 | 只看该作者
huzhichengforce 发表于 2015-1-4 15:42
UDEV 绑定.....   好吧。
日志有什么异样的信息么?

水平有限,看不出系统日志有什么异常信息,

使用道具 举报

回复
论坛徽章:
5
优秀写手
日期:2014-12-12 06:00:15马上有车
日期:2015-02-05 10:24:42美羊羊
日期:2015-03-04 14:52:282015年新春福章
日期:2015-03-06 11:58:18美羊羊
日期:2015-03-13 11:07:59
9#
发表于 2015-1-4 16:54 | 只看该作者
我用的asmlib ,重启每次都有可能不一致的情况,但是asm的磁盘可以扫描到,就不会影响

使用道具 举报

回复
论坛徽章:
0
10#
发表于 2015-1-4 16:57 | 只看该作者
用udev 绑了 就没啥影响了,ASM用的是UDEV建出来的盘

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表