1845909 Members
4040 Online
110250 Solutions
New Discussion

Re: Primary boot path

 
SOLVED
Go to solution
Raj D.
Honored Contributor

Re: Primary boot path

David,

1. Remove /dev/dsk/c0t6d0 from vg00, and you have to start from the scratch,.
# vgreduce vg00 /dev/dsk/c0t6d0

2. Check disk6 with ioscan: that it is correct.
also check # ioscan -m dsf



-I understand disk6 is the target disk you want to mirror with disk9 (source boot disk).

3. use # idisk -R /dev/rdisk/disk6 to remove exixting partition on disk6 , & to start from scratch.

4. Do not use the script , but execute the commands one by one from begining. Follow the document page81,


Raj.

" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

I have done it as follows


3
EFI 500MB
HPUX 100%
HPSP 400MB
idisk -f /tmp/idf -w /dev/rdisk/disk6
idisk /dev/rdisk/disk6
insf -e -H 1/0/0/3/0.6x1.0x0
pvcreate -B /dev/rdisk/disk6_p2
vgextend vg00 /dev/disk/disk6_p2
mkboot -e -l /dev/rdisk/disk6
mkboot -a "hpux" /dev/rdisk/disk6
lvextend -s .m 1 /dev/vg00/lvol1 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol2 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol3 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol4 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol5 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol6 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol7 /dev/disk/disk6_p2
lvextend -s .m 1 /dev/vg00/lvol8 /dev/disk/disk6_p2
lvsync -T /dev/vg00/lvol*
lvlnboot -R /dev/vg00
lvlnboot -v
setboot -a 1/0/0/3/0.6.0

idisk version: 1.44
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
insf: Invalid hardware path -- 1/0/0/3/0.6x1.0x0
usage: insf [-d driver | -C class] [-H hw_path] [-I instance] [-D dir] [-q|-v]
[-e] [-n npty] [-s nstrpty]
usage: insf [-v] -L
pvcreate: Couldn't open physical volume "/dev/rdisk/disk6_p2":
I/O error
vgextend: Couldn't open physical volume "/dev/disk/disk6_p2":
I/O error
You must first run idisk to create EFI and HP-UX partitions.
-a specified but no current boot area on /dev/rdisk/disk6
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"s": Illegal option.
lvsync: Command failed, MirrorDisk/UX should be installed.
lvlnboot: Warning: Swap device not usable. Next boot will have no swap.
lvlnboot: Operation on volume group "/dev/vg00 could not completely
succeed, as the physical volume "/dev/disk/disk9_p2" is in-accessible.
vgcfgbackup: Could not open Physical Volume "/dev/rdisk/disk9_p2".
All PVs must be present to backup Volume Group configuration.
I/O error
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk9_p2
/dev/dsk/c0t6d0 -- Boot Disk
Root: lvol3 on: No Swap Logical Volume configured
Dump: lvol2 on: /dev/disk/disk9_p2, 0

setboot: error accessing boot path - Invalid argument
setboot: Check if boot path is to a valid boot device
#


now I execute it....


David Willams
Super Advisor

Re: Primary boot path

# vgreduce vg00 /dev/dsk/c0t6d0
Volume group "vg00" has been successfully reduced.
vgcfgbackup: Could not open Physical Volume "/dev/rdisk/disk9_p2".
All PVs must be present to backup Volume Group configuration.
I/O error
# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk6 /dev/rdsk/c0t6d0
/dev/rdisk/disk6_p1 /dev/rdsk/c0t6d0s1
/dev/rdisk/disk6_p2 /dev/rdsk/c0t6d0s2
/dev/rdisk/disk6_p3 /dev/rdsk/c0t6d0s3
/dev/rdisk/disk7 /dev/rdsk/c1t2d0
/dev/rdisk/disk8 /dev/rdsk/c3t6d0
/dev/rdisk/disk9 /dev/rdsk/c4t8d0
/dev/rdisk/disk9_p1 /dev/rdsk/c4t8d0s1
/dev/rdisk/disk9_p2 /dev/rdsk/c4t8d0s2
/dev/rdisk/disk9_p3 /dev/rdsk/c4t8d0s3
/dev/rdisk/disk10 /dev/rdsk/c4t10d0
/dev/rdisk/disk11 /dev/rdsk/c6t1d0

# idisk -R /dev/rdisk/disk6
idisk version: 1.44
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? y
User Aborting!



Raj D.
Honored Contributor

Re: Primary boot path

So that means first idisk command to disk6 is failing.

1. - check the partition file contains are correct, make sure 4 lines in there are correct. You can remove the file and create it manually.

3
EFI 500MB
HPUX 100%
HPSP 400MB



2. To do :
# idisk -R /dev/rdisk/disk6 #( where disk6 is the target disk )

Then follow the steps again,


Thanks,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

Raj,

My issue is that when I install the OS 11.31 it got installed in one external drive...

Selected boot option: HP-UX Primary Boot: 1/0/2/1/0.0x8.0x0

Loading.: HP-UX Primary Boot: 1/0/2/1/0.0x8.0x0

Executing Image: "\EFI\HPUX\HPUX.EFI"
Optional Data : NONE

Starting: HP-UX Primary Boot: 1/0/2/1/0.0x8.0x0

Now I want this to be on an Internal drive..

how to do this.... what are the requirements my on 11.31 servers... any special packages should be there or what...


will the below script work


3
EFI 500MB
HPUX 100%
HPSP 400MB
idisk -f /tmp/idf -w /dev/rdisk/disk6
idisk /dev/rdisk/disk6
insf -e -H 1/0/0/3/0.6x1.0x0 -----> IS this correct (now the primary boot path is 1/0/2/1/0.8.0 )
pvcreate -B /dev/rdisk/disk6
vgextend vg00 /dev/disk/disk6
mkboot -e -l /dev/rdisk/disk6
mkboot -a "hpux" /dev/rdisk/disk6
lvlnboot -R /dev/vg00
lvlnboot -v
setboot â a 1/0/0/3/0.6x1.0x0
lvextend -s â m 1 /dev/vg00/lvol1 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol2 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol3 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol4 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol5 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol6 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol7 /dev/disk/disk6_p2
lvextend -s â m 1 /dev/vg00/lvol8 /dev/disk/disk6_p2
lvsync -T /dev/vg00/lvol*

David Willams
Super Advisor

Re: Primary boot path

Could someone help me on this pplease
Raj D.
Honored Contributor

Re: Primary boot path

David,
You have to mirror the existing os (External drive , as you mentioned) , to an internal drive , ( as you mentioned disk6).

After mirroring , change the boot path , change primary boot path to the internal disk using setboot -p /dev/rdisk/disk6 & reboot and verify.

- Just wondering what is the output of the current boot disk , for ioscan -fnC disk & for diskinfo. Hope you are sure it is on external disk. Is it from XP or EMC..

Mirroring process outlined in Page,81 in the doc. I am travelling and with limited internet availability. :)

For any other problem please open a new thread as the subject doesn't match with the content issue.

Hope this helps,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

Raj,

# vgextend vg00 /dev/disk/disk6_p2
Couldn't open physical volume "/dev/rdisk/disk9_p2":
Verification of unique LVM disk id on each disk in the volume group
vg00 failed.
#
David Willams
Super Advisor

Re: Primary boot path

thanks
melvyn burnard
Honored Contributor

Re: Primary boot path

From this and your other threads, it appears that you really should do a couple of things.
First, read the manuals, everything you have tried to do is documented there.
Second, try taking an HP-UX Sysadmin and the LVM courses, they will alos help you.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!