[Gluster-users] Getting replica count from a script?

Vijay Bellur vbellur at redhat.com
Fri Aug 9 06:19:00 UTC 2013

On 08/09/2013 11:21 AM, B.K.Raghuram wrote:
> Hi,
> I would like to get the replica or stripe count of a volume from a
> script. Is there a command to get this info without having to parse
> the output of the volume info command? Or can I parse through a config
> file somewhere to get this?

The ideal way would be to parse the output of volume info --xml.

You can also grep for "replica-count" in /var/lib/glusterd/<volname>/info.


More information about the Gluster-users mailing list