Discussion:
[linux-lvm] pvmove: Physical Volume "/dev/sdc1" not found in Volume Group + minor bug
Linda A. Walsh
2014-08-07 19:06:04 UTC
Permalink
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"
sudo pvmove -n Win /dev/sda1 /dev/sdc1
Physical Volume "/dev/sdc1" not found in Volume Group "HnS"
lvs #(
emmanuel segura
2014-08-07 19:23:05 UTC
Permalink
first merg the two vgs using vgmerge command
Post by Linda A. Walsh
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"
sudo pvmove -n Win /dev/sda1 /dev/sdc1
Physical Volume "/dev/sdc1" not found in Volume Group "HnS"
lvs #(
Linda A. Walsh
2014-08-08 17:58:15 UTC
Permalink
Post by 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)...;-/
Post by emmanuel segura
sudo vgmerge -v Data HnS
Checking for volume group "Data"
Checking for volume group "HnS"
Logical volumes in "HnS" must be inactive
---
Hmm...
Post by emmanuel segura
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).

'''
emmanuel segura
2014-08-08 18:20:55 UTC
Permalink
vgchange -an HnS
Post by 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)...;-/
Post by emmanuel segura
sudo vgmerge -v Data HnS
Checking for volume group "Data"
Checking for volume group "HnS"
Logical volumes in "HnS" must be inactive
---
Hmm...
Post by emmanuel segura
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).
'''
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
esta es mi vida e me la vivo hasta que dios quiera
Linda A. Walsh
2014-08-09 16:56:59 UTC
Permalink
Post by 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

Loading...