LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid