Received: from eggs.gnu.org ([2001:4830:134:3::10]:32874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZK6W-0005iZ-NZ for qemu-devel@nongnu.org; Tue, 08 Sep 2015 10:42:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZK6R-0000Cg-RF for qemu-devel@nongnu.org; Tue, 08 Sep 2015 10:42:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZK6R-0000Bc-K0 for qemu-devel@nongnu.org; Tue, 08 Sep 2015 10:42:31 -0400 Date: Tue, 8 Sep 2015 16:43:23 +0200 From: Peter Krempa Message-ID: <20150908144323.GC5278@andariel.pipo.sk> References: <1441717449-31609-1-git-send-email-prasanna.kalever@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mSxgbZZZvrAyzONB" Content-Disposition: inline In-Reply-To: <1441717449-31609-1-git-send-email-prasanna.kalever@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/1] block/gluster: add support for multiple gluster backup volfile servers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prasanna Kumar Kalever Cc: rtalur@redhat.com, deepakcs@redhat.com, qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com --mSxgbZZZvrAyzONB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 08, 2015 at 18:34:09 +0530, Prasanna Kumar Kalever wrote: > This patch adds a way to specify multiple backup volfile servers to the g= luster > block backend of QEMU with both tcp and rdma transport types. >=20 > Problem: >=20 > Currenly VM Image on gluster volume is specified like this: >=20 > file=3Dgluster[+tcp]://server1:24007/testvol/a.img >=20 > Assuming we have have three servers in trustred pool with replica 3 volume > in action and unfortunately server1 (mentioned in the command above) went= down > for some reason, since the volume is replica 3 we now have other 2 servers > active from which we can boot the VM. >=20 > But currently there is no mechanism to pass the other 2 gluster server > addresses to qemu. >=20 > Solution: >=20 > New way of specifying VM Image on gluster volume with backup volfile serv= ers: >=20 > file=3Dgluster[+transport-type]://server1:24007/testvol/a.img\ > ?backup-volfile-servers=3Dserver2&backup-volfile-servers=3Dserver3 This syntax doesn't seem to support different port numbers for the backup volfile servers since it's possible to specify the port number for the primary one, the backup ones should allow that too to support all possible configurations. >=20 > This patch gives a mechanism to provide all the server addresses which ar= e in > replica set, so in case server1 is down VM can still boot from any of the > active servers. >=20 > This is equivalent to the backup-volfile-servers option supported by > mount.glusterfs (FUSE way of mounting gluster volume) >=20 > Signed-off-by: Prasanna Kumar Kalever > --- > block/gluster.c | 118 +++++++++++++++++++++++++++++++++++++++-----------= ------ > 1 file changed, 83 insertions(+), 35 deletions(-) >=20 Peter --mSxgbZZZvrAyzONB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJV7vQLAAoJEDbsFqzQGGgra/QP/RcBSzJ6dd8LY7TDvCtrI+rH EicaDFFAauHX0Qb7JNFyAqR5Dz+cDwOPb9E6uLJqiolXxTFNYUwveoSwS8ank9x0 58m0odncbNHAXgEZtJ2H0HoYT3tnOVZ4OO/rNovLP5QAdaG2Etwj74tL4v4wlOz9 kVdPs/9Jd1JK3XnX+iaikvKwXFAaRlVrweM8g7FD6AV2+QMDOpoXGPjURp6IEZAK 45h2gDPUldhuX9oRvQxqnKAW38BtEbZ8u2SGPEBPMKZg9vIjdcQZw2SEg88jvEY1 yG7O+4KwipKftjnsotMF5DFJE+fFRLvENRSyCpucVUCwZmGykzUpuhU6rPxhss01 1JKldsjRDPQOqQnNbNeo4QTbuN449ZDsUCaQXsueYxq0kn+WfJBSNVd5zD3Bpq+d TTffCkck7mJ13k3YCkAQNxrG7Oqvjtc99YV6FcXIN5VTlRilleETYO42MSAgQTEL QXVJz+J9FhHZI+nZ2NpEeB3sBHbVglRe7V7S2z5gVD+5uaY8xTLfHYkZSseXa9+S tdJSJLARoIKjCjEe/JOWNEjx6fcXT3QSpSHXRf2qtrgVunQZfkY+QoshDODbks+O GXhSYQ2VPh1cCm7g7rS4eYOxnZ7KmHLQaJw+z+QmjSKagdgO57J8WKwdQXJgJxsX gh+gaTbyCbDzC7Jv+app =d4r1 -----END PGP SIGNATURE----- --mSxgbZZZvrAyzONB--