1748076 Members
5499 Online
108758 Solutions
New Discussion

create logical volume

 
Yaroki
Super Advisor

create logical volume

Hello,

 

When I try to create  lv

# lvcreate -L 12 /dev/vg01/data

I receive the following message:

 

lvcreate: Volume group "/dev/vg01/data" does not exist in the "/etc/lvmtab" file.

 

What should I do?

 

HP-UX, B.11.11

 

BR,

 

Yali

3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: create logical volume

You need to create the vg01 on a new disk/LUN first. Once you have the VG, you can create a LVOL.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Matti_Kurkela
Honored Contributor

Re: create logical volume

You used a wrong syntax.

 

If you want to create a 12 MB LV named /dev/vg01/data to a VG named vg01 that already exists, the correct syntax would be:

lvcreate -L 12 -n data /dev/vg01

 

With your original syntax, the command would have tried to create a new LV with a default name (i.e. "lvol1" if there are no other LVs) to a VG named /dev/vg01/data. So the full name of the proposed LV would have been something like /dev/vg01/data/lvol1... but since /dev/vg01/data is not a valid VG name, the command told you such a VG does not exist.

MK
Yaroki
Super Advisor

Re: create logical volume

Many thanks!