1820882 Members
3550 Online
109628 Solutions
New Discussion юеВ

Re: Boot Disk failure

 
Bona_1
Frequent Advisor

Boot Disk failure

Hi all,
my boot disk has failed. Fortunately, I have a mirror of the boot disk. What I want to know is this: Can I simply boot of the mirror disk, or is there any extra configuration I have to perform in order to boot it?

Thanks
9 REPLIES 9
Borislav Perkov
Respected Contributor

Re: Boot Disk failure

Hi,
you can start the system and stop the automatic boot sequence, and boot from the proposed boot disk. If sholud be the one which is the mirror disk.
T G Manikandan
Honored Contributor

Re: Boot Disk failure

Interrupt at boot

boot thru the mirror hard disk

Naveej.K.A
Honored Contributor

Re: Boot Disk failure

If you have configured the other mirrored disk as the alternate boot disk and the BRDA is updated on the mirrored disk, the server should boot from the working disk.

If the alternate boot path is not specified in the stable storage. Interrupt the boot porcess. Search for the devices using 'search' and then 'boot device path' will boot the system from the other mirrored PV, provided you have updated the BRDA while creating the mirror

With best wishes
naveej
practice makes a man perfect!!!
Robert Binkhorst
Trusted Contributor

Re: Boot Disk failure

Hi,

Just an addition to the other answers, the full procedure (by Galen Scalone):

Recovery of a Failed Disk in vg00
As system admins, we should expect disks to fail every now and then.
The idea behind using MirrorDisk/UX is that if you do have a disk
failure or SCSI card failure, the system still has one copy of data
that it needs to operate and will continue to run. It still has one set
of extents it can read from and write to, and it does not matter which
set it has--the original or the mirror copy.
There are a few ways to find out whether a disk has failed, although
vgdisplay ├В┬н-v is probably the quickest. When vgdisplay -├В┬нv /dev/vg00 is
run, it will show the logical volumes in the vg00 volume group and the
disks in the vg00 volume group. When one of the disks in the volume
group has failed, vgdisplay will show the disk as unavailable, and will
also show some or all of the logical volumes as being in a stale state.

Once you determine which disk has failed, you will need to replace it.
Since these examples are using hot swappable HP disks, replacement
should be pretty simple--just remove the bad disk and insert a new
disk. Let's say c0t0d0 and c1t0d0 are in the /dev/vg00 volume group,
and say that c0t0d0 has failed. Remove the disk from the cabinet, and
replace with the same size disk. Next is the software portion. Once the
new disk is in place:

Boot the system. You will need to select "boot alternate" if the
primary disk failed, otherwise the system will boot normally with some
error messages regarding the failed disk.

vgcfgrestore ├В┬нn /dev/vg00 /dev/rdsk/c0t0d0 This command restores LVM
configuration to the reserved header area on the new disk from the
file /etc/lvmconf/vg00.conf, the volume group configuration backup file.

vgchange -├В┬нa y /dev/vg00 This command tries to activate any physical
volumes in the volume group that had previously been unavailable, or
missing.

vgsync /dev/vg00 This command will re-sync the physical extents of all
logical volumes in the volume group.

Alternatively:
lvsync /dev/vg00/lvol1 This command will re-sync one logical volume at
a time; repeat for all volumes.
At this point your mirror copies are valid again. Notice that in the
previous example, the original disk is the disk that failed, not the
mirror. If for some reason you cannot immediately replace the disk, you
will need to make sure the machine, at boot time, knows which disk to
boot from, in this case the mirror. We would setboot ├В┬нp 16/0.0 to set
the primary boot path to point to the mirror disk.

Here is a link to the full article:

http://www.interex.org/pubcontent/enterprise/sep00/13sca
linux: the choice of a GNU generation

Re: Boot Disk failure

You should be able to just boot on the mirror disc. (boot alternate if you have set it up as an alternaet boot path)

Make sure you replace the faulty disc before booting up so that you dont have to boot again.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5185-6558/5185-6558_top.html&con=/hpux/onlinedocs/5185-6558/00/00/4-con.html&toc=/hpux/onlinedocs/5185-6558/00/00/4-toc.html&searchterms=alternate%7cboot&queryid=20040227-021905
Hoefnix
Honored Contributor

Re: Boot Disk failure

Hi,

If the alternat boot path is configured, it will not always boot automatic from this disk.
If the PRIM boot path is available it starts booting from that one and if corrupt it will crash. If the disk is not available(can not been seen by the search at boot prompt) it will start booting from alternate path.

How to boot manual from your mirror is explained in previous posts.

Regards,
Peter
Elmar P. Kolkman
Honored Contributor

Re: Boot Disk failure

One more thing: you need to specify the -lq option when booting of the mirror (hpux -lq). Since you miss your primary disk, you probably won't reach quorum for vg00. The -lq option will accept that and run the system without the primary disk.
Every problem has at least one solution. Only some solutions are harder to find.
Sanjay Kumar Suri
Honored Contributor

Re: Boot Disk failure

Interrupt the PDC boot process by pressing a key when the message like "Processor is starting the autoboot process appears".

You can give >BOot ALT to boot from alternate device.

search command can also be used to show all devices attached to the system followed by:

boot Pn (where Pn is the path number) or
boot device_path

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Lorenzo Facello
Valued Contributor

Re: Boot Disk failure

Interrupt the boot.
type search
choose the right path or device (ex P1)
interact with isl ... type yes
isl>hpux -lq
to boot without quorum.
Regds
L.