Repetitive RBD disk definitions

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

 



Hi,

I'm using libvirt 5.0.0 on a Ceph cluster.  The VM disks are all from
the same Ceph pool, so all my <disk> elements are basically the same:

    <disk type="network" device="disk">
      <driver name="qemu" type="raw" cache="none"/>
      <source protocol="rbd" name="vmdisks/VOLNAME">
        <host name="x.y.z.1" port="6789"/>
        <host name="x.y.z.2" port="6789"/>
        <host name="x.y.z.3" port="6789"/>
      </source>
      <auth username="libvirt">
        <secret type="ceph" usage="libvirt_key"/>
      </auth>
      <target dev="vdX"/>
    </disk>

... apart from the VOLNAME and vdX words.  Is there a way to factor out
(at least part of) the common stuff?  This repetition isn't totally
unmanageable, just not pretty.  Creating a libvirt storage pool seemed
like a good solution at first, but I couldn't find a way to
"instantiate" volumes in the domain XML (and defining them cluster-wide
would mean duplicating what Ceph does, which I'd rather avoid).
-- 
I'd be grateful for any ideas,
Feri.






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

  Powered by Linux