diff --git a/fstab.md b/fstab.md new file mode 100644 index 0000000..c51f5f7 --- /dev/null +++ b/fstab.md @@ -0,0 +1,15 @@ +To mount SeaweedFS using `/etc/fstab` (such as on boot): + +* Follow the directions in https://github.com/seaweedfs/seaweedfs/wiki/FUSE-Mount for setting up a SeaweedFS mount subtype for FUSE (hint: `cp weed /sbin/weed`) +* Install SeaweedFS as usual, making sure any specific settings (such as `security.toml`) are in the correct location to be read +* Add the fstab entry as described below + +If you have a single filer server, this is the syntax you will use: + +`fuse /path/to/mountpoint fuse.weed filer=localhost:8888,filer.path=/,defaults,_netdev 0 0` + +If you have multiple filer servers, this is the syntax you will use: + +`fuse /path/to/mountpoint fuse.weed filer='192.168.0.1:8888,192.168.0.2:8888',filer.path=/,defaults,_netdev 0 0` + +Place the appropriate line into `/etc/fstab` and attempt to mount your filesystem. If you encounter any issues, run `weed mount` directly in verbose/debug mode to diagnose the issue, and switch back to fstab-style mounting once you have resolved the issues. \ No newline at end of file