Operating System - HP-UX
1827064 Members
4496 Online
109713 Solutions
New Discussion

Unable to create logical volume - command line

 
Jagadesh
Frequent Advisor

Unable to create logical volume - command line

When i try to create a logical volume "test" using command line
#lvcreate -L test -n lvol3 /dev/vg00

where lvol3-logical volume name
/dev/vg00-volume group
iam getting the following error
"LogicalVolumeSize": Must be a number.
Kindly help me out.

Thanks in advance
Jagadesh
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: Unable to create logical volume - command line

Hi Jagadesh,

#lvcreate -L test -n lvol3 /dev/vg00

shout be

#lvcreate -L 100 -n lvol3 /dev/vg00

where 100 is the size in Megabytes.

Robert-Jan.
Bill Hassell
Honored Contributor

Re: Unable to create logical volume - command line

To create a 100 meg lvol named test:

lvcreate -L 100 -n test /dev/vg00

The lvol3 in your command should not be there. The above command will create: /dev/vg00/test and /dev/vg00/rtest. If this lvol is to contain a filesystem, you'll need to create an empty directory structure using newfs as in:

newfs /dev/vg00/rtest


Bill Hassell, sysadmin
T G Manikandan
Honored Contributor

Re: Unable to create logical volume - command line

The L option should be defined as the size of Logical volume.

check the man pages of lvcreate.


Thanks
muthamilan
Frequent Advisor

Re: Unable to create logical volume - command line

Hi Jegadesh

See this link for more information for LVM .

http://www.introcomp.co.uk/hpux/lvm_filesystem.html



Bye
S.Muthu
Sunil Sharma_1
Honored Contributor

Re: Unable to create logical volume - command line

Hi Jagadesh,

These is syntex error in command.
You say logical volume "test: in first line and in command you given name lvol3.
if you want to create logical volume name test correct syntex is like this.

#lvcreate -L -n test /dev/vg00

-L option is for specifing Logical volume's size in MB.

Sunil Sharma
*** Dream as if you'll live forever. Live as if you'll die today ***