gesamtes LVM verkleinern

R

rawsome

Gast
Hallo,
zu meiner Frage habe ich zwar schon das Internet durchforstet, aber die Ergebnisse waren nicht zu genau meinem Problem oder veraltet. Aber nun zum Punkt:
Ich habe auf einem USB-Stick Ubuntu installiert und das verschlüsselt.
Nun nimmt das LVM aber den gesamten Speicher ein. Um auf Daten auf dem USB-Stick auch von Windows aus zugreifen zu können, brauche ich aber noch eine nicht verschlüsselte Partition außerhalb des LVM.
Das gesamte LVM ist etwa 110 Gb groß. Davon möchte ich ca. 70 Gb für das LVM und den Rest für eine fat32 Partition verwenden.
Alle Schritte führe ich von einem anderem Ubuntu System aus durch.
Nun also erst mal Informationen über das LVM:
pvs
Code:
PV                                                    VG        Fmt  Attr PSize    PFree 
/dev/mapper/luks-e9b02745-c211-40ab-90b0-885b0f8540fe ubuntu-vg lvm2 a--  <113,34g <43,34g

pvdisplay
Code:
 --- Physical volume ---
  PV Name               /dev/mapper/luks-e9b02745-c211-40ab-90b0-885b0f8540fe
  VG Name               ubuntu-vg
  PV Size               113,34 GiB / not usable 3,00 MiB
  Allocatable           yes
  PE Size               4,00 MiB
  Total PE              29015
  Free PE               11095
  Allocated PE          17920
  PV UUID               599RMN-2Ozv-Eog7-728i-NgLd-RBTa-40zJ0f

vgs
Code:
VG        #PV #LV #SN Attr   VSize    VFree 
ubuntu-vg   1   1   0 wz--n- <113,34g <43,34g

vgdisplay
Code:
--- Volume group ---
  VG Name               ubuntu-vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <113,34 GiB
  PE Size               4,00 MiB
  Total PE              29015
  Alloc PE / Size       17920 / 70,00 GiB
  Free  PE / Size       11095 / <43,34 GiB
  VG UUID               N4jYED-Sdqo-aned-1Hah-NWID-oPnY-c3Q4qf

lvs
Code:
LV   VG        Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
root ubuntu-vg -wi------- 70,00g

lvdisplay
Code:
--- Logical volume ---
  LV Path                /dev/ubuntu-vg/root
  LV Name                root
  VG Name                ubuntu-vg
  LV UUID                1Z0V3r-QO2h-ol6W-89f6-DVsA-KTjd-ltqxm3
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2018-09-16 14:32:08 +0200
  LV Status              NOT available
  LV Size                70,00 GiB
  Current LE             17920
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

Wie verkleinere ich nun das gesamte LVM auf 70Gb?
Ich hoffe ich konnte alle erforderlichen Informationen liefern und bedanke mich schon mal für die Antworten!
 
Zurück
Oben