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