Search This Blog

Wednesday, July 24, 2013

lvsplit and lvcreate can return the error: "Argument out of domain".

PROBLEM
lvsplit and lvcreate can return the error: "Argument out of domain".
How to resolve this message?
Example 1: 

# lvsplit /dev/vg01/lvol4
lvsplit: The logical volume "/dev/vg01/lvol4b" could not be created:  
Argument out of domain
lvsplit: Couldn't delete logical volume "/dev/vg01/lvol4b":
The supplied lv number refers to a non-existent logical volume.

Example 2: 
# lvcreate -L 528 -n lvol5 /dev/vg05
lvcreate: the logical volume /dev/vg01/lvol05 could not be created:
Argument out of domain

or

indhost:/dev/dsk # lvcreate -D y -s g -L 361200 -n lvol9 /dev/vg201          
Warning: rounding up logical volume size to extent boundary at size "361216" MB.
lvcreate: The logical volume "/dev/vg201/lvol9" could not be created:
Argument out of domain

RESOLUTION
The formal definition of "Argument out of domain" is "You probably specified an argument a command does not support, or you specified a value to an argument that lies outside the acceptable range. Examine the syntax for the command, make adjustments, and try again."
Both of the example commands above have valid arguments, which indicates the volume group configuration should be checked.
# vgdisplay /dev/vg01
 Max LV   5
 Cur LV   5
indicates that the maximum number of logical volumes has been hit.
max_lv is defined by the -l option when vgcreate was used to create the volume group. From the man page "-l max_lv
Set the maximum number of logical volumes that the volume group is allowed to contain. The default value for max_lv is 255. The maximum number of logical volumes can be a value in the range 1 to 255."
Given this number cannot be changed on-the-fly at 11.x, the volume group will have to be recreated with a higher -l setting.


Tuesday, June 25, 2013

To view installed VxVM license key information

 To view installed VxVM license key information
# vxlicrep

indhost# vxlicrep

Symantec License Manager vxlicrep utility version 3.02.33.0
Copyright (C) 1996-2007 Symantec Corporation. All rights reserved.

Creating a report on all VERITAS products installed on this system

 -----------------***********************-----------------

   License Key                   = R4CE-W6IU-RZ48-WS77-UDDL-SO78-PPPN-V4U
   Product Name                = VERITAS Storage Foundation for Oracle RAC
   Key                               = Invalid, Key EXPIRED -936 days ago

   License Type                  = DEMO
   OEM ID                          = 4095
   Demo End Date              = Tue Apr 15 01:00:00 2008
                                       (expired -936.8 days ago).
   Editions Product             = YES

To Remove the VxVM Installed License Key

The license keys reported by /opt/VRTS/bin/vxlicrep are stored in the /etc/vx/licenses/lic directory with a .vxlic extension. For example, vxlicrep reports:

-----------------***********************-----------------
License Key = I4CU-WLID-P6BN-BAWG-OSF7-CC29-7LGC-P
Product Name = VERITAS Storage Foundation for Cluster File System
Key = Invalid, Key EXPIRED -1 days ago
License Type = DEMO
OEM ID = 4095
Demo End Date = Thu Mar 29 01:00:00 2007
(expired -1.4 days ago).
Editions Product = YES

#pwd
/etc/vx/licenses/lic
#ls -l


-rw-r--r-- 1 root root 32 Jan 29 07:12 I4CU-WLID-P6BN-BFWG-OSF7-CC29-7LGC-P.vxlic

To remove the license key I4CU-WLID-P6BN-BAWG-OSF7-CC29-7LGC-P for the VERITAS Storage Foundation for Cluster File System product,

#rm I4CU-WLID-P6BN-BFWG-OSF7-CC29-7LGC-P.vxlic
Rerun /opt/VRTS/bin/vxlicrep. The license will no longer be displayed

Verifying VxVM Package Installation

To verify packages installation, use OS-specific commands:
•    Solaris
o    pkginfo –l VRTSvxvm

•    HP-UX
o    swlist –l product VRTSvxvm

•    AIX
o    lslpp –l VRTSvxvm

•    Linux
o    rpm –qi VRTSvxvm