LinuxCommandLibrary

pvmove

Migrate LVM data between physical volumes

TLDR

Move data between physical volumes

$ pvmove [/dev/sda1] [/dev/sdb1]
copy
Move all data from PV
$ pvmove [/dev/sda1]
copy
Show progress
$ pvmove -v [/dev/sda1]
copy
Abort move
$ pvmove --abort
copy

SYNOPSIS

pvmove [options] source [dest]

DESCRIPTION

pvmove migrates data between LVM physical volumes while the logical volumes remain online and accessible. This enables live storage migration, allowing administrators to replace disks, rebalance storage, or evacuate a physical volume before removing it from a volume group.
When called with a source and destination physical volume, pvmove relocates all physical extents from the source to the destination. If no destination is specified, LVM automatically distributes the data across available physical volumes in the same volume group. The -n flag restricts the move to a specific logical volume. Operations can be run in the background with -b and aborted with --abort if needed.

PARAMETERS

SOURCE

Source physical volume.
DEST
Destination physical volume.
-v
Verbose output.
--abort
Abort in-progress move.
-b
Background mode.
-n LV
Move only this LV.

CAVEATS

Requires LVM. Can be slow for large volumes. Interruptible.

HISTORY

pvmove is part of LVM2 for physical volume data migration.

SEE ALSO

lvm(8), pvcreate(8), vgreduce(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community