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

    Storing FOG Images on Separate Network Drive

    Scheduled Pinned Locked Moved
    Linux Problems
    4
    23
    8.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.
    • D
      Data31337
      last edited by

      FOG Revision: 7945
      Ubuntu: 14.04

      After finally getting FOG up and running we were testing it with various images, XP & 7 in particular, and ran into a disk space error. We only had the server allocated for 40Gbs but it was working fine til we tried to image the 7 machine. Long story short it kept dropping out on us (with the disk space memory low, please cancel or allocate more.) I cancelled the task but it ended up corrupting my machine all together. I uninstalled FOG and it said there was only 2.8Gbs out of 37Gbs used but it still kept prompting me with the error.

      My question is, is it possible to store the images in a separate location but still only use the master node to distribute them? We have plenty of space to run the images, its just located somewhere else on the network. I was looking in the FOG wiki, and it said something about Storage nodes to help distribute images, but we aren’t wanting extra nodes to help distribute, we just want to use another memory location to store the images.

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

        @Data31337 said in Storing FOG Images on Separate Network Drive:

        but we aren’t wanting extra nodes to help distribute, we just want to use another memory location to store the images.

        This is what storage nodes do. They add capacity to your system, both in terms of deployment and storage space. Additionally, in Linux you cannot re-export an already exported directory. meaning if you tried to mount a remote folder on the FOG server to keep images in, NFS wouldn’t re-export it and nothing would work. You could use an external drive, but that’s not ideal for enterprise. You’re best option is a storage node. You can setup a Linux box and use the fog installer to setup the storage node, or you can manually setup a storage node with NFS and FTP and the needed files on a NAS or windows box or similar.

        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
        • D
          Data31337
          last edited by

          The thing is, we don’t have the space for a second VM box on the host that we’re using. Would I be able to setup a storage node on the same box as my normal server is on and mount the network drive to it?

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

            @Data31337 said in Storing FOG Images on Separate Network Drive:

            Would I be able to setup a storage node on the same box as my normal server is on and mount the network drive to it?

            I’m not sure I understand the question.

            A FOG server is either configured as a full-server, or as a storage node. It doesn’t matter what is hosting a share, fog cannot re-export it, Linux cannot re-export it. Where-ever the images are stored must too be a storage node or a main server.

            A storage node doesn’t need to be in a VM, it can be physical too.

            Perhaps your main fog server doesn’t need to be in a VM? Maybe set everything up on a physical box with a set of large HDDs configured in RAID 1. Just throwing ideas out there.

            You may find a better understanding from this: https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin

            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
            • george1421G
              george1421 Moderator
              last edited by

              I wrote a kb a while ago about moving your images off the root partition.

              https://forums.fogproject.org/topic/6642/moving-fog-s-images-files-off-the-root-partition

              Ideally you would create a new vmdk file that is 100GB or larger and then mount that onto your fog server.

              If you don’t want to move your files off the root partition (not sure why you wouldn’t want to ), You can take another path, add a new vmdk file then use the lvm tools to add that new disk (partition) to your current fog volume root volume group.

              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!

              D 1 Reply Last reply Reply Quote 0
              • D
                Data31337
                last edited by

                You’ve answered my question, but let me explain a bit clearer.

                Ok, so I have a 40 Gbs VM Machine, but (now that I’m thinking about it maybe better to run 5 or 6 Older HDs into a RAID 1) I want to be able store more images. We have a 1.5 TB external storage device but I can’t seem to figure out how to get Ubuntu to map to it successfully and store my images there.

                It doesn’t matter what is hosting a share, fog cannot re-export it, Linux cannot re-export it.

                Basically explains it, I can’t do it either way because Linux or FOG cannot re-export the images from the networked drive.

                1 Reply Last reply Reply Quote 0
                • D
                  Data31337 @george1421
                  last edited by Data31337

                  @george1421

                  I have found a work around to do what I needed. Instead of having a active storage node, you can set a folder inside the /images folder that is mounted. You have to remember that, you cannot export images to that folder, but what you can do is copy the images to it. So instead of imaging/cloning directly to it, copy the image to it. Then if you want to retrieve your image, navigate to it and copy it back. Be sure to reset the permissions after you move it back. I have done this successfully with several images, using a 1.5 TB external drive mounted to a folder inside the /images folder. I’m only doing this due to the limited HD Space on my FOG server.

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

                    @Data31337 If possible, I’d rip out the old fog server and build a new one with the space you need.

                    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/

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      Data31337 @Wayne Workman
                      last edited by Data31337

                      @Wayne-Workman

                      I know but its not much of a option for me because we’re a Medium size shop and not a big fan of random towers just sitting everywhere. Also, we have it hosted with 3 other servers with very limited drives since our last array broke due to a controller battery, so just making due with what we have.

                      [edit] Trust me, after the array gets fixed, thats one of things I plan on doing is ripping out the old fog server and building a new one. [/edit]

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        ITSolutions Testers @Data31337
                        last edited by

                        @Data31337 I think I actually have exactly what you are trying to do working in my setup.

                        If you want Ubuntu to automatically mount a USB drive on boot it is possible.

                        First I would rename the /images to /images2
                        Then create a new /images folder

                        Next you need the UUID of the drive
                        -Go to a terminal and type sudo blkid and find the dev for your external drive and copy/make note of the UUID.
                        -Then sudo nano /etc/fstab and add the following line tot he end of it:

                         UUID=(Copy the UUID of your drive)   /images      ext4  nofail,auto,noatime,rw,user 0	 0
                        

                        Then run sudo mount -a

                        Reset the permissions on the /images folder and move all images to the new /images folder.

                        You should now be able to use your external drive. Make sure that the drive is plugged in at all times, especially at reboot.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Data31337 @ITSolutions
                          last edited by

                          @ITSolutions

                          Thanks a lot! I think this is exactly what I’m looking for.

                          Do you know if this will this work for a Networked External Drive that’s currently plugged into a different server?

                          I Wayne WorkmanW 3 Replies Last reply Reply Quote 0
                          • I
                            ITSolutions Testers @Data31337
                            last edited by

                            @Data31337 I haven’t tried that, so not sure it it will or not.

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

                              @Data31337 Yes, it’ll work for network drives - but again - you cannot re-export an already exported drive. You can mount as many shares as you like for whatever purpose you like on the fog server, but those can’t be used directly for imaging.

                              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/

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                ITSolutions Testers @Data31337
                                last edited by

                                @Data31337 I just re-read your “work around” instead of do as I described you could just mount the /images directory directly to the external storage the same way you are doing the mount of the /images/extstorage

                                What is the file system on your extstorage?

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  Data31337 @ITSolutions
                                  last edited by

                                  @ITSolutions

                                  Ill try it and respond with what I find. thanks again!

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    ITSolutions Testers @Wayne Workman
                                    last edited by

                                    @Wayne-Workman said in Storing FOG Images on Separate Network Drive:

                                    @Data31337 Yes, it’ll work for network drives - but again - you cannot re-export an already exported drive. You can mount as many shares as you like for whatever purpose you like on the fog server, but those can’t be used directly for imaging.

                                    I am not sure what you mean by this I have a simalar setup and it works great for me. Actually I have 2 storage groups on the same master FOG server. I did have to add in the /etc/exports the extra lines to do NFS correctly. But in the OP’s case that shouldn’t be needed.

                                    Wayne WorkmanW D 2 Replies Last reply Reply Quote 0
                                    • Wayne WorkmanW
                                      Wayne Workman @ITSolutions
                                      last edited by

                                      @ITSolutions read back in the thread and it’ll make sense.

                                      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
                                      • D
                                        Data31337 @ITSolutions
                                        last edited by Data31337

                                        @ITSolutions

                                        The file system is NTFS. The issue I was running into is the Permissions. Everytime I transfer a image to the external storage drive, it would reset the permissions to drwxr-xr-x when I noticed it needed to be read/write/executable by everyone. I originally thought it was a issue with “Sticky Bits” Permissions but it wasn’t. It was just that the NTFS drive isn’t setup with the 777 permissions and when it mounted, it carried its permissions over.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          Data31337 @ITSolutions
                                          last edited by

                                          @ITSolutions

                                          UPDATE I tried doing

                                          Next you need the UUID of the drive
                                          -Go to a terminal and type sudo blkid and find the dev for your external drive and copy/make note of the UUID.
                                          -Then sudo nano /etc/fstab and add the following line tot he end of it:
                                          UUID=(Copy the UUID of your drive) /images ext4 nofail,auto,noatime,rw,user 0 0

                                          Which ended up failing due to the fact the Network Drive didn’t produce a UUID sadly. I’m not experienced enough with Linux to know of any work around either. But thanks again for the idea.

                                          I 1 Reply Last reply Reply Quote 0
                                          • I
                                            ITSolutions Testers @Data31337
                                            last edited by

                                            @Data31337 How are you mounting the share currently? You said it is mounted as /images/external if you just change your mount point to /images you should be able to complete it that way

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

                                            224

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project