1834621 Members
2608 Online
110069 Solutions
New Discussion

lvol mirror

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

lvol mirror

Ok,
I have 2 8gig disks. I created /dev/vg01/lvol1
@ 4 GB on 1st disk. I created /dev/vg01/lvol2 @ 4GB on first disk using sam. looks OK.

Now I am trying to mirror these logical volumes using lvextend to the second disk and I keep getting, "Illegal Option -m"

My command is:
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c1t6d0.

I've got something wrong here. How will lvextend know to only use half of the mirror disk c1t6d0.

OK I am confused, help please.
UNIX IS GOOD
11 REPLIES 11
Massimo Bianchi
Honored Contributor

Re: lvol mirror

LVM mirroring is a pay-tool, did you buy it ? :)

Massimo
Jeff Schussele
Honored Contributor

Re: lvol mirror

Hi Robert,

Did you vgextend vg01 with the second disk before you tried to mirror?
It has to be in the VG before you can mirror.

If it's in the VG alraedy then check the distribution of the LVs with lvdisplay -v

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mark Grant
Honored Contributor
Solution

Re: lvol mirror

Do you have MirrorUX installed?

If not you are going to need it!

otherwise, lvextend will use exactly the same amount of c1t6d0 as the logical volume you are mirroring is using of the disk that it is on.

Remember, we are mirroring logical volumes, not real disks.
Never preceed any demonstration with anything more predictive than "watch this"
Jean-Luc Oudart
Honored Contributor
Nobody's Hero
Valued Contributor

Re: lvol mirror

No I dont think we purchased lvm mirroring. I've never used this before. We have mirroring software.
UNIX IS GOOD
Ashwani Kashyap
Honored Contributor

Re: lvol mirror

You got to have mirror UX installed before tryting to mirror .
Jeff Schussele
Honored Contributor

Re: lvol mirror

OK - on this system run

swlist | grep -i mirror

If it comes back with nothing then you can't mirror until you purchase MirrorDisk/UX & install it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: lvol mirror

Robert,

Check to make sure MirrorDisk/UX is installed on this machine (I know you have it on others):

root# swlist |grep -i mirror
B2491BA B.11.00 MirrorDisk/UX


Pete

Pete
Nobody's Hero
Valued Contributor

Re: lvol mirror

Super DUUUHHH.

No mirror software installed


10x
RPM
UNIX IS GOOD
Helen French
Honored Contributor

Re: lvol mirror

Look like you donot have Mirror/UX installed on the system. Check it with:

# swlist (check for Mirror/UX software).

If you don't have one, then you need to purchase it from HP.
Life is a promise, fulfill it!
James A. Donovan
Honored Contributor

Re: lvol mirror

Technically, you do not need to have MirrorDisk/UX in order to create a mirror. It's just a whole lot easier to create/maintain if you do have it. Here are a couple threads on how to create a mirror disk WITHOUT MirrorDisk/UX.

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xafc36af52b04d5118fef0090279cd0f9%2C00.html&admit=716493758+1071780965077+28353475

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x37204b3ef09fd611abdb0090277a778c%2C00.html&admit=716493758+1071781072637+28353475
Remember, wherever you go, there you are...