Mounting File System failed - reason: mount: mounting [ip]:/mount/dev on /images failed: Permission denied [SOLVED]
-
I have followed several forum post on how to set this up but with no luck have not been able to resolve this issue.
As this is a common issue I will try my best to add all context within one post.
OBJECTION:
The FOG server does not have enough storage on it. I created a Shared Folder on a Synology NAS device and wanted to mount it onto the server to store the image files.SERVER INFORMATION
FOG- FOG Version: 1.5.9
- OS: Linux 3.10.0-1062.4.1.el7.x86_64 x86_64 (CentOS 7)
Error Code
Init Version: 20200906 Could not mount images folder (/bin/fog.upload) Args Passed: Reason: mount: mounting [fog_ip]:/mnt/dev/ on /images failed: Permission denied Kernel variables and settings: loglevel = 4 initrd=inif.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://[fog_ip]/fog/ consoleblank=0 rootfstype=ext4 nvme_core.default_ps_max_latency_us = 0 mac=[mac address] ftp=[fog_ip] storage=[fog_ip]:/mnt/dev/ storageip=[fog_ip] osid=9 irqpoll hostname=[mac address] chkdsk=0 img=[Image name] imgType=n imgPartitonType=all imgid=30 imgFormat=5 PIGZ_COMP=-6 hostearly=1 pct=5 ignorepg = 1 type=up
How I got here
I did the initial set up of both the Shared Folders and FOG Server found on the forums.I mounted the NAS synology.
sudo mount -t nfs [nas_ip]:/volume1/images /mnt
Through the FOG web GUI, I added it as a Storage Node with changing these settings
IP Address: [fog_ip] Image Path: /mnt
I edited the permissions
chmod 777 -R /mnt
Where I am current at
I am able to create and edit files on the NAS server through the FOG server. I can even see Storage Node Disk Usage from the FOG web GUI dashboard.
However I still cannot upload images onto the NAS server. Any help on this would be appreciated.
-
@elogan Simple answer is that nfs can’t do what you are asking it to do.
This would be the same as server A mounts a share W drive onto server B share of \serverb\fileshare Then you would try to share out W drive on sever A you can’t reshare a mounted share.
-
@george1421 Okay, thanks for clarifying with me on that one. That dashboard stat really gave me false hope for a second lol.
I had also followed this tutorial https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/2 and created the proper storage node for it. I must have messed up the FOG storage node general settings.
Looks to be working good sorry bout that. Thanks again george1421 you’re THE BEST
-
@elogan Ok that was the link I was going to give you. You can not connect through the fog server, but you can setup a synolgy nas as a “fake” fog storage node.