LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

How to mirror between two SAN disk in HP-UX 11.31

 
Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi Torsten,

Thanks for your message

 

When OS is booting from primary disk , it is failed. Then I run  boot vmunix -lq  in HPUX> and  finally OS boot and I  correct the setting in /tmp/AUTOFILE by boot vmunix -lq.

When I again reboot the OS , it boot failed again and do same task as before. So how to solve it permanently.

 

Please check the bellow output.

Booting HP-UX Primary Boot: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0

(C) Copyright 1999-2012 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.047

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

loading failed

HPUX> boot vmunix -lq

After OS boot

bash-4.3# cat /tmp/AUTOFILE
boot vmunix -lq
bash-4.3#

Highlighted
Acclaimed Contributor

Re: How to mirror between two SAN disk in HP-UX 11.31

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

 

The space is still missing.

 

Please check the contents of

/tmp/AUTOFILE

again. Then do

bash-4.3# efi_cp -d /dev/rdisk/disk4_p1 /tmp/AUTOFILE /EFI/HPUX/AUTO
bash-4.3# efi_cp -d /dev/rdisk/disk14_p1 /tmp/AUTOFILE /EFI/HPUX/AUTO


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!   
Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi Torsten,

Thanks for your quick response with message.

I have checked the contents and run both command again as bellows.  Now OS is booting  from primary OS  witout any error. But  same issue occured when primary disk is unpresent and OS is failed from alternate disk.  Please check bellow output. 

Finally I run reconnect -r  in shell> and then select alternate disk and then OS is booted.

bash-4.3# cat /tmp/AUTOFILE
boot vmunix -lq

bash-4.3# efi_cp -d /dev/rdisk/disk4_p1 /tmp/AUTOFILE /EFI/HPUX/AUTO
bash-4.3# efi_cp -d /dev/rdisk/disk14_p1 /tmp/AUTOFILE /EFI/HPUX/AUTO


bash-4.3# setboot
Primary bootpath : 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0 (/dev/rdisk/disk4)
HA Alternate bootpath : 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0 (/dev/rdisk/disk14)
Alternate bootpath : 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0 (/dev/rdisk/disk14)

Autoboot is ON (enabled)
Hyperthreading : ON
: ON (next boot)

bash-4.3# dmesg |grep -i "Boot Device"
Boot device's HP-UX HW path is: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0

Booting HP-UX Primary Boot: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0
Boot Failed. HP-UX Primary Boot: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0
Booting HP-UX HA Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Boot Failed. HP-UX HA Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Booting HP-UX Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Boot Failed. HP-UX Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Booting LAN [MAC(D8D385F8A152,0x0)/IPv4(0.0.0.0)]
Performing a non-directed lanboot...
Boot Failed. LAN [MAC(D8D385F8A152,0x0)/IPv4(0.0.0.0)]
Searching for devices.
Copyright (c) 2000-2012 Broadcom Corporation
Broadcom NetXtreme II 10 Gig Ethernet EFI driver v5.2.60

 

 

So I think , configure for autoboot from alternate disk  may not be correct.

Hope response from anyone from HP-UX expert end.

 

Highlighted
Acclaimed Contributor

Re: How to mirror between two SAN disk in HP-UX 11.31

I don't know if you have done all steps to make the second disk bootable.

 

Have you done

 

mkboot -e -l /dev/rdisk/disk14


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!   
Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi  Torsten.,

 

Bellow steps is done for mirror by me.   Pls check all and reply if need to any change for solution.

Here later I have changed /tmp/auto to /tmp/AUTOFILE as per your recommendations.

 

 

****First take the output of below commands: ****
#ioscan -N -fnC disk
# ioscan -funC disk
# ioscan -m dsf
# ioscan -m lun
# bdf
# setboot
# dmesg | grep -i "boot device"
# swapinfo -tam
# ioscan -funC fc
# fcmsutil /dev/fcd1

bash-4.3# mydf
Filesystem Mount Point Total GB Avail GB Used GB Used
----------------------------------- ------------------------- ---------- ---------- ---------- -----
/dev/vg00/lvol4 /home 19.85 19.78 0.07 1%
/dev/vg00/lvol5 /opt 29.80 24.95 4.85 17%
/dev/oravg/oralv /orafs 174.50 172.45 2.06 2%
/dev/vg00/lvol6 /tmp 9.92 9.90 0.02 1%
/dev/vg00/lvol7 /usr 9.95 6.87 3.08 31%
/dev/vg00/lvol8 /var 19.86 18.33 1.52 8%
/dev/vg00/lvol1 /stand 9.92 9.73 0.19 2%
/dev/vg00/lvol3 / 19.85 18.65 1.20 7%


bash-4.3# setboot
Primary bootpath : 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0 (/dev/rdisk/disk4)
HA Alternate bootpath : 33/0/1/0/0/0/0/2/0/0/1 (LAN Interface)
Alternate bootpath : 33/0/1/0/0/0/0/4/0/0/0 (LAN Interface)

Autoboot is ON (enabled)
Hyperthreading : ON
: ON (next boot)

New LUn---> /dev/rdisk/disk14 /dev/rdsk/c7t0d0 /dev/rdsk/c5t0d0------------------>mirror disk

Step-1. Identify an available disk to add to vg00
-----------------------------------------------------------------------------------------------
bash-4.3# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 13 35/0/2/2/0/0/1.205.2.255.0.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 3 35/0/2/2/0/0/1.205.10.255.0.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c6t0d0 /dev/dsk/c6t0d0s2 /dev/rdsk/c6t0d0 /dev/rdsk/c6t0d0s2
/dev/dsk/c6t0d0s1 /dev/dsk/c6t0d0s3 /dev/rdsk/c6t0d0s1 /dev/rdsk/c6t0d0s3
disk 8 35/0/2/2/0/0/1.205.10.255.0.0.1 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 12 35/0/2/2/0/0/1.229.0.255.8.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN ------------>mirror disk
/dev/dsk/c7t0d0 /dev/rdsk/c7t0d0
disk 2 35/0/2/2/0/0/1.229.2.255.10.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c4t0d0 /dev/dsk/c4t0d0s2 /dev/rdsk/c4t0d0 /dev/rdsk/c4t0d0s2
/dev/dsk/c4t0d0s1 /dev/dsk/c4t0d0s3 /dev/rdsk/c4t0d0s1 /dev/rdsk/c4t0d0s3
disk 9 35/0/2/2/0/0/1.229.2.255.10.0.1 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1

bash-4.3# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c4t0d0 ------------>original OS disk
/dev/rdsk/c6t0d0
/dev/rdisk/disk4_p1 /dev/rdsk/c4t0d0s1
/dev/rdsk/c6t0d0s1
/dev/rdisk/disk4_p2 /dev/rdsk/c4t0d0s2
/dev/rdsk/c6t0d0s2
/dev/rdisk/disk4_p3 /dev/rdsk/c4t0d0s3
/dev/rdsk/c6t0d0s3
/dev/rdisk/disk11 /dev/rdsk/c4t0d1
/dev/rdsk/c6t0d1
/dev/rdisk/disk14 /dev/rdsk/c7t0d0-------------->mirror disk
/dev/rdsk/c5t0d0

bash-4.3# ioscan -N -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk4 /dev/disk/disk4_p2 /dev/rdisk/disk4 /dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/disk/disk4_p3 /dev/rdisk/disk4_p1 /dev/rdisk/disk4_p3
disk 11 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk11 /dev/rdisk/disk11
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk14 /dev/rdisk/disk14
bash-4.3# ioscan -m hwpath
Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x0
35/0/2/2/0/0/1.0x257000c0ff2585a5.0x0 35/0/2/2/0/0/1.229.2.255.10.0.0
35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0 35/0/2/2/0/0/1.205.10.255.0.0.0
64000/0xfa00/0x7
35/0/2/2/0/0/1.0x257000c0ff2585a5.0x1000000000000 35/0/2/2/0/0/1.229.2.255.10.0.1
35/0/2/2/0/0/1.0x227000c0ff2585a5.0x1000000000000 35/0/2/2/0/0/1.205.10.255.0.0.1
64000/0xfa00/0x8
35/0/2/2/0/0/1.0x257000c0ff257a8a.0x0 35/0/2/2/0/0/1.229.0.255.8.0.0
35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0 35/0/2/2/0/0/1.205.2.255.0.0.0

2. Use the following commands to determine the size in megabytes of the (1) EFI, and (3) HPSP partitions on the current boot disk.
----------------------------------------------------------------------------------------------------------------------------------------
# /usr/sbin/diskinfo -b /dev/rdisk/disk4_p1 \
| awk '{print $1 / (1024)}'
499.969
# /usr/sbin/diskinfo -b /dev/rdisk/disk4_p3 \
| awk '{print $1 / (1024)}'
400

