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

    Out of Space - Ubuntu Linux 14.04

    IT Discussion
    ubuntu 14.04 linux ubuntu
    2
    28
    6.2k
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      That your underlying block device is thick or thin is irrelevant to the OS. It's just a block device

      1 Reply Last reply Reply Quote 0
      • handsofqwertyH
        handsofqwerty @scottalanmiller
        last edited by

        @scottalanmiller said:

        Add the new space to the VG. Then extend the LV and then the file system.

        Ok, how do I do that? Also, I don't see anything being mounted as a new drive. Do I need to format it I assume? How do I do this via CLI?

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

          No. You don't format it. That would defeat the purpose.

          1 Reply Last reply Reply Quote 0
          • handsofqwertyH
            handsofqwerty
            last edited by

            This is what my system shows...

            root@plex-server:/dev/disk/by-path# lshw -class disk
              *-disk:0
            	   description: SCSI Disk
            	   physical id: 0.0.0
            	   bus info: scsi@2:0.0.0
            	   logical name: /dev/sda
            	   size: 20GiB (21GB)
            	   capabilities: partitioned partitioned:dos
            	   configuration: sectorsize=512 signature=00096de5
              *-disk:1
            	   description: SCSI Disk
            	   physical id: 0.1.0
            	   bus info: scsi@2:0.1.0
            	   logical name: /dev/sdb
            	   size: 25GiB (26GB)
            	   configuration: sectorsize=512
              *-cdrom
            	   description: DVD-RAM writer
            	   physical id: 0.0.0
            	   bus info: scsi@1:0.0.0
            	   logical name: /dev/cdrom
            	   logical name: /dev/sr0
            	   capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram partitioned partitioned:dos
            	   configuration: signature=740c8043 status=ready
            
            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              And no you should not see it anywhere.

              1 Reply Last reply Reply Quote 0
              • handsofqwertyH
                handsofqwerty
                last edited by

                The new disc is /dev/sdb

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

                  use fdisk or parted to find the name of the new block device.

                  1 Reply Last reply Reply Quote 0
                  • handsofqwertyH
                    handsofqwerty
                    last edited by

                    Is this what I need to follow?

                    http://www.cyberciti.biz/faq/linux-disk-format/

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

                      Then do....

                      pvcreate /dev/sdb
                      

                      To get started.

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

                        @handsofqwerty said:

                        Is this what I need to follow?

                        http://www.cyberciti.biz/faq/linux-disk-format/

                        Well I would assume not since formatting is exactly what you want to avoid.

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

                          Once you have pvcreated, use vgextend to add the new block device to your existing VG.

                          Look up the details with vgs

                          handsofqwertyH 1 Reply Last reply Reply Quote 0
                          • handsofqwertyH
                            handsofqwerty @scottalanmiller
                            last edited by

                            @scottalanmiller said:

                            Once you have pvcreated, use vgextend to add the new block device to your existing VG.

                            Look up the details with vgs

                            This is what I got.

                            root@plex-server:~# pvcreate /dev/sdb
                              Physical volume "/dev/sdb" successfully created
                              
                            root@plex-server:~# vgs
                              VG             #PV #LV #SN Attr   VSize  VFree
                              plex-server-vg   1   2   0 wz--n- 19.76g 20.00m
                            
                            1 Reply Last reply Reply Quote 0
                            • handsofqwertyH
                              handsofqwerty
                              last edited by

                              So basically, now what?

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

                                I think.....

                                vgextend plex-server-vg /dev/sdb
                                
                                handsofqwertyH 2 Replies Last reply Reply Quote 0
                                • handsofqwertyH
                                  handsofqwerty @scottalanmiller
                                  last edited by

                                  @scottalanmiller said:

                                  I think.....

                                  vgextend plex-server-vg /dev/sdb
                                  

                                  Do I need to reboot?

                                  1 Reply Last reply Reply Quote 0
                                  • handsofqwertyH
                                    handsofqwerty @scottalanmiller
                                    last edited by

                                    @scottalanmiller said:

                                    I think.....

                                    vgextend plex-server-vg /dev/sdb
                                    
                                    root@plex-server:~# vgextend plex-server-vg /dev/sdb
                                      Volume group "plex-server-vg" successfully extended
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • handsofqwertyH
                                      handsofqwerty
                                      last edited by

                                      I was able to tab complete the plex-server-vg after typing vgextend, so I'm pretty sure that's right.

                                      1 Reply Last reply Reply Quote 0
                                      • handsofqwertyH
                                        handsofqwerty
                                        last edited by

                                        This is what I have currently...

                                        root@plex-server:~# vgs
                                          VG             #PV #LV #SN Attr   VSize  VFree
                                          plex-server-vg   2   2   0 wz--n- 44.75g 25.02g
                                        root@plex-server:~# df -h
                                        Filesystem                           Size  Used Avail Use% Mounted on
                                        /dev/mapper/plex--server--vg-root     18G   17G  332K 100% /
                                        none                                 4.0K     0  4.0K   0% /sys/fs/cgroup
                                        udev                                 2.0G  4.0K  2.0G   1% /dev
                                        tmpfs                                396M  712K  395M   1% /run
                                        none                                 5.0M     0  5.0M   0% /run/lock
                                        none                                 2.0G  4.0K  2.0G   1% /run/shm
                                        none                                 100M     0  100M   0% /run/user
                                        /dev/sda1                            236M   55M  169M  25% /boot
                                        overflow                             1.0M   16K 1008K   2% /tmp
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller
                                          last edited by

                                          So you can see that you now have 25GB free.

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

                                            Now you need to lvextend to 100%free

                                            I'm on a plane. You will need to Google the syntax.

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