1826081 Members
3241 Online
109690 Solutions
New Discussion

MirrorDisk/UX

 
SOLVED
Go to solution
Hasan_9
Regular Advisor

MirrorDisk/UX

Hello,

I have installed MirrorDisk/UX on my server but I cannot mirror the LVs. here is the error from lvextend.Please advice.

# swlist | grep Mirror
B2491BA B.11.11 MirrorDisk/UX
# lvextend -m 1 vg01 /dev/dsk/c4t1d0
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.
13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: MirrorDisk/UX

Hasan,

the ""m": Illegal option" message indicates you have *NOT* installed mirror disk/UX.

You need to purchase and install the software.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: MirrorDisk/UX

Sorry, took a closer look.

Wrong command, correct:

# lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c4t1d0

You need to specify the lvol you like to extend.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: MirrorDisk/UX

Hi Hasan:

Torsten is correct, your 'lvextend' syntax was wrong.

Remember that LVM MirrorDisk does mirroring at the *logical volume* level, not at the volume group nor at a physical volume (disk) level.

Regards!

...JRF...
Mridul Shrivastava
Honored Contributor

Re: MirrorDisk/UX

Yes I do agree with Torsten, but make sure before extending lv, that disk should be part of that vg, i mean u have to extend first extend vg then extend lv.
cheers
Time has a wonderful way of weeding out the trivial
Delrish
Trusted Contributor

Re: MirrorDisk/UX

try to re-install the software. also as the pther guys said you have some problems on command syntax
Darrel Louis
Honored Contributor

Re: MirrorDisk/UX

Hasan,

Have you already extended the Volume Group with the disk?
vgextend vg01 /dev/dsk/c4t1d0

Mirror LV:
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c4t1d0

If you want to mirror more lvol's:
for lvol in lvol1 lvol2 ... lvol8 (specify any LV you need to mirror)
do
lvextend -m 1 /dev/vg01/$lvol /dev/dsk/c4t1d0
done


Goodluck

Darrel
Ninad_1
Honored Contributor

Re: MirrorDisk/UX

Hasan,

As already pointed out the syntax you are using is incorrect. You need to mirror LVs - for that
1. Check if the disk has been added to the VG.
vgdisplay -v /dev/vg01 | grep c4t1d0
If not already added -
strings /etc/lvmtab | grep c4t1d0 (Check that disk not added to any other VG already) if disk is free then add using
pvcreate /dev/rdsk/c4t1d0 (Make it usable by LVM)
vgextend /dev/vg01 /dev/dsk/c4t1d0

2. Then mirror the LVs . As suggested by Darrel you can use the for loop to mirror all the LVs - but first thing to check would be the total LVs size and available disk size .
So first check the total size of LVs you want to mirror.
size=0
for lvol in lvol1 lvol2 ...
do
size=$(echo $(lvdisplay /dev/vg01/$lvol | grep -i size | awk '{print $NF}') + $size | bc)
done
echo $size MB

check disk size using diskinfo /dev/dsk/c4t1d0
compare the 2 sizes and if mirrors of all volumes can be accomodated on the same disk then use the for loop as mentioned by Darrel.

Regards,
Ninad
Hasan_9
Regular Advisor

Re: MirrorDisk/UX

Guys,

I corrected my command as you said but still get the error. I have just this problem in one of the servers. The other one works correctly.
Darrel Louis
Honored Contributor

Re: MirrorDisk/UX

Hasan,

Can you post the output vgdisplay -v vg01

Darrel
Robert-Jan Goossens_1
Honored Contributor

Re: MirrorDisk/UX

Hi,

What is the state of the installed product B2491BA?

# swlist -l fileset -a state

# swverify \*

Robert-Jan
Delrish
Trusted Contributor
Solution

Re: MirrorDisk/UX

Did you remove any patches from your server?
MirrorDisk/UX rebuilds the kernel during the installation and some of the patches affect the kernel (like quality package) too. If yes, please re-install the software

Alireza
Ninad_1
Honored Contributor

Re: MirrorDisk/UX

Hasan,

Have you checked if the software is installed properly as suggested above.
If yes would you paste the outputs of
1. vgdisplay -v | grep c4t1d0
2. strings /etc/lvmtab | grep -c c4t1d0

Also what exact command did you try ?
and what error was displayed

Regards,
Ninad
Hasan_9
Regular Advisor

Re: MirrorDisk/UX

Thank you All,

I removed the software and installed it again.