3. Create an IPF partition description file to create the EFI and OS partititions using your favorite method. Theses two example shows how to create a IPF description file with an EFI partition of 500 Megabytes and a HPSP partiiton of 400 Megabytes.
--------------------------------------------------------------------------------------------------------------------------------------------
bash-4.3# vi /tmp/idf
"/tmp/idf" [Incomplete last line] 3 lines, 20 characters
3
EFI 500MB
HPUX 100%
HPSP 400MB


4. Use idisk to perform the disk partitioning in the available drive using the file created above.
---------------------------------------------------------------------------------------------------------
# idisk -wf /tmp/idf /dev/rdisk/disk14 -->disk14 is mirror disk
bash-4.3# idisk -wf /tmp/idf /dev/rdisk/disk14
idisk version: 1.44
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes

EFI Primary Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0xb2ac5a01
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x17485fff
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x17485fbf
LastUsableLbaHi = 0x0
Disk GUID = c18dcf2e-0463-11ea-8000-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xcf0cb951

Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = c18dd3d4-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0x40
Starting Lba Hi = 0x0
Ending Lba Lo = 0xf9fff
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = c18dd3de-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x173bdfff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = c18dd3e8-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0x173be000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x17485fbf
Ending Lba Hi = 0x0

EFI Alternate Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0x85a40ac0
MyLbaLo = 0x17485fff
MyLbaHi = 0x0
AlternateLbaLo = 0x1
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x17485fbf
LastUsableLbaHi = 0x0
Disk GUID = c18dcf2e-0463-11ea-8000-d6217b60e588
PartitionEntryLbaLo = 0x17485fdf
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xcf0cb951

Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = c18dd3d4-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0x40
Starting Lba Hi = 0x0
Ending Lba Lo = 0xf9fff
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = c18dd3de-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x173bdfff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = c18dd3e8-0463-11ea-8000-d6217b60e588
Starting Lba Lo = 0x173be000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x17485fbf
Ending Lba Hi = 0x0

Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0xb6ce8dc1

Protective MBR

5. Use the insf command to create device files for new EFI partitions. Use both the hardware path obtained from step 1.
-----------------------------------------------------------------------------------------------------------------------
bash-4.3# insf -e -H 35/0/2/2/0/0/1.229.0.255.8.0.0
insf: Installing special files for sdisk instance 12 address 35/0/2/2/0/0/1.229.0.255.8.0.0
bash-4.3# insf -e -H 64000/0xfa00/0x8
insf: Installing special files for esdisk instance 14 address 64000/0xfa00/0x8
bash-4.3#

6. Verified the newly create partition.
----------------------------------------------------------------------------------------------------------------------
bash-4.3# ioscan -N -fnkC disk

Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk4 /dev/disk/disk4_p2 /dev/rdisk/disk4 /dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/disk/disk4_p3 /dev/rdisk/disk4_p1 /dev/rdisk/disk4_p3
disk 11 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk11 /dev/rdisk/disk11
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/disk/disk14 /dev/disk/disk14_p2 /dev/rdisk/disk14 /dev/rdisk/disk14_p2
/dev/disk/disk14_p1 /dev/disk/disk14_p3 /dev/rdisk/disk14_p1 /dev/rdisk/disk14_p3
bash-4.3#

bash-4.3# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 13 35/0/2/2/0/0/1.205.2.255.0.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 3 35/0/2/2/0/0/1.205.10.255.0.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c6t0d0 /dev/dsk/c6t0d0s2 /dev/rdsk/c6t0d0 /dev/rdsk/c6t0d0s2
/dev/dsk/c6t0d0s1 /dev/dsk/c6t0d0s3 /dev/rdsk/c6t0d0s1 /dev/rdsk/c6t0d0s3
disk 8 35/0/2/2/0/0/1.205.10.255.0.0.1 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 12 35/0/2/2/0/0/1.229.0.255.8.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c7t0d0 /dev/dsk/c7t0d0s2 /dev/rdsk/c7t0d0 /dev/rdsk/c7t0d0s2
/dev/dsk/c7t0d0s1 /dev/dsk/c7t0d0s3 /dev/rdsk/c7t0d0s1 /dev/rdsk/c7t0d0s3
disk 2 35/0/2/2/0/0/1.229.2.255.10.0.0 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c4t0d0 /dev/dsk/c4t0d0s2 /dev/rdsk/c4t0d0 /dev/rdsk/c4t0d0s2
/dev/dsk/c4t0d0s1 /dev/dsk/c4t0d0s3 /dev/rdsk/c4t0d0s1 /dev/rdsk/c4t0d0s3
disk 9 35/0/2/2/0/0/1.229.2.255.10.0.1 sdisk CLAIMED DEVICE HP MSA 2040 SAN
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1

