System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Question about Mirror/UX

S-un-B-ix-S
Advisor

Question about Mirror/UX

I have Mirror/UX installed on a rx8640 with 11.31. However, when I attempt to use -m option on lvextend, it tells me illegal option.

:root:/root->lvextend -m 1 /dev/vg00/lvol1
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.


Checked that it installed.
root:/tmp->swlist -l product | grep -i mirror
LVM-MirrorDisk B.11.31 MirrorDisk/UX

Checked that is available in kernel.

root:/tmp->strings /stand/vmunix | grep -i mirror RAID 1+0 - Disk Mirroring RAID 5+1 - Mirrored RAID 5 MirrorDisk no fresh mirror

Any help would be appreciated.
17 REPLIES
TTr
Honored Contributor

Re: Question about Mirror/UX

Do you have two disks in vg00? You should specify the PV with the lvextend command to indicate where to mirror lvol1.

vgdisplay -v /dev/vg00
S-un-B-ix-S
Advisor

Re: Question about Mirror/UX

Yes, there are 2 physical disks in vg00.

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4356
VGDA 4
PE Size (Mbytes) 32
Total PE 8694
Alloc PE 3962
Free PE 4732
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

....


--- Physical volumes ---
PV Name /dev/disk/disk616_p2
PV Status available
Total PE 4347
Free PE 385
Autoswitch On

PV Name /dev/dsk/c2t6d0s2
PV Status available
Total PE 4347
Free PE 4347
Autoswitch On
S-un-B-ix-S
Advisor

Re: Question about Mirror/UX

:root:/opt/uniq->lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0s2
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.
Keith Bryson
Honored Contributor

Re: Question about Mirror/UX

Hi

If you do a plain "swlist", do you see the following bundles (or something like these):


B2491BA B.11.31 MirrorDisk/UX (Server)

Base-VXFS B.11.31 Base VxFS File System 4.1 Bundle

for HP-UX

BaseLVM B.11.31.0909 Logical Volume Manager

All the best
Arse-cover at all costs
Johnson Punniyalingam
Honored Contributor

Re: Question about Mirror/UX

How about trying using "smh" or SAM to mirror you logical volume

SMH -> f - Disks and File Systems-> l - Logical Volumes View or Manage Logical Volumes
Problems are common to all, but attitude makes the difference
johnsonpk
Honored Contributor

Re: Question about Mirror/UX

I doubt , you have mirror ux installed?

Check mirror ux

# swlist -l fileset |grep -i mir

LVM.LVM-MIRROR-RUN B.11.23 LVM Mirror



rgds!
Johnson
Jupinder Bedi
Respected Contributor

Re: Question about Mirror/UX

I am pretty sure that you dont have mirror software installed on it . on 11.31 output should be like as follows


LVM-MirrorDisk.LVM-MIRROR B.11.31 HP-UX sup
port for the MirrorDisk/UX

and also -m will disable if you dont have mirror software installed on the system and this is only error what you are getting
All things excellent are as difficult as they are rare
Steven E. Protter
Exalted Contributor

Re: Question about Mirror/UX

Shalom,

Mirror-UX needs the Physical volum path you wish to mirror to. Always do your homework and set that path. Letting it decide, will lead to bad results.

This is a simple matter of not following basic command syntax.

lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c1t0d0

That is good syntax.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Johnson Punniyalingam
Honored Contributor

Re: Question about Mirror/UX

always follow official documents from HP as mentioned below

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Problems are common to all, but attitude makes the difference
Patrick Wallek
Honored Contributor

Re: Question about Mirror/UX

>>This is a simple matter of not following
>>basic command syntax.

No, it isn't. It is a matter of 'lvextend' not being aware of the '-m' option. It plainly says '"m": Illegal option.' If you notice the 'usage' statement it says nothing about the '-m' option.

It appears, as others have basically said, that Mirror/UX is not installed. Or maybe more accurately not COMPLETELY installed for some reason.

I would reinstall Mirror/UX at your first opportunity. I don't recall if it requires a reboot or not.

>>lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c1t0d0
>>That is good syntax.

That is true.
James R. Ferguson
Acclaimed Contributor

Re: Question about Mirror/UX

Hi:

I'm in agreement with Patrick. You might try running a full 'swverify' to make sure that everything is in the state you think it is;

# swverify \*

Regards!

...JRF...
SUDHAKAR_18
Trusted Contributor

Re: Question about Mirror/UX

Hi,

swlist -l fileset -a state |grep -v -e "#" -e "configured"

please run the above command & provide the output. Mirror disk may not installed properly.
AVV
Super Advisor

Re: Question about Mirror/UX

Hello,

Please check whether you had the Mirror UX software installed in your system. I assumes it is not there.

#swlist | grep -i mirror

and check with that.

If there is no Mirror UX , you have to install and reboot the server for building the new kernel and the mirroring.

Best of Luck
dictum9
Super Advisor

Re: Question about Mirror/UX

If I run:

swlist -l product | grep -i mirr

Nothing shows up.

But look at this. Does that mean I have mirror-ux installed? This is 11.23.


#: swlist -l fileset |grep -i mir
LVM.LVM-MIRROR-RUN B.11.23 LVM Mirror
PHCO_34036.LVM-MIRROR-RUN 1.0 LVM.LVM-MIRROR-RUN
bobsam
Advisor

Re: Question about Mirror/UX

hi S-un-B-ix-S ,

Like all i am also doubtou full that you are installed Mirror/UX properly,
Jest check it by
#swlist -l bundle
Mirror UX will come in the top. If it is installed properly then you can mirrored it by using #lvextend -m 1 (option), with out installing Mirror ux properly then you will not get -m option from lvextend,

Please confirm your first disk device file..


thanks,


Prasanth Thomas
Valued Contributor

Re: Question about Mirror/UX

HI,

Please let me know is this issue resolved???

If not please share me the o/p f below command

# ioscan -m dsf
# strings /etc/lvmtab
#ls -ltr /dev/disk/*


Regards,
Prasanth Thomas.
Prasanth Thomas
Valued Contributor

Re: Question about Mirror/UX

i am suspecting this issue with your second disk device file. You did not extend the VG properly for that please share the o/p which i have requested you earlier.

Regards,
PT.