Operating System - HP-UX
1833063 Members
2789 Online
110049 Solutions
New Discussion

Boot Disks... Everything you ever wantted to know

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

Boot Disks... Everything you ever wantted to know

Well almost... Here is a great doc my Platform specialists came up with...

Hope you enjoy this all in one doc...
Unix, the other white meat.
4 REPLIES 4
Todd McDaniel_1
Honored Contributor

Re: Boot Disks... Everything you ever wantted to know

Feel free to add your "Be all, End all" docs here as a repository!!!
Unix, the other white meat.
A. Clay Stephenson
Acclaimed Contributor

Re: Boot Disks... Everything you ever wantted to know

Because I dislike complex decision trees - my approach would be to transform all of your "Method Two's" to "Method One's" via the expedient of yanking the flaky drive and waiting a little while. Of course, this only applies to hot-plug disks but it has never failed me in literally dozens of disk swaps. I also suggest that you keep spare drives on hand so that you don't have to wait for Mr. HP Goodwrench to get there. Call me paranoid but I don't like running for any length of time without a mirror.

If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor
Solution

Re: Boot Disks... Everything you ever wantted to know

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

Thanks to all that made this doc right.

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
Todd McDaniel_1
Honored Contributor

Re: Boot Disks... Everything you ever wantted to know

Clay, Simple flowchart for a simple mind??? hehe j/k

I too do the yank and replace most of the time.

This document was also co-prepared by our HPUX folks, so it has some extra steps that most of us seasoned folks wouldn't use most of the time, but I left that stuff in for the sake of completeness


Our company approach is to go no more than 24 hours with a failed mirror on a NON-Root local disk. For Root OS disks, I try to get ASAP replacement. We have an Ops Support group for H/W that manages disk replacements with HP...so it might take <12 hours to get it done if it is on a Production box.

We do have onsite H/W inventory, small but common items, disks/memory etc... but not Hot spares on our boxes.
Unix, the other white meat.