1
2gluster-setgfid2path(8)     System Manager's Manual    gluster-setgfid2path(8)
3
4
5

NAME

7       gluster-setgfid2path - Gluster tool to set GFID to Path xattrs
8

SYNOPSIS

10       gluster-setgfid2path file
11

DESCRIPTION

13       New  feature  introduced  with  Gluster release 3.12, to find full path
14       from GFID.  This feature can be enabled using Volume set command  glus‐
15       ter volume set <VOLUME> storage.gfid2path enable
16
17       Once  gfid2path  feature  is enabled, it starts recording the necessary
18       xattrs required for the feature. But it will not  add  xattrs  for  the
19       already  existing  files.  This  tool  provides  facility to update the
20       gfid2path xattrs for the given file path.
21
22

EXAMPLES

24       To add xattrs of a single file,
25
26              gluster-setgfid2path /bricks/b1/hello.txt
27
28       To set xattr for all the existing files, run the below script  on  each
29       bricks.
30
31              BRICK=/bricks/b1
32              find $BRICK -type d \( -path "${BRICK}/.trashcan" -o -path \
33                  "${BRICK}/.glusterfs" \) -prune -o -type f \
34                  -exec gluster-setgfid2path {} \;
35

SEE ALSO

37       gluster(8)
38
40       Copyright(c) 2017   Red Hat, Inc.   <http://www.redhat.com>
41
42
43
44                Command line utility to set GFID to PathglXuasttterrs-setgfid2path(8)
Impressum