LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   lvcreate says "Path required for Logical Volume" (http://www.linuxquestions.org/questions/linux-server-73/lvcreate-says-path-required-for-logical-volume-4175432155/)

mahmoodn 10-14-2012 11:31 AM

lvcreate says "Path required for Logical Volume"
 
I have used the guide How To Create LVM Using vgcreate, lvcreate, and lvextend lvm2 Commands however when I run the command

Code:

sudo lvcreate -c 64 -s -i 3 -I 65536 -l 715401 -n orcavolume orcafiler1
I get this error:
Code:

  Path required for Logical Volume "orcafiler1"
  The origin name should include the volume group.
  Run `lvcreate --help' for more information.

Here are the information:
Code:

mahmood@srv:~$ sudo pvscan
[sudo] password for mahmood:
  PV /dev/sdc  VG orcafiler1  lvm2 [931.51 GiB / 931.51 GiB free]
  PV /dev/sdd  VG orcafiler1  lvm2 [931.51 GiB / 931.51 GiB free]
  PV /dev/sde  VG orcafiler1  lvm2 [931.51 GiB / 931.51 GiB free]
  Total: 3 [2.73 TiB] / in use: 3 [2.73 TiB] / in no VG: 0 [0  ]

and
Code:

mahmood@srv:~$ sudo vgdisplay
  --- Volume group ---
  VG Name              orcafiler1
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  1
  VG Access            read/write
  VG Status            resizable
  MAX LV                0
  Cur LV                0
  Open LV              0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size              2.73 TiB
  PE Size              4.00 MiB
  Total PE              715401
  Alloc PE / Size      0 / 0
  Free  PE / Size      715401 / 2.73 TiB
  VG UUID              RfdmkM-LHVF-GD0p-k0wF-2ogI-n1jN-JikdOn


deep27ak 10-15-2012 10:03 AM

I am not so good with LVM but you can try this command to create logical volume

What output do you get from

Code:

$ sudo lvcreate -L 700G -n orcavolume orcafiler1
or if it is asking for the path you can mention as it must be in /dev/orcafiler1

herkalurk 10-20-2012 08:12 PM

I would also get away from -l and use -L and a simpler size like deep suggested.


All times are GMT -5. The time now is 11:00 PM.