A-A+

SUN cluster 双机服务添加新磁盘

2018年03月20日 Solaris运维 暂无评论 阅读 400 次

因业务需要,需在现有环境中添加两个新存储lun

环境如下:

两台solaris 系统使用sun cluster软件配置为双机系统,

运行oracle数据库服务,模式为主备。

第一步

存储划分合适配置的空间,并完成主机映射。

第二步

主机识别存储空间并配置

映射完成后,使用

dmesg

命令可以查看到主机已经检测到新lun信息,磁盘号和存储lun号一致。

[11:17:37]Mar 19 11:15:39 T71CWSERV2 scsi: [ID 583861 kern.info] ssd6 at scsi_vhci0: unit-address g6000b08414b30303336363233390007a: g6000b08414b30303336363233390007a
[11:17:37]Mar 19 11:15:39 T71CWSERV2 genunix: [ID 936769 kern.info] ssd6 is /scsi_vhci/ssd@g6000b08414b30303336363233390007a
[11:17:37]Mar 19 11:15:39 T71CWSERV2 scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6):
[11:17:37]Mar 19 11:15:39 T71CWSERV2 Corrupt label; wrong magic number
[11:17:37]Mar 19 11:15:39 T71CWSERV2 genunix: [ID 443303 kern.warning] WARNING: Page83 data not standards compliant Oracle Oracle FS1-2 6203
[11:17:37]Mar 19 11:15:39 T71CWSERV2 genunix: [ID 408114 kern.info] /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6) online
[11:17:37]Mar 19 11:15:39 T71CWSERV2 genunix: [ID 483743 kern.info] /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6) multipath status: degraded: path 25 fp1/ssd@w2100000e1ec7e9a0,6 is online
[11:17:37]Mar 19 11:15:39 T71CWSERV2 genunix: [ID 530209 kern.info] /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6) multipath status: optimal: path 26 fp0/ssd@w2100000e1ec7ea70,6 is online: Load balancing: round-robin
[11:17:37]Mar 19 11:15:39 T71CWSERV2 scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6):
[11:17:37]Mar 19 11:15:39 T71CWSERV2 Corrupt label; wrong magic number
[11:17:37]Mar 19 11:15:40 T71CWSERV2 genunix: [ID 443303 kern.warning] WARNING: Page83 data not standards compliant Oracle Oracle FS1-2 6203
[11:17:37]Mar 19 11:15:40 T71CWSERV2 last message repeated 13 times
[11:17:37]Mar 19 11:15:40 T71CWSERV2 genunix: [ID 530209 kern.info] /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6) multipath status: optimal: path 27 fp1/ssd@w2100000e1ec7ebc0,6 is online: Load balancing: round-robin
[11:17:37]Mar 19 11:15:40 T71CWSERV2 genunix: [ID 530209 kern.info] /scsi_vhci/ssd@g6000b08414b30303336363233390007a (ssd6) multipath status: optimal: path 28 fp0/ssd@w2100000e1ec7e9b0,6 is online: Load balancing: round-robin

使用format 进行新磁盘laber操作。

查看现有did磁盘

[11:19:01]root@T71CWSERV2 # scdidadm -l
[11:19:01]1 T71CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d1
[11:19:01]2 T71CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d2
[11:19:01]3 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:19:01]4 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:19:01]5 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:19:01]6 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:19:01]7 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:19:01]8 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8

[11:19:20]root@T71CWSERV2 # scdidadm -L
[11:19:20]1 T71CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d1
[11:19:20]2 T71CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d2
[11:19:20]3 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:19:20]3 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:19:20]4 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:19:20]4 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:19:20]5 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:19:20]5 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:19:20]6 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:19:20]6 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:19:20]7 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:19:20]7 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:19:20]8 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:19:20]8 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:19:20]9 T72CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d9
[11:19:20]10 T72CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d10

识别新的lun为did磁盘

