[GH-ISSUE #279] s3fs on CentOS 6.x - finally OK #144

Closed
opened 2026-03-04 01:42:35 +03:00 by kerem · 6 comments
Owner

Originally created by @fdutheil on GitHub (Oct 16, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/279

Hi,

Getting s3fs command to work was pretty straightforward:

  • get fuse 2.9.2 SRPM from CentOS 7 and rebuild it on a CentOS 6: fuse now meets s3fs minimum version requirement (sadly CentOS 6's fuse doesn't)
  • follow s3fs-fuse documentation to compile s3fs
  • use s3fs command to mount - success

Now, the tricky and dirty part: fstab

  • Try to mount the very same bucket from fstab: FAIL
  • Use basic mount command (not mount.fuse): FAIL
  • Use mount.fuse command: success. Yeah, tricky, indeed.

In short: I tried several syntax in fstab with no luck. The "deprecated" "s3fs#mybucket" with a "fuse" type, or the "actual" (I presume) syntax with "mybucket" and "fuse.s3fs" type where not working either.

Analysing strace gave me some clue:

stat("/sbin/mount.fuse.s3fs", 0x7ffc83e991c0) = -1 ENOENT (No such file or directory)
stat("/sbin/mount.fuse", 0x7ffc83e991c0) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
stat("/sbin/mount.fuse.s3fs", 0x7ffc83e99190) = -1 ENOENT (No such file or directory)
stat("/sbin/mount.fuse", 0x7ffc83e99190) = -1 ENOENT (No such file or directory)
mount("s3fs#mybucket", "/srv/mymountpoint", "fuse.s3fs", MS_MGC_VAL|MS_NOATIME, "max_stat_cache_size=100001,stat_"...) = -1 EINVAL (Invalid argument)

Now, the dirty part: ln -s /usr/sbin/mount.fuse /sbin/mount.fuse solves the fstab problem...
That's ugly, I know... If you have any suggestion, feel free to share :)

Originally created by @fdutheil on GitHub (Oct 16, 2015). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/279 Hi, Getting s3fs command to work was pretty straightforward: - get fuse 2.9.2 SRPM from CentOS 7 and rebuild it on a CentOS 6: fuse now meets s3fs minimum version requirement (sadly CentOS 6's fuse doesn't) - follow s3fs-fuse documentation to compile s3fs - use s3fs command to mount - success Now, the tricky and dirty part: fstab - Try to mount the very same bucket from fstab: FAIL - Use basic mount command (not mount.fuse): FAIL - Use mount.fuse command: success. Yeah, tricky, indeed. In short: I tried several syntax in fstab with no luck. The "deprecated" "s3fs#mybucket" with a "fuse" type, or the "actual" (I presume) syntax with "mybucket" and "fuse.s3fs" type where not working either. Analysing strace gave me some clue: ``` stat("/sbin/mount.fuse.s3fs", 0x7ffc83e991c0) = -1 ENOENT (No such file or directory) stat("/sbin/mount.fuse", 0x7ffc83e991c0) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 stat("/sbin/mount.fuse.s3fs", 0x7ffc83e99190) = -1 ENOENT (No such file or directory) stat("/sbin/mount.fuse", 0x7ffc83e99190) = -1 ENOENT (No such file or directory) mount("s3fs#mybucket", "/srv/mymountpoint", "fuse.s3fs", MS_MGC_VAL|MS_NOATIME, "max_stat_cache_size=100001,stat_"...) = -1 EINVAL (Invalid argument) ``` Now, the dirty part: `ln -s /usr/sbin/mount.fuse /sbin/mount.fuse` solves the fstab problem... That's ugly, I know... If you have any suggestion, feel free to share :)
kerem closed this issue 2026-03-04 01:42:35 +03:00
Author
Owner

@gaul commented on GitHub (Oct 16, 2015):

I wonder why FUSE 2.8.4 is the minimum required. 147dd86215 changed this but I cannot see the requirement from its diff.

@mooredan any ideas?

<!-- gh-comment-id:148821929 --> @gaul commented on GitHub (Oct 16, 2015): I wonder why FUSE 2.8.4 is the minimum required. 147dd86215f58593748095f70af8dd66d44bc1f3 changed this but I cannot see the requirement from its diff. @mooredan any ideas?
Author
Owner

@fdutheil commented on GitHub (Oct 23, 2015):

@andrewgaul : I've been wondering myself and found a solid reason here: issue #42

<!-- gh-comment-id:150528347 --> @fdutheil commented on GitHub (Oct 23, 2015): @andrewgaul : I've been wondering myself and found a solid reason here: issue #42
Author
Owner

@juliogonzalez commented on GitHub (Sep 23, 2018):

Just for reference, I updated #42: even if the instability mentioned was not related to 2.8.3, tests are not passing anymore with 2.8.3 for some basic things such as truncating files or removing non empty directories.

<!-- gh-comment-id:423833989 --> @juliogonzalez commented on GitHub (Sep 23, 2018): Just for reference, I updated #42: even if the instability mentioned was not related to 2.8.3, tests are not passing anymore with 2.8.3 for some basic things such as truncating files or removing non empty directories.
Author
Owner

@juliogonzalez commented on GitHub (Dec 30, 2018):

@gaul, I just updated the Wiki with all the details, so I think we can close this issue.

<!-- gh-comment-id:450585921 --> @juliogonzalez commented on GitHub (Dec 30, 2018): @gaul, I just updated the Wiki with all the details, so I think we can close this issue.
Author
Owner

@gaul commented on GitHub (Jan 24, 2019):

@fdutheil Could you close this issue?

<!-- gh-comment-id:457038716 --> @gaul commented on GitHub (Jan 24, 2019): @fdutheil Could you close this issue?
Author
Owner

@fdutheil commented on GitHub (Jan 24, 2019):

Oh yes, and the procedures in the wiki seems much cleaner. Nice.

<!-- gh-comment-id:457137356 --> @fdutheil commented on GitHub (Jan 24, 2019): Oh yes, and the procedures in the wiki seems much cleaner. Nice.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#144
No description provided.