• 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

      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
      • ch3iC
        ch3i Moderator
        last edited by

        Hi, can you post you export ?

        cat /etc/exports 
        
        1 Reply Last reply Reply Quote 0
        • M
          mrzo
          last edited by

          /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.

          ch3iC 1 Reply Last reply Reply Quote 0
          • ch3iC
            ch3i Moderator @mrzo
            last edited by

            @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

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

              ch3iC 1 Reply Last reply Reply Quote 0
              • ch3iC
                ch3i Moderator @mrzo
                last edited by

                @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

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • M
                  mrzo
                  last edited by

                  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
                  • Wayne WorkmanW
                    Wayne Workman @ch3i
                    last edited by

                    @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 Reply Quote 0
                    • M
                      mrzo @Wayne Workman
                      last edited by

                      @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
                      • First post
                        Last post

                      141

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project