Operating System - HP-UX
1849163 Members
6248 Online
104041 Solutions
New Discussion

Re: Start boot with disk mirror.

 
Eberno
Regular Advisor

Start boot with disk mirror.

My friends,

How they know, I make mirror in my server.
I have one doubts.
How I make to qualify the mirror record in reboot of the server?
11 REPLIES 11
Ivan Ferreira
Honored Contributor

Re: Start boot with disk mirror.

If this is a RISC server, you need to stop ISL and run for example:

prompt> path
prompt> hpux boot disk(2/4.0.0)


You can also set your alternate boot disk with:

prompt> path alt hardware_address


If it's an integrity, you can use EFI to add a boot option.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Coolmar
Esteemed Contributor

Re: Start boot with disk mirror.

Follow these instructions to mirror your boot/root disk:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=640487

To verify that it worked you can run:
# lvlnboot -v

Torsten.
Acclaimed Contributor

Re: Start boot with disk mirror.

If your system is up and running at this time, run

# setboot

to view your settings.
This is an example:

# setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

Now do a "ioscan -fnCdisk" to identify the hardware path to your bootdisks (you already know the divice files.

set the alternate boot path like:

# setboot -a 0/1/1/0.1.0

and check with "setboot" again.

Autoboot and Autosearch should be set to on.


If you want your system is starting even a disk is failed, set the "-lq" (quorum" option in the AUTO file.

remember, this was done by a line like

# mkboot -a "boot vmunix -lq" /dev/rdsk/c2t1d0s1


You can check the AUTO file on both disks with

# # efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x


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!   
Eberno
Regular Advisor

Re: Start boot with disk mirror.

My friends,

Ineed know, how to do, after reboot, when begin the SO, and bring any seconds for begining the SO, by Primary disk.

I need beginig by alternate disk.
Torsten.
Acclaimed Contributor

Re: Start boot with disk mirror.

You may set the HAA path (if any) to the same value like the alternate path.

example:
# setboot -h 0/1/1/0.1.0
# setboot -a 0/1/1/0.1.0


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!   
Ajitkumar Rane
Trusted Contributor

Re: Start boot with disk mirror.

Hello Eberno,

Do a lvdisplay -v /dev/vg00/lvol* and check if the lvols are mirored, the fifth line tells you if the lvols are mirrored

Mirror copies 1

This confirms your VG00 is mirrored, similarly u can find if ur other volume groups are mirrored

do a lvlnboot -v

u will get output as below, it shows 2 boot disk c3t2d0 and c4t2d0.

You can do a ioscan -fnC disk and find the h/w path of the disks.

execute the setboot command it will tell you which is primary and the alternate path.
you can alter the primary and alternate paths with the same command setboot -p path -a path.

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0 (0/0/3/1.2.0) -- Boot Disk
/dev/dsk/c4t2d0 (0/0/4/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t2d0
/dev/dsk/c4t2d0
Root: lvol3 on: /dev/dsk/c3t2d0
/dev/dsk/c4t2d0
Swap: lvol2 on: /dev/dsk/c3t2d0
/dev/dsk/c4t2d0
Dump: lvol2 on: /dev/dsk/c3t2d0, 0


Hope this helps

REgds,

Ajit
Amidsts difficulties lie opportunities
Eberno
Regular Advisor

Re: Start boot with disk mirror.

Guys,

Thanks , for you help.

But i need know...
How do I controle the boot at start time?
Sยภเl Kย๓คг
Respected Contributor

Re: Start boot with disk mirror.

Hi,

You need to interrupt the autoboot process and interact with PDC and then ISL inorder to boot through the alt boot disk.

You need to reboot server from console, after PDC selftests server will prompt you to "press any key" to stop the autoboot process.

press any key to interrupt auto boot process.

at PDC menu, type 'bo alt' to boot from the alternate boot device.

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Ninad_1
Honored Contributor

Re: Start boot with disk mirror.

Hi,

Assuming you have set the primary and alternate boot paths as mentioned by other people and you have PA-RISC system

Shutdown your system
Now start the system and while starting press and hold the Escape key when it displays "To stop selection process, press and hold ESCAPE key."

Now you will come to BCH menu
Main Menu: Enter Command >

Type boot alt [ to indicate boot from alternate path]

Test the system and again shutdown and boot normally.
Also read the manual,
http://docs.hp.com/en/B2355-90950/ch05s01.html#bgejgjjh

Regards,
Ninad
Regards,
Ninad
Eberno
Regular Advisor

Re: Start boot with disk mirror.

Gays,

My SO is HP-UX 11.23.

I´m maybe lost, yet.
Torsten.
Acclaimed Contributor

Re: Start boot with disk mirror.

You have to stop the EFI boot process by pressing any key while you see the boot menu.

Now start the EFI shell. You will get a prompt like

fs0>

now you have to navigate to the *right* disk, probably fs2>
(this is a bit complicated to find, because you will have to understand the output of the command "map")

by typing

>cd fs2

now it's similar to good old DOS style

fs2>dir

locate and start the file "hpux.efi"

This will start the HP-UX loader and the OS.

For all details refer to your user guide.





Easier solution is to navigate using the boot menu.

Make the alternate boot path static by configure the path in the start menu (boot options) or like mentioned earlier while the OS is running.

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!