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

    [Request] FOG NAS Tutorial

    Scheduled Pinned Locked Moved
    Tutorials
    8
    19
    13.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.
    • J
      joshua
      last edited by

      is there a .mntcheck file in the /images and /images/dev locations?
      if not, create a file named .mntcheck in each of those locations.

      1 Reply Last reply Reply Quote 0
      • M
        MatWEB
        last edited by

        Thanks for your fast answer,:)

        To make a long story short, this is an existing server to a local hard disk 1TB I want to migrate to a NAS to have more disk space. I synced the content of local disk on the NAS with rsync to not lose any images created with FOG. I deleted the files .Mntcheck files from /images/ and /dev/ then I recreated. I also checked the contents of /etc/exportfs to have everything consistent.

        What else I have to look too?

        1 Reply Last reply Reply Quote 0
        • J
          joshua
          last edited by

          make sure your newly mounted /images has user= fog group = root permissions

          just run the ls -al command in the root / to check this.
          Also, go into the /tftpboot directory and paste the contents of one of the command files here so I can see exactly what’s going on.
          in order to see a command file, you must have an active task. the command file will have the name of the MAC address of the machine that the task is created for.

          also, 10.200.44.2 = that is your fog-server correct? or is that the storage’s IP address?

          I will check my setup for any additional details that could help resolve this for you…

          1 Reply Last reply Reply Quote 0
          • M
            MatWEB
            last edited by

            Here’s the result of the ls -la :
            drwxrwxrwx 40 root root 4096 2013-03-08 12:29 images --> HDD 1To
            drwxrwxrwx 45 root root 4096 2013-03-11 11:00 nfs --> NFS
            Inside the HDD 1To that is working :
            drwxrwxrwx 2 root root 4096 2012-02-08 08:22 Windows7
            drwxrwxrwx 2 root root 4096 2012-02-08 08:22 .
            drwxrwxrwx 40 root root 4096 2013-03-08 12:29 …
            -rwxrwxrwx 1 root root 512 2012-02-08 08:22 d1.mbr
            -rwxrwxrwx 1 root root 9071479 2012-02-08 08:22 d1p1.img
            -rwxrwxrwx 1 root root 7166395069 2012-02-08 08:38 d1p2.img
            TFTPBOOT folder :
            drwxr-xr-x 5 fog root 4096 2011-09-27 11:27 .
            drwxr-xr-x 25 root root 4096 2012-11-20 13:54 …
            -rw-r–r-- 1 fog root 828 2011-09-27 11:27 boot.txt
            drwxr-xr-x 6 fog root 4096 2012-06-08 09:05 fog
            -rw-r–r-- 1 fog root 25340 2011-09-27 11:27 memdisk
            -rw-r–r-- 1 fog root 16794 2011-09-27 11:27 pxelinux.0
            drwxr-xr-x 2 fog root 4096 2013-03-11 11:36 pxelinux.cfg
            drwxr-xr-x 2 fog root 4096 2011-09-27 11:27 tftpboot
            -rw-r–r-- 1 fog root 147728 2011-09-27 11:27 vesamenu.c32
            IP of FOG server : 10.200.44.2
            IP of NAS : 10.200.44.5

            1 Reply Last reply Reply Quote 0
            • J
              joshua
              last edited by

              looks like your /images is mounted as user = root with group = root.
              run this command.
              sudo chown fog /images (that will Change Owner to fog for /images.)

              As for your TFTP: I was more interested to see the contents of one of your files.

              do: cd /tftpboot/pxelinux.cfg/

              inside this directory is where your workstation looks for the PXE file to boot.

              when you set a task to run in fog, a file is output to this directory (/tftpboot/pxelinux.cfg)
              the name of the file IS THE MAC ADDRESS of the host to be imaged. (ex. 01-00-24-e8-fa-e9)

              I want to see what is inside of that file… that is where all of the connection information is at.

              Please paste the contents of this file.

              Finally, do not hesitate to ask for assistance if you need help with anything mentioned above.

              1 Reply Last reply Reply Quote 0
              • M
                MatWEB
                last edited by

                Here’s my TFTPBOOT directory listing :
                technicien@FOGSERVER:/tftpboot/pxelinux.cfg$ ls -la
                total 12
                drwxr-xr-x 2 fog root 4096 2013-03-13 14:47 .
                drwxr-xr-x 5 fog root 4096 2011-09-27 11:27 …
                -rw-r–r-- 1 fog root 3006 2012-12-11 11:31 default
                technicien@FOGSERVER:/tftpboot/pxelinux.cfg$
                I changed the ownership of /images to fog:root
                No success. Is there something I have to configure in my NAS ?

                1 Reply Last reply Reply Quote 0
                • J
                  joshua
                  last edited by

                  First off, yes, did you create a user on your device named fog with the password of password of password? (unless you changed your default password in fog or set it on linux)

                  I was able to replicate this and have successfully got it passed the permission denied error.
                  This is NOT what I was talking about before. This requires you actually setup a new storage node in FOG web settings.

                  Step 1: Select “Storage Management” from the top menu in the Fog web interface.
                  Step 2: Add New storage node.
                  – See my screenshot
                  – Be sure to use “/mnt/pools/A/A0/images/” if this is accurate to your device. (On my Iomega share I have /images setup-- change the name to reflect your share.)

                  [ATTACH=full]269[/ATTACH]
                  NOTICE: I set this to my default storage node / is Master node. (because my server is just a virtual appliance, the storage is external…)

                  Now, make sure your fog installation can see it… go back to the home page and check your storage size.
                  (It will be blank until you change to the Storage node you just created.) (for my new storage node, it says “Unable to connect”… but when I select “default member” from the list, I see all my disk space from my Iomega device.)
                  [ATTACH=full]270[/ATTACH]
                  Finally, as you can see, In Image Management, I have it set to store images in the Default Storage group.
                  [ATTACH=full]271[/ATTACH]
                  This method should work for you, it worked for me twice… I set it up and it worked, then I re-installed fog and re-did it just to make sure.

                  [url=“/_imported_xf_attachments/0/269_storagenode.PNG?:”]storagenode.PNG[/url][url=“/_imported_xf_attachments/0/270_diskspace.PNG?:”]diskspace.PNG[/url][url=“/_imported_xf_attachments/0/271_imagemanage.PNG?:”]imagemanage.PNG[/url]

                  1 Reply Last reply Reply Quote 0
                  • K
                    Kevin
                    last edited by

                    You have a lot of drive space on your FOG server 0_0 lol, but good tutorial. I’m going to try this out with FreeNAS, just to see how well it works.

                    "The quieter you become, the more you are able to hear"

                    New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

                    1 Reply Last reply Reply Quote 0
                    • C
                      Carlos Miguel
                      last edited by

                      I have been searching for a detailed tutorial for a wile about configuring a FOG Server inside a virtualbox with an other virtualbox having FreeNAS installed.

                      This topic has a lot of good information about that but unfortunetly I have little experience with linux and freenas so it´s hard to make sence of all that you posted before.

                      I have managed to install ubuntu with fog and using it´s own dhcp service I managed to backup and deploy multiple images but I´m trying to learn new and better ways to store and deploy images. Using FreeNAS is my goal but the little information I find it´s still hard to absorb.

                      I would like to know if you had a video of all the steps involving the configurations or a tutorial that could explain step by step.

                      Thank you all for the previous posts and the knowledge that you share.
                      Oh, and sorry for my english, it´s not my first language.

                      1 Reply Last reply Reply Quote 0
                      • W
                        wcrowder
                        last edited by

                        Have this working with Freenas… Thank you Joshua…

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

                        129

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project