Operating System - HP-UX
1847833 Members
4873 Online
104021 Solutions
New Discussion

Mirrored DISK not Booting .HP-UX 11.00

 
SOLVED
Go to solution
Raj D.
Honored Contributor

Mirrored DISK not Booting .HP-UX 11.00

Hi All ,

I have HP9000 G30 server and i have installed Mirror-UX software and then mirrored the 1st disk 4.3GB with 2nd 4.3GB. here is the commands i used ,

1st disk = /dev/dsk/c0t0d0
2nd disk = /dev/dsk/c0t1d0

# pvcreate -B /dev/dsk/c0t1d0
# vgextend vg00 /dev/dsk/c0t1d0
# mkboot /dev/rdsk/c0t1d0
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t1d0
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0
# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t1d0
. . and all the lvol under vg00 ..
# lvlnboot -R /dev/vg00
# lvlnboot -v /dev/vg00

Now i shutdown the system and physically removed the first disk , i.e c0t0d0.
And given " boot 52.1.0.0.0.0.0 " i.e c0t1d0

But it is hanging in "Booting ..."

Can any one help me out to how to solve this problem . In case of a disk failure i want to keep it ready.

Thanks in advance ,

Raj D.
------


" If u think u can , If u think u cannot , - You are always Right . "
22 REPLIES 22
Victor BERRIDGE
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi,
Where is the mkboot -a "hpux (;0)/stand....?

did you do after also a setboot?

All the best
Victor
Todd McDaniel_1
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

HRe is a good post that might help...


Looks as though you didnt give the mirror any boot options... hpux -lq


http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=388487
Unix, the other white meat.
Dino_4
Frequent Advisor

Re: Mirrored DISK not Booting .HP-UX 11.00


Hi,

did u tried it only with the 1st Disc pulled out?

What happens if u choose the altenate path to boot with both disc installed.

Execute "mkboot -a "-lq" /dev/rdsk/
Dino_4
Frequent Advisor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi,

did u tried it only with the 1st Disc pulled out?

What happens if u choose the altenate path to boot with both disc installed.

Execute "mkboot -a "hpux -lq" /dev/rdsk/

UPS, forgot the "hpux"
john kingsley
Honored Contributor
Solution

Re: Mirrored DISK not Booting .HP-UX 11.00

You will need to set the "loss of quorum" option. This will allow vg00 to function without a quorum.

mkboot -a "hpux -lq" /dev/rdsk/c0t0d0
mkboot -a "hpux -lq" /dev/rdsk/c0t1d0

When you run "lvlnboot -v /dev/vg00", make sure your both Boot, Root, and Swap are set and that both of your disks are listed. If not, run:
lvlnboot -r /dev/vg00/lvol3 /dev/vg00 # This is root
lvlnboot -b /dev/vg00/lvol1 /dev/vg00 # this is stand lvol
lvlnboot -s /sev/vg00/lvol2 /dev/vg00 # this is swap area.


Todd McDaniel_1
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Here is an excerpt from the link i gave you...


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
Unix, the other white meat.
Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi Dino ,

When both disk present , and set boot from alternate path , i,e c0t1d0 it boots fine.

Thanks i llbe trying giving

# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/c0t1d0

and let u know.

Raj D.
" If u think u can , If u think u cannot , - You are always Right . "
Dino_4
Frequent Advisor

Re: Mirrored DISK not Booting .HP-UX 11.00


Hi,

well, then it has to be what everybody here said.

The "less quorum" option.

I'm sure it boots fine after u changed it.
Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi All ,
thanks to all who replied ,

My problem still not solved ,

I have done this

# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/c0t1d0

Now after shutdown and i disconnected /dev/dsk/c0t0d0 .

when i boots from alt path , it asks
Interact with ISL (Y/N) N
Booting ....

and hangs there.

But i have connected c0t0d0 alone. And its boot. At ISL it shows " hpux -lq .."

What could be the problem as c0t1d0 not booting.

Regards ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
john kingsley
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

What does the output from:
lvlnboot -v /dev/vg00

look like?
RAC_1
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

From PDC prompt,

do sea ipl

Does it list your second disk??
If not, you have problems with disk/disk's lif area.

Boot from primary disk then, and repeat the whole procedure.

Anil
There is no substitute to HARDWORK
john kingsley
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Since your using lvm, make sure used the "-l" option on your mirrored disk.

mkboot -l /dev/dsk/c0t1d0

Also, you can check the contents of the LIF area with:

lifls /dev/dsk/c0t1d0

As a minimum you should see:
ISL AUTO HPUX PAD LABEL

Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00


John , here is the output of

#lvlnboot -v /dev/vg00

Boot Defination for Volume Group /dev/vg00:
Physical volumes belongs in Root Volume Group;
/dev/dsk/c0t0d0(52.0.0) -- Boot Disk
/dev/dsk/c0t1d0(52.1.0) -- Boot Disk

Boot: lvol1 on: /dev/dsk/c0t0d0
/dev/dsk/c0t1d0

Root: lvol3 on: same

Swap: lvol2 on: same

Dump: lvol2 on: /dev/dsk/c0t0d0,0

---

#lifls /dev/dsk/c0t1d0
gives

ISL AUTO HPUX PAD LABEl

Thanks , if there is no way i can do the whole procedure once again and let u know.

Thanks ,

Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Todd McDaniel_1
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Okay Raj...

I assume your single disk worked without being mirrored...

I would remove it and start from scratch again on the mirror disk... Using the commands I showed from the link I provided...

Start from scratch on this disk so you know where you are at all times...

I think the situation maybe confused a bit now.
Unix, the other white meat.
john kingsley
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

I agree with Todd.

Your output looks okay. The only thing that bothers me it the mkboot command you ran. Everytime I've mirrored disks, I always used the "-l" (that the letter not the number) option. According to the man pages this option is required to mirror LVM disks.
Sundar_7
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi Raj,

Quorums dont come in to picture till the time VG00 is getting activated.

So, I dont see a problem with quorum setting.

pvcreate -B /dev/dsk/c0t1d0

I am sure it is a typo but pvcreate will only take a raw device file as input.

I sense some problem with your mirror disk. Try a mediainit and then start from scratch

# mediainit /dev/rdsk/c0t1d0
# pvcreate -B /dev/rdsk/c0t1d0
# mkboot /dev/rdsk/c0t1d0
# mkboot -a "hpux -lq" /dev/rdsk/c0t1d0
# vgextend
# lvextend
# lvlnboot -R
# lvlnboot -v
# setboot
# shutdown -r -y 0

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Victor Fridyev
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi,

Look at this thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605920
In order to build mirroring for a system disk you can use the attached script.
lvreduce and vgreduce previously

HTH
Entities are not to be multiplied beyond necessity - RTFM
Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Thanks John , Sundar and Victor and all who replied ...

Well today i ll do from the scratch , begining after lvreduce and vgreduce and mediainit.

Hope this time it will work . i ll give u feedback in evening. IST.

And i hope i can boot the system from Individual HardDisks , after completion. Till then bye.

Raj D.
------
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Hi All ,

In continuation with the above .. i would like to share the rest things with all ,

Well acoording to u all , i started the mirroring of c0t1d0 from scracth , and did all the steps carefully. Took 2 hr. removed disk0 and found same problem. It was stucking after ISL> and stucked at " Booting ..."

Let me tell u about the Hardware i am using :

Its

HP9000 G30 , HP-UX B.11.00 / 32MB RAM.
0th Disk = SEAGATE 4.3GB ST34520W Ultra Wide. 68Pin.
1st Disk[c0t1d0] = SEAGATE CHEETAH ST39102LC Hot Swap.

I am using one convertor for this Hot Swap disk. to convert HS-50Pin conncetor.

My SCSI chain is 50 Pin SCSI cable.

So i doubt on the convertor HS-50Pin , which may not be causing it to boot.
---
I Then connected another 1GB SCSI norrow HDD . And done all the steps. But i mirroed
boot [100MB] / swap [250MB] / root [ 500MB]

And after removing c0t0d0 , found its starts booting.

Conclusion: So i have to change the HDD 9GB and to get a 4.3 GB Disk and ll do the mirror. My purpose will be solve.

Thanks to all , specially ,
* * Victor , Todd , Dino , John , RAC , Sundar and who all replied. * *

10 points to all who had given the complete mirroring info & guidelines. Thanks

Raj D.
-------




" If u think u can , If u think u cannot , - You are always Right . "
Todd McDaniel_1
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Raj make sure and dont forget to post points...

glad you figured out a solution...
Unix, the other white meat.
Raj D.
Honored Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Sorry Todd ,
Really I was forgotten to assign the Points .
But now I have assigned the points for all of you , for valuable suggesions ,

You can check your total points , increased !!

Thanks , Good day ,

Raj.
-----
" If u think u can , If u think u cannot , - You are always Right . "
Francis_2
Occasional Contributor

Re: Mirrored DISK not Booting .HP-UX 11.00

Raj,

There is a nice detailed document about mirroring boot disk in the ITRC database.

You should search it by Document id: LVMKBRC00005103

It answers your question in detail. Print that document for future reference.


Regards,

Francis Miawama

---------------------------------------
How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook DocId: LVMKBRC00005103 Updated: 5/6/04 10:09:00 AM

PROBLEM
By using mirror copies of the root or primary swap logical volumes on another disk, I will be able to use the copies to keep my system in operation, if either of these logical volumes fail.

How can I create a mirrored boot disk?

CONFIGURATION
HP-UX 10.x, 11.x on PA-RISC
LVM
MirrorDisk-UX
Teamwork is, never, ever allowing each other to fail.