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

Decreasing Disk Space?

Scheduled Pinned Locked Moved Solved
FOG Problems
5
17
3.7k
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.
  • C
    Chuck2000
    last edited by Nov 17, 2016, 12:54 AM

    Server
    • FOG Version: .32
    • OS: Ubuntu 12
    Client
    • Service Version:
    • OS:
    Description

    I am having an issue with our school’s FOG server. Recently it seems like it is running out of disk space. At this point I can’t log into the web interface. I have been searching for an answer, but so far I haven’t found one.
    Here is the output:

    ![alt text](0_1479343973352_fog.jpg image url)

    It is FOG version .32 and it is running on Ubuntu 12.
    I deleted some unneeded images, and it freed up about 18GB of disk space. The next day the space was gone. I am not the person who originally set up this server. I don’t have a lot of experience with Linux or FOG. I would appreciate any suggestions or guidance that the forum members can provide.

    Thanks

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman Nov 16, 2016, 7:30 PM Nov 17, 2016, 1:27 AM

      If you want to fix this, we need to figure out where the space is going first. Give us the output of these commands:

      cd /var/log/apache2/;du -sh
      cd /var/log;du -sh
      cd /images;du -sh
      cd /images/dev;du -sh
      

      An easier option honestly that will have a 100% chance of success and have less headaches in the future is don’t worry about fixing this server. Just build a new FOG 1.3.0 RC server on another box. We can assist you with migrating the images and the DB.

      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
      • C
        Chuck2000
        last edited by Nov 17, 2016, 1:43 AM

        Hi,

        Thanks for your help. Here is the output you requested. I will consider building a new server. However, I would like to try to get this repaired if possible. We need to image some new computers for our teaching staff as soon as possible.

        0_1479346948613_output.jpg

        W 1 Reply Last reply Nov 17, 2016, 3:06 AM Reply Quote 0
        • C
          Chuck2000
          last edited by Nov 17, 2016, 1:47 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman @Chuck2000
            last edited by Wayne Workman Nov 16, 2016, 9:10 PM Nov 17, 2016, 3:06 AM

            @Chuck2000 Very interesting output, and not what I was expecting. We will need to dig deeper.
            Run this command, it may take some time, but it should list the directories where all the space went to:
            du -h / | grep '[0-9\.]\+G'
            Here’s an alternative command that does a similar task:
            du -Pshx /* 2>/dev/null

            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/

            C 1 Reply Last reply Nov 17, 2016, 1:12 PM Reply Quote 0
            • Q
              Quazz Moderator
              last edited by Nov 17, 2016, 12:19 PM

              I can only assume that it’s also being used for something else if 18GB magically appeared over night.

              1 Reply Last reply Reply Quote 0
              • J
                jhuebner
                last edited by Nov 17, 2016, 1:06 PM

                Temporarily it could be fixed by minimizing the reserved space on that partition/filesystem.

                tune2fs -m 1 /dev/mapper/FogController-root
                

                That will give you some of the space that’s “missing” between 880G and 926G. But you need to find the source of increasing usage, otherwise it will fill up further. Maybe something weird in /var/log?

                That’s why one would use not only a single root filesystem.

                1 Reply Last reply Reply Quote 0
                • C
                  Chuck2000 @Wayne Workman
                  last edited by Nov 17, 2016, 1:12 PM

                  @Wayne-Workman said in Decreasing Disk Space?:

                  du -h / | grep ‘[0-9.]+G’

                  Thanks again for the help. Here is the output in two screens.

                  0_1479388243135_1.jpg

                  0_1479388256757_2.jpg

                  This server is dedicated to only running our FOG application.

                  T 1 Reply Last reply Nov 17, 2016, 1:30 PM Reply Quote 0
                  • T
                    Tom Elliott @Chuck2000
                    last edited by Nov 17, 2016, 1:30 PM

                    @Chuck2000 What’s the output of df -h /media

                    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
                    • C
                      Chuck2000
                      last edited by Nov 17, 2016, 3:01 PM

                      Here it is:

                      0_1479394890635_3.jpg

                      Thanks again.

                      T 1 Reply Last reply Nov 17, 2016, 3:03 PM Reply Quote 0
                      • T
                        Tom Elliott @Chuck2000
                        last edited by Nov 17, 2016, 3:03 PM

                        @Chuck2000 So just a guess, but you usually have a USB stick connected?

                        Cause right now that’s whats eating up your space.

                        YOu might think about removing the files in the subdirectories please.

                        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
                        • W
                          Wayne Workman
                          last edited by Wayne Workman Nov 17, 2016, 8:19 PM Nov 17, 2016, 4:37 PM

                          well, in the OP, the output of df -h showed that /media/usbdrive is on it’s own partition already.

                          It could be that /dev/sdb is failing to mount to /media/usbdrive sometimes.

                          And it looks like /media/usbdrive is used for image backups. If a backup was done without the drive being connected, then it would go to / instead and fill it up.

                          We can help you to do image backups using your network instead of a external drive, it’s quite easy to do. You don’t even need to worry about some external USB hdd working right or not.

                          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
                          • C
                            Chuck2000
                            last edited by Nov 18, 2016, 1:25 AM

                            I used umount to remove the USB backup drive and then deleted some more old images from the FOG server. I freed up about 4GB of disk space. I then used the reboot command. After rebooting, I can’t access via the web interface or putty SSH. However, I can ping the machine. When I try accessing with putty, the error is “Network error, connection refused” Hopefully there is an easy solution to this???
                            Plan B:
                            I just learned that we already have a newer FOG server built with no images on it. It is FOG version 1.2 running on Ubuntu 14. This is a virtual machine running on VMWare. It was built about a year ago with the intention of replacing our current FOG server. Our current FOG server is a physical machine.
                            However, when I powered it on and accessed the web interface, I got prompted to run the database schema installer / updater. When I ran it, I got a long list of Database SQL errors.
                            Can this be fixed? If so, I was wondering if I can transfer our existing images to this server. I have them on an external USB hard drive. I realize we would probably lose our existing client database, but we can accept that.
                            Plan 😄
                            If this schema error can’t be fixed, then I guess I am going to have to do a new FOG install and transfer the images. Could I just delete the current FOG install and reinstall on the same VMWare Ubuntu 14 server? I really don’t want to also have to build a new Ubuntu server unless it is absolutely necessary.
                            I know that is a lot – thanks for the help.

                            W 1 Reply Last reply Nov 18, 2016, 2:12 AM Reply Quote 0
                            • W
                              Wayne Workman @Chuck2000
                              last edited by Wayne Workman Nov 17, 2016, 8:30 PM Nov 18, 2016, 2:12 AM

                              @Chuck2000 said in Decreasing Disk Space?:

                              Plan 😄
                              If this schema error can’t be fixed, then I guess I am going to have to do a new FOG install and transfer the images. Could I just delete the current FOG install and reinstall on the same VMWare Ubuntu 14 server? I really don’t want to also have to build a new Ubuntu server unless it is absolutely necessary.
                              I know that is a lot – thanks for the help.

                              I think it’s in your best interests to build a new server. Why? Even if the schema error could be fixed, you don’t really want to use 1.2.0 today. There is a very long list of reasons for not using 1.2.0 and to instead use FOG 1.3.0 Release Candidate with something newer than Ubuntu 14… Like Ubuntu 16. Why you are sweating this, I don’t know. This is a very simple process.

                              • Install Ubuntu 16.04 (Only use the very latest lts version of Ubuntu for FOG, which is currently 16.4). You can download Ubuntu 16.04 from here: https://www.ubuntu.com/download
                              • Access the terminal
                              • Become root with sudo -i
                              • issue this “Mega Command” which will do everything necessary to completely setup a totally finished FOG 1.3.0 RC server:
                                apt-get update -y;apt-get upgrade -y;apt-get dist-upgrade -y;apt-get install git -y;git clone https://github.com/FOGProject/fogproject.git /root/fogproject;cd /root/fogproject/bin;./installfog.sh -y
                              • Change your existing DHCP option 066 to the new server’s IP address.
                              • Start using FOG to get work done.

                              Total time - maybe an hour. And that’s an hour of the machine’s time, not yours. You get to stay productive and go do something else while it’s going.

                              As far as the old server goes, it’d be nice if you could save the images. Sounds like you will need to be standing in front of it since SSH doesn’t work, and you could quite simply move all images to the new server via SCP.
                              From the old server:
                              scp -r /images/* username@x.x.x.x:/images/
                              Where x.x.x.x is the new server’s IP address and username is a valid username.
                              After completing this transfer, manually create each of the images using the correct settings (such as OS, resizable or not, correct image path which is case sensitive), and set these old images to use partimage instead of partclone and then you’re in business.

                              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/

                              C 2 Replies Last reply Nov 18, 2016, 2:45 AM Reply Quote 0
                              • C
                                Chuck2000 @Wayne Workman
                                last edited by Nov 18, 2016, 2:45 AM

                                @Wayne-Workman

                                OK - thank you. I didn’t know it was that easy. I will build a new server as you suggested. I will post an update when finished.

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Wayne Workman
                                  last edited by Nov 22, 2016, 3:09 PM

                                  This thread has gone off topic and has been forked to here:
                                  https://forums.fogproject.org/topic/9001/partimage-for-old-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/

                                  C 1 Reply Last reply Nov 23, 2016, 6:24 PM Reply Quote 0
                                  • C
                                    Chuck2000 @Wayne Workman
                                    last edited by Nov 23, 2016, 6:24 PM

                                    @Wayne-Workman

                                    This issue is resolved. I built a new server as you and Tom suggested. Thanks for the help.

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

                                    168

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project