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

    FOG 1.1.1 : NAS and NFS issue : unable to change folder permission

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    13
    7.9k
    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.
    • Jonathan CoolJ
      Jonathan Cool
      last edited by

      Hi,
      I think, i have a similar problem like this topic : [url]http://fogproject.org/forum/threads/permission-denied-when-trying-to-image-after-update-to-1-1-1-1-1-2.10941/#post-31514[/url]

      I have run a debug task on a client with the same issue : Permission denied when i try “mount -o nolock …”

      Maybe my /etc/exports file is wrong … ?

      My stuff :
      Server :
      FOG Version : Running Version 1.5.9
      OS : Debian GNU/Linux 10
      FOG Client Version : 0.12
      Specifications :
      > All images are on a Synology NAS storage : mounted with NAS_ip:/images
      > French user :)
      > “If everything would work the first time, what would you have learned?”
      Challenges make knowledge growth … by George1421 ;)

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        [quote=“Jonathan Cool, post: 31811, member: 24834”]Hi,
        I think, i have a similar problem like this topic : [url]http://fogproject.org/forum/threads/permission-denied-when-trying-to-image-after-update-to-1-1-1-1-1-2.10941/#post-31514[/url]

        I have run a debug task on a client with the same issue : Permission denied when i try “mount -o nolock …”

        Maybe my /etc/exports file is wrong … ?[/quote]

        Try this:
        chmod -R 777 /mnt/img_FOG;

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • Jonathan CoolJ
          Jonathan Cool
          last edited by

          I can’t change the rights 😕
          [CODE]root@image:/# chmod -R 777 /mnt/img_FOG
          chmod: modification des permissions de " /mnt/img_FOG ": Operation non permise
          [/CODE]

          My stuff :
          Server :
          FOG Version : Running Version 1.5.9
          OS : Debian GNU/Linux 10
          FOG Client Version : 0.12
          Specifications :
          > All images are on a Synology NAS storage : mounted with NAS_ip:/images
          > French user :)
          > “If everything would work the first time, what would you have learned?”
          Challenges make knowledge growth … by George1421 ;)

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            You may need to change the permissions FROM the NAS.

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • Jonathan CoolJ
              Jonathan Cool
              last edited by

              i haven’t SSH access on the NAS. Just a web interface (Black Armor 220) and i have set all rights for “root” and “fog” users on this folder (/fogimages) …

              My stuff :
              Server :
              FOG Version : Running Version 1.5.9
              OS : Debian GNU/Linux 10
              FOG Client Version : 0.12
              Specifications :
              > All images are on a Synology NAS storage : mounted with NAS_ip:/images
              > French user :)
              > “If everything would work the first time, what would you have learned?”
              Challenges make knowledge growth … by George1421 ;)

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                [quote=“Jonathan Cool, post: 31649, member: 24834”]The issue : after a good PXE boot client, i can see this NFS error : mounting 10.xxx.xx.xx:/img_NAS on /images failed : Permission denied.[/quote]

                Which directory is FOG Storage Management trying to use?

                img_NAS or img_FOG?

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • Jonathan CoolJ
                  Jonathan Cool
                  last edited by

                  I’m trying to use img_FOG on the Storage Management section in the FOG web interface.

                  My stuff :
                  Server :
                  FOG Version : Running Version 1.5.9
                  OS : Debian GNU/Linux 10
                  FOG Client Version : 0.12
                  Specifications :
                  > All images are on a Synology NAS storage : mounted with NAS_ip:/images
                  > French user :)
                  > “If everything would work the first time, what would you have learned?”
                  Challenges make knowledge growth … by George1421 ;)

                  1 Reply Last reply Reply Quote 0
                  • Jonathan CoolJ
                    Jonathan Cool
                    last edited by

                    hi.
                    Now it’s works !
                    The problem was a false storage management configuration for the NAS.
                    [I]Howto works with NAS[/I] (Seagate Blakc Armor, last firmeware):
                    [U]/etc/fstab[/U] :
                    IPadr_NAS_Seagate:/DataVolume/fogimages /mnt/img_FOG nfs auto,rw,dev,exec,nfsvers=3 0 0

                    [U]/etc/exports[/U] :
                    /mnt/img_FOG *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2)
                    /mnt/img_FOG/dev *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1)

                    [U]ls -la /mnt[/U] :
                    drwxrwxr-x 4 root nfsfog 4096 juil. 2 08:09 img_FOG

                    [U]/etc/passwd[/U] :
                    fog❌1001:1001::/home/fog:/bin/bash
                    [U]/etc/group[/U] :
                    fog❌1001:

                    [U]On interface, Add Storage Management[/U] :
                    IP Adr : “IP of NAS”
                    Is Master Node : No
                    Image Path /DataVolume/fogimages (path of the NAS)
                    Management Username : fog (it’s a fog user on NAS)

                    Done !

                    Now, i can upload an image on the NAS Storage 🙂

                    My stuff :
                    Server :
                    FOG Version : Running Version 1.5.9
                    OS : Debian GNU/Linux 10
                    FOG Client Version : 0.12
                    Specifications :
                    > All images are on a Synology NAS storage : mounted with NAS_ip:/images
                    > French user :)
                    > “If everything would work the first time, what would you have learned?”
                    Challenges make knowledge growth … by George1421 ;)

                    1 Reply Last reply Reply Quote 0
                    • Jonathan CoolJ
                      Jonathan Cool
                      last edited by

                      Hi !
                      Hm … i’m sorry but it’s not good … just after an upload image, the folder /dec/@mac couldn’t seem moved to /name_of_image … I think, it’s a problem with folder / owner permission … i can connect to the NAS folder by FTP (with fog user) and create / delete a file / folder in …/dev/@MAC.
                      When i’m connected to the NAS folder by FTP, i can see, for all folders : owner:group = ftp:ftp …

                      My stuff :
                      Server :
                      FOG Version : Running Version 1.5.9
                      OS : Debian GNU/Linux 10
                      FOG Client Version : 0.12
                      Specifications :
                      > All images are on a Synology NAS storage : mounted with NAS_ip:/images
                      > French user :)
                      > “If everything would work the first time, what would you have learned?”
                      Challenges make knowledge growth … by George1421 ;)

                      1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott
                        last edited by

                        This is a known issue with NAS. Which one I don’t know, so i’m just guessing all.

                        To fix, you need to reconfigure the NAS’s FTP home settings to mount into the proper location as well.

                        Essentially, as I understand it, NFS mount’s properly because you specify where it’s looking:
                        e.g. /volume1/images/

                        In FTP, it strips the first folder (/volume1/) during connection, so it’s essentially trying to ftp the files to a non-existent folder:

                        /images

                        One way you could test to verify is link your /img_FOG folder to the root of the NAS Share.

                        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • Jonathan CoolJ
                          Jonathan Cool
                          last edited by

                          [quote=“Tom Elliott, post: 32392, member: 7271”]One way you could test to verify is link your /img_FOG folder to the root of the NAS Share.[/quote]
                          When i try to mount (by fstab) :
                          1xx.xxx.xxx.xxxx:/DataVolume/ /mnt/img_FOG nfs nouser,auto,rw,dev,exec,suid,nfsvers=3 0 0

                          mount -a say : mount.nfs : access by server while mounting 1xxx.xxx.xxxx.xx:/DataVolume/

                          If i try to mount 1xx.xxx.xxx.xxxx:/DataVolume/fogimages, the “mount -a” command works … but the problem is the same …
                          arg !

                          My stuff :
                          Server :
                          FOG Version : Running Version 1.5.9
                          OS : Debian GNU/Linux 10
                          FOG Client Version : 0.12
                          Specifications :
                          > All images are on a Synology NAS storage : mounted with NAS_ip:/images
                          > French user :)
                          > “If everything would work the first time, what would you have learned?”
                          Challenges make knowledge growth … by George1421 ;)

                          1 Reply Last reply Reply Quote 0
                          • Jonathan CoolJ
                            Jonathan Cool
                            last edited by

                            Hi.
                            I found a temporary solution : after the upload, i connect to the NAS by FTP and move the files into …/fogimages/dev/@MAC to …/fogimages/“folder named in FOG interface”.
                            After that, the download task works on an other computer but only for Mint Linux OS … (other distrib’ not tested yet). With Windows 7 image, i have an error message …
                            Maybe i need to create a new topic about this new issue ?

                            My stuff :
                            Server :
                            FOG Version : Running Version 1.5.9
                            OS : Debian GNU/Linux 10
                            FOG Client Version : 0.12
                            Specifications :
                            > All images are on a Synology NAS storage : mounted with NAS_ip:/images
                            > French user :)
                            > “If everything would work the first time, what would you have learned?”
                            Challenges make knowledge growth … by George1421 ;)

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

                            152

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project