[HPADM] SUMMARY #2: Re-configuring Mirrors

From: Quinn, Bryan (Bryan.Quinn@CooperTools.com)
Date: Fri Sep 20 2002 - 15:43:03 EDT


Thanks again to Dave Antoch and also to Bob Vance!
Due to the fact of not knowing how these physical volumes were created
initially, I have to add a pvcreate command to my procedure to create the
pv's with the ability to boot. The overall procedure that I have decided to
use will break the two mirrors and flip flop them. Where as c4t6d0(internal
[boot disk]) was mirrored by c4t5d0(internal) and c5t6d0(external) was
mirrored by c5t5d0(external). The new association will be c4t6d0(internal
[boot disk]) will be mirrored by c5t5d0(external) and c4t5d0(internal) will
mirror c5t6d0(external). So, with all that confusion out of the way, here is
the procedure that I plan on using to perform the task:

                        /usr/sbin/lvreduce -m 0 /dev/vg00/lvol12
/dev/dsk/c5t5d0

        ·
        · /usr/sbin/vgreduce /dev/vg00 /dev/dsk/c5t5d0
        ·

        · /usr/sbin/pvcreate -fB /dev/rdsk/c5t5d0
        ·
        ·
        · /usr/sbin/vgextend /dev/vg00
/dev/dsk/c5t5d0
        ·
        ·
                        /usr/sbin/mkboot /dev/dsk/c5t5d0
        ·
        ·
        · /usr/sbin/mkboot -a "hpux -lq"
/dev/rdsk/c5t5d0

                        for i in 1 2 3 4 5 6 7 8 9 10 11
        · >do
        · >/usr/sbin/lvextend -m 2 /dev/vg00/lvol$i
/dev/dsk/c5t5d0
        · >done
        ·
        · /usr/sbin/lvchange -Mn -cn
/dev/vg00/lvol2
        ·
                        /usr/sbin/lvlnboot -R
                        ·
                        · /usr/sbin/lvlnboot -v

                        for i in 1 2 3 4 5 6 7 8 9 10 11
        · >do
        · >/usr/sbin/lvreduce -m 1 /dev/vg00/lvol$i
/dev/dsk/c4t5d0
        · >done
        ·
        · /usr/sbin/vgreduce /dev/vg00
/dev/dsk/c4t5d0
        ·
        · /usr/sbin/pvcreate -f /dev/rdsk/c4t5d0
        ·
        · /usr/sbin/vgextend /dev/vg00
/dev/dsk/c4t5d0
        ·
        · /usr/sbin/lvextend -m 1 /dev/vg00/lvol12
/dev/dsk/c4t5d0
        ·
        · /usr/sbin/setboot -a 10/8.5.0 -b on -s
on
        ·
                /usr/sbin/shutdown -ry 0
                
                #interrupt the boot when prompted
                #choose to boot from the alternate boot path

                OR

                bo isl
                
                Interact with IPL? Y

                ISL> hpux (10/8.5.0)/stand/vmunix

That is pretty much it!

Thanks again to everybody who responded!
-Bryan

> -----Original Message-----
> From: Quinn, Bryan [SMTP:Bryan.Quinn@coopertools.com]
> Sent: Friday, September 20, 2002 9:56 AM
> To: 'hpux-admin@dutchworks.nl'
> Subject: [HPADM] SUMMARY: Re-configuring Mirrors
>
> Big thanks to Dave Antoch!
> He had the cleaner approach I was looking for, I knew there was something
> I
> was missing.
> Anyways, here is Dave's response and below that is my original post.
>
> I would do it this way..... (If I understand you correctly, you
> basically want to swap one external with one internal mirror drive, so
> one internal vg00 will be mirrored to an external, and the other external
> will be mirrored with the other internal)
>
>
> 1) lvreduce ( using -m 0 ) the external mirror lvol, to remove the
> second external disk lvol
> 2) remove that second external disk from it's external volume group
> (vgreduce)
> 3) Add that external disk to the root vg00 vol group
> 4) lvextend the vg00 mirror (with -m 2 t o add a SECOND mirror
> disk...3 total disks now in vg00)
> 5) lvreduce the second internal mirror lvol from the vg00 mirror
> 6) vgreduce that second internal drive from vg00
> 7) vgextend that internal drive into the external VG
> 8) lvextend (with -m 1) the external LVOL to include the internal
> disk
>
> That should perform a clean swap....
>
>
> Hope this helps you,
>
> Dave Antoch
>
>
> Many Thanks!
> -Bryan
>
> > -----Original Message-----
> > From: Quinn, Bryan [SMTP:Bryan.Quinn@coopertools.com]
> > Sent: Friday, September 20, 2002 9:00 AM
> > To: 'hpux-admin@dutchworks.nl'
> > Subject: [HPADM] Re-configuring Mirrors
> >
> > Hello Admins,
> >
> > I have some work to do on one of my boxes to re-configure the way the
> > disks
> > are being mirrored and would like to gets some opinions on the best way
> to
> > handle this. Currently this box has two internal disks and two external
> > disks. The two internals are mirrored to each other and the two
> externals
> > are mirrored to each other. I did not set these boxes up and would like
> to
> > change it so that I have the two internal disks mirrored to the two
> > externals. Currently the internals are the boot disk and it's mirror and
> > they have VG00 lvols1-11 on them. The external disk has only one lvol,
> it
> > is
> > VG00 lvol12 (secondary swap). My plan is to perform the following steps:
> >
> > a. remove all mirrors on all lvols.
> > b. Then remove lvol12 from VG00 (this is the only lvol on the
> external
> > disks.)
> > c. remove the three physical volumes from VG00.
> > d. re-create the physical volumes and vgextend VG00.
> > e. re-create lvol12 on the internal disk
> > f. now re-create the mirrors with the new associations from two
> > internal
> > disks to the two externals.
> >
> > My question is whether or not I am correct on the above actions? If
> there
> > is
> > something missing or an easier way to handle this, please let me know.
> >
> > Thanks in advance, I greatly appreciate your input!
> > Bryan Douglas Quinn
> > UNIX Support Specialist
> > Cooper Power Tools
> > Lexington, SC
> > (803) 808-6770
> > Bryan.Quinn@coopertools.com
> >
> >
> >
> > --
> > ---> Please post QUESTIONS and SUMMARIES only!! <---
> > To subscribe/unsubscribe to this list, contact
> > majordomo@dutchworks.nl
> > Name: hpux-admin@dutchworks.nl Owner:
> > owner-hpux-admin@dutchworks.nl
> >
> > Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse
> > only)
> > http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse &
> > search)
>
> --
> ---> Please post QUESTIONS and SUMMARIES only!! <---
> To subscribe/unsubscribe to this list, contact
> majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse
> only)
> http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse &
> search)

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:20 EDT