[11:19:37]root@T71CWSERV2 # scdidadm -L
[11:19:38]1 T71CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d1
[11:19:38]2 T71CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d2
[11:19:38]3 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:19:38]3 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:19:38]4 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:19:38]4 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:19:38]5 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:19:38]5 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:19:38]6 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:19:38]6 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:19:38]7 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:19:38]7 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:19:38]8 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:19:38]8 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:19:38]9 T72CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d9
[11:19:38]10 T72CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d10
[11:19:59]root@T71CWSERV2 # scgdevs
[11:19:59]Configuring DID devices
[11:20:00]did instance 11 created.
[11:20:00]did subpath T71CWSERV2:/dev/rdsk/c1t6000B08414B30303336363233390007Ad0 created for instance 11.
[11:20:00]Configuring the /dev/global directory (global devices)
[11:20:00]devfsadm: no minor name for /global/.devices/node@1//devices/pci@310/pci@1:/SYS/RCSA/PCIE16
[11:20:02]obtaining access to all attached disks
[11:20:15]root@T71CWSERV2 # scdidadm -L
[11:20:15]1 T71CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d1
[11:20:15]2 T71CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d2
[11:20:15]3 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:20:15]3 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900074d0 /dev/did/rdsk/d3
[11:20:15]4 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:20:15]4 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900078d0 /dev/did/rdsk/d4
[11:20:15]5 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:20:15]5 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900077d0 /dev/did/rdsk/d5
[11:20:15]6 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:20:15]6 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900076d0 /dev/did/rdsk/d6
[11:20:15]7 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:20:15]7 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900075d0 /dev/did/rdsk/d7
[11:20:15]8 T71CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:20:15]8 T72CWSERV2:/dev/rdsk/c1t6000B08414B303033363632333900034d0 /dev/did/rdsk/d8
[11:20:15]9 T72CWSERV2:/dev/rdsk/c0d0 /dev/did/rdsk/d9
[11:20:15]10 T72CWSERV2:/dev/rdsk/c0d1 /dev/did/rdsk/d10
[11:20:15]11 T71CWSERV2:/dev/rdsk/c1t6000B08414B30303336363233390007Ad0 /dev/did/rdsk/d11
[11:20:15]11 T72CWSERV2:/dev/rdsk/c1t6000B08414B30303336363233390007Ad0 /dev/did/rdsk/d11

 

添加磁盘到metaset中

[11:23:51]root@T71CWSERV2 # metaset -s cworacle -a /dev/did/dsk/d11
[11:23:57]root@T71CWSERV2 # metaset
[11:23:57]
[11:23:57]Set name = cworacle, Set number = 1
[11:23:57]
[11:23:57]Host Owner
[11:23:57] T71CWSERV2 Yes
[11:23:57] T72CWSERV2
[11:23:57]
[11:23:57]Drive Dbase
[11:23:57]
[11:23:57]d3 Yes
[11:23:57]
[11:23:57]d4 Yes
[11:23:57]
[11:23:57]d5 Yes
[11:23:57]
[11:23:57]d6 Yes
[11:23:57]
[11:23:57]d7 Yes
[11:23:57]
[11:23:57]d11 Yes

创建条带

[11:27:25]root@T71CWSERV2 # metainit -s cworacle d110 1 1 /dev/did/rdsk/d11s0
[11:27:26]cworacle/d110: Concat/Stripe is setup

 

创建文件系统

[11:27:38]root@T71CWSERV2 # newfs /dev/md/cworacle/rdsk/d110
[11:27:45]newfs: construct a new file system /dev/md/cworacle/rdsk/d110: (y/n)? y
[11:27:46]Warning: 2800 sector(s) in last cylinder unallocated
[11:27:46]/dev/md/cworacle/rdsk/d110: 2148099344 sectors in 349626 cylinders of 48 tracks, 128 sectors
[11:27:46] 1048876.6MB in 21852 cyl groups (16 c/g, 48.00MB/g, 64 i/g)
[11:27:46]super-block backups (for fsck -F ufs -o b=#) at:
[11:27:46] 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
[11:27:46]Initializing cylinder groups:
[11:27:46]...............................................................................
[11:27:47]...............................................................................
[11:27:48]...............................................................................
[11:27:49]...............................................................................
[11:27:49]...............................................................................
[11:27:50].........................................
[11:27:50]super-block backups for last 10 cylinder groups at:
[11:27:50] 2147158304, 2147256736, 2147355168, 2147453600, 2147552032, 2147650464,
[11:27:50] 2147748896, 2147847328, 2147945760, 2148044192

修改/etc/vfstab 创建挂载点

 

修改sun cluster 配置

[12:17:13]scrgadm -c -j cworacle_rs -x FilesystemMountPoints="/oracle,/oradata1,/oradata2,/oradata3,/oraback1,/oraback2"

 

 

 

标签:

给我留言

Copyright © 2011-2018 零下二十四度Theme By  Ality  京ICP备16007547号   关于本站

用户登录