storj/storage/filestore
Cameron Ayer 586e6f2f13 private/testblobs, storage, storage/filestore: add storage dir verification to filestore
Sometimes SNOs fail to properly configure or lose connection to their storage directory
which can result in DQ. This causes unnecessary repair and is unfortunate for all parties.

This change introduces the creation of a special file in the storage directory at runtime
containing the node ID. While the storage node runs, it periodically verifies that it can
find said file with the correct contents in the correct location. If not, the node will
shut down with an error message.

This change will solve the issue of nodes losing access to the storage directory, but it will not
solve the issue of nodes pointing to the wrong directory, as the identifying file is created each
time the node starts up. After this change has been the minimum version for a few releases, we will
remove the creation of the directory-identifying file from the storage node run command and add it
to the setup command.

Change-Id: Ib7b10e96ac07373219835e39239e93957e7667a4
2020-08-19 17:18:14 +00:00
..
blob.go all: add missing dots 2020-08-11 17:50:01 +03:00
dir_test.go storage/filestore: benchmark diskInfoFromPath 2020-06-02 17:49:14 +03:00
dir_unix.go all: fix dots 2020-07-16 14:58:28 +00:00
dir_windows.go all: fix comments 2020-07-16 19:13:14 +03:00
dir.go private/testblobs, storage, storage/filestore: add storage dir verification to filestore 2020-08-19 17:18:14 +00:00
error.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
store_test.go private/testblobs, storage, storage/filestore: add storage dir verification to filestore 2020-08-19 17:18:14 +00:00
store.go private/testblobs, storage, storage/filestore: add storage dir verification to filestore 2020-08-19 17:18:14 +00:00