[mythtv-users] Moving drives containing LVM2 volumes, change of partition device nodes

Boleslaw Ciesielski bolek-mythtv at curl.com
Sun Mar 30 23:08:29 UTC 2008


Tom Dexter wrote:
> I know my way around well enough to do this, but one aspect of the
> LVM2 end of it has me confused, and I'm not finding anything that
> clears this up: If I do this, obviously the old hda4 and hdb1
> partitions will change depending on how I move things around (for
> example to hdc4 and hdd1).  What exactly (if anything) to I need to do
> with LVM?  I see my existing partition device names (hda4 and hdb1)
> referenced in my current /etc/lvm/backups/vg backup file.

You should not have to do anything with LVM.

> Does LVM2 care about those actual device names

No.

> or does it strictly
> depend on it's own unique identifiers physically stored on the drives?
 > That is, once the drives are moved will the following:
> 
> vgscan
> vgchange -a y
> 
> ...simply find everything, creating the /dev/vg/home and /dev/vg/video nodes?

Essentially, yes. You may have to do pvscan first to update the cache. 
But depending on your distro, all of this may be handled by the boot 
scripts automatically.

Bolek



More information about the mythtv-users mailing list