Operating System - HP-UX
1834926 Members
2403 Online
110071 Solutions
New Discussion

Re: Not able to boot from another boot disk.

 
Richard_243
New Member

Not able to boot from another boot disk.

I have one disk which is internal disk located at /dev/rdsk/c0t6d0 from where i am able to boot.
I have another disk which is extrenal and i have made it alternate boot disk via following procedure

1) pvcreate -B /dev/rdsk/Cxtxdx

2) mkboot /dev/rdsk/Cxtxdx

3)mkdir /dev/vglvmroot

4)mknod /dev/vglvmroot/group c 64 0x020000

5)vgcreate /dev/vglvmroot /dev/dsk/Cxtxdx

6)vgscan


7)lvcreate -L 120 -n boot -C y -r n /dev/vglvmroot

8)lvcreate -L 120 -n root -C y -r n /dev/vglvmroot


9)lvcreate -L 64 -n swap -C y /dev/vglvmroot

10)lvcreate -L 64 -n dump -C y /dev/vglvmroot


l110vlnboot -r /dev/vglvmroot/root

12) lvlnboot -s /dev/vglvmroot/swap




13) lvchange -r n /dev/vglvmroot/dump
14) lvlnboot -v /dev/vglvmroot

aftre doing this i change the setboot path to the extrenal disk and tried to reboot it .It stopps near ISL>
what could be the problem.
It is ot getting /stand/vmunix kernel to boot.

Aftre that i tried this following option too
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/cXtXdX
But still does not boot from extrenal disk.
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: Not able to boot from another boot disk.

Unless I'm missing something, you created the logical volumes but you never did a newfs or did anything to actually get data into the LV.

How is the machine supposed to boot if there is nothing for it to boot from.

Do you have Mirror Disk installed? If so there is a much better way to make a second boot disk. If you don't have Mirror Disk, there is a procedure you can use to create another boot disk.

Have a look at this thread for a complete procedure to create a copy of your boot disk via dd.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=236549
Geoff Wild
Honored Contributor

Re: Not able to boot from another boot disk.

When you issue:

/usr/sbin/lvlnboot -v

You should see 2 "Boot Disks" - if not then you only have 1:

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c28t5d0 (0/0/0/3/0.5.0) -- Boot Disk
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0


How to mirror the root disk

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00

Then lvextend for all other lvols:

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sridhar Bhaskarla
Honored Contributor

Re: Not able to boot from another boot disk.

Richard,

I go with Patrick here. You just created logical volumes without any filesystems to actually copy the data. Obviously it won't find /stand/vmunix as it is not there.

The procedure you noted down won't work. You will need to modify it to include other logical volumes such as /usr, /var etc.,. Also, you will need to either copy the data or do a dd from the existing logical volumes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Kent Ostby
Honored Contributor

Re: Not able to boot from another boot disk.

Are you making a copy of your current boot disk ?

If so follow the example above that has you doing lvextends etc.

If you want a seperate OS boot disk, then just install the OS onto that disk and make it bootable that way.

As noted by others, you have not copied any data over so there is nothing for the system to use to boot up on.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
KapilRaj
Honored Contributor

Re: Not able to boot from another boot disk.

Your procedure needs a change

create boot,swap and then root u should be alright u need not have a seperate dump u may use the swap as dump

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: Not able to boot from another boot disk.

I missed it ,u need to copy every thing from current disk to the new to boot !

Kaps
Nothing is impossible
Naveej.K.A
Honored Contributor

Re: Not able to boot from another boot disk.

hi,

did you miss this one

mkboot -l /dev/rdsk/c0t5d0

and you lvlnboot info is conrrect..

with best wishes
Naveej
practice makes a man perfect!!!
Kyri Pilavakis
Frequent Advisor

Re: Not able to boot from another boot disk.

I ahve a simple procedure to create a mirrored boot disk. Please see attached file.
Hope it helps..
Bosses don't undestand..HP does