[Novalug] changing the physical path of an lvm pe

James Ewing Cottrell 3rd JECottrell3 at Comcast.NET
Tue Dec 8 00:40:22 EST 2009


Peter Larsen wrote:
> On Sat, 2009-12-05 at 16:10 -0500, covici at ccs.covici.com wrote:
>> Hi.  Is there a way to change the physical path of an lvm pe?  Right now
>> its just one drive, but it looks like it may have to move where it is,
>> its usb now and will move to esata once all the data is on it, so I want
>> ot be able to change the physical path.  Or is this kind of thing no
>> good for lvm at all?
>>
>> Any ideas on this would be appreciated.
>>     
> I'm currious to the situation you're having. PE's are identified by 
> their UUID - not their device name (ie. /dev/sda, /dev/sdb etc.).
>
> If you're replacing a disk, and want to copy/move the existing content 
> from one PE to another, you can use the pvmove command to "change" the 
> data device from one to another. That can be used to move from one PE 
> (the USB) to another (SATA). 
And it's a Darn Good Thing too. Consider the recent kernel change that 
enumerates SATA ahead of PATA. My computer has one of each and in 
different systems I have (hda, sda), (sda, sdb), and (sdb, sda), where 
the fist is the PATA and the second is the SATA. In the last case, the 
hd0 and hd1 pair is reversed as well.

It gets even more complicated when you add removable USB drives to the 
mix. And when you go thru a boot menu, the disk you boot from always 
seems to be hd0 and sda.

Oy!

Boot Boy Jim



More information about the Novalug mailing list