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 > | >