Just from the ³interesting uses of LVM² department...

We¹d been asked to move from one set of DASD to another once too often, and
one of the guys here came up with a slick script based on our filesystem
layout that has made life much simpler that I thought folks might be
interested in hearing about.

We place everything, including the root filesystem, in LVM, the only
exception being the /boot directory. There¹s been a lot of criticism of this
in the past, but in this one case, it¹s been a life saver. What it is
allowing us to do is attach a new set of DASD matching the old set, unmount
/boot and dd it to the new DASD then remount it, then create new pv volumes
matching the old ones, add them into the existing volume groups, and use
pvmove to move the running system to the new DASD without having to stop the
system in any way. Once the move is done, the old DASD can be reduced and
removed from the volume group, and then removed from the running Linux
image. Afterward, running mkinitrd and zipl cleans up the system and makes
it ready for its future reboot.

This method removed the need to schedule downtime with the Linux image¹s
users, removed the need for a reboot and any downtime during the process,
and works cleanly and efficiently. Once the disks are allocated via DirMaint
using a rexx exec which reads the directory entry and allocates matching
minidisks within the new allocation area, the entire process is handled via
a single Perl script within the Linux image itself. Afterward, DirMaint is
used to free the old disks.

Just another example of the versatility of LVM...

-- 
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."


----------------------------------------------------------------------
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