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

Moving images to another disk

Scheduled Pinned Locked Moved Solved
FOG Problems
3
9
2.5k
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.
  • M
    mrzo
    last edited by mrzo Aug 28, 2015, 12:57 AM Aug 28, 2015, 6:45 AM

    I tried move my existing images to another disk (actually iSCSI storage connected to fog server) but failed. I copied images to new location, changed ownership and permission (later to 777) and changed path to images in fog storage node settings. But when I tried upload new image, process failed with “unable to mount nfs” message. Later when I tried download image, I got not have privileges/permission or similar message. Dont get it, the whole path to particular image have 777. I tried restarting the system, I tried just linking (soft link) to original path - nothing is working. Can anynobody help me with this? Thanks.

    1 Reply Last reply Reply Quote 0
    • C
      ch3i Moderator
      last edited by Aug 28, 2015, 7:13 AM

      Hi, can you post you export ?

      cat /etc/exports 
      
      1 Reply Last reply Reply Quote 0
      • M
        mrzo
        last edited by Aug 28, 2015, 7:32 AM

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

        I looked to this, when I read some tutorial about this problem, but when I tried linking new path (/iscsi/lun0/fog-images) to default path (/images) and it didnt work I didnt consider this a problem. Not sure this is configured, when I change the path in storage node, or if nfs server is reloaded either.

        C 1 Reply Last reply Aug 28, 2015, 8:06 AM Reply Quote 0
        • C
          ch3i Moderator @mrzo
          last edited by Aug 28, 2015, 8:06 AM

          @mrzo said:

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

          I looked to this, when I read some tutorial about this problem, but when I tried linking new path (/iscsi/lun0/fog-images) to default path (/images) and it didnt work I didnt consider this a problem. Not sure this is configured, when I change the path in storage node, or if nfs server is reloaded either.

          If your new path is /iscsi/lun0/fog-images you have to have in your exports that :

          /iscsi/lun0/fog-images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insec                                                                                                 ure,fsid=0)
          /iscsi/lun0/fog-images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1  
          
          1 Reply Last reply Reply Quote 0
          • M
            mrzo
            last edited by Aug 28, 2015, 8:10 AM

            Even if I make soft link /images to /iscsi/lun0/fog-images ?
            And thanks, I try it. Hope it will be just that.

            C 1 Reply Last reply Aug 28, 2015, 8:13 AM Reply Quote 0
            • C
              ch3i Moderator @mrzo
              last edited by Aug 28, 2015, 8:13 AM

              @mrzo said:

              Even if I make soft link /images to /iscsi/lun0/fog-images ?
              And thanks, I try it. Hope it will be just that.

              No sure if it work with soft link :s

              W 1 Reply Last reply Aug 28, 2015, 9:32 PM Reply Quote 0
              • M
                mrzo
                last edited by Aug 28, 2015, 12:49 PM

                Editing /etc/exports helped, not sure if reloading exports was needed, or restart, but I did both after editing to be sure. Thanks.

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman @ch3i
                  last edited by Aug 28, 2015, 9:32 PM

                  @ch3i said:

                  @mrzo said:

                  Even if I make soft link /images to /iscsi/lun0/fog-images ?
                  And thanks, I try it. Hope it will be just that.

                  No sure if it work with soft link :s

                  @mrzo

                  It will work with a soft link - permissions still need set and the .mntcheck files and such still need made, the dev folder still needs made, etc. And the exports file needs to point to the correct sym-link. But yea - soft links will work.

                  I can’t speak for the PERFORMANCE of such a setup, but it will work just fine.

                  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/

                  M 1 Reply Last reply Aug 31, 2015, 12:02 PM Reply Quote 0
                  • M
                    mrzo @Wayne Workman
                    last edited by Aug 31, 2015, 12:02 PM

                    @Wayne-Workman didnt testet it thoroughly, but as I described it, it didnt work, (I made sym link /image - so no change in exports was needed?) , permissions and files created were ok - after changed exports to new location, everything startet to work.

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

                    163

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.3k

                    Posts
                    Copyright © 2012-2024 FOG Project