1832277 Members
1927 Online
110041 Solutions
New Discussion

Mirror

 
Marco_163
Advisor

Mirror

I still learn how to configure and unconfigure mirror in HP-UX 11.11.
After last mirror configuration, during boot from alternate disk a received message:

Boot
:Exec format failed:
Exec format error

ISL>


I guess I made mistake during unconfiguration mirror, because I only use lvreduce command.
Than I had reduced the mirror by
lvreduce and vgreduce and next configured mirror again with no erorror.
But now, I can boot system from primary disk.
Lvlnboot and lvdisplay command show mw that mirrot is configured but something went wrong because I coudn't boot system from the altenate disk.
What I should to do to solve the problem?

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
/dev/dsk/c3t15d0 (0/0/2/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Swap: lvol2 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Dump: lvol2 on: /dev/dsk/c1t15d0, 0


# lvdisplay /dev/vg00/lvol1 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol2 | grep Mirror
Mirror copies
# lvdisplay /dev/vg00/lvol3 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol4 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol5 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol6 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol7 | grep Mirror
Mirror copies 1
# lvdisplay /dev/vg00/lvol8 | grep Mirror
Mirror copies 1
Marek
5 REPLIES 5
Sunil Sharma_1
Honored Contributor

Re: Mirror

Have you done
pvcreate -B and
mkboot

see more information on man mkboot and man pvcreate


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Shaikh Imran
Honored Contributor

Re: Mirror

Hi,
I think you forgot
#lvlnboot -R
i.e. now your other disk is mirrored but
it's not a proper boot disk.
Compare :
#lifls /dev/rdsk/c1t15d0
#lifls /dev/rdsk/c3t15d0

And at last try mirroring according to this
doc:

Regards,

I'll sleep when i am dead.
Bernhard Mueller
Honored Contributor

Re: Mirror

Marco,

you definitely forgot to run mkboot after the pvcreate -B command.

lifls /dev/rdsk/xyz would have told you "not a LIF volume"

instead it should list:
ISL AUTO HPUX PAD LABEL

Regards,
Bernhard
Victor Fridyev
Honored Contributor

Re: Mirror

Hi,

Try to use the attched script. You can see all needed operations. Also you can remove thre additional disk from vg00 and run the script.
HTH
Entities are not to be multiplied beyond necessity - RTFM
Geoff Wild
Honored Contributor

Re: Mirror

Here's what I follow to mirror root - you will have to start over - remove the mirrors for all the lv's in vg00...

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



Rgds...Geoff
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.