Getting replica count from a script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-Vijay



[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux