前提是存储已经把硬盘划分到两台主机上,并且共享硬盘的 pvid 一致。
1.在其中一台主机上使用Hacmp中的 C-SPOC 功能
smit hacmp
--> System Management (C-SPOC)
--> Storage
--> Volume Groups
--> Create a Volume Group
此步先选择本机node,然后选择要添加的共享PV,再选择VG类型。
下一步:
Node Names 节点名默认
Resource Group Name [选资源组] // esc+4 选资源组
VOLUME GROUP name [ oravg3 ] // 启个卷组名
Physical partition SIZE in megabytes [PP大小512M]
Enable Fast Disk Takeover or Concurrent Access [ Concurrent Access ]
Maximum Physical Partitions in units of 1024 [ 2048 ]
Maximum Number of Logical Volumes [ 2048 ]
回车添加完成
2.VG添加成功后,在两台node主机上都可以看到PV被分到新建的VG组里,但VG没有激活
激活VG:
smit hacmp
--> Extended Configuration
--> Extended Verification and Synchronization
* Verify changes only? [No]
* Logging [Standard] [Standard]
回车校验同步,大约几分钟,完成后VG自动激活
第二种方法:
https://blog.csdn.net/weixin_34175509/article/details/85474562
smitty cl_convg
第三种方法,即导入法也可以,结果是一样的
https://blog.51cto.com/tiany/1390664