Using MirrorDisk/UX to mirror vg00 on an HP-UX PA-RISC server

Where PRIMARY is the current OS disk and SECONDARY is the disk on which you want to create the mirror:


# pvcreate -B /dev/rdsk/SECONDARY
# vgextend /dev/vg00 /dev/dsk/SECONDARY
# mkboot /dev/rdsk/SECONDARY
# mkboot -a "hpux -lq" /dev/rdsk/SECONDARY
# mkboot -a "hpux -lq" /dev/rdsk/PRIMARY
# for i in `pvdisplay -v /dev/dsk/PRIMARY | grep 'current.*0000 $' | awk 'BEGIN{ ORS=" " }{ print $3 }'`; do lvextend -m 1 $i /dev/dsk/SECONDARY; done
# lifls /dev/rdsk/PRIMARY
# lifls /dev/rdsk/SECONDARY
# vgdisplay -v /dev/vg00
# setboot -a SECONDARY-HARDWARE-PATH

Advertisements

2 Responses to Using MirrorDisk/UX to mirror vg00 on an HP-UX PA-RISC server

  1. It’s very helpful for me, thanks
    But what differ using lvlnboot command not lifls?

    • kris says:

      lifls only displays the LIF information on the PV for verification purposes.

      lvlnboot makes an LV ready for a “special” use, such as swap, dump, root, or boot. Since we are only creating a mirror in this example, it’s expected that all of that is already done.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: