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

    Unallocated space

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    22
    2.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
      sjensen
      last edited by

      I recently moved our fog server to vSphere environment. After the move I added more drive space in vSphere, now on the linux server I see the unallocated space but cannot add it to the current volumes. I tried gparted, the only option i got there was to create a new partition. No option in resize either. Keep in mind as you look at this i do not work with linux much at all.

      d6134456-a41f-40bb-af4b-0fd0a05a7005-image.png

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        https://www.tecmint.com/extend-and-reduce-lvms-in-linux/

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        S 1 Reply Last reply Reply Quote 2
        • S
          sjensen @Junkhacker
          last edited by

          @Junkhacker will the article work with Linux Ubuntu 14.04?

          JunkhackerJ 1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer @sjensen
            last edited by

            @sjensen if it doesn’t exactly match, it should work at least as a rough guide on what you need to do to expand your LVM

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

              It appears none of the commands listed in the article do not work with the version of Linux I’m using. However i’m very very new to Linux so maybe i’m not doing something wrong.

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

                @sjensen said in Unallocated space:

                do not work with the version of Linux I’m using

                Well than you might want to share what exactly you did and what the results (outputs) were. We can’t help you if you don’t tell us what you did and what happened.

                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

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

                  @Sebastian-Roth Sorry to be difficult, and thanks for helping. The last link that junkhacker placed in this thread seemed like it would work, when i attempted follow the steps in the link none of the commands appeared to work. I did use the title of the link and found some articles where geared more towards my version Linux. I’m sure my lack of knowledge with Linux is not helping either. What I have is unpartitioned space from that i want to add to the current partition. Check out the graphic above.

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

                    @sjensen So what are you asking for? Should we post step by step commands? If we don’t know what you have tried so far (and I mean exactly the commands, not just tried it all and didn’t work) and what the outcome was it’s pretty much impossible to help.

                    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

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

                      @Sebastian-Roth Step by step commands would be great. I understand the basic commands to view the partitions, but once I get into the real meat of the process I get confused and concerned I may delete something I’m not supposed to. Again my knowledge of Linux is very minimal. Thanks again.

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

                        @sjensen You know, I am a bit over it to keep asking you for the commands you tried and the output you got. So this is my very last try.

                        Run the three commands pvs and vgs and lvs 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

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

                          @Sebastian-Roth
                          3aa32c89-71d9-400a-b38f-95725c97e87f-image.png

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

                            @sjensen The following commands should work for you. I am not liable for any issue or consequence that may arise from using those commands! Make sure you have a full backup/snapshot of the server and use the commands with precaution and think about it instead of blindly doing copy & paste!!

                            There are probably different ways of extending your space in this scenario. To keep it as simple as possible for you I decided to not extend the existing LVM physical volume (way more things can go wrong going this way) but adding the new space to the existing logical volume.

                            So we start by creating a new partition in that unallocated space using GParted. Probably that will be sda6 then.

                            If that has been achieved you want to create a LVM physical volume (PV) on that new partition.

                            pvcreate /dev/sda6
                              Physical volume "/dev/sda6" successfully created
                            

                            Now extend the volume group (VG) to use that new PV and check afterwards:

                            vgextend FOGserver-vg /dev/sda6
                              Volume group "FOGserver-vg" successfully extended
                            pvs
                              PV          VG             Fmt ...
                              /dev/sda5   FOGserver-vg   lvm2 ...
                              /dev/sda6   FOGserver-vg   lvm2 ...
                            

                            After extending the VG you should be able add that new space to the logical volume of your root partition:

                            lvextend /dev/FOGserver-vg/root /dev/sda6
                              Extending logical volume root to xx.xx GiB
                              Logical volume root successfully resized
                            

                            As a final step you need to resize the filesystem to use that new space:

                            resize2fs /dev/FOGserver-vg/root
                            

                            ref

                            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

                              Thanks this good it helps me to learn a little more about linux. I will let you know the outcome.

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

                                @sjensen ok so i got through this part: So we start by creating a new partition in that unallocated space using GParted. Probably that will be sda6 then.

                                If that has been achieved you want to create a LVM physical volume (PV) on that new partition.

                                Then noticed this warning.
                                5b29de46-7012-43e5-9b9d-64799571aff7-image.png

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

                                  @sjensen Hmmm, possibly GParted want’s to format the newly created partition with a filesystem. You don’t want that as we want to add that new partition to an existing filesystem. Just ignore the warning and see if you can mark this partition to be LVM instead of ext4!

                                  It being sda3 is ok. GParted is creating a primary partition instead of an extended and therefore uses 3 instead of 6 as number. That’s fine.

                                  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

                                    The only choice i get for LVM is LVM2pv, would that be ok to use?

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

                                      @sjensen Yes, sounds fine to me.

                                      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

                                        That worked, this is what i see now. I would assume i should go back to the commands you listed before and try to run those?

                                        951797db-853b-468e-bdc3-bbe7cd0764dd-image.png

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

                                          @sjensen said:

                                          I would assume i should go back to the commands you listed before and try to run those?

                                          Yes, just use /dev/sda3 instead of where I wrote /dev/sda6…

                                          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

                                            Here is the final result. Does this look correct?
                                            484cae7e-2225-4cb7-9ef7-87fa752327d2-image.png

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

                                            197

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project