pvmove: Physical Volume "/dev/sdc1" not found in Volume Group + minor bug
I'm trying to move an LV from one VG on 1 PV to another VG on another PV, but it doesn't seem to like my syntax. Isn't it: " -n LV FROMPV TOPV"
Quoted 1 line
sudo pvmove -n Win
/dev/sda1/dev/sdc1
Physical Volume "/dev/sdc1" not found in Volume Group "HnS"
Pertinent details:
Quoted 1 line
lvs #(From volume in HnS)
LV VG Attr LSize Sys HnS -wc-a---- 96.00g
Quoted 1 line
pvs #(from VG HnS on PV
/dev/sda1, destination PV =/dev/sdc1
PV VG Fmt Attr PSize PFree /dev/sda1 HnS lvm2 a-- 21.83t 10.20t /dev/sdc1 Data lvm2 a-- 43.66t 39.46t
----
Before I got to that point:
Quoted 1 line
sudo pvmove -n Win
/dev/sda1/dev/sdc1
Required device-mapper target(s) not detected in your kernel
(for some reason kernel module isn't auto-loaded??? (the minor bug..)) So:
Quoted 1 line
sudo modprobe dm-mirror
-- Don't know if any other modules are needed? I have:
Quoted 1 line
ls -d
/sys/module/dm*
/sys/module/dm_bufio/ /sys/module/dm_mirror/ /sys/module/dm_region_hash/ /sys/module/dm_log/ /sys/module/dm_mod/ /sys/module/dm_snapshot/
---
Available (not loaded):
Quoted 1 line
sudo modprobe dm-<COMPLETE>
dm-bio-prison dm-raid dm-zero
dm-persistent-data dm-thin-pool
I'm assuming I only needed the dm-mirror so it could do the mirroring? What syntax should I be using?
Thanks!
first merg the two vgs using vgmerge command
2014-08-07 21:06 GMT+02:00 Linda A. Walsh <[email protected]>:
Quoted 57 lines
I'm trying to move an LV from one VG on 1 PV to another VG on another PV, but it doesn't seem to like my syntax. Isn't it: " -n LV FROMPV TOPV"
Quoted 1 line
sudo pvmove -n Win
/dev/sda1/dev/sdc1Physical Volume "
/dev/sdc1" not found in Volume Group "HnS"Pertinent details:
Quoted 2 lines
lvs #(From volume in HnS)
LV VG Attr LSize Sys
HnS -wc-a---- 96.00gQuoted 1 line
pvs #(from VG HnS on PV
/dev/sda1, destination PV =/dev/sdc1PV VG Fmt Attr PSize PFree /dev/sda1 HnS lvm2 a-- 21.83t 10.20t /dev/sdc1 Data lvm2 a-- 43.66t 39.46t----
Before I got to that point:Quoted 2 lines
sudo pvmove -n Win
/dev/sda1/dev/sdc1Required device-mapper target(s) not detected in your kernel
(for some reason kernel module isn't auto-loaded??? (the minor bug..)) So:Quoted 2 lines
sudo modprobe dm-mirror
-- Don't know if any other modules are needed? I have:
Quoted 2 lines
ls -d
/sys/module/dm*/sys/module/dm_bufio/ /sys/module/dm_mirror/ /sys/module/dm_region_hash/ /sys/module/dm_log/ /sys/module/dm_mod/ /sys/module/dm_snapshot/---
Available (not loaded):Quoted 2 lines
sudo modprobe dm-<COMPLETE>
dm-bio-prison dm-raid dm-zero
dm-persistent-data dm-thin-poolI'm assuming I only needed the dm-mirror so it could do the mirroring? What syntax should I be using?
Thanks!
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 1 line
esta es mi vida e me la vivo hasta que dios quiera
Re: [linux-lvm] vgmerge: "your closed volumes are still active"...why?
Quoted 1 line · emmanuel segura
first merg the two vgs using vgmerge command
---
thanks...urk....ok.. long way around...(want to move a house from one city to another, but first must merge cities, then logical-house-move from one side of the city to the other; then un-annex the old-part of the city)...;-/
Um... trying the merge, I get:
Quoted 1 line
sudo vgmerge -v Data HnS
Checking for volume group "Data"
Checking for volume group "HnS"
Logical volumes in "HnS" must be inactive
---
Hmm...
Quoted 1 line
lvs|grep HnS
Media_Back HnS -wi-a---- 8.00t Sys HnS -wc-a---- 96.00g Sysboot HnS -wc-a---- 4.00g Sysvar HnS -wc-a---- 28.00g Win HnS -wi-a---- 1.00t oHome HnS -wi-a---- 1.00t
I guess they are active. But if they aren't open, what are they doing? And how do I make them inactive (I have a feeling this is at the root of why lvremove never works without "-f" as well).
'''
Re: [linux-lvm] vgmerge: "your closed volumes are still active"...why?
vgchange -an HnS
2014-08-08 19:58 GMT+02:00 Linda A. Walsh <[email protected]>:
Quoted 41 lines
Quoted 2 lines · emmanuel segura
first merg the two vgs using vgmerge command
---
thanks...urk....ok.. long way around...(want to move a house from one city to another,
but first must merge cities, then logical-house-move from one side of the city
to the other; then un-annex the old-part of the city)...;-/Um... trying the merge, I get:
Quoted 1 line
sudo vgmerge -v Data HnS
Checking for volume group "Data"
Checking for volume group "HnS"
Logical volumes in "HnS" must be inactive
---
Hmm...Quoted 1 line
lvs|grep HnS
Media_Back HnS -wi-a---- 8.00t Sys HnS -wc-a---- 96.00g Sysboot HnS -wc-a---- 4.00g Sysvar HnS -wc-a---- 28.00g Win HnS -wi-a---- 1.00t oHome HnS -wi-a---- 1.00tI guess they are active. But if they aren't open, what are they doing? And how do I make them inactive (I have a feeling this is at the root of why lvremove never works without "-f" as well).
'''
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 1 line
esta es mi vida e me la vivo hasta que dios quiera
Re: [linux-lvm] vgmerge & move... done, not bad
Quoted 2 lines · emmanuel segura
vgchange -an HnS
When it is usable, it's pretty darn fast... average between 400-500MB/s -- will have to setup a test case to see how fast 'dd' would be.
For comparison using xfsdump/restore on a 7T partition averaged 216MB/s
(Note, using binary prefixes w/binary units (B=2^3), no misleading confusion of decimal prefixes on binary units as comes of 'dd' in this case)
Would be "nicer" if I didn't have to do the vgmerge first and could do a direct move from oldVG/oldLV => newVG/newLV (Maintaining assumptions of same-sized allocation units).
Is that planned or is there some technical reason why that wouldn't be desirable?
Thanks for assist and someone clarifying that
"active" might be better viewed as "available".
Linda