为什么我执行完mirrorvg -c 2 -S rootvg命令后显示如下: # lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00f72b8300004c000000013454a6f5bd VG STATE: active PP SIZE: 256 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 1092 (279552 megabytes) MAX LVs: 256 FREE PPs: 914 (233984 megabytes) LVs: 16 USED PPs: 178 (45568 megabytes) OPEN LVs: 15 QUORUM: 1 (Disabled) TOTAL PVs: 2 VG DESCRIPTORS: 3 STALE PVs: 1 STALE PPs: 77 ACTIVE PVs: 2 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: yes HOT SPARE: no BB POLICY: relocatable PV RESTRICTION: none INFINITE RETRY: no
更奇怪的是,我unmirrorvg 后,却显示QUORUM:2 (Enabled) ???
# lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00f72b8300004c000000013454a6f5bd VG STATE: active PP SIZE: 256 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 1092 (279552 megabytes) MAX LVs: 256 FREE PPs: 1001 (256256 megabytes) LVs: 16 USED PPs: 91 (23296 megabytes) OPEN LVs: 15 QUORUM: 2 (Enabled) TOTAL PVs: 2 VG DESCRIPTORS: 3 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 2 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: yes HOT SPARE: no BB POLICY: relocatable PV RESTRICTION: none INFINITE RETRY: no
操作步骤如下: 1. # lspv hdisk0 00f72b83f77b39f0 rootvg active hdisk1 00f72b8352252102 rootvg active hdisk2 00f72b8360960ce3 appvg active hdisk3 00f72b82f7ca171a test active
执行lsvg rootvg , 显示QUORUM:1 (disabled).
2. # unmirrorvg -c 1 rootvg hdisk1 0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c ' as root user to clear the boot record and avoid a potential boot off an old boot image that may reside on the disk from which this logical volume is moved/removed. 0516-1804 chvg: The quorum change takes effect immediately. 0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform bosboot of system to reinitialize boot records. Then, user must modify bootlist to just include: hdisk0. 3. # bootlist -m normal hdisk0 cd0 4. # reducevg rootvg hdisk1 # lspv hdisk0 00f72b83f77b39f0 rootvg active hdisk1 00f72b8352252102 None hdisk2 00f72b8360960ce3 appvg active hdisk3 00f72b82f7ca171a test active 5. # rmdev -dl hdisk1 hdisk1 deleted # lspv hdisk0 00f72b83f77b39f0 rootvg active hdisk2 00f72b8360960ce3 appvg active hdisk3 00f72b82f7ca171a test active
此时执行lsvg rootvg , 显示QUORUM:2 (Enabled) ???
6. # cfgmgr -v 识别新硬件 # lsdev -Cc disk 查看物理卷的属性及PVID是否分配 # chdev -l hdiskn -a pv=yes 添加PVID,N表示一个变量,它代表新磁盘的标号 # lsdev -Cc disk 重新检查硬件,已经可用 hdisk0 Available 00-08-00 SAS Disk Drive hdisk1 Available 00-08-00 SAS Disk Drive hdisk2 Available 00-08-00 SAS Disk Drive hdisk3 Available 00-08-00 SAS Disk Drive 7. # extendvg rootvg hdisk1 将hdisk1加入卷组rootvg # lspv hdisk0 00f72b83f77b39f0 rootvg active
hdisk2 00f72b8360960ce3 appvg active
hdisk3 00f72b82f7ca171a test active
hdisk1 00f72b83f765610b rootvg active 8. # mirrorvg -c 2 -S rootvg 镜像卷组并同步数据 0516-1804 chvg: The quorum change takes effect immediately. 0516-1126 mirrorvg: rootvg successfully mirrored, user should perform bosboot of system to initialize boot records. Then, user must modify bootlist to include: hdisk1 hdisk0.