Linux command
pvmove 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Move data between physical volumes
pvmove [/dev/sda1] [/dev/sdb1]
Move all data from PV
pvmove [/dev/sda1]
Show progress
pvmove -v [/dev/sda1]
Abort move
pvmove --abort
说明
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.
参数
- -v
- Verbose output.
- --abort
- Abort in-progress move.
- -b
- Background mode.
- -n _LV_
- Move only this LV.
FAQ
What is the pvmove command used for?
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.
How do I run a basic pvmove example?
Run `pvmove [/dev/sda1] [/dev/sdb1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in pvmove?
Verbose output.