请教,做过镜像的vg,增加lv后,再做镜像的问题
操作1:
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs2 1 1 1 closed/syncd N/A
# lspv
hdisk3 0008151ff57f6860 vg_test active
hdisk4 0008151ff5825bce vg_test active
# mirrorvg vg_test
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs2 1 2 2 closed/syncd N/A
-------------------------------------------------------------------------------------------------
操作2:
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 1 1 closed/syncd N/A
# smit mklvcopy
Add Copies to a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name lv_test2
* NEW TOTAL number of logical partition 2 +
copies
PHYSICAL VOLUME names [hdisk4] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [5] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
SYNCHRONIZE the data in the new no +
logical partition copies?
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 2 2 closed/stale N/A
# syncvg -l lv_test2
# lslv -l lv_test2
lv_test2:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk3 001:000:000 100% 000:001:000:000:000
hdisk4 001:000:000 100% 000:001:000:000:000
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 2 2 closed/syncd N/A
--------------------------------------------------------------------------------------
请问做过镜像的vg,增加lv后,再做镜像的问题
操作1和操作2是否效果一样?谢谢回复
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs2 1 1 1 closed/syncd N/A
# lspv
hdisk3 0008151ff57f6860 vg_test active
hdisk4 0008151ff5825bce vg_test active
# mirrorvg vg_test
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs2 1 2 2 closed/syncd N/A
-------------------------------------------------------------------------------------------------
操作2:
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 1 1 closed/syncd N/A
# smit mklvcopy
Add Copies to a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name lv_test2
* NEW TOTAL number of logical partition 2 +
copies
PHYSICAL VOLUME names [hdisk4] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [5] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
SYNCHRONIZE the data in the new no +
logical partition copies?
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 2 2 closed/stale N/A
# syncvg -l lv_test2
# lslv -l lv_test2
lv_test2:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk3 001:000:000 100% 000:001:000:000:000
hdisk4 001:000:000 100% 000:001:000:000:000
# lsvg -l vg_test
vg_test:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_test jfs 1 2 2 closed/syncd N/A
lv_test2 jfs 1 2 2 closed/syncd N/A
--------------------------------------------------------------------------------------
请问做过镜像的vg,增加lv后,再做镜像的问题
操作1和操作2是否效果一样?谢谢回复
作者: casper0511 发布时间: 2011-11-30
mirror vg 就是mklvcopy的批处理把。。。。。。
作者: zijiejue 发布时间: 2011-11-30
缺省情况下,mirrorvg会尝试把LV镜像到VG中的任何PV上,如果指定PV的话,可以加参数用以控制
mklvcopy情况类似
都是LV镜像,可以再查看一下镜像生成的位置
mklvcopy情况类似
都是LV镜像,可以再查看一下镜像生成的位置
作者: 咔叮枫情 发布时间: 2011-11-30
你的第二步没有同步
作者: suibian102 发布时间: 2011-11-30
如3楼所说,还有一点就是:用1可以使该VG中的所有LV都进行lvcopy,而2可以有选择性的一个一个进行。
作者: bjibm1188 发布时间: 2011-11-30
谢谢各位指教
作者: casper0511 发布时间: 2011-11-30
效果一样吧
主要还是看情况决定采用哪种方法
主要还是看情况决定采用哪种方法
作者: xiaolinzi999 发布时间: 2011-11-30