[libvirt-users] virsh and multi source-dev

Hi, I'm using LVM based storage pools and I'm wondering if there is a way to specify several source-dev on the command line for creating a volume group spread over several devices : one device /dev/sdc1 is ok: * virsh pool-define-as --name lvmpool --type logical --source-dev /dev/sdc1 --source-name vg --target /dev/vg I would like something like (but sadly doesn't work): ? virsh pool-define-as --name lvmpool --type logical --source-dev /dev/sdc1 --source-dev /dev/sdb1 --source-name vg --target /dev/vg ? Best regards, Matt

----- Original Message ----- | From: "Matthieu Simonin" <matthieu.simonin@inria.fr> | To: libvirt-users@redhat.com | Sent: Tuesday, November 19, 2013 3:22:56 PM | Subject: [libvirt-users] virsh and multi source-dev | | Hi, | | I'm using LVM based storage pools and I'm wondering | if there is a way to specify several source-dev on the command line | for creating a volume group spread over several devices : | | one device /dev/sdc1 is ok: | * virsh pool-define-as --name lvmpool --type logical --source-dev /dev/sdc1 | --source-name vg --target /dev/vg | | I would like something like (but sadly doesn't work): | ? virsh pool-define-as --name lvmpool --type logical --source-dev /dev/sdc1 | --source-dev /dev/sdb1 --source-name vg --target /dev/vg ? | | Can you define a pool xml as shown below and define it from there ? ex: <pool type="logical"> <name>HostVG</name> <source> <device path="/dev/sda1"/> <device path="/dev/sdb1"/> <device path="/dev/sdc1"/> </source> <target> <path>/dev/HostVG</path> </target> </pool> --Humble | | _______________________________________________ | libvirt-users mailing list | libvirt-users@redhat.com | https://www.redhat.com/mailman/listinfo/libvirt-users |

Thank you for answering. Yes sure I can from an xml, But is it possible from the command line with define-pool-as ? Best, Matt ----- Mail original -----
De: "Humble Chirammal" <hchiramm@redhat.com> À: "Matthieu Simonin" <matthieu.simonin@inria.fr> Cc: libvirt-users@redhat.com Envoyé: Mardi 19 Novembre 2013 11:06:35 Objet: Re: [libvirt-users] virsh and multi source-dev
----- Original Message ----- | From: "Matthieu Simonin" <matthieu.simonin@inria.fr> | To: libvirt-users@redhat.com | Sent: Tuesday, November 19, 2013 3:22:56 PM | Subject: [libvirt-users] virsh and multi source-dev | | Hi, | | I'm using LVM based storage pools and I'm wondering | if there is a way to specify several source-dev on the command line | for creating a volume group spread over several devices : | | one device /dev/sdc1 is ok: | * virsh pool-define-as --name lvmpool --type logical --source-dev | /dev/sdc1 | --source-name vg --target /dev/vg | | I would like something like (but sadly doesn't work): | ? virsh pool-define-as --name lvmpool --type logical --source-dev | /dev/sdc1 | --source-dev /dev/sdb1 --source-name vg --target /dev/vg ? | |
Can you define a pool xml as shown below and define it from there ?
ex: <pool type="logical"> <name>HostVG</name> <source> <device path="/dev/sda1"/> <device path="/dev/sdb1"/> <device path="/dev/sdc1"/> </source> <target> <path>/dev/HostVG</path> </target> </pool>
--Humble | | _______________________________________________ | libvirt-users mailing list | libvirt-users@redhat.com | https://www.redhat.com/mailman/listinfo/libvirt-users |

On 11/19/2013 03:16 AM, Matthieu Simonin wrote:
Thank you for answering.
[Please don't top-post on technical lists]
Yes sure I can from an xml, But is it possible from the command line with define-pool-as ?
There are a few places where define-pool-as is still not as powerful as using full XML; but you are welcome to write a patch to improve its behavior. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Thank you all for answering. Best Regards, Matt ----- Mail original -----
De: "Eric Blake" <eblake@redhat.com> À: "Matthieu Simonin" <matthieu.simonin@inria.fr>, "Humble Chirammal" <hchiramm@redhat.com> Cc: libvirt-users@redhat.com Envoyé: Mardi 19 Novembre 2013 14:41:02 Objet: Re: [libvirt-users] virsh and multi source-dev
On 11/19/2013 03:16 AM, Matthieu Simonin wrote:
Thank you for answering.
[Please don't top-post on technical lists]
Yes sure I can from an xml, But is it possible from the command line with define-pool-as ?
There are a few places where define-pool-as is still not as powerful as using full XML; but you are welcome to write a patch to improve its behavior.
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (3)
-
Eric Blake
-
Humble Chirammal
-
Matthieu Simonin