[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] changing SCSI IDs ?



Will my LVs continue to work, if the device names and minor device
numbers of my SCSI disks change?

I have installed a new 9GB SCSI drive which will eventually replace
two of my older 4.3GB drives.  I want to make the new drive a single
PV.  This is roughly what I plan to do:

    pvcreate /dev/sdd1
    vgcreate vg0 /dev/sdd1
    lvcreate -n 0 vg0
    lvcreate -n 1 vg0
    ...
    
    mount /dev/vg0/0 /mnt
    tar clS -C / -f - . | tar xp -C /mnt -f -
    umount /dev/vg0/0
    
    mount /dev/vg0/1 /mnt
    tar clS -C /usr -f - . | tar xp -C /mnt -f -
    umount /dev/vg0/1
    ...
    
    vi /etc/fstab	# change device names from /dev/sd... to /dev/vg0/...
    shutdown -h now

    remove /dev/sda and /dev/sdb, change SCSI IDs, so that
    the former sdd becomes sda and
    the former sdc becomes sdb.


Will this work?  Or will vgscan find a VG which uses the PV on
/dev/sdd1 as created with vgcreate?  This wouldn't work since
/dev/sdd1 is now /dev/sda1.


urs


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]