• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wrong permissions for NFS Share

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    6
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mokomoko
      last edited by Mokomoko

      Server
      • FOG Version: 1.3.0-RC-25
      • OS: Ubuntu 16
      Client
      • Service Version: ??
      • OS: Windows
      Description

      My Storage is an NAS. I want to save the images to “/volume1/images/” on that Server.
      The IP of the Server is 192.168.16.3 and it has NFS enabled.
      The IP of my FOG Server is 192.168.19.6.

      Here is the Error I get:
      0_1479923831475_20161123_185323.jpg

      Here is the Storage Node:
      0_1479923630566_chrome_2016-11-23_18-53-27.png

      Does anybody know whats wrong?
      It says the Permissions are wrong, but which permission? Everyone has read/write on the server NFS Share, and I mounted the Share on /images and /images/dev on my FOG-Server.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        AFAIK you can only upload to the master FOG server. You could use a NAS for a storage node, but not a master node. As for the permission part, your fog server should be setup to share its /images/dev directory already.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        george1421G 1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @Mokomoko
          last edited by Wayne Workman

          @Mokomoko said in Wrong permissions for NFS Share:

          and I mounted the Share on /images and /images/dev on my FOG-Server.

          An imported directory cannot be re-exported in the Linux kernel, it’s not possible. ISCSI devices are different because they are not imported directories but are literally block-level devices being directly accessed across a network.

          You need to un-mount these directories that you have mounted in the FOG Server, and create a new node in the fog web interface for your NAS. Uploads in this particular situation (because you want to just use a NAS) should not pass through the FOG server at all, but should go directly to the NAS during capture.

          On the NAS, you’ll need to setup FTP and a NFS share.

          On the NAS, you need the files /volume1/images/.mntcheck and /volume1/images/dev/.mntcheck. Use the touch command to make them, they are just blank files.

          /volume1/images should be NFS read for everyone and /volume1/images/dev should be NFS write for everyone. Giving full permissions to just the images directory will also work, but anyone could delete all your images this way.

          An FTP account called fog needs made and needs full permission to everything in /volume1/images

          In the FOG Web interface, create a new node, plug in the fog user and it’s FTP password for the credentials, plug in the correct image path and the correct FTP path. Typically those two paths are the same but on some NAS devices they are not. Use the NAS ip address.

          Permissions on the images directory ought to be root:fog and 777.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          M 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @george1421
            last edited by

            @george1421 Assuming its possible to upload to a remote NAS device (as Wayne would indicate). I did have an issue when creating a proof of concept windows storage node with NFS. https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-proof-of-concept-blog

            More precisely this command was used to create the nfs export on the windows server.
            New-NfsShare –Name "images" –Path c:\share\images –Authentication sys -AllowRootAccess $True -EnableUnmappedAccess $True –Permission Readwrite

            I had troubles mapping to the windows box until I added the -AllowRootAccess $True -EnableUnmappedAccess $True I seem to recall something similar when I was playing with a synology NAS as a storage node. You needed the unmapped user enabled as well as the root access. The FOS client executes as root.

            From your fog server you can issue this command to see what’s shared on the NAS box showmount -e <ip_address_of_nas> That should show you the exported shares.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 1
            • M
              Mokomoko @Wayne Workman
              last edited by

              @Wayne-Workman Sounds very reasonable to me - didn’t work though. Still the same Problem. I wish there was something like “Use NFS” in the Menue of the Storage Node. We’ll probably look for a different solution - we already invested hours of debugging with multiple people.

              Thanks for you help though.

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @Mokomoko
                last edited by

                @Mokomoko I’m free today if you want help. IM me.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                137

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project