pvmove
command.
pvmove
command breaks up the data to be moved into sections and creates a temporary mirror to move each section. For more information on the operation of the pvmove
command, see the pvmove
(8) man page.
/dev/sdc1
to other free physical volumes in the volume group:
pvmove /dev/sdc1
MyLV
.
pvmove -n MyLV /dev/sdc1
pvmove
command can take a long time to execute, you may want to run the command in the background to avoid display of progress updates in the foreground. The following command moves all extents allocated to to the physical volume /dev/sdc1
over to /dev/sdf1
in the background.
pvmove -b /dev/sdc1 /dev/sdf1
pvmove -i5 /dev/sdd1