ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Ubuntu 18.04 Space Issue

    IT Discussion
    6
    46
    2.0k
    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.
    • DustinB3403D
      DustinB3403
      last edited by

      So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.

      You must've done something custom to get this.

      VirtualBoxVM_47oAXNF9Mg.png

      C 1 Reply Last reply Reply Quote 0
      • C
        Curtis @DustinB3403
        last edited by Curtis

        @DustinB3403 said in Ubuntu 18.04 Space Issue:

        So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.

        You must've done something custom to get this.

        VirtualBoxVM_47oAXNF9Mg.png

        Crap 😞 Did you do a netinstall? (I did)

        Well, I just need to get it expanded for now.

        DustinB3403D 1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @Curtis
          last edited by

          @Curtis said in Ubuntu 18.04 Space Issue:

          @DustinB3403 said in Ubuntu 18.04 Space Issue:

          So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.

          You must've done something custom to get this.

          VirtualBoxVM_47oAXNF9Mg.png

          Crap 😞 Did you do a netinstall? (I did)

          Well, I just need to get it expanded for now.

          No, not net install, minimal desktop.

          C 1 Reply Last reply Reply Quote 0
          • C
            Curtis @DustinB3403
            last edited by

            @DustinB3403 said in Ubuntu 18.04 Space Issue:

            @Curtis said in Ubuntu 18.04 Space Issue:

            @DustinB3403 said in Ubuntu 18.04 Space Issue:

            So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.

            You must've done something custom to get this.

            VirtualBoxVM_47oAXNF9Mg.png

            Crap 😞 Did you do a netinstall? (I did)

            Well, I just need to get it expanded for now.

            No, not net install, minimal desktop.

            Maybe netinstall is different?

            1 Reply Last reply Reply Quote 0
            • C
              Curtis
              last edited by

              Seems like I should just be able to extend LVM across the whole drive, but I can't find a way to do it...

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Curtis
                last edited by

                @Curtis can you show me the output of ...

                lvdisplay
                vgdisplay
                
                C 2 Replies Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Curtis
                  last edited by

                  @Curtis said in Ubuntu 18.04 Space Issue:

                  Seems like I should just be able to extend LVM across the whole drive, but I can't find a way to do it...

                  LVM is across the whole drive, that's not the issue.

                  C 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Curtis
                    last edited by

                    @Curtis said in Ubuntu 18.04 Space Issue:

                    Seems like / was only setup for 4GB... Why?

                    Probably to leave room for other things to be configured 🙂

                    1 Reply Last reply Reply Quote 0
                    • C
                      Curtis @scottalanmiller
                      last edited by

                      @scottalanmiller said in Ubuntu 18.04 Space Issue:

                      @Curtis can you show me the output of ...

                      lvdisplay
                      

                      dbc3eef9-7e9c-4eb1-8dcd-5417894b38b7-image.png

                      scottalanmillerS 1 Reply Last reply Reply Quote 2
                      • C
                        Curtis @scottalanmiller
                        last edited by

                        @scottalanmiller said in Ubuntu 18.04 Space Issue:

                        @Curtis can you show me the output of ...

                        vgdisplay
                        

                        3af015bd-f27a-4a36-bd8f-c1ea57637885-image.png

                        1 Reply Last reply Reply Quote 1
                        • C
                          Curtis @scottalanmiller
                          last edited by

                          @scottalanmiller said in Ubuntu 18.04 Space Issue:

                          LVM is across the whole drive, that's not the issue.

                          So I just need to extend the file system?

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Curtis
                            last edited by

                            @Curtis Run this...

                            lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
                            
                            C 1 Reply Last reply Reply Quote 2
                            • scottalanmillerS
                              scottalanmiller @Curtis
                              last edited by

                              @Curtis said in Ubuntu 18.04 Space Issue:

                              @scottalanmiller said in Ubuntu 18.04 Space Issue:

                              LVM is across the whole drive, that's not the issue.

                              So I just need to extend the file system?

                              No, the volume 🙂 Then the filesystem.

                              What kind of filesystem is it? EXT4? XFS?

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                Curtis @scottalanmiller
                                last edited by

                                @scottalanmiller said in Ubuntu 18.04 Space Issue:

                                @Curtis said in Ubuntu 18.04 Space Issue:

                                @scottalanmiller said in Ubuntu 18.04 Space Issue:

                                LVM is across the whole drive, that's not the issue.

                                So I just need to extend the file system?

                                No, the volume 🙂 Then the filesystem.

                                What kind of filesystem is it? EXT4? XFS?

                                Whatever the default for a netinstall is. Is there a command to check?

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Curtis @scottalanmiller
                                  last edited by Curtis

                                  @scottalanmiller said in Ubuntu 18.04 Space Issue:

                                  @Curtis Run this...

                                  lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
                                  

                                  user@server:~$ sudo lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
                                  sudo: unable to resolve host server: Resource temporarily unavailable

                                  /etc/lvm/archive/.lvm_server_2656_1676534144: write error failed: No space left on device

                                  😕

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Curtis
                                    last edited by

                                    Tried as root, and got this:

                                    /etc/lvm/archive/.lvm_server_2674_604287443: write error failed: No space left on device

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

                                      The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        Curtis @marcinozga
                                        last edited by

                                        @marcinozga said in Ubuntu 18.04 Space Issue:

                                        The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command.

                                        Would this work?

                                        find /var/log -type f -delete
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403
                                          last edited by

                                          @Curtis said in Ubuntu 18.04 Space Issue:

                                          @marcinozga said in Ubuntu 18.04 Space Issue:

                                          The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command.

                                          Would this work?

                                          find /var/log -type f -delete
                                          

                                          I wouldn't do that. Just cd into the directory and remove anything that is zipped.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Curtis
                                            last edited by

                                            root@server:/var# lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
                                            Size of logical volume ubuntu-vg/ubuntu-lv changed from 4.00 GiB (1024 extents) to <99.00 GiB (25343 extents).
                                            Logical volume ubuntu-vg/ubuntu-lv successfully resized.

                                            🙂 Now what?

                                            DustinB3403D wirestyle22W C 3 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post