Operating System - HP-UX
1759033 Members
3189 Online
108879 Solutions
New Discussion юеВ

ALT-PATH Booted - Do I Break LVM Mirroring... to bad disk?

 
SOLVED
Go to solution
D Block 2
Respected Contributor

ALT-PATH Booted - Do I Break LVM Mirroring... to bad disk?

Rebooted on my ALT (rp7400) using LVM. Are there any Next Steps to split the mirror from the PRI boot device ?

- split the mirror stopping mirror to bad disk
- hot-swap the bad disk
- turn on mirroring again
- reboot back on PRI

Just looking for best practices here.
Golf is a Good Walk Spoiled, Mark Twain.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ALT-PATH Booted - Do I Break LVM Mirroring... to bad disk?

I'm pretty much in agreement with your approach.

I've gotten away without your first step though that has involved substantial pain.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: ALT-PATH Booted - Do I Break LVM Mirroring... to bad disk?

Tom,

In a nutshell, it's:

replace,
vgcfgrestore,
sync,
go on with life.


Pete

Pete
Todd McDaniel_1
Honored Contributor
Solution

Re: ALT-PATH Booted - Do I Break LVM Mirroring... to bad disk?

I have never broken a mirror on a root disk failure...

if the disk is truly dead...You may have to do all these steps.. but possibly only the last 3...

mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/dsk/c4t6d0:AUTO
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0

vgcfgrestore -n /dev/vg00 /dev/rdsk/c4t6d0
vgchange -a y /dev/vg00
vgsync /dev/vg00
Unix, the other white meat.