UnixPedia : HPUX / LINUX / SOLARIS: HPUX :"m": Illegal option while extending logical volume with lvextend in PVG

Friday, February 1, 2013

HPUX :"m": Illegal option while extending logical volume with lvextend in PVG

While lvextend we are getting below error on the server, even mirrordisk/UX software is

present on the system

 

$ swlist -l fileset |grep -i mirr

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

  PHCO_40920.LVM-MIRROR-RUN                             1.0            LVM.LVM-MIRROR-RUN

 

 

$ lvdisplay /dev/vgdbRPM1/lvdata_new

--- Logical volumes ---

LV Name                     /dev/vgdbRPM1/lvdata_new

VG Name                     /dev/vgdbRPM1

LV Permission               read/write

LV Status                   available/syncd

Mirror copies               0

Consistency Recovery        MWC

Schedule                    parallel

LV Size (Mbytes)            81920

Current LE                  2560

Allocated PE                2560

Stripes                     0

Stripe Size (Kbytes)        0

Bad block                   on

Allocation                  PVG-strict/distributed

IO Timeout (Seconds)        default

 

[root@server_B:/.root]

$ fstyp /dev/vgdbRPM1/lvdata_new

unknown_fstyp (no matches)

[root@server_B:/.root]

$ newfs -F vxfs -o largefiles -b 8192 /dev/vgdbRPM1/rlvdata_new

    version 5 layout

    83886080 sectors, 10485760 blocks of size 8192, log size 2048 blocks

    unlimited inodes, largefiles supported

    10485760 data blocks, 10483288 free data blocks

    320 allocation units of 32768 blocks, 32768 data blocks

[root@server_B:/.root]

$ lvextend -m 1 /dev/vgdbRPM1/lvdata_new beerse2xp0x_new

Usage: lvextend

        [-A Autobackup]

        {-l LogicalExtentsNumber |

         -L LogicalVolumeSize}

        LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]

"m": Illegal option.

[root@server_B:/.root]

$ whereis lvextend

lvextend: /usr/sbin/lvextend /sbin/lvextend /usr/share/man/man1m.Z/lvextend.1m

 

Solution :

 

For tweak we copied the /usr/sbin/lvextend from 11.23 version os and then try to extend it and its work.

 

[root@server_B:/home/user_one]

$ ll

total 2960

-r--r--r--   1 user_one   users          831 Dec 13  2010 .cshrc

-r--r--r--   1 user_one   users          347 Dec 13  2010 .exrc

-rw-------   1 user_one   users           40 Dec 13  2010 .k5login

-r--r--r--   1 user_one   users          333 Dec 13  2010 .login

-r--r--r--   1 user_one   users          438 Dec 13  2010 .profile

-rw-------   1 user_one   users          650 Feb  1 20:25 .sh_history

-rwxrwxr--   1 root       sys           7647 May 19  2012 SMScheck.sh

-rw-r-----   1 user_one   users         1956 Dec 11  2011 adviser.out

-r-sr-xr-x   1 user_one   users      1371012 Sep  4  2011 lvextend

-rwxrwxr--   1 root       sys            854 Feb 27  2012 nags_check.sh

-rw-r-----   1 root       sys            280 Dec 10  2011 package

drwxr-x---   2 root       sys           8192 Dec 11  2011 todayaction

[root@server_B:/home/user_one]

$ ./lvextend -m 1 /dev/vgdbRPM1/lvdata_new beerse2xp0x_new

lvextend: "/dev/vgdbRPM1/lvdata_new": Permission denied

Usage: lvextend

        [-A Autobackup]

        {-l LogicalExtentsNumber |

         -L LogicalVolumeSize |

         -m MirrorCopies [-s] }

        LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]

 

[root@server_B:/home/user_one]

$ chown root:sys lvextend

[root@server_B:/home/user_one]

$ ./lvextend -m 1 /dev/vgdbRPM1/lvdata_new beerse2xp0x_new

The newly allocated mirrors are now being synchronized.This operation will

take some time. Please wait ....

 

 

 

 

No comments:

Post a Comment