[Gluster-users] Shard storage suggestions

Gandalf Corvotempesta gandalf.corvotempesta at gmail.com
Tue Jul 19 08:54:01 UTC 2016


2016-07-19 9:23 GMT+02:00 Krutika Dhananjay <kdhananj at redhat.com>:
> No. Note that all files and directories under /.shard are like normal files
> and directories to the file-system, it is just
> shard translator that has a special way of interpreting this layout of
> files. What this means is that each file and directory at and under /.shard
> will need to have its own unique gfid. In other words, for this layout you
> suggested:
>
> /.shard/d218cd1c-4bd9-40d7-9810-86b3f7932509/d218cd1c-4bd9-40d7-9810-86b3f7932509.1
>
> the sub-directory /.shard/d218cd1c-4bd9-40d7-9810-86b3f7932509/ will not
> have the gfid d218cd1c-4bd9-40d7-9810-86b3f7932509 because this is already
> assigned to the original file that was sharded based on whose gfid we are
> naming the rest of the shards. This means the subdir will have a new gfid
> assigned to it, as will the file d218cd1c-4bd9-40d7-9810-86b3f7932509.1.
> Does that make sense?

Ok, so, even the directory name must be unique and is not possible to
have a directory that has the same gfid as a file.


More information about the Gluster-users mailing list