7. Use mkboot to format and populate the newly created EFI partition:
-----------------------------------------------------------------------------------------------------------
# mkboot -e -l /dev/disk/disk14

8. Change the AUTO file on both boot disks to hpux -lq so the host can boot without quorum if one mirror disk fails.
-------------------------------------------------------------------------------------------------------------------
# printf 'boot vmunix -lq' > /tmp/auto

# efi_cp -d /dev/disk/disk14_p1 /tmp/auto /EFI/HPUX/AUTO

9. Run the pvcreate command on the character device file for the HP-UX (second) partition of the mirror disk, using the "-B" flag to make the disk bootable, and the "-f" flag to overwrite any pre-existing data on the disk.
-------------------------------------------------------------------------------------------------------------------------------------------
# pvcreate -f -B /dev/rdisk/disk14_p2

10. Extend the root volume group to the HP-UX partition of the mirror disk, using the block device file of the second (HPUX) partition.
--------------------------------------------------------------------------------------------------------------------
# vgextend /dev/vg00 /dev/disk/disk14_p2

11. Starting with the boot, swap, and root logical volumes, run lvextend to mirror each logical volume:
--------------------------------------------------------------------------------------------------------------------
#lvextend -A y -m 1 /dev/vg00/lvol1 /dev/disk/disk14_p2 (m:mirror )
#lvextend -A y -m 1 /dev/vg00/lvol2 /dev/disk/disk14_p2 (lvol2 : swap lv)
#lvextend -A y -m 1 /dev/vg00/lvol3 /dev/disk/disk14_p2
#lvextend -A y -m 1 /dev/vg00/lvol4 /dev/disk/disk14_p2
#lvextend -A y -m 1 /dev/vg00/lvol5 /dev/disk/disk14_p2
#lvextend -A y -m 1 /dev/vg00/lvol6 /dev/disk/disk14_p2
#lvextend -A y -m 1 /dev/vg00/lvol7 /dev/disk/disk14_p2
#lvextend -A y -m 1 /dev/vg00/lvol8 /dev/disk/disk14_p2

12. Run the following lvlnboot commands to reestablish LVM’s knowledge of the root and boot file systems and primary swap and dump.
# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -r /dev/vg00/lvol3
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
# /usr/sbin/lvlnboot -d /dev/vg00/lvol2
# /usr/sbin/lvlnboot -R

12. Run the following lvlnboot commands to reestablish LVM’s knowledge of the root and boot file systems and primary swap and dump.
# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -r /dev/vg00/lvol3
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
# /usr/sbin/lvlnboot -d /dev/vg00/lvol2
# /usr/sbin/lvlnboot -R

13. Add the block device special file of the HP-UX (second) partition of the mirror to the file /stand/bootconf. The lower case "l" in the following command indicates that the disk is managed by LVM or VxVM.
------------------------------------------------------------------------
# /usr/bin/echo "l /dev/disk/disk14_p2" >> /stand/bootconf

14. If desired, set the alternate boot path to the mirror_disk using the Lunpath H/W Path. Check step 1.
-------------------------------------------------------------------------------------------------------
# /usr/sbin/setboot -a 35/0/2/2/0/0/1.205.2.255.0.0.0 (mirror disk:14 legacy HW path, also collect from sam)


15. If the mirror disk includes an HPSP partition, use the efi_fsinit command on the character device file for the HPSP (third) partition to initialize it with an EFI file system.
------------------------------------------------------------------
# /usr/sbin/efi_fsinit -d /dev/rdisk/disk14_p3

=====================================================================================================================================================================================
*************************************************************************************************************************************************************************************

After done all above command, pls check bellow before OS reboot:

1.check boot device
#dmesg | grep -i "Boot device"


