1830870 Members
1851 Online
110017 Solutions
New Discussion

Mirror-UX assistance

 
TKeller
Frequent Advisor

Mirror-UX assistance

Greetings all. Before I get started, I'll introduce myself and hope to be of help here as well.

Problem: RP4440 w/ HPUX 11.11.0406 Enterprise needs vg00 mirrored. I've found and read just about everything on how to get it done but the problem is, there's no Mirror-UX installed. HP codeword department told me that it was already installed as part of a bundle for enterprise installations. I've run swlist more times than I can count and I know for sure that I don't have any codewords on this box (/var/adm/sw/.codewords doesn't even exist).

If it's installed on the Enterprise version of 11.11, what else am I missing to see if it's installed? Thanks in advance and I'll definitely give points!
It is said you should treat your body like a temple. I treat mine like an amusement park.
17 REPLIES 17
Robert-Jan Goossens_1
Honored Contributor

Re: Mirror-UX assistance

Could you post the output of

# swlist -l depot

Regards,
Robert-Jan
MarkSyder
Honored Contributor

Re: Mirror-UX assistance

swlist|grep -i mirror

The software may be installed but not have had the codeword activated. At least running the above command will tell you whether or not it's installed.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Luk Vandenbussche
Honored Contributor

Re: Mirror-UX assistance

Hi,

Mirror/UX is included in enterprise edition of the OS

Try the script in attachment to mirror your vg00
James R. Ferguson
Acclaimed Contributor

Re: Mirror-UX assistance

Hi:

If you have the Enterprise OE then I'm sure you have MirrorDisk capability.

You should be able to do:

# swlist -l fileset|grep -i "LVM-MIRROR" and see a fileset "LVM.LVM-MIRROR.RUN"

...to satisfy you.

You should also me able to do:

# lvextend -m 1 ...

...which will not work if MirrorDisk isn't available!

Regards!

...JRF...
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Thanks for the quick replies!

swlist -l depot:
/var/opt/mx/depot11
/SD_CDROM
/home/depots/depot

swlist | grep mirror:


Currently, /SD_CDROM has the first disk of applications which Mirror-UX (B2491BA) resides.
It is said you should treat your body like a temple. I treat mine like an amusement park.
Ninad_1
Honored Contributor

Re: Mirror-UX assistance

Hi,
If you have got Enterprise OE then you already have bought the Mirror-UX product.
Can you see using swlist ?
swlist | grep -i mirror
If yes then does it show confiured in swlist -l fileset -a state

If yes then its installed and ready to use.

Regards,
Ninad
MarkSyder
Honored Contributor

Re: Mirror-UX assistance

swlist|grep mirror: you missed the -i (ignore case). I'm too lazy to remember if MirrorDisk has capital m and lower case after that, or if it's all capitals, or all lower case. I always use grep -i so it catches the word no matter what combination of upper and lower case the letters are in.

Mark
The triumph of evil requires only that good men do nothing
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Wow, I can't respond fast enough, hehe... Once again, thanks for the help and I'm giving out points as I work through this.

swlist -l fileset|grep -i "LVM-MIRROR":
LVM.LVM-MIRROR-RUN B.11.11 LM-MIRROR-RUN
PHCO_30698.LVM-MIRROR-RUN 1.0 LVM.LVM-MIRROR-RUN

Since that showed up good, I'll be using the lvm script. Since this isn't a hardware raid-1, I'm assuming correctly that no reboot or anything is needed? Last but not least, is it CPU-intensive given the fact that it's the first time it's syncing?
It is said you should treat your body like a temple. I treat mine like an amusement park.
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Yeah, Mark, sorry about that. I forgot to put the -i in the reply but I did use it on the command line. swlist -l bundle | grep -i mirror returns nothing but the fileset of LVM-MIRROR shows up.
It is said you should treat your body like a temple. I treat mine like an amusement park.
James R. Ferguson
Acclaimed Contributor

Re: Mirror-UX assistance

Hi (again):

LVM Mirroring is done at the logical volume level. No reboot occurs or is necessary. You simply use 'lvextend -m ...' to perform the change (add or subtract mirrors).

Yes, the synchronization is a bit intensive and is time-consuming. You can monitor the progress with:

# lvdisplay -v /dev/vgNN/lvolX|grep stale|wc -l

...when the count of "stale" extents reaches zero (0) your mirrors are synchronized.

Regards!

...JRF...
Kenan Erdey
Honored Contributor

Re: Mirror-UX assistance

just wanted to congratulate all speedy people that i saw in reply list before i replying :)
Computers have lots of memory but no imagination
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Before I close this thread and give the raiding a go, I'd like to make sure of the script that's involved.

Is it the one attached on this post?
It is said you should treat your body like a temple. I treat mine like an amusement park.
MarkSyder
Honored Contributor

Re: Mirror-UX assistance

How about closing the thread after you've given it a go? You don't have to close it on the same day you open it! (Or even at all ;-))

Mark
The triumph of evil requires only that good men do nothing
Sp4admin
Trusted Contributor

Re: Mirror-UX assistance

After you get the mirror software figured out. you use shell script to mirror yor disk.

To lvextend the mirror:

#for lvol in lvol1 lvol2 ... lvol8
>do
>lvextend -m 1 /dev/vg00/ $lvol /dev/dsk/c#t#d#
>done


Sp
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Alright, I think I've pretty much finished everything with the help of everyone's assistance. Using the script that was provided, everything went off without a hitch and took about 15 minutes total.

My final questions are as follows, just to clarify.

1) Given the link below, they mention about how MWC needs to be off for primary swap. Is there a performance hit if it remains on until I can reboot at a later time and change it? Also, Bob Vance's reply in that link talks about mkboot only copying default LIF files and not all of them. Is his lifcp necessary?

2) Given that lvdisplay on all of vg00's lvs shows that mirror copies is 1, if the original drive (/dev/dsk/c2t1d0) dies, am I correct in stating that the other drive (/dev/dsk/c3t0d0, holding the mirrored lvs) will keep the OS running until I get another drive to hot-swap and resync?

Once again, thanks for everyone's help. Inheriting a primary "absolutely can't go down" server that only has 1 drive makes me really want to make sure everything is stabilized!
It is said you should treat your body like a temple. I treat mine like an amusement park.
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Thanks all..this has definitely been a good experience and I'm glad to say all is good and everything's successful. Now to test as soon as possible.
It is said you should treat your body like a temple. I treat mine like an amusement park.
TKeller
Frequent Advisor

Re: Mirror-UX assistance

Great documentation and help from members.
It is said you should treat your body like a temple. I treat mine like an amusement park.