1 Pluspunkt 0 Minuspunkte

Ich habe ein LVM mit

lvresize -L +40G /dev/vg_docker/lv0

vergrößert. Mit lvdisplay wird auch die korrekte Größe angezeigt.

manuel@vie-t-srv-wazuh:~$ sudo lvdisplay
  --- Logical volume ---
  LV Path                /dev/vg_docker/lv0
  LV Name                lv0
  VG Name                vg_docker
  LV UUID                7zeEh5-tYcd-ZvVD-nib8-nfxX-xh5w-cmjgLu
  LV Write Access        read/write
  LV Creation host, time vie-t-srv-wazuh, 2025-02-20 23:25:40 +0100
  LV Status              available
  # open                 1
  LV Size                90,00 GiB
  Current LE             23040
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

Aber mit df sehe ich noch immer die alte Größe. Auch ein reboot hat nicht geholfen.

manuel@vie-t-srv-wazuh:~$ df -h
Dateisystem               Größe Benutzt Verf. Verw% Eingehängt auf
tmpfs                      3,2G    2,0M  3,2G    1% /run
/dev/sda2                   91G     25G   63G   28% /
tmpfs                       16G       0   16G    0% /dev/shm
tmpfs                      5,0M       0  5,0M    0% /run/lock
efivarfs                   256K     57K  195K   23% /sys/firmware/efi/efivars
/dev/sda1                  511M    6,1M  505M    2% /boot/efi
/dev/mapper/vg_docker-lv0   49G     38G  9,4G   80% /var/lib/docker
tmpfs                      3,2G     72K  3,2G    1% /run/user/128
tmpfs                      3,2G     56K  3,2G    1% /run/user/1000
von  

1 Antwort

2 Pluspunkte 0 Minuspunkte

Du musst auch das tatsächliche Dateisystem erweitern.

sudo resize2fs /dev/vg_docker/lv0
von (1.3k Punkte)