FOG Project

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

    NAS Drives?

    General
    3
    5
    1179
    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
      joshrpg last edited by

      Has anyone tried moving the storage location of their images to a NAS Drive?

      (ie: instead of “/images/”, having something like “/images/nas” where nas is a mounted directory or even mounting images directory to the nas drive.)

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator last edited by

        Thanks for pointing this out! I totally forgot that linux’s ‘mv’ command does not move hidden files. So either you move that file seperately (mv /images/.mntcheck /nas) or you just create it as Joseph suggested.
        Concerning access rights ‘mv’ should not alter them. If they were 777 before they should be 777 after moving too! But it doesn’t hure either!

        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
        • Joseph Hales
          Joseph Hales Testers last edited by

          I am one of those people, the process you described is exactly what I meant and was what I used to mount a raid array on the same server to /images. After mount don’t forget to [FONT=monospace][COLOR=#000000]sudo touch /images/.mntcheck and [/COLOR][/FONT][FONT=monospace][COLOR=#000000]sudo chmod 777 -R /images I believe these would also avoid any issues with permissions ect. correct me if I wrong. [/COLOR][/FONT]

          RTFM

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator last edited by

            Right it has been done! But we also see quite some people (little linux experienced) having a lot of trouble to move the location and get it all running (NFS and such).
            If you’re unsure I suppose you’re better of NOT changing the path but better mount your NAS to /images. Would be something like this (please think twice before copy paste the commands!! I won’t be liable if anything goes wrong here):
            [CODE]sudo mkdir /nas
            sudo mount … <nas-share> /nas
            sudo move /images/* /nas
            sudo umount /nas
            sudo rmdir /nas
            sudo mount … <nas-share> /images[/CODE]

            Try if FOG is happy with this. If everything is fine you should add this NAS-share to your fstab.

            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
            • Joseph Hales
              Joseph Hales Testers last edited by

              Yes its been done there should be a thread in the forums basically if it’s a mount point on your server you just set the permissions and mountcheck it.

              RTFM

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

              252
              Online

              10.2k
              Users

              16.3k
              Topics

              149.9k
              Posts

              Copyright © 2012-2020 FOG Project