Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
pvmove PV moves all used extents from that PV to free space on the other PVs of the VG. Then you can remove the PV with vgreduce — the way to replace a disk without downtime. With a target PV (pvmove OLD NEW) the data goes there. A move can be stopped and continued.
Zo schrijf je het
pvmove [OPTION]... SOURCE_PV[:PE...] [DEST_PV...]
pvmove --abortOpties 20
Meest gebruikt
Common LVM options
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Empty a PV
pvmove /dev/vdc /dev/vdc: Moved: 23.53% /dev/vdc: Moved: 100.00%The VG needs enough free space on other PVs.
2Move to a chosen PV
pvmove /dev/vdc /dev/vdeNew disk first added with vgextend.
3Then remove the PV
The disk can now be removed.
4Move only one LV
pvmove -n lvdata /dev/vdc /dev/nvme0n1p3Put a busy LV on a faster disk.
5In the background
pvmove -b /dev/vdc lvs -a -o name,copy_percentWatch the progress with lvs.
6Continue after an interruption
pvmoveWithout arguments it continues unfinished moves.
7Stop a move
pvmove --abortThe data stays where it was safe.
8Check that the PV is empty
pvs -o pv_name,pv_used /dev/vdcpv_used 0 = empty.
9Full disk replacement in one go
Old storage array to new one.
10Move a range of extents
pvmove /dev/vdc:0-999 /dev/vdeFine control (rarely needed).
Niets past bij dit filter.
Exitcodes
0 | Done. |
5 | Error. |