create a directory storage pool in a random location

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

 



Hi all,
   I am trying to figure out if you can store the definition of a directory storage pool in a custom location.

This is how I create the storage pool:
xmlDesc = """
<pool type='dir'>
 <name>guest_images_storage_pool</name>
 <uuid>8c79f996-cb2a-d24d-9822-ac7547ab2d01</uuid>
 <capacity unit='bytes'>4306780815</capacity>
 <allocation unit='bytes'>237457858</allocation>
 <available unit='bytes'>4069322956</available>
 <source>  
 </source>
 <target>
<path>/disk1/guest_images</path>
<permissions>
 <mode>0755</mode>
 <owner>-1</owner>
 <group>-1</group>
</permissions>
 </target>
</pool>"""
pool = conn.storagePoolDefineXML(xmlDesc, 0)


This creates guest_images_storage_pool.xml in /etc/libvirt/storage. I assume this is the default path libvirt looks for any storage pools on the system

The problem is that /etc is mapped to a ramdisk on my system. So after restart anything in there would be wiped.  
The path /disk1 maps to an actual hdd partition so ideally libvirt sould look for it's storage pools in there. I can't seem to make that happen.

I tried adding a source path:

  <source>
<dir path="/disk1/storage_pool"/>   
  </source>

But that has no effect.

Any ideas?


Andrei

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas  Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager.

Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007.

Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux