Operating System - HP-UX
1748014 Members
4210 Online
108757 Solutions
New Discussion юеВ

Re: 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 17
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