How to use pvmove to move specific extents belonging to specific LV's, instead of moving all extents?
Issue
Need to move only specific LV's to a new disk in the VG.
Environment
Currently we have multiple LV's in one VG, spread out over multiple PV's. The below specific LV's should be moved out to a new consolidated location (a new 2 TB size PV called /dev/sdbp), while leaving the rest intact.
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices
lv_warehouse vg_appl -wi-ao 150.00G /dev/sdb(0)
lv_warehouse vg_appl -wi-ao 150.00G /dev/sdc(211969)
lv_warehouse vg_appl -wi-ao 150.00G /dev/sdr(12646)
lv_warehouse vg_appl -wi-ao 150.00G /dev/sdv(17770)
lv_warehouse vg_appl -wi-ao 150.00G /dev/sdn(0)
lv_data00 vg_appl -wi-ao 500.00G /dev/sdb(15360)
lv_data00 vg_appl -wi-ao 500.00G /dev/sdj(0)
lv_data00 vg_appl -wi-ao 500.00G /dev/sdj(51053)
lv_data00 vg_appl -wi-ao 500.00G /dev/sdy(0)
lv_data02 vg_appl -wi-ao 50.00G /dev/sdb(207360)
Here is the newly added PV to VG vg_appl:
pv40 {
id = "aaaAAA-12bB-34cC-56dD-78eE-FGHI-Jk9lmn"
device = "/dev/sdbp" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 4294967296 # 2 Terabytes
pe_start = 384
pe_count = 524287 # 2 Terabytes
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