2. check both boot path
#setboot
3.check or add the alternate path in this location : # cat /stand/bootconf OR vi /stand/bootconf

bash-4.3# cat /stand/bootconf

l /dev/disk/disk4_p2
l /dev/disk/disk14_p2


4.check the VG (show PV used :2)
# vgdisplay -v vg00

5.To check booth the disk are boot able:
bash-4.3# vgcfgrestore -n vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdisk/disk4_p2 (Bootable)
/dev/rdisk/disk14_p2 (Bootable)

6.Check LVM boot pointers.
# lvlnboot -v

Highlighted
Acclaimed Contributor

Re: How to mirror between two SAN disk in HP-UX 11.31

The procedure looks good.

I miss one step.

 

7a) efi_fsinit -d /dev/rdisk/disk14_p1

7b) mkboot -e -l /dev/rdisk/disk14

 

Then copy the AUTOFILE again.

 

Just to be sure perform

 

setboot -p /dev/disk/disk4

setboot -h /dev/disk/disk14

setboot -a /dev/disk/disk14

setboot -v

 

Please log the complete output while booting and attach if it failes again.


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!   
Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi  Torsten.,

 

I have run your provided bellow command

7a) efi_fsinit -d /dev/rdisk/disk14_p1

7b) mkboot -e -l /dev/rdisk/disk14

#cat /tmp/AUTOFILE

boot vmunix -lq

Then run bellow command

#setboot -p /dev/disk/disk4

#setboot -h /dev/disk/disk14

#setboot -a /dev/disk/disk14

#setboot -v

bash-4.3# setboot
Primary bootpath : 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0 (/dev/rdisk/disk4)
HA Alternate bootpath : 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0 (/dev/rdisk/disk14)
Alternate bootpath : 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0 (/dev/rdisk/disk14)

Then unpresent primary disk and reboot but both disk failed as bellow

Booting HP-UX Primary Boot: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0
Boot Failed. HP-UX Primary Boot: 35/0/2/2/0/0/1.0x227000c0ff2585a5.0x0
Booting HP-UX HA Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Boot Failed. HP-UX HA Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Booting HP-UX Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Boot Failed. HP-UX Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
Booting LAN [MAC(D8D385F8A152,0x0)/IPv4(0.0.0.0)]
Performing a non-directed lanboot...
Boot Failed. LAN [MAC(D8D385F8A152,0x0)/IPv4(0.0.0.0)]
Searching for devices.
Copyright (c) 2000-2012 Broadcom Corporation
Broadcom NetXtreme II 10 Gig Ethernet EFI driver v5.2.60

Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
Booting UEFI Internal Shell
UEFI Shell version 2.30 [2.0]
Current running mode 1.1.2
map: Cannot find required map name.

Press ESC in 1 seconds to skip startup.nsh, any other key to continue.

Shell>

Shell> map -r
map: Cannot find required map name.

Then run  in shell> reconnect -r   and then got alternate disk  but failed with error

Shell> reconnect -r
Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
Dual Port Flex10 10GbE CB900s i2 Embedded CNIC is detected
ReconnectController(0,0,0) : Status = Success

Shell> map -r
Device mapping table
fs0 :HardDisk - Alias hd75bqpugfaevemqqk0b blk0
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
fs1 :HardDisk - Alias hd75bqpugfaevemqqk0d blk1
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)
fs2 :HardDisk - Alias hd75buglyoxujptuss0b blk2
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
fs3 :HardDisk - Alias hd75buglyoxujptuss0d blk3
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)
blk0 :HardDisk - Alias hd75bqpugfaevemqqk0b fs0
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
blk1 :HardDisk - Alias hd75bqpugfaevemqqk0d fs1
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)
blk2 :HardDisk - Alias hd75buglyoxujptuss0b fs2
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
blk3 :HardDisk - Alias hd75buglyoxujptuss0d fs3
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)
blk4 :HardDisk - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(2,GPT,C18DD3DE-0463-11EA-8000-D6217B60E588)
blk5 :HardDisk - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(2,GPT,C18DD3DE-0463-11EA-8000-D6217B60E588)
blk6 :BlockDevice - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)
blk7 :BlockDevice - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)
blk8 :BlockDevice - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF2585A5,0x1000000000000)
blk9 :BlockDevice - Alias (null)
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF2585A5,0x1000000000000)
hd75bqpugfaevemqqk0b :HardDisk - Alias fs0 blk0
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
hd75bqpugfaevemqqk0d :HardDisk - Alias fs1 blk1
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x227000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)
hd75buglyoxujptuss0b :HardDisk - Alias fs2 blk2
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(1,GPT,C18DD3D4-0463-11EA-8000-D6217B60E588)
hd75buglyoxujptuss0d :HardDisk - Alias fs3 blk3
PcieRoot(0x6B)/Pci(0x2,0x0)/Pci(0x0,0x1)/Fibre(0x257000C0FF257A8A,0x0)/HD(3,GPT,C18DD3E8-0463-11EA-8000-D6217B60E588)

