AIX同步鏡像VG中的新LV,手工鏡像LV
已經做鏡像的VG中,新建一個LV 如果在沒有選擇
Number of COPIES of each logical partition 2 +
那沒創建出為的LV 是沒有鏡像的,這時lsvg -l vgname 時新的LV就是1個PP
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 2 4 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 2 4 2 open/syncd /
hd2 jfs2 10 20 2 open/syncd /usr
hd9var jfs2 3 6 2 open/syncd /var
hd3 jfs2 32 64 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 2 4 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 8 8 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
fslv00 jfs2 100 100 1 open/syncd /u01
只能通過手工來進行兩塊硬盤的同步。
首先查看哪塊硬盤缺少新的LV:
# lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd8 1 1 00..00..01..00..00 N/A
...
livedump 1 1 00..01..00..00..00 /var/adm/ras/livedump
hd11admin 1 1 00..00..01..00..00 /admin
# lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd8 1 1 00..00..01..00..00 N/A
...
fslv00 100 100 00..100..00..00..00 /u01
livedump 1 1 00..01..00..00..00 /var/adm/ras/livedump
hd11admin 1 1 00..00..01..00..00 /admin
或者:
# lslv -l fslv00
fslv00:/u01
PV COPIES IN BAND DISTRIBUTION
hdisk1 100:000:000 100% 000:100:000:000:000
如本例,我們在hdisk0 上創建鏡像,可以通過smitty mklvcopy 或 mklvcopy fslv00 2 hdisk0 來實現,創建後查看狀態:
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 2 4 2 open/syncd N/A
...
fslv00 jfs2 100 200 2 open/stale /u01
創建成功後要用 syncvg -v rootvg 來同步,同步時間與LV大小有關,如:
# nohup syncvg -v rootvg
# jobs
[1] + Done nohup syncvg -v rootvg &
# 同步成功
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
...
fslv00 jfs2 100 200 2 open/syncd /u01