gluster-setgfid2path(8)
β¨ gluster-setgfid2path β the manual, bestie edition β¨
okay so you're reading the gluster-setgfid2path(8) page from the System Manager's Manual, and honestly? it's giving "tiny tool, huge glow-up" π
let's get into it π«Ά
π NAME π
gluster-setgfid2path β a Gluster tool that sets GFID to Path xattrs β¨
πΈ SYNOPSIS πΈ
gluster-setgfid2path file
that's it. one file. no drama, no extra flags. simple queen behaviour π
π¦ DESCRIPTION π¦
so new feature alert π¨ β this landed with Gluster release 3.12, and its whole job is letting you find the full path from a GFID. iconique, truly.
to turn it on, you use the Volume set command:
gluster volume set <VOLUME> storage.gfid2path enable
ngl, this part matters: once gfid2path is enabled it starts recording the necessary xattrs required for the feature β but it will NOT go back and add xattrs for the files that already existed. it's not doing retroactive work, bestie, it's not that kind of girl π
and that's literally why this tool exists: gluster-setgfid2path gives you the facility to update the gfid2path xattrs for the given file path π so your old files can finally catch up. slay.
π EXAMPLES π
to add xattrs of a single file β one file, one command, main character energy:
gluster-setgfid2path /bricks/b1/hello.txt
to set xattr for all the existing files β run the below script on each bricks (yes, every single one, no skipping π«Ά):
BRICK=/bricks/b1
find $BRICK -type d \( -path "${BRICK}/.trashcan" -o -path \
"${BRICK}/.glusterfs" \) -prune -o -type f \
-exec gluster-setgfid2path {} \;
look at that find line eating and leaving no crumbs π₯ it prunes .trashcan and .glusterfs so you're not out here setting xattrs on stuff you shouldn't, then hits every regular file with the tool. periodt.
π SEE ALSO π
gluster(8)β go read that one too, iykyk π
π COPYRIGHT π
Copyright(c) 2017 Red Hat, Inc. <http://www.redhat.com>
π reminder for the girlies: the xattrs only get recorded after you enable the feature, and this tool is your fix for the files that were already there before you did. no cap.
and that's the whole page!! mwah π
sign-off time π this was gluster-setgfid2path(8) from the System Manager's Manual β literally just a command line utility to set GFID to Path β and the copyright is Red Hat, Inc., 2017 π«Ά stay iconic, bestie β¨πΈ
π¦ where this page comes from
- centos-stream 9: glusterfs 6.0-57.4.el9 Β· GPLv2 or LGPLv3+
- debian bookworm: glusterfs-common 10.3-5 Β· LGPL-3.0-or-later OR GPL-2.0-only
- debian trixie: glusterfs-common 11.1-6 Β· LGPL-3.0-or-later OR GPL-2.0-only
- fedora 43: glusterfs 11.2-4.fc43 Β· GPL-2.0-only OR LGPL-3.0-or-later
- fedora 43: glusterfs-server 11.2-4.fc43 Β· GPL-2.0-only OR LGPL-3.0-or-later
- fedora 44: glusterfs 11.2-5.fc44 Β· GPL-2.0-only OR LGPL-3.0-or-later
- fedora 44: glusterfs 11.2-8.fc44 Β· GPL-2.0-only OR LGPL-3.0-or-later
- fedora 44: glusterfs-server 11.2-5.fc44 Β· GPL-2.0-only OR LGPL-3.0-or-later
- fedora 44: glusterfs-server 11.2-8.fc44 Β· GPL-2.0-only OR LGPL-3.0-or-later
- nixos 26.05: glusterfs 11.2
- nixpkgs unstable: glusterfs 11.2
- opensuse-leap 16.0: glusterfs 11.1-160000.2.2 Β· GPL-2.0-only OR LGPL-3.0-or-later
- opensuse-leap 16.0: glusterfs 11.1-160000.2.2 Β· GPL-2.0-only OR LGPL-3.0-or-later
- opensuse-leap 16.0: glusterfs 11.1-160000.2.2 Β· GPL-2.0-only OR LGPL-3.0-or-later
- opensuse-leap 16.0: glusterfs 11.1-160000.2.2 Β· GPL-2.0-only OR LGPL-3.0-or-later
- ubuntu jammy: glusterfs-common 10.1-1 Β· LGPL-3.0-or-later OR GPL-2.0-only
- ubuntu jammy: glusterfs-common 10.1-1ubuntu0.2 Β· LGPL-3.0-or-later OR GPL-2.0-only
- ubuntu noble: glusterfs-common 11.1-4build3 Β· LGPL-3.0-or-later OR GPL-2.0-only
- ubuntu noble: glusterfs-common 11.1-4ubuntu0.1 Β· LGPL-3.0-or-later OR GPL-2.0-only
- ubuntu questing: glusterfs-common 11.1-6
- ubuntu resolute: glusterfs-common 11.2-2 Β· LGPL-3.0-or-later OR GPL-2.0-only
- ubuntu stonking: glusterfs-common 11.2-5 Β· LGPL-3.0-or-later OR GPL-2.0-only
- Copyright (c) 2017 Red Hat, Inc. <http://www.redhat.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms