- Newest
- Most votes
- Most comments
Hello Karen, Thank you for your message. I understand you are experiencing difficulty with your s3fs mount in Ubuntu 14.04.6 LTS.
To evaluate the issue you reported, I launched an Ubuntu 14.04.6 EC2 instance and manually compiled s3fs. I was then able to mount an S3 bucket to my instance, create new files in it, and successfully unmount and remount the bucket.
In order to reproduce the issue with the question marks appearing in "ls" output, the only action I found that would accomplish this was to forcefully kill the s3fs process without safely unmounting the bucket:
# kill -6 21759
# ls -al /mnt/
ls: cannot access /mnt/s3bucket: Transport endpoint is not connected
total 8
drwxr-xr-x 3 root root 4096 Mar 25 17:35 .
drwxr-xr-x 22 root root 4096 Mar 25 17:00 ..
d????????? ? ? ? ? ? s3bucket
This indicates that either (1) the bucket is being unmounted improperly, or (2) the s3fs process is being killed unexpectedly.
To avoid issue (1), please make sure that no running processes have open files in the S3 bucket before attempting to unmount it. You can use the "lsof" command to verify this. In the example below, you can see that I am using the "vi" text editor on a file in my S3 bucket:
# lsof /mnt/s3bucket/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
vi 21916 root 4u REG 0,24 12288 5 /mnt/s3bucket/.hello.swp
I would need to make sure I quit vi before unmounting my bucket.
As for issue (2) there are many scenarios in which a process can be killed unexpectedly, and I would not be able to speculate without having specific knowledge of your system. However, I can recommend that you use the "auditd" daemon to collect information in the event that the s3fs process is killed. I am including resources below with instructions for installing auditd and configuring a rule to monitor "kill" signals[1][2].
Please let me know if you have any questions.
References:
[1] https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-track-changes/
[2] https://www.thegeekdiary.com/how-to-find-which-process-is-killing-mysqld-with-sigkill-or-sigterm-on-linux/
Relevant content
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago