glusterfs
53 строки · 1.5 Кб
1
2.\" Copyright (c) 2017 Red Hat, Inc. <http://www.redhat.com>
3.\" This file is part of GlusterFS.
4.\"
5.\" This file is licensed to you under your choice of the GNU Lesser
6.\" General Public License, version 3 or any later version (LGPLv3 or
7.\" later), or the GNU General Public License, version 2 (GPLv2), in all
8.\" cases as published by the Free Software Foundation.
9.\"
10.\"
11.TH gluster-setgfid2path 8 "Command line utility to set GFID to Path Xattrs"
12.SH NAME
13gluster-setgfid2path - Gluster tool to set GFID to Path xattrs
14.SH SYNOPSIS
15.B gluster-setgfid2path
16.IR file
17.SH DESCRIPTION
18New feature introduced with Gluster release 3.12, to find full path from GFID.
19This feature can be enabled using Volume set command \fBgluster volume set
20<VOLUME> storage.gfid2path enable\fR
21.PP
22Once \fBgfid2path\fR feature is enabled, it starts recording the necessary
23xattrs required for the feature. But it will not add xattrs for the already
24existing files. This tool provides facility to update the gfid2path xattrs for
25the given file path.
26
27.SH EXAMPLES
28To add xattrs of a single file,
29.PP
30.nf
31.RS
32gluster-setgfid2path /bricks/b1/hello.txt
33.RE
34.fi
35.PP
36To set xattr for all the existing files, run the below script on each bricks.
37.PP
38.nf
39.RS
40BRICK=/bricks/b1
41find $BRICK -type d \\( -path "${BRICK}/.trashcan" -o -path \\
42"${BRICK}/.glusterfs" \\) -prune -o -type f \\
43-exec gluster-setgfid2path {} \\;
44.RE
45.fi
46.PP
47.SH SEE ALSO
48.nf
49\fBgluster\fR(8)
50\fR
51.fi
52.SH COPYRIGHT
53.nf
54Copyright(c) 2017 Red Hat, Inc. <http://www.redhat.com>
55