原先两块146GB的系统盘做镜像,后面空间不够使用,扩充了2块300GB的也做了镜像,有次发现有块300GB的PV上面有个LV stale了,然后就直接unmirrorvg,然后新盘换上之后再mirrorvg,开始以为还是146GB的镜像到146GB上面,结果是146GB的先往300GB上同步,然后300GB的再往300GB上同步,300GB空间使用完了又开始往146GB上面同步,请问应该怎么做才能最简单的恢复到原来146GB对146GB镜像,300GB对300GB镜像
-m exact map Allows mirroring of logical volumes in the exact physical partition order that the
original copy is ordered. This option requires you to specify a PhysicalVolume(s)
where the exact map copy should be placed. If the space is insufficient for an
exact mapping, then the command will fail. You should add new drives or pick a
different set of drives that will satisfy an exact logical volume mapping of the
entire volume group. The designated disks must be equal to or exceed the size of
the drives which are to be exactly mirrored, regardless of if the entire disk is used.
Also, if any logical volume to be mirrored is already mirrored, this command will
fail
收起mirrorvg -m rootvg hdisk1(146G的) hdisk3(300G)的可以么?
或者smit mirrorvg 之后esc+7 选择pv,先选146G,后选300G的试试可以么?
收起mirrorvg的时候有个参数,-m这个参数,man mirrorvg 看看就明白了!