Operating System - HP-UX
1834441 Members
2716 Online
110067 Solutions
New Discussion

Re: mirror disk do not boot

 
SOLVED
Go to solution

mirror disk do not boot

Hello everybody.
I created mirror disk in RX2620 itanium server , followed this procedure:
c2t0d0 primary disk
c2t1d0 alternate disk
______________________________________________
vgdisplay -v
ioscan -efunC disk
cat <>/tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
insf -eC disk
idisk /dev/rdsk/c2t1d0
ioscan -efnC disk
efi_fsinit -d /dev/rdsk/c2t1d0s1
mkboot -e -l /dev/rdsk/c2t1d0
echo "boot vmunix -lq" > /tmp/AUTO.lq
efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO
efi_cp -d /dev/rdsk/c2t0d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri
efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt
cat /tmp/AUTO.pri
cat /tmp/AUTO.alt
pvcreate -fB /dev/rdsk/c2t1d0s2
vgextend vg00 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0s2
lvextend -m 1 /dev/vg00/lv68 /dev/dsk/c2t1d0s2
echo "1 /dev/dsk/c2t1d0s2" >> /stand/bootconf
vgdisplay -v vg00
lvlnboot -v
setboot -p 0/1/1/0.0.0
setboot -h 0/1/1/0.1.0
setboot
shutdown -r -y 0


when i test the mirror disk, the equipment sent this message:




Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix -lq
Seconds left till autoboot -
AUTOBOOTING...Could not open file vmunix to check for a directory
Could not open vmunix

loading failed

HPUX>ls
.AgentSockets
.oracle
.orainst_rsp.10446
.orainst_rsp.10563
.orainst_rsp.17206
.orainst_rsp.4489
.sapicm8000
.sapstream3300
.sapstream3600
.sapstream40001
.sapstream40002
.sapstream8100
ACL.log
AUTO.alt
AUTO.lq
AUTO.pri
CROCLLNK-tst-0-10768
GR_CtrosLog.20061024131905.TXT
GR_CtrosLog.20061025092105.TXT
INVOIC_00201029
INVOIC_00201030
OraInstall2006-06-17_11-16-31AM
OraInstall2006-06-17_11-21-44AM
ZFACTURA_00200027
check.txt
check_lan.log
dhcpfifo.any
dhcpfifo.root
file.sh
gsw
hp11e134.sd
install.vars
ipv6agt.crashlog
lost+found
partitionfile
portmap.file
prngd.log
root.errorlog
rpcbind.file
sapinst_instdir
sensor_info
wd_action.dbg

HPUX>exit
Exiting bootloader.


thanks.
13 REPLIES 13
Asif Sharif
Honored Contributor

Re: mirror disk do not boot

Hi,

It seems that step are ok, Only one thing is missing that is "setboot -b on". Try this command and then check it again.

Please find the attached script for Mirror disk.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1164779

Regards,
Asif Sharif
Regards,
Asif Sharif
Torsten.
Acclaimed Contributor

Re: mirror disk do not boot

There are wrong steps!

How about the output of your commands?


You did
mkboot ...
commands and later a
pvcreate ...

You did NOT mirror the swap.
You did not

lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2


Finally, I don't know what you did, but I think you mirrored
/tmp
to lvol1 (should be /stand).


I would revert the changes and start over.

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!   
Torsten.
Acclaimed Contributor

Re: mirror disk do not boot

Here are the links to the manuals - make sure you run the commands in a correct order

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

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!   

Re: mirror disk do not boot

I recreate the disk mirror using the correct secuence and now works fine. The server boot from the secondary when i remove the primary, but if i remove the secondary booting from the primary the server generates a crash dump. When i re install the secondary disk the system boots again. What i am doing wrong ?

Thanks in advance

Juan Pablo

Torsten.
Acclaimed Contributor

Re: mirror disk do not boot

Did you capture the messages?
Is it really the primary having the problem?
Did you mirror the swap this time?

Check "vgdisplay -v vg00" carefully.

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!   
J. Bravo
Respected Contributor

Re: mirror disk do not boot

Hi!

