Something like this?:

umount the filesystem(s) the LVM is being used by

vgchange -an vgname     (deactivate the volume group)

chccwdev -d 2912      (deactivate 2912)

chccwdev -e 372f       (activate 372f)
pvscan
vgscan
vgchange -ay vgname (activate the volume group)

mount -a

Note - I've never tried this... these are just the steps I would think would
need to be taken.    Also - to unmount things properly - you probably have
to do an 'init 1' -  that may be problematic, depending on terminal access.


Scott Rohling

On Thu, Aug 5, 2010 at 2:31 PM, Lester, Doug <[email protected]>wrote:

> We do full volume backups via HSM. In the case of a DASD hardware
> failure, I would like to be able to restore to a new volume and make the
> necessary changes for Linux to recognize the new volume. This does not
> appear to be a problem unless the new DASD is part of LVM. Perhaps
> someone can give me some guidance using the following scenario. Please
> keep in mind; this is a SLES10 SP3 s390x LPAR installation.
> Unfortunately, we do not run Linux under z/VM.
>
> Example: If device 2912 has a hardware failure, I can restore to another
> volume (say, 372f). I would also restore the other 2 volumes to the
> original devices to remain in sync, unless someone can offer a better
> suggestion.
>
> How do I get Linux/LVM to recognize 372f instead of 2912?
>
> Configuration:
> --------------
> 0.0.2911(ECKD) at ( 94:     0) is dasda   (/)
> 0.0.2912(ECKD) at ( 94:     4) is dasdb   (LVM)
> 0.0.2915(ECKD) at ( 94:     8) is dasdc   (LVM)
>
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/dasda1           6.8G  372M  6.1G   6% /
> udev                  247M  112K  247M   1% /dev
> /dev/mapper/system--vg-home--lv
>                      496M   17M  454M   4% /home
> /dev/mapper/system--vg-opt--lv
>                      2.0G  603M  1.3G  32% /opt
> /dev/mapper/system--vg-srv--lv
>                      496M   32M  440M   7% /srv
> /dev/mapper/system--vg-tmp--lv
>                     1008M  492M  466M  52% /tmp
> /dev/mapper/system--vg-usr--lv
>                      4.0G  2.3G  1.6G  59% /usr
> /dev/mapper/system--vg-var--lv
>                     1008M  221M  737M  24% /var
>
>
> Doug Lester
>
>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to