Hello, No, not as client. I want to get the size of all the volumes on my cluster. I had hoped "gluster volume status detail" would tell me this, but it does not. I need to mount all the volumes and run df to find out. I am not a coder, not sure how to use gfapi. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ----- Original Message -----> From: "Mohammed Rafi K C" <rkavunga at redhat.com> > To: "Nux!" <nux at li.nux.ro>, "gluster-users" <Gluster-users at gluster.org> > Cc: "Gluster Devel" <gluster-devel at gluster.org> > Sent: Wednesday, 26 April, 2017 10:26:35 > Subject: Re: [Gluster-devel] Finding size of volume> I assume that you want to get the size from a client machine, rather > than nodes from trusted storage pools. If so, you can use gfapi to do a > fstat and can get the size of the volume. > > > Regards > > Rafi KC > > > On 04/26/2017 02:17 PM, Nux! wrote: >> Hello, >> >> Is there a way with gluster tools to show size of a volume? >> I want to avoid mounting volumes and running df. >> >> -- >> Sent from the Delta quadrant using Borg technology! >> >> Nux! >> www.nux.ro >> _______________________________________________ >> Gluster-devel mailing list >> Gluster-devel at gluster.org > > http://lists.gluster.org/mailman/listinfo/gluster-devel
On Wed, Apr 26, 2017 at 10:29:09AM +0100, Nux! wrote:> Hello, > > No, not as client. I want to get the size of all the volumes on my cluster. > I had hoped "gluster volume status detail" would tell me this, but it does not. I need to mount all the volumes and run df to find out. > > I am not a coder, not sure how to use gfapi.If glusterfs-coreutils does not provide a "df" functionality yet, it should be easy to add it. You can request it through a GitHub issue on https://github.com/gluster/glusterfs-coreutils/ Thanks, Niels> > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- > > From: "Mohammed Rafi K C" <rkavunga at redhat.com> > > To: "Nux!" <nux at li.nux.ro>, "gluster-users" <Gluster-users at gluster.org> > > Cc: "Gluster Devel" <gluster-devel at gluster.org> > > Sent: Wednesday, 26 April, 2017 10:26:35 > > Subject: Re: [Gluster-devel] Finding size of volume > > > I assume that you want to get the size from a client machine, rather > > than nodes from trusted storage pools. If so, you can use gfapi to do a > > fstat and can get the size of the volume. > > > > > > Regards > > > > Rafi KC > > > > > > On 04/26/2017 02:17 PM, Nux! wrote: > >> Hello, > >> > >> Is there a way with gluster tools to show size of a volume? > >> I want to avoid mounting volumes and running df. > >> > >> -- > >> Sent from the Delta quadrant using Borg technology! > >> > >> Nux! > >> www.nux.ro > >> _______________________________________________ > >> Gluster-devel mailing list > >> Gluster-devel at gluster.org > > > http://lists.gluster.org/mailman/listinfo/gluster-devel > _______________________________________________ > Gluster-devel mailing list > Gluster-devel at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-devel-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170426/2c0b95c3/attachment.sig>
Prashanth Pai
2017-Apr-26 09:48 UTC
[Gluster-users] [Gluster-devel] Finding size of volume
> Hello, > > No, not as client. I want to get the size of all the volumes on my cluster. > I had hoped "gluster volume status detail" would tell me this, but it does > not. I need to mount all the volumes and run df to find out.It does. Doesn't it ? (for a single volume - one at a time) [root at gd2-1 ppai]# gluster volume status test detail Status of volume: test ------------------------------------------------------------------------------ Brick : Brick gd2-1:/export/brick1/data TCP Port : 49152 RDMA Port : 0 Online : Y Pid : 1551 File System : xfs Device : /dev/loop0 Mount Options : rw,seclabel,noatime,nodiratime,attr2,inode64,noquota Inode Size : 512 Disk Space Free : 417.0MB Total Disk Space : 950.3MB Inode Count : 488256 Free Inodes : 488224> > I am not a coder, not sure how to use gfapi. > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- > > From: "Mohammed Rafi K C" <rkavunga at redhat.com> > > To: "Nux!" <nux at li.nux.ro>, "gluster-users" <Gluster-users at gluster.org> > > Cc: "Gluster Devel" <gluster-devel at gluster.org> > > Sent: Wednesday, 26 April, 2017 10:26:35 > > Subject: Re: [Gluster-devel] Finding size of volume > > > I assume that you want to get the size from a client machine, rather > > than nodes from trusted storage pools. If so, you can use gfapi to do a > > fstat and can get the size of the volume. > > > > > > Regards > > > > Rafi KC > > > > > > On 04/26/2017 02:17 PM, Nux! wrote: > >> Hello, > >> > >> Is there a way with gluster tools to show size of a volume? > >> I want to avoid mounting volumes and running df. > >> > >> -- > >> Sent from the Delta quadrant using Borg technology! > >> > >> Nux! > >> www.nux.ro > >> _______________________________________________ > >> Gluster-devel mailing list > >> Gluster-devel at gluster.org > > > http://lists.gluster.org/mailman/listinfo/gluster-devel > _______________________________________________ > Gluster-devel mailing list > Gluster-devel at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-devel >
This tool(gluster-df) provides df functionality. http://aravindavk.in/blog/glusterdf-df-for-gluster-volumes/ https://github.com/aravindavk/glusterfs-tools commands are renamed from glusterdf to gluster-df, check the README for more details. https://github.com/aravindavk/glusterfs-tools/blob/master/README.md regards Aravinda On 04/26/2017 02:59 PM, Nux! wrote:> Hello, > > No, not as client. I want to get the size of all the volumes on my cluster. > I had hoped "gluster volume status detail" would tell me this, but it does not. I need to mount all the volumes and run df to find out. > > I am not a coder, not sure how to use gfapi. > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- >> From: "Mohammed Rafi K C" <rkavunga at redhat.com> >> To: "Nux!" <nux at li.nux.ro>, "gluster-users" <Gluster-users at gluster.org> >> Cc: "Gluster Devel" <gluster-devel at gluster.org> >> Sent: Wednesday, 26 April, 2017 10:26:35 >> Subject: Re: [Gluster-devel] Finding size of volume >> I assume that you want to get the size from a client machine, rather >> than nodes from trusted storage pools. If so, you can use gfapi to do a >> fstat and can get the size of the volume. >> >> >> Regards >> >> Rafi KC >> >> >> On 04/26/2017 02:17 PM, Nux! wrote: >>> Hello, >>> >>> Is there a way with gluster tools to show size of a volume? >>> I want to avoid mounting volumes and running df. >>> >>> -- >>> Sent from the Delta quadrant using Borg technology! >>> >>> Nux! >>> www.nux.ro >>> _______________________________________________ >>> Gluster-devel mailing list >>> Gluster-devel at gluster.org >>> http://lists.gluster.org/mailman/listinfo/gluster-devel > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users