1829594 Members
1506 Online
109992 Solutions
New Discussion

Boot disk mirror problem

 
Roberto Volsa
Frequent Advisor

Boot disk mirror problem

Hi all,
simple question: i have to mirror a boot disk.
No problem with all the procedure but at the setboot command, the hw path is written in an inconsistent way.
I mean that with setboot command i do the folloqing:
spare2:/# setboot -a 2/0/10/0/0/4/1.8.0
spare2:/# setboot
Primary bootpath : 2/0/3/0/0/4/1.8.0
Alternate bootpath : 2/0/10/0/0.4.1.8.0.0.0

the first command refer to an hw path different from the one showed in the second command.
Booting form the alternate disk causes server to crash.

Any idea?

Thanks and regards

RV


Procedure used:
- pvcreate -B mirror_disk
- vgextend vg00 mirror_disk
- mkboot -l mirrir_disk
- mkboot -a "hpux -lq (;0)/stand/vmunix" mirror_disk
- mkboot -a "hpux -lq (;0)/stand/vmunix" primary_disk
lvextend (form 1 to the last LV)
- lvlnboot -Rv /dev/vg00
- setboot -a hw_path_mirror_disk
10 REPLIES 10
RAC_1
Honored Contributor

Re: Boot disk mirror problem

Is lifls -l "both_disks" OK?
On PDC prompt, can you do sea ipl and get both disks?

What is the output of lvlnboot -v

Anil
There is no substitute to HARDWORK
Roberto Volsa
Frequent Advisor

Re: Boot disk mirror problem

Here is what you requested:

spare2:/# lifls -l /dev/dsk/c17t8d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ISL -12800 584 306 0 02/05/10 16:25:44
AUTO -12289 896 1 0 02/05/10 16:25:44
HPUX -12928 904 848 0 02/05/10 16:25:44
PAD -12290 1752 1580 0 02/05/10 16:25:45
LABEL BIN 3336 8 0 04/03/25 05:57:01
spare2:/# lifls -l /dev/dsk/c23t8d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ISL -12800 584 306 0 02/05/10 16:25:44
AUTO -12289 896 1 0 02/05/10 16:25:44
HPUX -12928 904 848 0 02/05/10 16:25:44
PAD -12290 1752 1580 0 02/05/10 16:25:45
LABEL BIN 3336 8 0 04/03/29 07:04:53

spare2:/# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c17t8d0 (2/0/3/0/0/4/1.8.0) -- Boot Disk
/dev/dsk/c23t8d0 (2/0/10/0/0/4/1.8.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c17t8d0
/dev/dsk/c23t8d0
Root: lvol3 on: /dev/dsk/c17t8d0
/dev/dsk/c23t8d0
Swap: lvol2 on: /dev/dsk/c17t8d0
/dev/dsk/c23t8d0
Dump: lvol2 on: /dev/dsk/c17t8d0, 0


Hope it helps
RV
RAC_1
Honored Contributor

Re: Boot disk mirror problem

You can check if mirroring was done OK or not? But that would require a reboot. From PDC prompt if you can get both disks from sea ipl, you can boot from both.

Can you repaet the procedure? For you ready reference..

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

Then try setboot

Anil
There is no substitute to HARDWORK
Todd McDaniel_1
Honored Contributor

Re: Boot disk mirror problem

Looks like a typo to me...

here is your lvlnboot output...

dev/dsk/c23t8d0 (2/0/10/0/0/4/1.8.0) -- Boot Disk


Here is your setboot command:

spare2:/# setboot -a 2/0/10/0/0/4/1.8.0
spare2:/# setboot
Primary bootpath : 2/0/3/0/0/4/1.8.0
Alternate bootpath : 2/0/10/0/0.4.1.8.0.0.0


It looks like a typo of somekind in your setboot command. Your output of the "setboot" command is wonky somehow. b/c your path is messed up, there should be 2 more dashes in the output where there are dots.
Unix, the other white meat.
Roberto Volsa
Frequent Advisor

Re: Boot disk mirror problem

Todd,
it seems a typo problem.
Infact the procedure is right (at least i think); the lvlnboot command shows the expected output, but setboot does not.

In PDC i cannot find the alternate boot: i find a different path that causes the server to crash.

RV
Todd McDaniel_1
Honored Contributor

Re: Boot disk mirror problem

Robert,

On this alternate disk, can you do:

pvdisplay -v /dev/dsk/cxtxdx
diskinfo -v /dev/dsk/cxtxdx

If not, you might need to remove and add the disk again to correct any errors.

also, you said you cant sea for the device... You may have not defined it properly as a bootable disk.


After you are sure the disk is in vg00...this is on 32bit 11.x

mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/dsk/c4t6d0:AUTO
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0

vgcfgrestore -n /dev/vg00 /dev/rdsk/c4t6d0
vgchange -a y /dev/vg00
vgsync /dev/vg00
Unix, the other white meat.
SureshKumar_2
Valued Contributor

Re: Boot disk mirror problem

Hi robert

if u query sea ipl,

what is the output r u getting....

check what is the HARDWARE path of the alternate hdd.

change the PATH - Surely it will solve ur problem.

Could u plz give the output of
*) sea
*) sea ipl
*) ioscan -fnCu disk

expecting ur reply

sure
Things are very easy, when u know about it...
Roberto Volsa
Frequent Advisor

Re: Boot disk mirror problem

Hello all
the problem has been solved.

The real problem was the sub-OS layer (Virtual Partition).
The Virtual partition with the problem had the LBA with the disk assigned, but not the disk.
I had to assign also the disk and thus setboot worked correctly.

Roberto
Todd McDaniel_1
Honored Contributor

Re: Boot disk mirror problem

Gratz! it is very important to remember that resources must be allocated to a vpar before they can be used.

You had a good lesson in that... reminds us all to watch what h/w belongs to the proper vpar/npar.
Unix, the other white meat.
Roberto Volsa
Frequent Advisor

Re: Boot disk mirror problem

Hi
it is true that you must assign resources to Vpar: i did it assigning the LBA of both primary and alternate boot disk.
When Vpar was up and running both disks were available: i added the alternate boot disk into vg00, i mirrored all the world but settboot command did'nt work properly.

The workaround was assigning the alternate boot disks explicitely to that Vpar (i modified it also in order to be ALTBOOT): this should not be required by Vpar..

anyway it worked!

RV