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.