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

    Make room on fog server's storage

    Scheduled Pinned Locked Moved
    General
    3
    14
    1.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.
    • S
      Sebastian Roth Moderator
      last edited by

      @sjensen See @george1421’s post on options to use with rm. Just be sure you know what you do to not delete things you wanted to keep. It will just be gone…

      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
      • S
        sjensen
        last edited by

        I have decided to not remove any images from my fog server, instead i added more hard drive space. I added it through our vm console then used GParted to extend the drive. However fog is not recognizing the space i added. Is there an additional step or 2 i need to do?
        838acb2b-fe92-4886-92f3-e807d1dd0755-image.png

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

          @sjensen You need to extend the file system too. From a virtual machine stand point you extend the vmdk, partition, then the file system. How you extend the file system is based on what filesystem your fog server is using. xfs is the easiest to extend others are not bad either.

          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!

          S 1 Reply Last reply Reply Quote 0
          • S
            sjensen @george1421
            last edited by

            @george1421 and how does one extend a filesystem and find out what fog server is using?

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

              @sjensen well this is a linux issue not specifically a fog issue.

              I would look in /etc/fstab to find out what file system your partition is formatted as. Once you know the file system (its probably xfs or ext4) then I can give you a hint how to extend it.

              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!

              george1421G S 2 Replies Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @george1421
                last edited by

                @george1421 Thinking about this you have one more layer in the mix. Since you are using lvm, you need to extend the lvm partition if its not matching the size of the disk.

                TBH if this is a vm I would personally just create a new disk and create a standard partition, format it and then migrate your files over to this new disk. I’ve been thinking about creating a new recommendation tutorial to show how I would go about setting up fog to allow storage expansion easily after the fact. LVM adds quite a bit of flexibility but also adds some management overhead that isn’t needed.

                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
                • S
                  sjensen @george1421
                  last edited by

                  @george1421 sorry sir im very green when it comes to linux im assuming etc/fstab is folder. Not familiar with this command or the command to extend a file system.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @sjensen Looking at the pictures you posted it looks like you added space to partition /dev/sda3. That seems kind of strange from my point of view.

                    It’s very hard to help you in such a situation where we don’t know what exactly was done and how it was initially setup. Lets give it a try nevertheless. Please run the following commands and post all outputs here:

                    lsblk
                    pvscan
                    lvscan
                    sfdisk -d /dev/sda
                    

                    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
                    • S
                      sjensen @sjensen
                      last edited by

                      @sjensen thank you

                      5cfc7b55-9eb7-4ab1-b824-fb4305cd676f-image.png

                      ec6462dd-aece-4186-bc41-becc4d065290-image.png

                      eda566a2-a719-4f03-8203-a78096c4cc7f-image.png

                      60d63146-8796-4a1b-8cda-9300bd40509f-image.png

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth

                        @sjensen Just as a precaution - make sure you have a backup copy of all your important data from this system. I won’t be made liable for any steps you take!

                        So let’s take a look at the whole process of resizing which involves several “layers” - see below.

                        In the output of pvscan we see that the physical volume on /dev/sda3 is 400 GB in size and has 100 GB free/not in use. So gparted has extended the partition but not the physical volume (in LVM terms). To do that run:

                        pvresize /dev/sda3
                        

                        The next step is to tell the logical volume (LV) to use that new space:

                        lvextend -l+100%FREE /dev/FOGServer-vg/root
                        

                        As a final step you need to extend the filesystem.

                        resize2fs /dev/FOGserver-vg/root
                        

                        Finally check the partition size in the output of df -h.

                        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
                        • 1 / 1
                        • First post
                          Last post

                        227

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project