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

NAS Drives?

Scheduled Pinned Locked Moved
General
3
5
1.4k
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 Mar 7, 2015, 10:27 PM

    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
    • J
      Joseph Hales Testers
      last edited by Mar 8, 2015, 1:40 AM

      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
      • S
        Sebastian Roth Moderator
        last edited by Mar 8, 2015, 8:21 AM

        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.

        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
        • J
          Joseph Hales Testers
          last edited by Mar 8, 2015, 5:14 PM

          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 Mar 8, 2015, 6:40 PM

            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!

            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
            • 1 / 1
            1 / 1
            • First post
              1/5
              Last post

            285

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project