Results 1 to 2 of 2

Thread: need help lvextend command

  1. #1
    Join Date
    Oct 2004
    Beans
    460
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    need help lvextend command

    Hi all

    trying to 100% free this lvm, but I cannot get the command to work.

    Code:
    root@web:~# lsblk
    NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
    sr0                        11:0    1 1024M  0 rom  
    vda                       252:0    0  250G  0 disk 
    ├─vda1                    252:1    0    1M  0 part 
    ├─vda2                    252:2    0    2G  0 part /boot
    └─vda3                    252:3    0  248G  0 part 
      └─ubuntu--vg-ubuntu--lv 253:0    0  100G  0 lvm  /
    
    root@web:~# pvs
      PV         VG        Fmt  Attr PSize    PFree   
      /dev/vda3  ubuntu-vg lvm2 a--  <248.00g <148.00g
    
    root@web:~# lvextend -l +100%FREE -r /dev/ubuntu-vg/root
      Logical volume root not found in volume group ubuntu-vg.
    
    root@web:~# df -hPT /
    Filesystem                        Type  Size  Used Avail Use% Mounted on
    /dev/mapper/ubuntu--vg-ubuntu--lv ext4   98G   53G   41G  57% /
    
    root@web:~#
    What should I use as a command to 100% extend this to the full 250G?

    I thought that I had it correct with
    Code:
    lvextend -l +100%FREE -r /dev/ubuntu-vg/root
    Also tried
    Code:
    lvextend -l +100%FREE -r /dev/ubuntu--vg-ubuntu--lv/root
    Regards
    Last edited by Heeter; February 14th, 2024 at 02:40 AM.

  2. #2
    Join Date
    Oct 2004
    Beans
    460
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: need help lvextend command

    Thanks for the PM, helped

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •