1833875 Members
1832 Online
110063 Solutions
New Discussion

Mirrored Disks

 
SOLVED
Go to solution
Rich Rossini
Occasional Contributor

Mirrored Disks

Everyone,
Hi, I have a mirrored pair of disks. Path 10/0.5.0 and 10/0.6.0 scsi 6 being primary. I can't seem to boot from scsi 5. Is ther a command to tell if it is a boot disk? Any ideas on what else could be wrong?
8 REPLIES 8
Thierry Poels_1
Honored Contributor

Re: Mirrored Disks

hi,

lvlnboot -v
should show you the boot disks

(remember mirroring all lvols is not sufficient to have a bootable disk. You also need "pvcreate -B" and "mkboot")

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
James A. Donovan
Honored Contributor

Re: Mirrored Disks

# lvlnboot -v

will show all your boot disks.

Did you crete the disk using the -B option of pvcreate? If not, you'll need to start again.

To make the scsi 5 disk bootable, you should

(# pvcreate -B /dev/dsk/cXtYdZ)
(# vgextend vg00 /dev/dsk/cXtYdZ)
# mkboot /dev/dsk/cXtYdZ
# mkboot -a "hpux -lq" /dev/dsk/cXtYdZ
# lvlnboot -Rv



Remember, wherever you go, there you are...
Marvin Strong
Honored Contributor

Re: Mirrored Disks



lvlnboot -v

should show you what you are looking for.
If I understand your question correctly.
Patrick Wallek
Honored Contributor

Re: Mirrored Disks

You can try doing a 'lifls' command on the disk to see if there is a LIF area on the disk. If there isn't one, then it will not be bootable.

# lifls /dev/dsk/c?t5d0

Check your 'lvlnboot -v' output as well. As others have said I would suspect that the disk was not created with the '-B' option to pvcreate.
Patrick Wallek
Honored Contributor

Re: Mirrored Disks

Another thought I just had is checking the boot string defined when booting from the disk.

# lifcp /dev/dsk/c?t5d0:AUTO -

You should get output like "hpux" or "hpux -lq". If you don't get anything or the command errors, then that could be a problem as well.
Victor Fridyev
Honored Contributor
Solution

Re: Mirrored Disks

#To mirror the root file system, you must first add a bootable LVM disk:
#
# 1. Create a physical volume using pvcreate with the -B option.
#
# pvcreate -B /dev/rdsk/c0t3d0
# 2. Add the physical volume to your existing root volume group with
# vgextend:
#
# vgextend /dev/vg00 /dev/dsk/c0t3d0
# 3. Use mkboot(1M) to place boot utilities in the boot area:
#
# mkboot /dev/rdsk/c0t3d0
# 4. Use mkboot -a to add an AUTO file in boot LIF area:
#
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t3d0
#
# 5. Mirror the root logical volume to the above disk:
#
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t3d0
# 6. Mirror the primary swap logical volume:
#
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t3d0
#
# 7. Mirror /usr /tmp /var /opt ...
#
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t3d0
# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t3d0

lvlnboot -v

Once you have created mirror copies of the root logical volume and the
primary swap logical volume, should either of the disks fail, the system
Additions: lvlnboot -r lvol1 /dev/vg00
lvlnboot -s lvol2 /dev/vg00
lvlnboot -R
can use the copy of root or of primary swap on the other disk and
continue. When the failed disk comes back online, it will be
automatically recovered, provided the system has not been rebooted.
Entities are not to be multiplied beyond necessity - RTFM
Trond Haugen
Honored Contributor

Re: Mirrored Disks

Mirroring logical volumes is stright forward but when it comes to vg00 things must be done right in order to be able to boot.
As described in other posts creating the boot-header on the 2nd disk is part of the "trick". another is creating the mirrors in sequence (lvol1, 2, 3, etc).
Also remember to turn off â mirror consistency recoveryâ and â Mirror Write Cacheâ for swap (lvol2). This has to be done while booted in maintanance mode with â lvchange -M n -c n /dev/vg00/lvol2â and a r
Regards,
Trond Haugen
LinkedIn
Lorenzo Facello
Valued Contributor

Re: Mirrored Disks

take a look to this document.
Surely can helps you.
Regds
L