1833776 Members
2446 Online
110063 Solutions
New Discussion

lvlnboot error

 
SOLVED
Go to solution
mjos
Super Advisor

lvlnboot error

Hi, I am trying to mirrior the OS. I sucesffuly extended the mirrorring for the vg00.
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
27 REPLIES 27
Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

hi mjos,

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
Mike Shilladay
Esteemed Contributor

Re: lvlnboot error

Hi,

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.
Robert-Jan Goossens
Honored Contributor

Re: lvlnboot error

Hi,

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
Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

Hi mjos,

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
mjos
Super Advisor

Re: lvlnboot error

Hi, I already create the disk using the B option. Below are the steps that i did

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.
Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

Hi,

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
mjos
Super Advisor

Re: lvlnboot error

I tried after rebooting but didnt work. How about I do the OS mirroring once again. Can you tell me now how do i remove the mirroring & start from scratch. The second disk is already a part og vg00 now.
Can you please give me the commands how to remove the second disk from the vg00
Eric SAUBIGNAC
Honored Contributor

Re: lvlnboot error

Hi

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

Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

Hi,

The attached mirroring script do works for me. If you are happy with that I will post it in favourite scripts.

Thanks,
Srikanth
Eric SAUBIGNAC
Honored Contributor

Re: lvlnboot error

mjos,

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
Eric SAUBIGNAC
Honored Contributor

Re: lvlnboot error

Oups, delete word EOF in partitionfile : bad copy/paste ;-(
mjos
Super Advisor

Re: lvlnboot error

Thanks Eric, I was able to do the lvlnboot after i extened in the proper order.
But I am getting error for
efi_cp -d /dev/rdsk/c2t6d0s2 /tmp/foo /EFI/HPUX/AUTO

efi_cp: invalid efi device
Eric SAUBIGNAC
Honored Contributor

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

==> Shouldn't it be c0t1d0s2 ? Why do U use c2t6d0s2 ?
mjos
Super Advisor

Re: lvlnboot error

# ioscan -funC disk
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
Eric SAUBIGNAC
Honored Contributor

Re: lvlnboot error

Oups again ... grrrrr !

It should be c0t1d0s1 : partition 1 where EFI is. s2 is partition 2 for HP-UX

Sorry ;-(
mjos
Super Advisor

Re: lvlnboot error

I dont see any c0t1d0s1
Primary disk is /dev/dsk/c0t6d0s2
Secondary disk is /dev/dsk/c2t6d0s2
Eric SAUBIGNAC
Honored Contributor

Re: lvlnboot error

When i wrote my "Oups again" i had not seen your latest answer. So "c0t1d0s1" is just for example, has you did when you have described your procedure.

So, for efi_cp, you should use /dev/rdsk/c0t6d0s1 and /dev/rdsk/c2t6d0s1

Eric
Torsten.
Acclaimed Contributor

Re: lvlnboot error

The problem is the mirroring order.
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 </tmp/partitionfile
> 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!   
Torsten.
Acclaimed Contributor

Re: lvlnboot error

The problem is the mirroring order.
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 </tmp/partitionfile
> 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!   
Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

Hi,

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

Re: lvlnboot error

@Srikanth:

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!   
Srikanth Arunachalam
Trusted Contributor

Re: lvlnboot error

Thanks Torsten.
mjos
Super Advisor

Re: lvlnboot error

Thanks guys for the replies.
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
Torsten.
Acclaimed Contributor

Re: lvlnboot error

Here is the mistake:

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!