- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvlnboot error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 09:49 PM
11-26-2007 09:49 PM
Now when i am trying to make /stand as bootable using the below command
# lvlnboot -b /dev/vg00/lvol1
lvlnboot: Boot volume should be the first logical volume on the physical volume
Distributiion of physcial volumes is as follows
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol1 320 320
/dev/vg00/lvol3 320 320
/dev/vg00/lvol4 320 320
/dev/vg00/lvol5 480 480
/dev/vg00/lvol6 224 224
/dev/vg00/lvol7 640 640
/dev/vg00/lvol8 896 896
My server is ia64 hp server rx8640
I was able to successfuly do lvlnboot for root & swap.
Please let me know how I can do lvlnboot for /stand
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:00 PM
11-26-2007 10:00 PM
Re: lvlnboot error
The attachment contains the script I used for mirroring boot disk for itanium server. This could be useful to you and answer your question on lvlnboot.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:06 PM
11-26-2007 10:06 PM
Re: lvlnboot error
Have you created the boot area with the pvcreate -B option ?
The complete procedure is here, on page 634
http://docs.hp.com/en/B2355-90950/B2355-90950.pdf
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:07 PM
11-26-2007 10:07 PM
Re: lvlnboot error
Have a look at this appendix in following doc.
Page 26
Mirroring the Root Volume on Integrity Servers
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:08 PM
11-26-2007 10:08 PM
Re: lvlnboot error
while carrying out lvlnboot task. Make sure that you define them in following order.
(1) root_lv
(2) swap_lv
(3) dump_lv
(4) boot_lv
finally makeing use of lvlnboot -R to recover any missing links to all of logical volumes specified in BDRA area.
thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:21 PM
11-26-2007 10:21 PM
Re: lvlnboot error
First I created the partion file which looks as this
# it looks like this, but without the pound signs
#2
#EFI 100MB
#HPUX 100%
idisk -wf /tmp/partitionfile /dev/rdsk/c0t1d0
insf -e
pvcreate -B /dev/rdsk/c0t1d0s2
vgextend /dev/vg00 /dev/dsk/c0t1d0s2
mkboot /dev/rdsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t1d0s2
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1 - giving error
lvlnboot: Boot volume should be the first logical volume on the physical volume
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
bdf output is as follows
/dev/vg00/lvol3 10485760 314448 10091872 3% /
/dev/vg00/lvol1 10485760 271976 10134024 3% /stand
/dev/vg00/lvol8 29360128 493064 28641728 2% /var
/dev/vg00/lvol7 20971520 2911344 17919104 14% /usr
/dev/vg00/lvol6 7340032 21408 7261456 0% /tmp
/dev/vg00/lvol5 15728640 3114472 12515688 20% /opt
/dev/vg00/lvol4 10485760 21672 10382408 0% /home
I am not able to run lvlnboot -b for the stand file system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 10:29 PM
11-26-2007 10:29 PM
Re: lvlnboot error
the problem could be with the mirrored volume of /stand.
The mirror copy of /stand might have different pv to LE mapping.
Reboot the system and continue with lvlnboot command list.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:22 PM
11-26-2007 11:22 PM
Re: lvlnboot error
Can you please give me the commands how to remove the second disk from the vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:34 PM
11-26-2007 11:34 PM
Re: lvlnboot error
Your problem is clearly due to the order in which you did the mirror copies. The proper order should be /stand, swap, / . You have done / then /stand and you missed swap
I do suggest that you remove mirror copies for each logical volume in vg00 (lvreduce -m 0 /dev/vg00/lvolX)
With pvdisplay, make sure there is no PV allocated from /dev/dsk/c0t1d0s2
Then issue mkboot with option -e to have EFI partition populated (mkboot -e -l /dev/rdsk/c0t1d0s2)
Do mirror again in the followig sequence :
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0s2
then any order for logical volumes from 4 to 8
You sould have no more trouble with lvlnboot
Hope this will help
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:42 PM
11-26-2007 11:42 PM
Re: lvlnboot error
The attached mirroring script do works for me. If you are happy with that I will post it in favourite scripts.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 12:32 AM
11-27-2007 12:32 AM
Re: lvlnboot error
i see an other problem in your procedure (but it has no direct impact on your lvlnboot error). You said :
________________________________________________
# it looks like this, but without the pound signs
#2
#EFI 100MB
#HPUX 100%
idisk -wf /tmp/partitionfile /dev/rdsk/c0t1d0
________________________________________________
I guess EFI partition will be a beat short in the future, and you miss HP partition (not very useful for the moment, but ...)
Here are the recommended values you should use in your "partitionfile" :
3
EFI 500MB
HPUX 100%
HPSP 400MB
EOF
So you are right, do it again from scratch. Just stop the procedure i gave above before mkboot. Add "vgreduce vg00 /dev/rdsk/c0t1d0s2" after pvdisplay.
Then do mirror again as you did it first. Simply don't forget to modify partitionfile, do mkboot with "-e" option and take care of the order in which you will mirror logical volumes : lvol1, lvol2 and lvol3.
You can add the following task at the end :
- populate AUTO file :
echo "boot vmunix -lq" >/tmp/foo
efi_cp -d /dev/rdsk/c0t1d0s2 /tmp/foo /EFI/HPUX/AUTO
(Note : boot vmunix could done without "-lq" option, it depends on your feeling)
- Add alternate boot path to EFI menu
setboot -h
(Note : you can get hardware path with lssf /dev/dsk/c0t1d0)
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:15 AM
11-27-2007 01:15 AM
Re: lvlnboot error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:15 AM
11-27-2007 01:15 AM
Re: lvlnboot error
But I am getting error for
efi_cp -d /dev/rdsk/c2t6d0s2 /tmp/foo /EFI/HPUX/AUTO
efi_cp: invalid efi device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:18 AM
11-27-2007 01:18 AM
Re: lvlnboot error
efi_cp -d /dev/rdsk/c2t6d0s2 /tmp/foo /EFI/HPUX/AUTO
efi_cp: invalid efi device
==> Shouldn't it be c0t1d0s2 ? Why do U use c2t6d0s2 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:22 AM
11-27-2007 01:22 AM
Re: lvlnboot error
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3
disk 1 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-5170A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
/dev/dsk/c2t6d0s1 /dev/rdsk/c2t6d0s1
/dev/dsk/c2t6d0s2 /dev/rdsk/c2t6d0s2
/dev/dsk/c0t6d0 is the primary disk.
Seconday disk that I am adding for OS mirroring is /dev/dsk/c2t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:24 AM
11-27-2007 01:24 AM
Re: lvlnboot error
It should be c0t1d0s1 : partition 1 where EFI is. s2 is partition 2 for HP-UX
Sorry ;-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:27 AM
11-27-2007 01:27 AM
Re: lvlnboot error
Primary disk is /dev/dsk/c0t6d0s2
Secondary disk is /dev/dsk/c2t6d0s2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:34 AM
11-27-2007 01:34 AM
Re: lvlnboot error
So, for efi_cp, you should use /dev/rdsk/c0t6d0s1 and /dev/rdsk/c2t6d0s1
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:37 AM
11-27-2007 01:37 AM
Re: lvlnboot error
Your commands:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t1d0s2
But you need to mirror this order:
lvol1, lvol2, lvol3 , ...
Where is the mirror of lvol2???
You need to have it!
BTW, you should create 3 partitions like this:
# cat <
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
Revert your steps 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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:37 AM
11-27-2007 01:37 AM
Re: lvlnboot error
Your commands:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t1d0s2
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t1d0s2
But you need to mirror this order:
lvol1, lvol2, lvol3 , ...
Where is the mirror of lvol2???
You need to have it!
BTW, you should create 3 partitions like this:
# cat <
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
Revert your steps 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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:44 AM
11-27-2007 01:44 AM
Re: lvlnboot error
You seldom use the steps given in the script and want to continue living with the problem. If thats the way you like it, go ahead and enjoy.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:54 AM
11-27-2007 01:54 AM
Re: lvlnboot error
I use a very similar script, but I use the line
pvcreate -B -f /dev/rdsk/${MIRROR_DEV}s2
without the "-f" option, because I think it could be dangerous if you specify the wrong device file.
And BTW, call it
script to create a mirror of the boot disk on an Itanium System ==>> running 11.23,
because it works a bit different on 11.31.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 02:09 AM
11-27-2007 02:09 AM
Re: lvlnboot error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 11:29 PM
11-28-2007 11:29 PM
Re: lvlnboot error
This is in reply to Eric's answers
I would like to know why the below command boot vmunix is required.
The efi_cp coomand didnt work for one of my servers. But i was able to setboot the alternate path.
So if I want to boot the server using the alternate path will the server boot up. I just had this doublt since the efi_cp command didnt work for that disk. And do I need to do the efi_cp for both the disks or only for the second disk.
echo "boot vmunix -lq" >/tmp/foo
efi_cp -d /dev/rdsk/c0t1d0s2 /tmp/foo /EFI/HPUX/AUTO
(Note : boot vmunix could done without "-lq" option, it depends on your feeling)
- Add alternate boot path to EFI menu
setboot -h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 11:35 PM
11-28-2007 11:35 PM
Re: lvlnboot error
efi_cp -d /dev/rdsk/c0t1d0s2 /tmp/foo /EFI/HPUX/AUTO
come closer:
c0t1d0s2 ===> s2
s2 is the HP-UX partition on that disk, but you need to write to partition "s1" (EFI is there).
efi_cp -d /dev/rdsk/c0t1d0s1 /tmp/foo /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!
