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

    Setting up new storage node

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    6
    24
    11.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.
    • I
      ITSolutions Testers
      last edited by

      If you formatted it as NTFS that is the start of your issues. It needs to be ext2, 3, or 4 in order to work correctly with FOG. Try reformatting and mounting it as ext 4 and see if that fixes your issue.

      1 Reply Last reply Reply Quote 1
      • JordonlovikJ
        Jordonlovik
        last edited by

        @ITSolutions I did what you said. formatted for Ext4 (same as Root). I am getting the same error.

        FogSettings.JPG

        Ext 4 does not allow me to create new folders so this time i just made the location /Fogdrive
        Kubuntu.JPG

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

          After the new drive is formated and mounted and you can SEE it in the linux system,

          open the CLI, go to the new image directory (wherever you mounted it)

          create a .mntcheck file there, then create the dev folder and a .mntcheck file in there.

          touch .mntcheck;mkdir dev;touch dev/.mntcheck
          

          The new directory needs 777 permissions assigned to it recursively as well (you may change this later after it’s working)

          I’m keeping my instructions and commands here generic so that this can help others.

          chmod -R 777 /the/path/to/your/new/hdd/mount/goes/here
          

          Then you need to add the new images and new dev folders to the exports file:

          vi /etc/exports
          

          You’ll see the two lines in there already for your old local storage node. They will have IDs, and in 1.2.0 they start at 1.
          Copy those two lines, change the IDs to 3 and 4. Modify the paths so they are correct.

          Then either reboot or restart NFS and RCP.

          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/

          JordonlovikJ 2 Replies Last reply Reply Quote 1
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            And obviously add the new location to your Storage Management area as a new master node (in it’s own group as well)

            And I agree with @ITSolutions , it’s probably a very bad idea to try to use NTFS. I’d recommend Ext4 as he did.

            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/

            sudburrS 1 Reply Last reply Reply Quote 0
            • JordonlovikJ
              Jordonlovik @Wayne Workman
              last edited by

              @Wayne-Workman Ok so i think i followed you up untill the last part

              @Wayne-Workman said:

              After the new drive is formated and mounted and you can SEE it in the linux system,

              open the CLI, go to the new image directory (wherever you mounted it)

              create a .mntcheck file there, then create the dev folder and a .mntcheck file in there.

              touch .mntcheck;mkdir dev;touch dev/.mntcheck
              

              The new directory needs 777 permissions assigned to it recursively as well (you may change this later after it’s working)

              I’m keeping my instructions and commands here generic so that this can help others.

              chmod -R 777 /the/path/to/your/new/hdd/mount/goes/here
              

              Then you need to add the new images and new dev folders to the exports file:

              vi /etc/exports
              

              You’ll see the two lines in there already for your old local storage node. They will have IDs, and in 1.2.0 they start at 1.
              Copy those two lines, change the IDs to 3 and 4. Modify the paths so they are correct.

              Then either reboot or restart NFS and RCP.

              Could you expound on what the last step does?

              Fog.JPG

              Kubuntu.JPG

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

                @Jordonlovik

                It’s not temp.mntcheck it’s just .mntcheck

                (Files that begin with a period in Linux are hidden, you can see hidden files with ls -la)

                for the /etc/exports stuff, look at this: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_NFS Look at the NFS Settings area in that article.

                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
                • JordonlovikJ
                  Jordonlovik @Wayne Workman
                  last edited by

                  @Wayne-Workman So essentially I am editing the old original .mntcheck files copying their contents, editing them to reflect my new location, changing the 1 to 3 and the 2 to a 4 and then saving that data over my new .mntcheck files in the new location under /media/administrator/Fogdrive. Do I have that correct?

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

                    @Jordonlovik said:

                    Do I have that correct?

                    Not really no. Sorry.

                    the .mntcheck files are empty. They are blank. When NFS mounting occurs on the client, it then verifies that mounting was done correctly and is working. It does this by checking for a file called .mntcheck The clients do not look inside the file, they merely look to see if the file exists. Hence “mnt check”

                    the /etc/exports file defines what directories are exported. think of this as sharing. In that file, you should have two lines that describe your existing local storage node. Just copy those lines and past them at the end of the file, and change those two pasted lines to describe the new exported directories (wherever you mounted your hdd to). You’ll need to update their IDs. You cannot have duplicate IDs in this file. Then you save your changes, and then reboot.

                    Does this 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 1
                    • JordonlovikJ
                      Jordonlovik
                      last edited by

                      @Wayne-Workman yes it does thank you. all i have to do is add two new lines with new IDs that correspond with the new node location.

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

                        @Jordonlovik said:

                        all i have to do is add two new lines with new IDs that correspond with the new node location.

                        Correct.

                        Plus the .mntcheck files and dev folder, and the matching stuff in the web interface afterwards.

                        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 1
                        • JordonlovikJ
                          Jordonlovik
                          last edited by

                          @Wayne-Workman Is there any other way to edit the .mntcheck file? the vi editor is really giving me trouble through my remote session.

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

                            @Jordonlovik

                            You don’t edit the .mntcheck file. It’s supposed to be a blank file.

                            You simply create it with touch .mntcheck and that’s it, you are done.

                            http://www.linfo.org/touch.html

                            The touch Command
                            The touch command is the easiest way to create new, empty files.

                            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/

                            JordonlovikJ 1 Reply Last reply Reply Quote 1
                            • JordonlovikJ
                              Jordonlovik @Wayne Workman
                              last edited by

                              @Wayne-Workman Sorry im saying that wrong i am actually modifying the /etc/exports file! I don’t know how or why i was thinking .mntcheck still. It looks like i may have F’ed my server over anyways. This is my first run at Linux and its been a bumpy one. I was not able to edit the /etc/Exports file because it was owned by root. So i ran the 777 permissions command not knowing the consequences. now i am getting the Sudoers is world writable error. I wish i had realize my install partitioned so idiotic by default. i have plenty of storage space its just not in the root directory where it needs to be.

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

                                @Jordonlovik I apologize, I should have realized. You do need “super user” permission when editing /etc/exports.

                                you can either A. change to super user for the duration of your session like sudo su or B. execute only one command with sudo like sudo vi /etc/exports

                                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 1
                                • sudburrS
                                  sudburr @Wayne Workman
                                  last edited by

                                  @Wayne-Workman said:

                                  And I agree with @ITSolutions , it’s probably a very bad idea to try to use NTFS. I’d recommend Ext4 as he did.

                                  Poking my nose into this little 'ism. The NTFS formatted image drives, physical and virtual, that I’ve been using for over a year disagree. 😉

                                  [ Standing in between extinction in the cold and explosive radiating growth ]

                                  1 Reply Last reply Reply Quote 1
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by Tom Elliott

                                    Maybe I’m seeing the wrong thing.

                                    The DefaultMember is IP address 10.1.1.201, but the new node (which I imagine is on the same server?) is set to IP 10.1.1.102

                                    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

                                    JordonlovikJ 1 Reply Last reply Reply Quote 1
                                    • JordonlovikJ
                                      Jordonlovik @Tom Elliott
                                      last edited by

                                      @Tom-Elliott said:

                                      10.1.1.201, but the new node (which I imagine is on the same s

                                      I noticed this myself. I changed that and am sill experiencing the same error.

                                      1 Reply Last reply Reply Quote 0
                                      • JordonlovikJ
                                        Jordonlovik
                                        last edited by

                                        At this point I am strongly considering a full reinstall of the server. Although it was labor intensive. I was just starting to experience the wonder of FOG imaging too. and I love it.

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

                                          @Jordonlovik said:

                                          At this point I am strongly considering a full reinstall of the server. Although it was labor intensive. I was just starting to experience the wonder of FOG imaging too. and I love it.

                                          I’d recommend CentOS or Fedora. These instructions basically work for both: https://wiki.fogproject.org/wiki/index.php/Fedora_21_Server

                                          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/

                                          JordonlovikJ 1 Reply Last reply Reply Quote 1
                                          • JordonlovikJ
                                            Jordonlovik @Wayne Workman
                                            last edited by

                                            @Wayne-Workman You don’t prefer Kubuntu for FOG setups?

                                            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            176

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project