Is your AUTO file on the primary disk correctly configured (boot vmunix -lq?

Regards;

J. Bravo.

Re: mirror disk do not boot

I do not capture message.
Yes it is the primary have the problem , because i take off secondary disk.
No, I do not mirror swap area. I send the output commands.
Yes, I have the Auto file, I send the output of the command.




output commands:


/#ioscan -efnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
Acpi(HWP0002,0)/Pci(2|0)/Ata(Primary,Master)
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAX3073N
C
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part1,SigA6FD22D2-6B04-11D
C-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI
disk 4 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454
LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part1,Sig840C1648-6DF7-11D
C-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI
disk 2 0/2/1/0.1.0.0.0.0.2 sdisk CLAIMED DEVICE COMPAQ
MSA1000 VOLUME
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
Acpi(HWP0002,200)/Pci(1|0)/Fibre(WWN1B7281,Lun0)
disk 6 0/2/1/0.1.0.0.0.0.4 sdisk CLAIMED DEVICE COMPAQ
MSA1000 VOLUME
/dev/dsk/c6t0d4 /dev/rdsk/c6t0d4
Acpi(HWP0002,200)/Pci(1|0)/Fibre(WWN1B7281,Lun0)
disk 3 0/2/1/0.1.0.255.0.0.2 sdisk CLAIMED DEVICE COMPAQ
MSA1000 VOLUME
/dev/dsk/c7t0d2 /dev/rdsk/c7t0d2
Acpi(HWP0002,200)/Pci(1|0)/Fibre(WWN1B7281,Lun0)
disk 7 0/2/1/0.1.0.255.0.0.4 sdisk CLAIMED DEVICE COMPAQ
MSA1000 VOLUME
/dev/dsk/c7t0d4 /dev/rdsk/c7t0d4
Acpi(HWP0002,200)/Pci(1|0)/Fibre(WWN1B7281,Lun0)
/#vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 4047
Free PE 4589
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 19
Allocated PE 38
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 528
Current LE 33
Allocated PE 66
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 208
Current LE 13
Allocated PE 26
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 32
Current LE 2
Allocated PE 4
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4912
Current LE 307
Allocated PE 614
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 6336
Current LE 396
Allocated PE 792
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4992
Current LE 312
Allocated PE 624
Used PV 2

LV Name /dev/vg00/lv68
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg00/lvol69
LV Status available/syncd
LV Size (Mbytes) 15008
Current LE 938
Allocated PE 938
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 500
Allocated PE 500
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0s2
PV Status available
Total PE 4318
Free PE 1385
Autoswitch On

PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4318
Free PE 3204
Autoswitch On


/#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0s2
/dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c2t0d0s2
/dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t0d0s2, 0

Current path "/dev/dsk/c7t0d2" is an alternate link, skip.
Current path "/dev/dsk/c7t0d4" is an alternate link, skip.
/#setboot
Primary bootpath : 0/1/1/0.0.0
HA Alternate bootpath : 0/1/1/0.1.0
Alternate bootpath : 0/1/2/1

Autoboot is ON (enabled)
/#

_________________________________________________
#grep "Boot device" /var/adm/syslog/syslog.log
Oct 2 20:26:58 SAPDESA vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0
_________________________________________________
Torsten.
Acclaimed Contributor
Solution

Re: mirror disk do not boot

Of course you need to mirror the swap too.
Why you didn't?

The swap must be the second lvol mirrored, so remove the mirrors again and mirror the swap.

BTW,
grep "Boot device" /var/adm/syslog/syslog.log
Oct 2 20:26:58 SAPDESA vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0

this is the "secondary" disk (without swap).

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!   

Re: mirror disk do not boot

Hello Torsten.

Yes, it is secondary disk (Oct 2 20:26:58 SAPDESA vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0 .


I have another question.
I create a secondary swap area by requirement of SAP people.
I think mirroring this swap area too.

Re: mirror disk do not boot

Hello Torste.

Yes, it is secondary disk (Oct 2 20:26:58 SAPDESA vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0 .


I have another question.
I create a secondary swap area by requirement of SAP people.
I belive to mirror this swap area too.

Re: mirror disk do not boot

Hello Torste.

Yes, it is secondary disk (Oct 2 20:26:58 SAPDESA vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0 .


I have another question.
I create a secondary swap area by requirement of SAP people.
I think mirroring this swap area too.
Torsten.
Acclaimed Contributor

Re: mirror disk do not boot

You really should mirror everthing - especially the swap!

If the disk containing the un-mirrored swap is failing, you can compare this to a failed memory. Imagine what happens to your OS ...

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!   

Re: mirror disk do not boot

Hello
I consult to the experts again.
I follow the mirror process again, step by step,look like good , but when i test my equipment, i have following error:
This problem generate when take off mirror disk:

Loaded ACPI revision 2.0 tables.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 8.
Boot device's HP-UX HW path is: 0/1/1/0.0.0
iether0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0
/1/2/0
iether1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0
/1/2/1

System Console is on the Built-In Serial Interface
Logical volume 64, 0x3 configured as ROOT
L


=====================================================================================

sync'ing disks (0 buffers to flush): (0 buffers to flush):
0 buffers not flushed
0 buffers still dirty

*** A system crash has occurred. (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

=======================================================================================
loading section 0
........................................................ (complete)
loading section 1
............. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
....
loading MFSFILES directory (bootfs) to MFS

========================================================================================

Booting kernel...

HP-UX will call firmware in physical-addressing mode

Memory Class Setup
-------------------------------------------------------------------------
Class Physmem Lockmem Swapmem
-------------------------------------------------------------------------
System : 6132 MB 6132 MB 6132 MB
Kernel : 6132 MB 6132 MB 6132 MB
User : 5617 MB 4893 MB 4913 MB
-------------------------------------------------------------------------

Loaded ACPI revision 2.0 tables.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 8.
Boot device's HP-UX HW path is: 0/1/1/0.0.0
iether0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0
/1/2/0
iether1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0
/1/2/1

System Console is on the Built-In Serial Interface
L
..............
Launching /stand/vmunix
SIZE: Text:28470K + Data:6496K + BSS:5239K = Total:40206K

Console is on a Serial Device
Booting kernel...

HP-UX will call firmware in physical-addressing mode




ERROR: Your system crashed before I/O and dump configuration was complete.
This system does not support a crash dump under these circumstances.
Contact your HP support representative for assistance.







Anybody who knows what happen?

Regards