1. rescan-scsi-bus.sh -l -w -c -r --color
2. multipath -ll
360060160ec111f009427dc9efd49e911 dm-4 DGC ,RAID 5
size=11T features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='service-time 0' prio=4 status=active
| |- 3:0:1:1 sdn 8:208 active ready running
| `- 4:0:1:1 sdp 8:240 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
|- 3:0:2:1 sdo 8:224 active ready running
`- 4:0:2:1 sdq 65:0 active ready running
36006016050221e005e32f3dca0e7e711 dm-1 DGC ,RAID 5
size=5.4T features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='service-time 0' prio=4 status=active
| |- 3:0:3:1 sdg 8:96 active ready running
| `- 4:0:3:1 sdm 8:192 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
|- 3:0:0:1 sdc 8:32 active ready running
`- 4:0:0:1 sdi 8:128 active ready running
3. pvcreate /dev/mapper/360060160ec111f009427dc9efd49e911
4. vgextend CX3_40A /dev/mapper/360060160ec111f009427dc9efd49e911
5. pvmove -b /dev/mapper/36006016050221e00d42fe01ba7b5e711 /dev/mapper/360060160ec111f009427dc9efd49e911
6. мониторить миграцию командой: lvs -a -o+devices
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert Devices
nbu_vol1 CX3_40A -wI-ao--- 14.29t /dev/mapper/360060160ec111f00e8a503161c47e911(0)
nbu_vol1 CX3_40A -wI-ao--- 14.29t pvmove0(0)
[pvmove0] CX3_40A p-C-aom-- 5.37t /dev/mapper/360060160ec111f00e8a503161c47e911 76.25 /dev/mapper/36006016050221e005e32f3dca0e7e711(0),/dev/mapper/360060160ec111f009427dc9efd49e911(0)
7. vgreduce CX3_40A /dev/mapper/36006016050221e00d42fe01ba7b5e711
8. pvremove /dev/mapper/36006016050221e005e32f3dca0e7e711
PS
move LV to another PV
1. lvresize -size 50G --resizefs /dev/mapper/CX3_40A-U0LV
2. pvmove -n /dev/mapper/CX3_40A-U0LV /dev/mapper/36006016050221e01d42fe01ba7b5e711 /dev/mapper/360060160ec111e009427dc9efd49e911
Комментариев нет:
Отправить комментарий