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

    Trouble after adding storage to /images

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    4
    24
    7.8k
    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.
    • george1421G
      george1421 Moderator
      last edited by

      Here are the instructions I put together for disks that use LVM. https://forums.fogproject.org/topic/6642/moving-fog-s-images-files-off-the-root-partition

      If you set it up with LVM (as in the link) if you run out of space, just add a new vmdk file and then attach that new disk to the fog vg.

      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!

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        something else to check on the FOG server. What does the output of showmount -e 127.0.0.1 give you?

        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!

        A 1 Reply Last reply Reply Quote 0
        • A
          arduinoAndMore @Tom Elliott
          last edited by

          @Tom-Elliott Thank you for your reply. I looked in /etc/exports and it was pointing at /images and /images/dev I’m pretty sure there’s nothing on /images/dev but the new drive is mounted at /images.

          I tried changing both to point at /images and got the same result. I’m not sure if I did that right or not, but you’re right about the /etc/exports file.

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

            @arduinoAndMore what’s the output of:

            sudo mount
            

            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

            A 1 Reply Last reply Reply Quote 0
            • A
              arduinoAndMore @george1421
              last edited by

              @george1421

              The output of showmount -e 127.0.0.1 is

              Export list for 127.0.0.1
              /images *
              
              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @arduinoAndMore
                last edited by george1421

                @arduinoAndMore yeah, you are missing the /images/dev share.

                You should have

                Export list for 127.0.0.1:
                /images/dev *
                /images     *
                

                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!

                A 1 Reply Last reply Reply Quote 0
                • A
                  arduinoAndMore @Tom Elliott
                  last edited by arduinoAndMore

                  @Tom-Elliott

                  Output of sudo mount

                  /dev/mapper/fogserver--vg-root on / type ext4 (rw,errors=remount-ro)
                  proc on /proc type proc (rw,noexec,nosuid,nodev)
                  sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                  none on /sys/fs/cgroup type tmpfs (rw)
                  none on /sys/fs/fuse/connections type fusectl (rw)
                  none on /sys/kernel/debug type debugfs (rw)
                  none on /sys/kernel/security type securityfs (rw)
                  udev on /dev type devtmpfs (rw,mode=0755)
                  devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                  tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                  none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                  none on /run/shm type tmpfs (rw,nosuid,nodev)
                  none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
                  none on /sys/fs/pstore type pstore (rw)
                  /dev/sdb1 on /images type ext3 (rw)
                  /dev/sda1 on /boot type ext2 (rw)
                  rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
                  systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
                  nfsd on /proc/fs/nfsd type nfsd (rw)
                  vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)```
                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @arduinoAndMore
                    last edited by

                    @arduinoAndMore I notice that /images is NOT mounted currently.

                    Going to guess you still need to run:

                    sudo mount /dev/sdb1 /images (assuming /dev/sdb is the new disk you added?)

                    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

                    Tom ElliottT A 2 Replies Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @Tom Elliott
                      last edited by

                      @Tom-Elliott

                      I see this:

                      deu/sdbl on / images type ext3 (rw)

                      Did you type or copy-paste the output?

                      If copy-paste, then your issue (from what I can see, is you’re mounting sdb1 on / and not on /images.

                      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
                      • A
                        arduinoAndMore @Tom Elliott
                        last edited by arduinoAndMore

                        @Tom-Elliott

                        I did a screenshot and coped the text from the picture using OneNote. OCR’s fault 🙂 I updated the output of sudo mount (reply below) using copy-paste over ssh.

                        Output of sudo mount /dev/sdb1 /images is

                        mount: /dev/sdb1 already mounted or /images busy
                        mount: according to mtab, /dev/sdb1 is already mounted in /images
                        1 Reply Last reply Reply Quote 0
                        • A
                          arduinoAndMore @george1421
                          last edited by

                          @george1421 This makes sense. What is the proper way to add the share? Thanks

                          george1421G 1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @arduinoAndMore
                            last edited by

                            @arduinoAndMore This is what I have in my /etc/exports

                            [root@localhost ~]# cat /etc/exports
                            /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                            /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
                            

                            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!

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              arduinoAndMore @george1421
                              last edited by

                              @george1421

                              My output is as follows. Note that I changed the second line from /images/dev to /images. I assume that’s not what I was supposed to do.

                              fogadmin@fogserver:~$ cat /etc/exports
                              /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                              /images *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1) 
                              

                              As you mentioned in your reply I should probably see the /images/dev share in the output of showmount. How should I go about adding that new share?

                              Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @arduinoAndMore
                                last edited by

                                @arduinoAndMore Your second part is wrong, you need the /dev part:

                                Make the second line read as:
                                /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)

                                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
                                • george1421G
                                  george1421 Moderator @arduinoAndMore
                                  last edited by

                                  @arduinoAndMore Make sure that /images/dev exists and then just update the /etc/exports file. And finally run exportfs -a to update the shares.

                                  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!

                                  A 1 Reply Last reply Reply Quote 1
                                  • A
                                    arduinoAndMore @george1421
                                    last edited by

                                    @george1421 @Tom-Elloitt

                                    Content of /etc/exports

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

                                    Output of showmount -e 127.0.0.1

                                    Export list for 127.0.0.1:
                                    /images/dev *
                                    /images     *
                                    

                                    I still get the message from the client saying:
                                    “Could not verify mount point. Check if .mntcheck exists (/bin/fog.upload)”
                                    Computer will reboot in 1 minute

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

                                      @arduinoAndMore what is the output of this command? find /images | grep .mntcheck and this command ls -lahRt /images

                                      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/

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        arduinoAndMore @Wayne Workman
                                        last edited by arduinoAndMore

                                        @Wayne-Workman said in Trouble after adding storage to /images:

                                        find /images | grep .mntcheck

                                        Output of find /images | grep .mntcheck is

                                        /images/.mntcheck
                                        

                                        Out put of ls -lahRt /imagesis

                                        /images:
                                        total 36K
                                        drwxr-xr-x  6 fog  root 4.0K Jun 15 14:55 .
                                        drwxrwxrwx  2 fog  root 4.0K Jun 15 14:55 dev
                                        drwxr-xr-x 26 root root 4.0K Jun 15 14:07 ..
                                        -rwxrwxrwx  1 fog  root    0 Jun 15 14:04 .mntcheck
                                        drwxrwxrwx  2 fog  root  16K Jun 15 13:56 lost+found
                                        drwxrwxrwx  2 fog  root 4.0K May 26 09:34 MultiKiosk
                                        drwxrwxrwx  2 fog  root 4.0K May 11 10:32 postdownloadscripts
                                        /images/dev:
                                        total 8.0K
                                        drwxr-xr-x 6 fog root 4.0K Jun 15 14:55 ..
                                        drwxrwxrwx 2 fog root 4.0K Jun 15 14:55 .
                                        /images/lost+found:
                                        total 20K
                                        drwxr-xr-x 6 fog root 4.0K Jun 15 14:55 ..
                                        drwxrwxrwx 2 fog root  16K Jun 15 13:56 .
                                        /images/MultiKiosk:
                                        total 1.8G
                                        drwxr-xr-x 6 fog root 4.0K Jun 15 14:55 ..
                                        -rwxr-xr-x 1 fog root   47 May 26 09:34 d1.original.swapuuids
                                        -rwxr-xr-x 1 fog root  512 May 26 09:34 d1p2.ebr
                                        drwxrwxrwx 2 fog root 4.0K May 26 09:34 .
                                        -rwxr-xr-x 1 fog root 1.8G May 26 09:34 d1p1.img
                                        -rwxr-xr-x 1 fog root  512 May 26 09:27 d1p5.ebr
                                        -rwxr-xr-x 1 fog root  250 May 26 09:27 d1.minimum.partitions
                                        -rwxr-xr-x 1 fog root 1.0M May 26 09:27 d1.mbr
                                        -rwxr-xr-x 1 fog root    0 May 26 09:27 d1.has_grub
                                        -rwxr-xr-x 1 fog root   16 May 26 09:27 d1.original.fstypes
                                        -rwxr-xr-x 1 fog root  250 May 26 09:27 d1.partitions
                                        -rwxr-xr-x 1 fog root    4 May 26 09:27 d1.fixed_size_partitions
                                        /images/postdownloadscripts:
                                        total 12K
                                        drwxr-xr-x 6 fog root 4.0K Jun 15 14:55 ..
                                        drwxrwxrwx 2 fog root 4.0K May 11 10:32 .
                                        -rwxr-xr-x 1 fog root  233 May 11 10:32 fog.postdownload
                                        

                                        As you can see I do have one small image called MultiKiosk that is stored here already. I’m trying to capture a new Windows7 image right now.

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

                                          @arduinoAndMore Can you please run:

                                          sudo touch /images/dev/.mntcheck
                                          sudo chmod -R 777 /images
                                          

                                          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

                                          A 1 Reply Last reply Reply Quote 1
                                          • A
                                            arduinoAndMore @Tom Elliott
                                            last edited by

                                            @Tom-Elliott …So apparently the .mntcheck file goes inside /images/dev and not just under /images? Was that really what I did wrong? facepalm

                                            Is it just that .mntcheck should be under /images/dev or should it be in both /images/dev and /images?

                                            It works now.

                                            Thank you both so much for your valuable assistance! Keep up the good work!

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

                                            181

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project