[HPADM] [SUMMARY] Bresync of mirrored root disks

From: Julius Szelagiewicz (julius@turtle.com)
Date: Fri Jul 25 2003 - 10:00:04 EDT


Dear Admins,
        Bryan Quinn, Stuart Abramson, Tom Myers and Dan
(djgosh@beechglen.com). I quote Stuart for the summary of the resolution.
Original problem at the bottom. Thanks, julius

> This is for a non-boot disk, but should be similar.
>
> - Restore the LVM configuration/headers onto the replaced disc
> from your backup of the LVM configuration:
>
> # vgcfgrestore -n <volume group name>
> /dev/rdsk/cXd0s2
>
> where X is the Logical unit number of the disc that has
> been replaced. For example:
>
> # vgcfgrestore -n /dev/vg03 /dev/rdsk/c6d0s2
>
> NOTE: You must have performed the vgcfgbackup to save off
> the headers prior to the disc failure!
>
> - Reactivate the volume group so that the new disc can be
> attatched, since it wasn't configured in at boot time.
> This will also resync mirrors that resided on the faulty
> disc.
>
> # vgchange -a y <volume group name>
>
> For example:
>
> # vgchange -a y /dev/vg03
>
> You must do this even though the VG is already active! It
> causes something to be re-read.
>
> - If this doesn't bring the PV back into the VG, then "force"
> rewrite of VGRA back to disk:
>
> # vgcfgrestore -R -n /dev/vg03/ /dev/rdsk/c6t0d0
>
> and repeate vgchange:
>
> # vgchange -a y /dev/vg03
>
> - In some cases you must now:
>
> # vgsync /dev/vg03
>
> Check for stale LVs. If you have them then "vgsync".
>
> - Now everything should be back where it was before mirrorred
> disk failed.
>
> # vgdisplay VG
> # lvdisplay LVs
> # pvdisplay PVs
>
> -----Original Message-----
> On production L2000, HPUX 11.0, I had my vg00 set up with 3 disks
> - every lvol mirrored and spared. After the boot drive failed and got
> replaced, using the procedure from the HP doc on replacing an LVM disk,
> SAM shows 2 mirrors, and no spares. At reboot I found out the hard way
> that the boot drive was not resync'ed - system ISL boots on primary path
> but can not load hpux.
> This would not be so bad in itself, but now the disk set as
> alternate boot is acting up. What should I do to make absolutely,
> positively sure that the boot drive is sync'ed and that the replacement
> drive would get sync'ed as well. Should I do anything to get the vg00
> lvols show up with mirror and spare? Tia, julius

--
             ---> 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:32 EDT