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? Thanks, -Ram
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