Operating System - HP-UX
1834018 Members
2081 Online
110063 Solutions
New Discussion

Re: mirror boot disk problem

 
SOLVED
Go to solution
Neil Harris
Regular Advisor

mirror boot disk problem

Hi after mirroring vg00 lvlnboot -v returns this.

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (8/16/5.6.0) -- Boot Disk
/dev/dsk/c0t5d0 (8/16/5.5.0)
/dev/dsk/c3t6d0 (8/4.6.0) -- Boot Disk
No Boot Logical Volume Configured
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

I am concerend about what "No Boot Logical Volume Configured" and does it need fixing if so how ?


An inveterate hacker
8 REPLIES 8
Paula J Frazer-Campbell
Honored Contributor

Re: mirror boot disk problem

Hi

Your mirror root disk is not bootable and need to be made so:_

Mirroring the root disk with LVM
To mirror an existing root volume:
1. pvcreate -B /dev/rdsk/device (-B creates BDRA area)
2. vgextend /dev/vg00 /dev/dsk/device
3. mkboot /dev/rdsk/device (put boot utilities into boot area)
4. mkboot -a "hpux boot arguements here" /dev/rdsk/device
5. lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/device
6. lvextend -m 1 /dev/vg00/swaplv /dev/dsk//device
7. repeat lvextend in sequence for all root logical volumes
8. lvlnboot -v ( to update the boot information with the new disk)



HTH

Paula
If you can spell SysAdmin then you is one - anon
Stefan Saliba
Trusted Contributor

Re: mirror boot disk problem

Try using lvlnboot -R command. What I find suspicious is that lvol1 is not mentioned.

You seem to have 3 disks in vg00 one of which is not a boot disk (c0t5d0).

Try this command and reply with what happens


Stefan
Neil Harris
Regular Advisor

Re: mirror boot disk problem

Hi Paula,

Thanks for this, being a lazy devil, I used A Voss's script to do this and all that you suggest is done by the script. All the Lvols including lvol1 are mirrored.

Neil

An inveterate hacker
Neil Harris
Regular Advisor

Re: mirror boot disk problem

Hi Stefan,

I have done that and the output from lvlnboot -v remains the same.

The mirror layout is for clarification 2 internal 4Gb' and one external 9Gb. the two for mirrored to the 9 and the 9 bootable.

Neil
An inveterate hacker
Stefan Saliba
Trusted Contributor

Re: mirror boot disk problem

Did you try lvlnboot -R ?

What was the outcome ?

Word of suggestion. Avoid using scripts, better do them one step at a time and be sure you know what you are doing.

Scripts and SAM can sometime mess things up.


Stefan



Neil Harris
Regular Advisor

Re: mirror boot disk problem

Hi Stefan,

I did the lvlnboot -R and the outcome was that the configuration was saved as expected. I still though do still get that origional output from lvlnboot -v

Neil
An inveterate hacker
Paula J Frazer-Campbell
Honored Contributor

Re: mirror boot disk problem

Neil

Youa have three disks listed for vg00:-

/dev/dsk/c0t6d0 (8/16/5.6.0) -- Boot Disk
/dev/dsk/c0t5d0 (8/16/5.5.0)
/dev/dsk/c3t6d0 (8/4.6.0) -- Boot Disk

Two are flagged as boot disks?

can you give more info on the three disks in your vg00 -sizes etc?

Paula
If you can spell SysAdmin then you is one - anon
Ceesjan van Hattum
Esteemed Contributor
Solution

Re: mirror boot disk problem

Hi friends,

You forgot to set the boot,root,swap and dump areas.
(use lvlnboot -r/-b/-s/-d)
The script as shown did it all for my c1t1d0 disk.
Regards,
Ceesjan

#!/bin/sh

echo "Get mirrordisk out of VG"
vgreduce /dev/vg00 /dev/dsk/c1t1d0

echo "Make a reservation for bootspace"
pvcreate -B /dev/rdsk/c1t1d0

echo "Re-enter the disk in VG"
vgextend /dev/vg00 /dev/dsk/c1t1d0

echo "vgcfgrestore"
vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t1d0

echo "vgchange"
vgchange -a y /dev/vg00

echo "vgsync"
vgsync /dev/vg00

echo "update and install bootbprograms using mkboot -l (lvm)"
mkboot -l /dev/dsk/c1t1d0

echo "set areas (root,boot,swap,dump) lvlnboots"
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
echo "recover missing links"
lvlnboot -R

echo "Start mirroring logical volumes"
for i in 1 2 3 4 5 6 7 8
do
echo "lvextend lvol$i"
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/c1t1d0
done

echo "Results:"
lvlnboot -v

echo "the end"