Fehlender halber Festplattenspeicher auf Ubuntu 18.04.5 LTS VPS

Fehlender halber Festplattenspeicher auf Ubuntu 18.04.5 LTS VPS

Mein Client hat ein Problem mit einem Server, Plesk gibt den Fehler 500 aus und die dort gehosteten Websites verhalten sich merkwürdig. Ich habe herausgefunden, dass es technisch gesehen daran liegt, dass dem System der Speicherplatz ausgegangen ist. Mein Problem ist, dass lsblketwas Seltsames erscheint, wenn ich einen Befehl ausführe.

NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda             8:0    0   240G  0 disk 
├─sda1          8:1    0   487M  0 part /boot
└─sda2          8:2    0 119.5G  0 part 
  ├─vg00-lv00 253:0    0   1.9G  0 lvm  [SWAP]
  └─vg00-lv01 253:1    0 117.6G  0 lvm  /
sr0            11:0    1  1024M  0 rom  

Wie Sie sehen, dev/sdahat er 240 GB, und das ist der Betrag, den er für den Speicherplatz im VPS bezahlt. Wenn man sich die Aufschlüsselung ansieht, sind nur 120 GB tatsächlich sda2 zugewiesen, wo sich die Dateien befinden. Wo sind die anderen 120 GB?

BEARBEITEN 1

Weitere Befehlsausgabe

pvdisplay
--- Physical volume ---
  PV Name               /dev/sda2
  VG Name               vg00
  PV Size               119.52 GiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              30597
  Free PE               0
  Allocated PE          30597
  PV UUID               DMK49M-JflP-GBt9-0kJq-Kk1W-C7vO-x1nUZi

vgdisplay
--- Volume group ---
  VG Name               vg00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <119.52 GiB
  PE Size               4.00 MiB
  Total PE              30597
  Alloc PE / Size       30597 / <119.52 GiB
  Free  PE / Size       0 / 0   
  VG UUID               WqkIEh-ii6j-YPLK-5XHc-I26V-sAQI-XULRO0

lvdisplay
 --- Logical volume ---
  LV Path                /dev/vg00/lv00
  LV Name                lv00
  VG Name                vg00
  LV UUID                loEucb-0VGb-seQj-3Vs0-5oCC-HUdt-0rJfcp
  LV Write Access        read/write
  LV Creation host, time somehost, 2019-08-29 20:27:48 +0200
  LV Status              available
  # open                 2
  LV Size                <1.91 GiB
  Current LE             488
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/vg00/lv01
  LV Name                lv01
  VG Name                vg00
  LV UUID                o6JDyc-lKL9-simp-fDTm-Yhix-2K1U-qiKvc3
  LV Write Access        read/write
  LV Creation host, time somehost, 2019-08-29 20:27:48 +0200
  LV Status              available
  # open                 1
  LV Size                117.61 GiB
  Current LE             30109
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

Antwort1

Ich vermute, dass der Server ursprünglich 120 GB Speicherplatz hatte und die ursprüngliche Partitionierung dementsprechend vorgenommen wurde. Nach der Erweiterung der VPS-Festplattengröße auf 240 GB wurde die Partitionierung nicht aktualisiert, sodass der hinzugefügte Speicherplatz nicht verwendet wird.

Um dies zu beheben, muss man die Partition erweitern /dev/sda2und dann das physische Volume, die Volume-Gruppe und die logischen Volumes erweitern. Schließlich muss die Größe des Dateisystems angepasst werden.

verwandte Informationen