Shell>


Booting HP-UX HA Alternate Boot: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0

(C) Copyright 1999-2012 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.047

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

loading failed

 

Finally run in HPUX> boot vmunix -lq

HPUX> boot vmunix -lq
> System Memory = 65337 MB
loading section 0
.......................................................................... (complete)
loading section 1
................. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
.....
loading MFSFILES directory (bootfs) to MFS
.....................................
Launching /stand/vmunix
SIZE: Text:37745K + Data:8498K + BSS:27197K = Total:73441K
Console is on Serial Device - via PCDP
Booting kernel...

Loaded ACPI revision 2.0 tables.
Warning: The setting of nproc to 65000 is higher than the supported maximum of 60000 for this version of HP-UX.
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class Physmem Lockmem Swapmem
-------------------------------------------------------------------------
System : 62145 MB 62145 MB 62145 MB
Kernel : 62145 MB 62145 MB 62145 MB
User : 58969 MB 52278 MB 52483 MB
-------------------------------------------------------------------------

ktracer is off until requested.
Warning: The value of nproc(65000) is larger than the available PID range

spinlock ALAT switching supported on this system
hint@priority related patching completed
0xe000000000e7d300 0xe000000000e7d310
NOTE: nm_devvp_lock not a power of 2 or is outside of allowed range: (3072)
NOTE: setting nm_devvp_lock to 4096
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init(): kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
Boot device's HP-UX HW path is: 35/0/2/2/0/0/1.0x227000c0ff257a8a.0x0
iexgbe12: INITIALIZING HP PCIe 2-p 10GbE Built-in at hardware path 0/0/0/0/0/0/0
iexgbe13: INITIALIZING HP PCIe 2-p 10GbE Built-in at hardware path 0/0/0/0/0/0/1
iexgbe14: INITIALIZING HP PCIe 2-p 10GbE Built-in at hardware path 1/0/0/0/0/0/0
iexgbe15: INITIALIZING HP PCIe 2-p 10GbE Built-in at hardware path 1/0/0/0/0/0/1
iether0: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 33/0/1/0/0/0/0/2/0/0/0
iether1: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 33/0/1/0/0/0/0/2/0/0/1
iether2: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 33/0/1/0/0/0/0/4/0/0/0
iether3: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 33/0/1/0/0/0/0/4/0/0/1
iether4: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 35/0/1/0/0/0/0/2/0/0/0
iether5: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 35/0/1/0/0/0/0/2/0/0/1
iether6: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 35/0/1/0/0/0/0/4/0/0/0
iether7: INITIALIZING HP AD339-60001 PCIe 1000Base-T 4-port 1000B-T Adapter at hardware path 35/0/1/0/0/0/0/4/0/0/1

System Console is on the Built-In Serial Interface
AF_INET socket/streams output daemon running, pid 239
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM : Failure in attaching PV (dev=0x1000005) to the root volume group.
The physical volume does not exist, or is not configured in the kernel
LVM: VG 64 0x000000: Quorum check failed!
LVM: QUORUM OVERRIDE: Picking the latest copy from the available configuration and status information.
LVM: Root VG activated
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 67108864
ERROR: dump device 64:0x2 cannot be used and will be ignored:
can't get the partition map for the device
ERROR: dump device 64:0x2 cannot be used and will be ignored:
can't get the partition map for the device
WARNING: No dump devices are configured. Dump is disabled.
Checking root file system.
file system is clean - log replay is not required
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
$Revision: vmunix: B.11.31_LR FLAVOR=perf
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 66905160 Kbytes, lockable: 49395728 Kbytes, available: 56268488 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1:file system is clean - log replay is not required
/sbin/krs_sysinit:
* The module 'rng' has been loaded.
* The module 'pciinfo' has been loaded.

