[Gluster-users] How to retrieve gluster snap volume name

Rajesh Joseph rjoseph at redhat.com
Fri Sep 4 03:18:30 UTC 2015



----- Original Message -----
> From: "Merlin Morgenstern" <merlin.morgenstern at gmail.com>
> To: "Alex Crow" <acrow at integrafin.co.uk>
> Cc: "gluster-users" <gluster-users at gluster.org>
> Sent: Thursday, September 3, 2015 9:13:55 PM
> Subject: Re: [Gluster-users] How to retrieve gluster snap volume name
> 
> got it...
> 
> 
> 
> sudo gluster snapshot info snap1 | grep "Snap\ Volume\ Name" | sed -e
> 's/.*S.*:.//g'
> 
> 2015-09-03 17:36 GMT+02:00 Merlin Morgenstern < merlin.morgenstern at gmail.com
> > :
> 
> 

If you have xml parser then you can use the --xml option along with gluster snapshot info.

> 
> Interesting hack :-)
> 
> Should work but the regex seems not fitting:
> Returns:
> 
> 
> Snap Volume Name : 2d828e6282964e0e89616b297130aa1b
> 
> 2015-09-03 17:11 GMT+02:00 Alex Crow < acrow at integrafin.co.uk > :
> 
> 
> 
> How about just:
> 
> sudo gluster snapshot info | grep "Snap\ Volume\ Name" | sed -e 's/^S.*://g'
> 
> ??
> 
> Alex
> 
> 
> 
> On 03/09/15 16:06, Merlin Morgenstern wrote:
> 
> 
> 
> Is there a way to retrieve the snap volume name from gluster?
> 
> $ sudo gluster snapshot info returns all kinds of info:
> 
> Snapshot : snap1
> Snap UUID : 2788e974-514b-4337-b41a-54b9cb5b0699
> Created : 2015-09-02 14:03:59
> Snap Volumes:
> 
> Snap Volume Name : 2d828e6282964e0e89616b297130aa1b
> Origin Volume name : vol1
> Snaps taken for vol1 : 2
> Snaps available for vol1 : 254
> Status : Started
> 
> I would need a command for only the Snap Volume Name in order to automate a
> backup process.
> 
> 
> _______________________________________________
> Gluster-users mailing list Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
> 
> --
> This message is intended only for the addressee and may contain
> confidential information. Unless you are that person, you may not
> disclose its contents or use it in any way and are requested to delete
> the message along with any attachments and notify us immediately.
> "Transact" is operated by Integrated Financial Arrangements plc. 29
> Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608
> 5300. (Registered office: as above; Registered in England and Wales
> under number: 3727592). Authorised and regulated by the Financial
> Conduct Authority (entered on the Financial Services Register; no. 190856).
> 
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
> 
> 
> 
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users


More information about the Gluster-users mailing list