-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blobfuse2 fstab not working #921
Comments
Hi @AGELadviseurs, This may be due to the fact that the mount command for v2 is |
Hi, I tried that aswell (check the last paragraph in my first post) but it is not working. It says “parse error”. |
@AGELadviseurs : we are able to reproduce this locally and it appears that having "mount" as a subcommand in blobfuse2 is causing this parsing error. This is because fstab expects first keyword to be file-system and second to be mount point while in case of blobfuse2 second keyword in command is "mount" subcommand. We are checking feasibility of getting around this problem. For now, there is one possible solution to this, if you are blocked due to this error. You can create a shell script that has the mount command written inside and fstab can just run that script. blobfuse2.sh |
@vibhansa-msft: thanks, that workaround works for now. |
Fixed has been merged in main branch, next release will have it. |
What was the fix? |
blobfuse2 /mnt/blob_mnt fuse defaults,netdev,allow_other,--tmp-path=/usr/tempcache,--config-file=/home/myuser/myblob.cfg 0 0 |
For some reason that does not work for me. Not sure what to look for in the logs. |
If your CLI command is working fine for mount, then you can put that up in shell script and from /etc/fstab you can just launch the shell script itself. This is one workaround if you are stuck on /etc/fstab. |
Those customer facing this issue with fstab here are the updates:
|
Hi all - fstab line: baseConfig.yaml: allow-other: true logging: components:
libfuse: stream: attr_cache: azstorage: This boots into emergency mode because the mount fails to load. My initial suspicion was that this failed because it tried to mount before the network was loaded, causing it to timeout during authentication. Setting the second 0 to 2 (to skip filesystem check at boot) fails too, which made me think something else isn't working. I can share the systemd info as well if requested. Any thoughts? Thanks! |
Hi, I don't have any problems mounting through fstab. I see some differences though. First of all, I use the following line in fstab: blobfuse2 /home/username/mountdir fuse defaults,_netdev,--config-file=/home/username/config.yaml,allow_other 0 0 I have the path for temp location inside the yaml file: file_cache: |
With blobfuse 1.4 I used fstab, but I never got it to work with blobfuse2. I have not tried since Dec 2022 though. For what it is worth, below is my working unit file for systemd. With fstab the mount point is created automatically. With this systemd service solution, the mount point e.g.
|
This worked for me, thanks so much. |
_netdev : is the option that waits for the network device to come up. This might be the reason it was failing earlier. File-cache path provided in script or fstab shall not make any difference in the mount flow. |
Which version of the blobfuse was used?
2.0.0-preview.3
Which OS (please include version) are you using?
Ubuntu Server 20.04.5 LTS
What problem was encountered?
One-time mounting works fine. Can't get persistent mount working with fstab. No problems with blobfuse1.
Have you found a mitigation/solution?
No
By default, blobfuse logs errors to syslog. If this is relevant, is there anything in the syslog that might be helpful?
No
If relevant, please share your mount command.
In fstab I have the following entry:
blobfuse2 /mnt/blobcontainer fuse defaults,_netdev,--config-file=/home/user/blobfuse_config.yaml 0 0
sudo mount -a results in:
Error: unknown command "/mnt/blobcontainer" for "blobfuse2"
Adding "mount" after blobfuse2 in fstab and then trying sudo mount -a results in:
mount: /etc/fstab: parse error at line 5 -- ignored
Nothing related being output to varlog.
The text was updated successfully, but these errors were encountered: