5.7. Online Data Relocation
pvmovecommand 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
pvmovecommand, see the
pvmove(8) man page.
pvmoveoperation in a cluster, you should ensure that the
cmirror-kmodpackages are installed and that the
cmirrorservice is running. The
cmirror-kmodpackage that must be installed depends on the kernel that is running. For example, if the running kernel is
kernel-largesmp, it is necessary to have
cmirror-kmod-largesmpfor the corresponding kernel version.
/dev/sdc1to other free physical volumes in the volume group:
pvmove -n MyLV /dev/sdc1
pvmovecommand 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 the physical volume
/dev/sdf1in the background.
pvmove -b /dev/sdc1 /dev/sdf1
pvmove -i5 /dev/sdd1