#709081 libvirt-bin: virsh doesn't allow to define LVM pool with custom name.

#709081#5
Date:
2013-05-20 16:54:39 UTC
From:
To:
Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***
I have found that I can' create lvm pool with a name which defers from the LVM VG name.
I have just tried to create pool and start it. Pool was created with no errors/problems (I used command 'pool-define-as POOL_NAME logical --target /dev/VG'), but when I tried to start it - it fails with the following error:

error: Failed to start pool lvm_vm
error: internal error Child process (/sbin/vgchange -aly lvm_vm) status unexpected: exit status 5

When I created pool with a name as VG name, it started with no errors/problems. I consider it as a bug because XML file of the volume pool has different fields for the pool name and corresponding VG name.

#709081#12
Date:
2013-05-20 17:04:38 UTC
From:
To:
Please answer the above questions. Add the commands you used, the output
and the pool xml.
 -- Guido

#709081#17
Date:
2013-05-20 17:12:16 UTC
From:
To:
When I tried to start it with a command 'pool-start POOL_NAME, I get the
following error:
"error: Failed to start pool POOL_NAME
error: internal error Child process (/sbin/vgchange -aly POOL_NAME)
status unexpected: exit status 5"

Output of pool-dumpxml POOL_NAME:
<pool type='logical'>
<name>POOL_NAME</name>
<uuid>32087a2e-e930-0add-024a-cce49dec1cd4</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
<name>POOL_NAME</name>
<format type='unknown'/>
</source>
<target>
<path>/dev/VG</path>
<permissions>
<mode>0700</mode>
<owner>4294967295</owner>
<group>4294967295</group>
</permissions>
</target>
</pool>