Operating System - HP-UX
1760548 Members
2626 Online
108894 Solutions
New Discussion юеВ

Re: Boot Disk Fails in VG00

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Boot Disk Fails in VG00

Hi,

If one of Boot disk fails in vg00
how can I replace the system disk and make it active in my volumegroup.

Consider my root ( /vg00/lvol03 )which is configured with 2 mirror disk out of one fails.

I can add the disk Physically.,
After that i can use pvcreate to create a PV and then..?


5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Boot Disk Fails in VG00

Shalom,

You should be able to vgreduce -f vg00

This reduced the disk out of the volume group.

You then replace the disk.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

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
Torsten.
Acclaimed Contributor

Re: Boot Disk Fails in VG00

This document will answer a lot of your questions:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Darrel Louis
Honored Contributor

Re: Boot Disk Fails in VG00

susee_sundar
Regular Advisor

Re: Boot Disk Fails in VG00

Hi guys.,

The book that you sent is a good collection of Boot disk Troubleshooting thanks for the same.
susee_sundar
Regular Advisor

Re: Boot Disk Fails in VG00

Thanks to all.