[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] Why the problem with LVcreate with a specific name?



Hello all,

 

I have CentOS 5.3 with:

 

lvm2-2.02.40-6.el5

system-config-lvm-1.1.5-1.0.el5

lvm2-cluster-2.02.40-7.el5

 

I try to create a new full disk clustered LV

 

When I do [root tweety-1 /]# lvcreate -v -L 931.48G -n data2 vg1

    Setting logging type to disk

    Finding volume group "vg1"

  Rounding up size to full physical extent 931.48 GB

    Archiving volume group "vg1" metadata (seqno 21).

    Creating logical volume data2

    Creating volume group backup "/etc/lvm/backup/vg1" (seqno 22).

    Clearing start of logical volume "data2"

    Creating volume group backup "/etc/lvm/backup/vg1" (seqno 22).

  Logical volume "data2" created

[root tweety-1 /]# lvdisplay

  --- Logical volume ---

  LV Name                /dev/vg1/data2

  VG Name                vg1

  LV UUID                xA0oky-7VaD-P8a3-8aAC-2jGy-R9Ij-1L3bvR

  LV Write Access        read/write

  LV Status              available

  # open                 0

  LV Size                931.48 GB

  Current LE             238459

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     256

  Block device           253:2

 

It gets created succefully.

 

When I run the same command but with data1 instead of data2, I get the following error:

 

[root tweety-1 /]# lvcreate -v -L 931.48G -n data1 vg1

    Setting logging type to disk

    Finding volume group "vg1"

  Rounding up size to full physical extent 931.48 GB

    Archiving volume group "vg1" metadata (seqno 23).

    Creating logical volume data1

    Creating volume group backup "/etc/lvm/backup/vg1" (seqno 24).

  Error locking on node tweety1: device-mapper: create ioctl failed: Device or resource busy

  Aborting. Failed to activate new LV to wipe the start of it.

    Creating volume group backup "/etc/lvm/backup/vg1" (seqno 25).

 

Could you help me find out what is blocking data1 as a valid name?

 

I am lost and I do not know where to start from.

 

Thank you all for your time.

 

Theophanis Kontogiannis.

 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]