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

    Locked out of Fog...

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    19
    4.1k
    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
      msnyder
      last edited by

      @george1421 said in Locked out of Fog...:

      df -h

      I got it…

      root@PDC-FOG:/# cat /etc/fstab
      # /etc/fstab: static file system information.
      #
      # Use 'blkid' to print the universally unique identifier for a
      # device; this may be used with UUID= as a more robust way to name devices
      # that works even if disks are added and removed. See fstab(5).
      #
      # <file system> <mount point>   <type>  <options>       <dump>  <pass>
      # / was on /dev/sda1 during installation
      UUID=d539e06c-4300-4f52-8a5f-b8b9585e8ec8 /               ext4    errors=remount-ro 0       1
      # swap was on /dev/sda5 during installation
      UUID=46b75b5b-5cc6-474a-b0bf-9ac7afa2b49f none            swap    sw              0       0
      /dev/sdb1       /images         ext4    defaults        0       2
      root@PDC-FOG:/#
      
      george1421G 1 Reply Last reply Reply Quote 1
      • george1421G
        george1421 Moderator @msnyder
        last edited by

        @msnyder Glad you have it worked out.

        just confirm now in /images and /images/dev that you have the hidden file .mntcheck with ls -la /images and ls -la /images/dev and you should be all set.

        I would also reboot the FOG server to make sure everything survives a reboot. That way 6 months from now you don’t wonder what happened to all of our 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!

        1 Reply Last reply Reply Quote 0
        • M
          msnyder
          last edited by msnyder

          Yep! Thanks for your help!

          1 Reply Last reply Reply Quote 0
          • M
            msnyder
            last edited by

            I’ve captured my first image and it doesn’t seem to be replicating to my storage nodes… Could this be becasue I moved the /images to a new drive?

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

              @msnyder no if the /images reconnected to /dev/sdb1 then the mount is good. Do the replicator logs in /opt/fog/log give you any idea?

              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
              • M
                msnyder
                last edited by

                It appears that even though the capture completed on the machine, the image is staying in /images/dev/<macaddress>…

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

                  @msnyder Make sure your permissions are set correctly for /images

                  They should be owned by user fog:root right or wrong the file permissions are 777

                  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
                  • M
                    msnyder
                    last edited by

                    Correct?

                    root@PDC-FOG:/# ls -l
                    total 104
                    drwxr-xr-x   2 root root  4096 Jun 21 08:29 bin
                    drwxr-xr-x   3 root root  4096 Jun 21 08:25 boot
                    drwxr-xr-x  19 root root  3980 Jun 21 09:09 dev
                    drwxr-xr-x  98 root root  4096 Jun 21 15:25 etc
                    drwxr-xr-x   5 root root  4096 Jun 21 08:31 home
                    drwxr-xr-x   5 root root  4096 Jun 21 08:37 images
                    lrwxrwxrwx   1 root root    32 Jun 21 08:24 initrd.img -> boot/initrd.img-4.4.0-81-generic
                    lrwxrwxrwx   1 root root    32 May  9 14:37 initrd.img.old -> boot/initrd.img-4.4.0-77-generic
                    drwxr-xr-x  23 root root  4096 Jun 21 08:28 lib
                    drwxr-xr-x   3 root root  4096 May  9 14:50 lib32
                    drwxr-xr-x   2 root root  4096 Jun 21 08:22 lib64
                    drwx------   2 root root 16384 May  9 14:18 lost+found
                    drwxr-xr-x   3 root root  4096 May  9 14:18 media
                    drwxr-xr-x   3 root root  4096 May 22 09:22 mnt
                    drwxr-xr-x   4 root root  4096 Jun 21 08:32 opt
                    dr-xr-xr-x 239 root root     0 Jun 21 04:09 proc
                    drwx------   8 root root  4096 Jun 21 09:19 root
                    drwxr-xr-x  31 root root  1100 Jun 22 08:04 run
                    drwxr-xr-x   2 root root 12288 Jun 21 08:29 sbin
                    drwxr-xr-x   2 root root  4096 Jan 14 09:06 snap
                    drwxr-xr-x   3 root root  4096 Jun 21 08:31 srv
                    dr-xr-xr-x  13 root root     0 Jun 21 04:09 sys
                    drwxr-xr-x   6 fog  root  4096 Jun 21 08:33 tftpboot
                    drwxr-xr-x   2 root root  4096 Jun 21 08:33 tftpboot.prev
                    drwxrwxrwt  17 root root  4096 Jun 22 08:40 tmp
                    drwxr-xr-x  10 root root  4096 May  9 14:18 usr
                    drwxr-xr-x  14 root root  4096 Jun 21 08:28 var
                    lrwxrwxrwx   1 root root    29 Jun 21 08:24 vmlinuz -> boot/vmlinuz-4.4.0-81-generic
                    lrwxrwxrwx   1 root root    29 May  9 14:37 vmlinuz.old -> boot/vmlinuz-4.4.0-77-generic
                    
                    root@PDC-FOG:/# cd /images/
                    root@PDC-FOG:/images# ls -l
                    total 24
                    drwxrwxrwx 5 fog  root  4096 Jun 21 14:01 dev
                    drwx------ 2 root root 16384 Jun 21 08:36 lost+found
                    drwxrwxrwx 2 fog  root  4096 Jun 21 08:33 postdownloadscripts
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @msnyder This should do the trick: chmod 777 /images

                      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
                      • M
                        msnyder
                        last edited by

                        @Sebastian-Roth said in Locked out of Fog...:

                        chmod 777 /images

                        Will I need to recapture my image now?

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

                          @msnyder You will need to capture the images again (or be sneeky and move the /images/dev/<mac_name> to /images/<image_name> as the <image_name> is exactly defined in the image configuration. mv /images/dev/<mac_name> /images/<image_name> The capture is complete it just needs to be parked in the right location.

                          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
                          • M
                            msnyder
                            last edited by

                            Seems to be replicating now! Thanks!

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

                            144

                            Online

                            12.1k

                            Users

                            17.3k

                            Topics

                            155.4k

                            Posts
                            Copyright © 2012-2024 FOG Project