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

How can I troubleshoot the Diskusage Problem on the Webinterface?

Scheduled Pinned Locked Moved Solved
FOG Problems
3
18
1.4k
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.
  • G
    Gamienator @Sebastian Roth
    last edited by Jan 25, 2019, 1:56 PM

    @Sebastian-Roth said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

    curl “http://172.16.10.103/fog/status/freespace.php?path=”$(echo -n “/image1” | base64)

    Oh, there’s now a different result:

    root@KCFOGServer1:~# curl "http://172.16.10.103/fog/status/freespace.php?path="$(echo -n "/image1" | base64)
    {"free":"428730351616","used":"31650299904"}root@KCFOGServer1:~#
    

    Sure, he are the screenshots:

    89a1469d-fdd7-4d92-a878-78a59399511b-image.png

    cf775f83-1107-4bb7-bde6-196a753c3d2e-image.png

    6172caa9-cfe9-443d-8002-9c8efd6f98c9-image.png

    46d3acf7-c297-4a2b-8fcd-8b1715e3fb81-image.png

    It’s a preparation, we’re new in FOG and planning to distribute images on different locations. All with Side-to-Side VPN and Nodes on every location. 🙂

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Jan 25, 2019, 4:54 PM

      @Gamienator Ahhhhh I see. Makes all more sense now. But still I am wondering about some of the things you posted. So let me ask, are there any other FOG servers or is it just that single “Frankfurt Node”? From my understanding there should be at least one more server for things to fully add up for me. But maybe it’s just me not getting my head around.

      Anyway, why did you set up two storage node definitions for the same FOG installation (same IP) in the first place? Probably to use the newly added disk space on that second drive. While FOG should be able to handle it I wouldn’t advise you to do as it adds complexity for possible errors. To understand the concept of Storage Nodes more in depth you might want to start reading here: https://wiki.fogproject.org/wiki/index.php/Managing_FOG#Storage_Management

      Please run lsblk and df -h on your Frankfurt Node and post output here.

      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

      G 1 Reply Last reply Jan 25, 2019, 5:05 PM Reply Quote 0
      • G
        Gamienator @Sebastian Roth
        last edited by Gamienator Jan 25, 2019, 11:06 AM Jan 25, 2019, 5:05 PM

        @Sebastian-Roth said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

        @Gamienator Ahhhhh I see. Makes all more sense now. But still I am wondering about some of the things you posted. So let me ask, are there any other FOG servers or is it just that single “Frankfurt Node”? From my understanding there should be at least one more server for things to fully add up for me. But maybe it’s just me not getting my head around.

        No Problem. So we got two VMs (ESXi Hypervisor) here in the Network, KCNode1 (.103) and KCServer1 (.104). On the Server is the FOG installation as Server and on the Node (how surprising) the Storage installation. Since I got SSDs and a HDD on that Server I setup on the node following setup:

        1 VirtualHarddisk with 50 GB on a SSD for the OS (sda)
        1 VirtualHarddisk with 450 GB on the other SSD for the Imagespace on “fast” storage (sdb)
        1 VirtualHarddisk with 900 GB on the HDD as a archive (sdc)

        My Idea was: Image everything in SSD (mounted on /image1) and replicate on sdc to have a backup. For the moment! It’s all Work in progress, RAID card is on the way to have a RAID 1 with the SSD and so on.

        Since our company has more locations we want to link them and install a node on every location. Thats the reason I installed the node here to test everything.

        Please run lsblk and df -h on your Frankfurt Node and post output here.

        No Problem 🙂

        NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
        sda      8:0    0   50G  0 disk
        ├─sda1   8:1    0    1K  0 part
        ├─sda2   8:2    0 48,1G  0 part /
        └─sda5   8:5    0  1,9G  0 part [SWAP]
        sdb      8:16   0  460G  0 disk
        └─sdb1   8:17   0  460G  0 part /image1
        sdc      8:32   0  870G  0 disk
        └─sdc1   8:33   0  870G  0 part /image2
        sr0     11:0    1 1024M  0 rom
        
        Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
        udev            992M       0  992M    0% /dev
        tmpfs           201M    8,2M  193M    5% /run
        /dev/sda2        48G    3,1G   42G    7% /
        tmpfs          1003M       0 1003M    0% /dev/shm
        tmpfs           5,0M       0  5,0M    0% /run/lock
        tmpfs          1003M       0 1003M    0% /sys/fs/cgroup
        /dev/sdb1       452G     30G  400G    7% /image1
        /dev/sdc1       856G     77M  812G    1% /image2
        tmpfs           201M       0  201M    0% /run/user/0
        

        Cheers,
        Gamie

        G 1 Reply Last reply Jan 25, 2019, 7:29 PM Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jan 25, 2019, 5:29 PM

          @Gamienator said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

          My Idea was: Image everything in SSD (mounted on /image1) and replicate on sdc to have a backup.

          Well then that’s a totally different story. Still that wouldn’t be the way I’d do it but that’s fine. I’d just do a simple rsync to another disk (preferably a totally different host!) if it’s just about backup.

          So we are back to the initial question of why disk usage is not being shown properly in your case. Is it only the SSD part not showing? What happens if you select the HDD one? And what about the KCServer1’s disk usage?

          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

          G 1 Reply Last reply Jan 25, 2019, 6:45 PM Reply Quote 0
          • G
            Gamienator @Sebastian Roth
            last edited by Gamienator Jan 25, 2019, 12:45 PM Jan 25, 2019, 6:45 PM

            @Sebastian-Roth Okay, then maybe our “idea” was wrong the hole time 🤔

            So like I said before, we have different locations. In our headquarter we wanted to create ONE golden Image of Windows 10. After that we wanted to install a storage node on every location, group it correctly and let it replicate. After that we wanted to let everyone boot to our MAIN FogServer via VPN and let it then image from their node. Therefore we would have control of all locations AND an awesome inventory of all machines. My Collegues working on it already for two months now, but don’t have the Linux knowledge, since their only using Windows. Now that I’m there the project made more progress. But for what I understood I thought to enable the location plugin with user controll would achieve our goal. But it seems like I was wrong 😅

            @Sebastian-Roth said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

            So we are back to the initial question of why disk usage is not being shown properly in your case. Is it only the SSD part not showing? What happens if you select the HDD one? And what about the KCServer1’s disk usage?

            Thats the interesting part: The HDD is also not working! After that I edited the Node to show it at /images but with the same result, no space shown. Or does it take some time until it gets refreshed? KCServer1’s disk usage is shown perfectly after adding it again. Since I don’t wanted to use the KCServer1 space (it only got 50 GB on /) I removed it from FOG as storage node . Then I edited the Node again and let root connect, with the same result. But after you telling me about the rsync part, maybe I want to reinstall the node VM, let the SSD show to /images and install an rsync job that clones to /dev/sdc (ofc correctly mounted 😉)

            G 1 Reply Last reply Jan 25, 2019, 7:25 PM Reply Quote 0
            • G
              george1421 Moderator @Gamienator
              last edited by Jan 25, 2019, 7:25 PM

              @Gamienator said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

              So like I said before, we have different locations. In our headquarter we wanted to create ONE golden Image of Windows 10. After that we wanted to install a storage node on every location, group it correctly and let it replicate. After that we wanted to let everyone boot to our MAIN FogServer via VPN and let it then image from their node. Therefore we would have control of all locations AND an awesome inventory of all machines. My Collegues working on it already for two months now, but don’t have the Linux knowledge, since their only using Windows. Now that I’m there the project made more progress. But for what I understood I thought to enable the location plugin with user controll would achieve our goal. But it seems like I was wrong

              This is not wrong. This is by design how FOG works.

              I haven’t read each detail line, but I think where things went wrong in your design is on the storage nodes, where you had 2 disks. While I haven’t looked in the code, I’m pretty sure the storage nodes do not support having multiple disk by creating multiple storage node configurations on the master server. If you did, this would create each disk on the storage node containing exactly the same. For the storage nodes, if you want to have multiple disks then you need to create a LVM volume (kind of like a software span raid) where you can add multiple disks. I don’t want to go down that rabbit hole if I misunderstood what you are doing.

              But having a master FOG server at HQ and storage nodes at each location then using the location plugin to assign hosts and storage nodes to locations is how FOG is designed.

              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 2
              • G
                george1421 Moderator @Gamienator
                last edited by Jan 25, 2019, 7:29 PM

                @Gamienator said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

                1 VirtualHarddisk with 50 GB on a SSD for the OS (sda)
                1 VirtualHarddisk with 450 GB on the other SSD for the Imagespace on “fast” storage (sdb)
                1 VirtualHarddisk with 900 GB on the HDD as a archive (sdc)
                My Idea was: Image everything in SSD (mounted on /image1) and replicate on sdc to have a backup. For the moment! It’s all Work in progress, RAID card is on the way to have a RAID 1 with the SSD and so on.

                For your sanity with this design I would make the SSD mounted over /images instead of /images1. As for FOG it doesn’t / shouldn’t care about the HDD. That is not in scope of FOG. BUT you can implement pretty easy with a CRON job (think windows scheduled task) that runs rsync to clone /images to /images2. That way you have your backup and fog won’t care.

                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!

                G 2 Replies Last reply Jan 27, 2019, 12:18 PM Reply Quote 1
                • G
                  Gamienator @george1421
                  last edited by Jan 27, 2019, 12:18 PM

                  @george1421 Thanks for that additional informations! I’ll reinstall the complete node VM and try that.

                  One more question for the node: Is there a reason why the node also starts a MariaDB Server?

                  G 1 Reply Last reply Jan 27, 2019, 1:34 PM Reply Quote 0
                  • G
                    george1421 Moderator @Gamienator
                    last edited by Jan 27, 2019, 1:34 PM

                    @Gamienator said in How can I troubleshoot the Diskusage Problem on the Webinterface?:

                    Is there a reason why the node also starts a MariaDB Server

                    From a storage node function, I can’t think of a reason why the MarinaDB server is installed and running. The storage nodes connect back to the master node to use that database remotely.

                    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!

                    G 1 Reply Last reply Jan 27, 2019, 5:58 PM Reply Quote 0
                    • G
                      Gamienator @george1421
                      last edited by Jan 27, 2019, 5:58 PM

                      @george1421 Okay, then after a reinstall and confirming of function I’ll stop the server ans see whats happening 🤔

                      1 Reply Last reply Reply Quote 0
                      • G
                        Gamienator @george1421
                        last edited by Gamienator Jan 28, 2019, 4:19 AM Jan 28, 2019, 9:51 AM

                        @george1421 Hi again,

                        sadly it still doesn’t work. Still with the issue, can’t retrieve server information. I’ll try now with a complete different PC on that. But is somewhere a cache that needs to be cleared?

                        Guys, I’ll maybe found out why it wasn’t working. I’m now confirming it with some changes I’ll make. Latest tomorrow I’ll write back what was wrong the whole time!

                        1 Reply Last reply Reply Quote 1
                        • G
                          Gamienator
                          last edited by Jan 28, 2019, 10:45 AM

                          Okay, everyone, I found the reason why it wasn’t working. @george1421 and @Sebastian-Roth it was NOT because I used /image1. It was a complete dumb reason!

                          I set up the server, that every HTTP traffic gets redirected to HTTPS. My dumb mistake: I forgot to setup SSL on the NODE! So it looks like that because I used https://fog.xyz/fog it trys to reach the nodes via SSL as well! After setting up SSL on the node, Boom:

                          743cb9f1-d24b-43be-9b87-02b945e58a28-image.png

                          So sorry for directing you on a complete wrong path 🙈

                          1 Reply Last reply Reply Quote 2
                          • 1 / 1
                          1 / 1
                          • First post
                            16/18
                            Last post

                          137

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project