Skip to content

How to get GCSFuse debug logs in persistent mounting? #2490

Answered by raj-prince
raj-prince asked this question in Q&A
Discussion options

You must be logged in to vote

What is persistent mounting? - please refer this doc.

Steps to find debug logs in persistent mounting (/etc/fstab):

  1. Add gcsfuse mount entry (provided a sample below) in /etc/fstab. In this sample, debug_fuse,log_file=/home/logs.txt,log_format=text conveys gcsfuse to write debug logs in /home/logs.txt. Here, princer-empty-bucket is the bucket name, /home/mnt is the mount directory and /home/logs.txt is the log-file path. You need to replace it.
princer-empty-bucket /home/mnt gcsfuse rw,_netdev,allow_other,uid=1924967234,gid=1924967234,implicit_dirs,debug_fuse,log_file=/home/logs.txt,log_format=text
  1. Run sudo mount -a; you will see the below output
Calling gcsfuse with arguments: -o all…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raj-prince
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant