how to use pvmove command with its examples

The pvmove command is used to move allocated physical extents from one physical volume (PV) to another. Used to migrate data between physical volumes, either to balance the usage of available storage or to replace a failing disk.

  • About pvmove: To move the physical extents
  • Comes From: lvm2-2.02.72
  • Configuration Files:
  • Path: /sbin/pvmove


1. To move allocated PEs on to one or more other physical volumes

$ pvmove

2. To abort any pvmove inprogress

$ pvmove –abort

 3. To run the pvmove in background

$ pvmove -b
$ pvmove –background 

4. To report the progress

$ pvmove -i 1
$ pvmove –interval 1 

5. To move only the extents belonging to LV from particular PV

$ pvmove -n LV00
$ pvmove -n LV00 

6. To auto backup the PV

$ pvmove -A y
$ pvmove –autobackup y

 7. To see the pvmove help

$ pvmove –help

 8. To test the pvmove

$ pvmove -t
$ pvmove –test

9. To set to verbose mode

$ pvmove –verbose


Related Commands: lvm, vgconvert 

Leave a Reply

Your email address will not be published. Required fields are marked *