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

Changing the directory where Fog images are stored question

Scheduled Pinned Locked Moved
FOG Problems
7
28
17.0k
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.
  • W
    Wayne Workman @PageTown
    last edited by Feb 1, 2016, 8:48 PM

    @PageTown Check your firewall, and set 777 permissions recursively on /media/bfd/images

    chmod -R 777 /media/BFD/images

    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/

    P 1 Reply Last reply Feb 1, 2016, 9:05 PM Reply Quote 0
    • P
      PageTown @Wayne Workman
      last edited by Feb 1, 2016, 9:05 PM

      @Wayne-Workman

      The chmod command didn’t work.

      If it was a firewall issue, wouldn’t that block my being able to register the host?

      I W 2 Replies Last reply Feb 1, 2016, 9:11 PM Reply Quote 0
      • I
        ITSolutions Testers @PageTown
        last edited by Feb 1, 2016, 9:11 PM

        @PageTown d you run chmod as sudo?

        sudo chmod -R 777 /media/BFD/images
        
        
        P 1 Reply Last reply Feb 1, 2016, 9:24 PM Reply Quote 1
        • W
          Wayne Workman @PageTown
          last edited by Feb 1, 2016, 9:12 PM

          @PageTown said:

          The chmod command didn’t work.

          It might not have solved the issue, but I promise it’s a necessary step.

          You’re /etc/exports should look like this:

          /media/BFD/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
          /media/BFD/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
          

          You’re .mntcheck file creation would be:

          touch /media/BFD/images/.mntcheck
          touch /media/BFD/images/dev/.mntcheck
          

          Then to recursively set that directory and the mntcheck files permissions:
          chmod -R 777 /media/BFD/images

          You’d need to reset the nfs and rpc service next (or just reboot).

          sudo service nfs-kernel-server restart
          sudo service rpcbind restart
          

          Seeing how you have an NFS related issue with uploading, you might want to look through this wiki and try some of these things manually:
          https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_NFS

          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/

          P 1 Reply Last reply Feb 2, 2016, 5:14 PM Reply Quote 0
          • P
            PageTown @ITSolutions
            last edited by Feb 1, 2016, 9:24 PM

            @ITSolutions

            Yes.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Feb 1, 2016, 9:32 PM

              @PageTown So what error did you see when trying to chmod?? We need information to be able to help!

              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

              P 1 Reply Last reply Feb 1, 2016, 10:08 PM Reply Quote 1
              • P
                PageTown @Sebastian Roth
                last edited by Feb 1, 2016, 10:08 PM

                @Sebastian-Roth

                There was no message when I ran the chmod command. It looked to me like it took it, but I am still getting the same error that is in the screen shot I posted when I try to pull an image.

                W 1 Reply Last reply Feb 1, 2016, 11:20 PM Reply Quote 0
                • W
                  Wayne Workman @PageTown
                  last edited by Feb 1, 2016, 11:20 PM

                  @PageTown There has to be something wrong somewhere. Can you take more pictures of the upload process? A lot of information is displayed during the upload and that would help us solve this. Also, can you give us a screen shot of your storage node settings area? What is your FOG Server’s IP address?

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by Feb 2, 2016, 10:21 AM

                    @PageTown The path /media/BFD sounds a bit like this is an external drive mounted into that path. What filesystem is on that drive? Run mount | grep media to check and post the output here in the forums.

                    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

                    P 1 Reply Last reply Feb 2, 2016, 2:26 PM Reply Quote 0
                    • P
                      PageTown @Sebastian Roth
                      last edited by Feb 2, 2016, 2:26 PM

                      @Sebastian-Roth

                      I have Ubuntu and Fog installed on a 120GB SSD. I am trying to save my images to a separate 1TB HDD drive. The 1TB drive is an internal drive, connected to the mother board via SATA.

                      The filesystem is NTFS. See screenshot.

                      The result of running the mount | grep was : /dev/sdb1 on /media/BFD type fuseblk (rw, nosuld,nodev,allow_other,default_permissions,blksize=4096)0_1454423215415_Screenshot from 2016-02-02 08_18_07.png

                      I 1 Reply Last reply Feb 2, 2016, 3:51 PM Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Feb 2, 2016, 3:49 PM

                        I am not sure if NFS on a NTFS partition is a good idea? Anyone ever tried this? I haven’t so far. Permission issue might be because of this but I am not sure.

                        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

                        P W 2 Replies Last reply Feb 2, 2016, 3:55 PM Reply Quote 0
                        • I
                          ITSolutions Testers @PageTown
                          last edited by Feb 2, 2016, 3:51 PM

                          @PageTown You don’t want to use NTFS on an NFS share. It is best if you reformat the drive to Ext4 and then go back through the steps outlined by @Wayne-Workman

                          1 Reply Last reply Reply Quote 1
                          • P
                            pugnacious @Sebastian Roth
                            last edited by Feb 2, 2016, 3:55 PM

                            @Sebastian-Roth I never got it to work at all. I ended up swapping to a different solution.

                            1 Reply Last reply Reply Quote 0
                            • P
                              PageTown @Wayne Workman
                              last edited by PageTown Feb 2, 2016, 11:17 AM Feb 2, 2016, 5:14 PM

                              @Wayne-Workman

                              Ok, I am up and running! I was following your instructions regarding the exports file and creating the mntcheck files and went into my BFD drive to look at the /images and /images/dev folder when I right clicked on a folder and noticed that the path was not BFD but BFD_. I renamed the path in exports and in storage management and it started pulling an image from my test machine.

                              I feel foolish that it was something so simple, but I don’t recall naming the drive with an underscore. The only place the additional underscore even shows up is when you right click on a file or folder on it and look at the path.

                              Thanks everyone for your time and patience!

                              1 Reply Last reply Reply Quote 2
                              • W
                                Wayne Workman @Sebastian Roth
                                last edited by Wayne Workman Feb 2, 2016, 11:48 AM Feb 2, 2016, 5:47 PM

                                @Sebastian-Roth said:

                                I am not sure if NFS on a NTFS partition is a good idea? Anyone ever tried this? I haven’t so far. Permission issue might be because of this but I am not sure.

                                This might have been the issue all along for those that have attempted storage nodes on Windows Servers.

                                I’m sure the permissions can be sorted out though for NTFS. I suppose you’d set the permissions to “everyone” for full control.

                                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/

                                P 1 Reply Last reply Feb 4, 2016, 1:35 PM Reply Quote 0
                                • P
                                  pugnacious @Wayne Workman
                                  last edited by Feb 4, 2016, 1:35 PM

                                  @Wayne-Workman
                                  The issue i was having with windows storage nodes is likely a permissions issue, but the first thing we tried was setting the permissions across the board to full control. Good luck figuring it out. It was so annoying, we swapped the storage node for a linux machine.

                                  1 Reply Last reply Reply Quote 0
                                  • 1
                                  • 2
                                  • 2 / 2
                                  2 / 2
                                  • First post
                                    22/28
                                    Last post

                                  157

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project