Operating System - HP-UX
1833769 Members
2322 Online
110063 Solutions
New Discussion

Re: MirrorDisk/UX install, Config.

 
SOLVED
Go to solution
John Love_3
Regular Advisor

MirrorDisk/UX install, Config.

I've installed the MirrorDisk/UX product, but I'm not sure how to enable mirroring of my primary drive with second onboard drive.
The system is an N-Class with 2 18GB onboard drives.

Thanks!

John
8 REPLIES 8
Rainer von Bongartz
Honored Contributor

Re: MirrorDisk/UX install, Config.


you use lvextend to create a mirror
man lvextend gives you the information

i.e.

Mirror a logical volume onto a particular physical volume.

lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t3d0
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
James R. Ferguson
Acclaimed Contributor
Solution

Re: MirrorDisk/UX install, Config.

Hi John:

Here's what you need to do:

# pvcreate -B /dev/rdsk/cXtYdZ
# vgextend /dev/vg00 /dev/dsk/cXtYdZ
# mkboot /de/rdsk/cXtYdZ
# mkboot -a "hpux -lq" /stand/vmunix" /dev/rdsk/cXtYdZ
# for N in 1 2 3 4 5 6 7 8
> do
> lvextend -m 1 /dev/vg00/lvol${N} /dev/dsk/cXtYdZ
> done
# lvlnboot -v

Note that some commands use the raw device and some use the block device.

The 'lq' option of 'mkboot' sets the low quorum so that if one of two disks is inoperative you will still boot.

It is very important that at least the first three logical volumes be mirrored in sequence as the first. I always mirror all of them exactly "in sequence".

Substitute your mirror for "cXtYdZ" appropriately.

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: MirrorDisk/UX install, Config.

To mirror your boot disk do as James suggests,

MirrorDisk/UX should be called MirrorLvol/UX.
It is up to you to decide what to mirror.

MirrorDisk modifies the following lvmcommands:
lvcreate -m
lvextend -m

It introduces the following:
lvsplit
lvmerge

After creating the mirror, you can split it, get a device file for the split copy. Mount that split copy and backup. Then lvmerge to resynchronise the mirror. (be carefull of merge back syntax!)

Other thing interesting are with pvgs Physical Volume Groups (see vgcreate -p) You can create RAID 1/0 with LVM/Mirrordisk using an lvcreate -D y

In anycase, mirroring a boot disk is the most common usage, remember though that if you rescue with ignite, ignite will be just interested in getting the system back up (recovery) you must recreate your mirrors after an ignite restore... this'd be a disaster situation though. For simple mirrordisk just make sure you can boot up overriding lvm quorum hpux -lq as the auto flag...


Later,
Bill
It works for me (tm)
Ravi_8
Honored Contributor

Re: MirrorDisk/UX install, Config.

JRF
thanx a lot for the info, i was suppose to do mirroring and was searching for doc's. 10 points from side. can you send the link for more information.

ravi
never give up
James R. Ferguson
Acclaimed Contributor

Re: MirrorDisk/UX install, Config.

Hi Ravi:

One of the best guides to general LVM tasks is the "HP-UX System Administration Tasks" manual. Interestingly, it appears under the 10.x documents only, or at least I can't find a parallel one elsewhere. With my regards, here it is, Jim.

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html

...JRF...
melvyn burnard
Honored Contributor

Re: MirrorDisk/UX install, Config.

go to:
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html and read the section:
Managing File Systems

In there is the following sub-section:
Mirroring Root, Boot, and Primary Swap Logical Volumes

explains it all for you.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: MirrorDisk/UX install, Config.

Hi Melvyn:

Why thank you! I had wondered where the Administration Tasks had evolved. Now I know. With my regards to you too, Jim.

...JRF...
John Love_3
Regular Advisor

Re: MirrorDisk/UX install, Config.

James, et al.

Worked like a charm. The volume had at one time been part of another VG, so I had to use the -f option on my pvcreate, but after that it was somooth sailing.

Thanks again,

John