insf: Installing special files for ipmi instance 0 address 3/250/1
insf: Installing special files for sctl instance 3 address 35/0/2/2/0/0/1.205.10.255.0.0.0
insf: Installing special files for sctl instance 2 address 35/0/2/2/0/0/1.229.2.255.10.0.0
insf: Installing special files for esctl instance 6 address 64000/0xfa00/0xe
insf: Installing special files for esctl instance 7 address 64000/0xfa00/0xf

/sbin/bcheckrc:
Checking for LVM volume groups and Activating (if any exist)
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/disk/disk4_p2":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Volume group "/dev/vg00" is already active on this system.
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t0d1":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Activated volume group.
Volume group "/dev/oravg" has been successfully changed.
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk4_p2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol1".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
Invalid argument
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol2".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol3".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol4".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol5".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol6".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol7".
vgsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol8".
vgsync: Couldn't resynchronize volume group "/dev/vg00".
Resynchronized volume group /dev/oravg
Checking vxfs file systems
UX:vxfs fsck: INFO: V-3-20913: /dev/vg00/lvol3:sanity check: root file system OK (mounted read/write)
UX:vxfs fsck: INFO: V-3-20915: /dev/vg00/lvol4:sanity check: /dev/vg00/lvol4 OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg00/lvol5:sanity check: /dev/vg00/lvol5 OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg00/lvol6:sanity check: /dev/vg00/lvol6 OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg00/lvol7:sanity check: /dev/vg00/lvol7 OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg00/lvol8:sanity check: /dev/vg00/lvol8 OK
UX:vxfs fsck: INFO: V-3-20915: /dev/oravg/oralv:sanity check: /dev/oravg/oralv OK

Cleaning /etc/ptmp...
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2006 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.

Confidential computer software. Valid license from HP required for
possession, use or copying. Consistent with FAR 12.211 and 12.212,
Commercial Computer Software, Computer Software Documentation, and
Technical Data for Commercial Items are licensed to the U.S. Government
under vendor's standard commercial license.


/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)


HP-UX Start-up in progress
__________________________

Configure system crash dumps ...................................... OK
Start Integrity VM Guest Tools .................................... OK
Removing old vxvm files ........................................... OK
Mount file systems ................................................ OK
Remounting Root File System ....................................... OK
Setting hostname .................................................. OK
Start containment subsystem configuration ......................... OK
Set privilege group ............................................... FAIL *
Display date ...................................................... N/A
Save system crash dump if needed .................................. N/A
Start evp ......................................................... OK
Enable auxiliary swap space ....................................... OK
Start syncer daemon ............................................... OK
Initializing livedump ............................................. N/A
Start Utmp Daemon : manages User Accounting Database .............. OK
Configuring SCSI Subsystem ........................................ OK
Configure Loopback interfaces (lo0) ............................... OK
Reconfiguring setboot event subscription .......................... OK
Starting Event Management (EVM) (phase 1) ......................... OK
Start Essential Services monitoring daemon ........................ OK
Continuing install jobs, configuring filesets ..................... OK
Configuring all unconfigured software filesets .................... OK
Configuring PFIL .................................................. N/A
-----------------------------

--------------------------------

* - An error has occurred !
* - Refer to the file /etc/rc.log for more information.

 

The system is ready.

GenericSysName [HP Release B.11.31] (see /etc/issue)
Console Login:

 

here mention that in /tmp/AUTOFILE  info is in correct format.

 

At last , present primary disk again  and reboot and then OS is booting normaly.

 

Finally mirror OS issue is still in progress.

 

 

 

 

Highlighted
Acclaimed Contributor

Re: How to mirror between two SAN disk in HP-UX 11.31

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

 

 

This means the OS loader was started (from UEFI area), but did not find the kernel.

This is set by the lvlnboot -b/-r ... commands you performed.

You either did a typo or there was any error / warning message that you did not capture.

I guess we have to repeat some of the steps.


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!   
Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi all,
What can I do now for solution ?
Please share full steps here for mirror if anyone have.
Otherwise we are failed here.

Highlighted
Advisor

Re: How to mirror between two SAN disk in HP-UX 11.31

Hi All,

Please share the process for solve my issue if you have ..

 

Waiting for prompt response from your end. ..

 

Hi Torsten,

if you have any total procedure , pls share which helpful for me.