LVM Grundlagen: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Linkai.zhang (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 35: Zeile 35:
*Das LV kann wie eine normale Partition verwendet werden,
*Das LV kann wie eine normale Partition verwendet werden,
*d.h. es können Dateisysteme darauf angelegt werden und es kann gemounted werden.
*d.h. es können Dateisysteme darauf angelegt werden und es kann gemounted werden.
=LVM einrichten=
==Installation==
*apt install lvm2
Um ein LVM einzurichten muss zuerst jede zu verwendende Partition mittels pvcreate als Physical Volume initialisiert werden.
Alle Physical Volumes müssen nun mittels vgcreate zu einer Volume Group zusammengefasst werden. In dieser Gruppe können nun
mittels lvcreate die Logical Volumes erzeugt werden.
Für jedes Logical Volume wird eine Datei der Art /dev/<group>/<vol> angelegt. Das Logical Volume kann verwendet werden wie
jedes andere Block-Device. So kann ein Dateisystem darauf erzeugt werden und das Dateisystem kann eingebunden werden.
Hinweis:
Eine mit pvcreate initialisierte Partition sollte vom Typ 0x8e bzw. Linux LVM sein, da es sonst zu Problemen mit der
Erkennung der PVs kommt. Wenn das LVM auf einem RAID liegt, ist dies natürlich nicht nötig, genauso wie wenn das LVM
direkt auf eine Festplatte ohne Partitionstabelle aufgesetzt wird.
==Vorbereiten der Physical Volumes==
*pvcreate /dev/sdb1 /dev/sdb2 /dev/sdb3
  Physical volume "/dev/sdb1" successfully created.
  Physical volume "/dev/sdb2" successfully created.
  Physical volume "/dev/sdb3" successfully created.
==Erstellen der Volumegroup==
*vgcreate daten  /dev/sdb1 /dev/sdb2 /dev/sdb3
  Volume group "daten" successfully created
==Erstellen der Logical Volumes==
*lvcreate -L 5G -n misc daten
  Logical volume "misc" created
*lvcreate -L 1G -n video daten
  Logical volume "video" created.
*lvcreate -l 100%VG -n audio daten
  Reducing 100%VG to remaining free space <4,99 GiB in VG.
  Logical volume "audio" created.
==Formatieren der Logical Volumes==
*mkfs.ext4 /dev/daten/misc
*mkfs.ext4 /dev/daten/video
*mkfs.ext4 /dev/daten/audio
=Verwenden der Logical Volume=
==Einbinden der LV in das Dateisystem==
;Mountpunkte erstellen
*mkdir -v /mnt/{misc,video,audio}
;Mounten
*mount /dev/daten/misc  /mnt/misc/
*mount /dev/daten/video  /mnt/video
*mount /dev/daten/audio  /mnt/audio
===Kontrolle, z.B. durch Anzeigen des freien Speichers===
df -h  | grep mapper
/dev/mapper/daten-misc    15G    24K  14G    1% /mnt/misc
/dev/mapper/daten-video  9,8G    24K  9,3G    1% /mnt/video
/dev/mapper/daten-audio  4,9G    24K  4,6G    1% /mnt/audio
=Erweitern einer Volume Group=
*pvcreate /dev/sdb4
*vgextend daten /dev/sdb4
  Volume group "daten" successfully extended
=Anzeigen der vergößerten Volume Group=
*vgs
  VG    #PV #LV #SN Attr  VSize VFree
  daten  3  1  0 wz--n- 2,99G 1,52G
=Vergrößern des Logical Volumes=
*lvextend -L 3G /dev/daten/video
oder um 2GB vergrössen
*lvextend -L +2G /dev/daten/video
Size of logical volume daten/video changed from 12.00 GiB (3072 extents) to 14.00 GiB (3584 extents).
  Logical volume daten/video successfully resized.
=Vergrößern des Logical Volumes online=
==Anzeigen des momentanen Status==
*df -h  /mnt/video
Dateisystem            Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/daten-video  9,8G    24K  9,3G    1% /mnt/video
==Vergrössern==
*resize2fs /dev/daten/video
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/daten/video is mounted on /mnt/video; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 3
The filesystem on /dev/daten/video is now 4718592 (4k) blocks long.
==Anzeigen des momentanen Status==
*df -h /mnt/video
Dateisystem            Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/daten-video  18G    44M  17G    1% /mnt/video
=Vergrößern des Logical Volumes auf Maximalwert=
*lvextend -l +100%FREE  /dev/daten/audio
*resize2fs /dev/daten/audio
=Löschen eines Logical Volumes=
*umount /dev/daten/misc
*lvremove /dev/daten/misc
Do you really want to remove active logical volume daten/misc? [y/n]: y
  Logical volume "misc" successfully removed
=Verkleinern=
==Dateisystem verkleinern==
*umount  /mnt/video
*e2fsck -f /dev/daten/video
e2fsck 1.46.2 (28-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/daten/video: 11/1179648 files (0.0% non-contiguous), 101703/4718592 blocks
*resize2fs /dev/daten/video 9G
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/daten/video to 3670016 (4k) blocks.
The filesystem on /dev/daten/video is now 3670016 (4k) blocks long.
==Logisches Volume verkleinern==
*lvreduce -L 9G /dev/daten/video
  WARNING: Reducing active logical volume to 14,00 GiB.
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce daten/video? [y/n]: y
  Size of logical volume daten/video changed from 18,00 GiB (4608 extents) to 14,00 GiB (3584 extents).
  Logical volume daten/video successfully resized.
*lvs
  LV      VG    Attr  LSize Origin Snap%  Move Log Copy%  Convert
  Speicher daten -wi-ao 1,50G
=Physical Volume entfernen=
==Physical Volume leeren oder verschieben==
*Es muss genügend Platz auf den restlichen Physical Volumes vorhanden sein!
*pvmove /dev/sdb1
/dev/sdb1: Moved: 0,51%
/dev/sdb1: Moved: 100,00%
==Physical Volume aufs VG entfernen==
*vgreduce daten /dev/sdb1
  Removed "/dev/sdb1" from volume group "daten"
==LVM Label entfernen==
*pvremove /dev/sdb1
  Labels on physical volume "/dev/sdb1" successfully wiped.
=LV auflösen=
==Umounten==
*umount /mnt/{misc,video,audio}
==Stoppen der Logical Volumes==
*lvchange -a n /dev/daten/video
*lvchange -a n /dev/daten/audio
*lvchange -a n /dev/daten/misc
==Löschen der Logical Volumes==
*lvremove /dev/daten/video
*lvremove /dev/daten/audio
*lvremove /dev/daten/misc
=VG auflösen=
==Stoppen==
*vgchange -a n /dev/daten
==Entfernen==
*vgremove /dev/daten
=PV auflösen=
*pvremove /dev/sdb[2-4]
=Physical Volume vergrößern=
*pvresize /dev/sda5
  Physical volume "/dev/sda5" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized
*lvextend -r -l +100%FREE /dev/vg_test/root
  Size of logical volume vg_test/root changed from <241,52 GiB (61829 extents) to <341,52 GiB (87429 extents).
  Logical volume vg_test/root successfully resized.
  resize2fs 1.44.5 (15-Dec-2018)
  Dateisystem bei /dev/mapper/vg_test ist auf / eingehängt; Online-Größenänderung ist
  erforderlich
  old_desc_blocks = 31, new_desc_blocks = 43
  Das Dateisystem auf /dev/mapper/vg_test is nun 89527296 (4k) Blöcke lang.
=Kurzinfos=
==Informationen über Physical Volumes abfragen==
*pvs
  PV        VG    Fmt  Attr PSize    PFree
  /dev/sdb  daten lvm2 a-  1020,00M      0
  /dev/sdc  daten lvm2 a-  1020,00M 540,00M
==Informationen über Volume Groups abfragen==
*vgs
  VG    #PV #LV #SN Attr  VSize VFree
  daten  2  1  0 wz--n- 1,99G 540,00M
==Informationen über Logical Volumes abfragen==
*lvs
  LV      VG    Attr  LSize Origin Snap%  Move Log Copy%  Convert
  Speicher daten -wi-a- 1,46G
=Detailierte Infos=
==Informationen über Physical Volumes abfragen==
*pvdisplay
<pre>
  --- Physical volume ---
  PV Name              /dev/sdb1
  VG Name              daten
  PV Size              6.00 GiB / not usable 4.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              1535
  Free PE              0
  Allocated PE          1535
  PV UUID              bFu5lR-NZCh-3JXc-Ri4y-TcIB-Nkr3-tjGyrg
 
  --- Physical volume ---
  PV Name              /dev/sdb2
  VG Name              daten
  PV Size              6.00 GiB / not usable 4.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              1535
  Free PE              0
  Allocated PE          1535
  PV UUID              VNJGe3-nI7c-4mOi-qmqE-EZqL-epXP-1i7qy1
 
  --- Physical volume ---
  PV Name              /dev/sdb3
  VG Name              daten
  PV Size              6.00 GiB / not usable 4.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              1535
  Free PE              0
  Allocated PE          1535
  PV UUID              HbDzxt-2cLa-L1jh-Cen8-8DbB-aW1y-3Ps72S
 
  --- Physical volume ---
  PV Name              /dev/sdb4
  VG Name              daten
  PV Size              6.00 GiB / not usable 4.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              1535
  Free PE              0
  Allocated PE          1535
  PV UUID              W2Cg8y-Rw1j-ANyZ-T6AS-55tD-zR11-tKLY2M
</pre>
==Informationen über Volume Groups abfragen==
*vgdisplay
<pre>
  --- Volume group ---
  VG Name              daten
  System ID           
  Format                lvm2
  Metadata Areas        4
  Metadata Sequence No  9
  VG Access            read/write
  VG Status            resizable
  MAX LV                0
  Cur LV                3
  Open LV              3
  Max PV                0
  Cur PV                4
  Act PV                4
  VG Size              23.98 GiB
  PE Size              4.00 MiB
  Total PE              6140
  Alloc PE / Size      6140 / 23.98 GiB
  Free  PE / Size      0 / 0 
  VG UUID              vxYO0U-hfOW-A6BC-vzdl-B6lm-c9yR-3PFcVx
</pre>
==Informationen über Logical Volumes abfragen==
*lvdisplay
<pre>
  --- Logical volume ---
  LV Path                /dev/daten/misc
  LV Name                misc
  VG Name                daten
  LV UUID                XxGoSt-VMGt-tP9b-P8b2-SeI4-6QHQ-mfyyXT
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:31:37 +0200
  LV Status              available
  # open                1
  LV Size                5.00 GiB
  Current LE            1280
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:0
 
  --- Logical volume ---
  LV Path                /dev/daten/video
  LV Name                video
  VG Name                daten
  LV UUID                8GtlnY-wkEb-8jBx-Jw3P-4cet-xNEh-0sZg3y
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:32:07 +0200
  LV Status              available
  # open                1
  LV Size                7.00 GiB
  Current LE            1792
  Segments              2
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:1
 
  --- Logical volume ---
  LV Path                /dev/daten/audio
  LV Name                audio
  VG Name                daten
  LV UUID                UvJjbN-cFBu-ZIRN-r71e-pade-CoKn-LoeJpv
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:32:38 +0200
  LV Status              available
  # open                1
  LV Size                11.98 GiB
  Current LE            3068
  Segments              4
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:2
</pre>

Version vom 16. Oktober 2026, 13:55 Uhr

Schaubild

lvm-1


Was ist LVM

  • LVM steht für Logical Volume Manager
  • Es ist ein Verfahren, um Speicherplatz auf mehreren Festplatten dynamisch zu verwalten.
  • Es bildet sozusagen eine zusätzliche logische Schicht zwischen Dateisystem und Partitionen.
  • LVM bietet die Möglichkeit, mehrere Partitionen logisch zusammenzufassen (Volume Group)
  • und in diesem logischen Verbund neue "logische Partitionen" (Logical Volume) anzulegen.
  • Der Volume Group können dynamisch weitere Geräte hinzugefügt werden, wodurch sich der verfügbare Speicherplatz erhöht.
  • Freier Speicherplatz kann ebenfalls dynamisch den Logical Volumes zugewiesen werden.
  • Dadurch erreicht man eine höhere Flexibilität als mit einem klassischen Partitionierungsansatz.
  • Dies ist vor allem interessant für Server, bei denen dynamisch auf das Wachsen der Datenbestände reagiert werden muss.
  • Vier Begriffe sind beim LVM essentiell und sollen zunächst erklärt werden:
  • Physical Extended, Physical Volume, Volume Group und Logical Volume.

Physical Extended

  • Das sog. Physical Extended (PE) ist die kleinste mögliche Speichergröße in einem LVM
  • Das PE ist vergleichbar mit den Sektoren von normalen Festplatten bzw. Partitionen.
  • Es ist nicht möglich, die Größe der PEs zu verändern
  • Die Anzahl der PEs seit LVM2 unbegrenzt ist, die Standardgröße beträgt 4 MByte.

Physical Volume

  • Ein Physical Volume (PV) ist der eigentliche Datenspeicher eines LVMs
  • Ein PV kann eine Partition oder ein ganzes Laufwerk sein.
  • Es ist auch möglich sog. Loopdateien zu verwenden.

Volume Group

  • Eine Volume Group (VG) ist eine Art Container für mindestens ein PV.

Logical Volume

  • Ein Logical Volume (LV oder auch Volume) ist im LVM Kontext für den Anwender eine Art Partition innerhalb einer Volume Group.
  • Es ist nicht möglich Logical Volumes außerhalb einer VG zu erstellen.
  • Das LV kann wie eine normale Partition verwendet werden,
  • d.h. es können Dateisysteme darauf angelegt werden und es kann gemounted werden.

LVM einrichten

Installation

  • apt install lvm2

Um ein LVM einzurichten muss zuerst jede zu verwendende Partition mittels pvcreate als Physical Volume initialisiert werden. Alle Physical Volumes müssen nun mittels vgcreate zu einer Volume Group zusammengefasst werden. In dieser Gruppe können nun mittels lvcreate die Logical Volumes erzeugt werden.

Für jedes Logical Volume wird eine Datei der Art /dev/<group>/<vol> angelegt. Das Logical Volume kann verwendet werden wie jedes andere Block-Device. So kann ein Dateisystem darauf erzeugt werden und das Dateisystem kann eingebunden werden.

Hinweis:

Eine mit pvcreate initialisierte Partition sollte vom Typ 0x8e bzw. Linux LVM sein, da es sonst zu Problemen mit der 
Erkennung der PVs kommt. Wenn das LVM auf einem RAID liegt, ist dies natürlich nicht nötig, genauso wie wenn das LVM 
direkt auf eine Festplatte ohne Partitionstabelle aufgesetzt wird.

Vorbereiten der Physical Volumes

  • pvcreate /dev/sdb1 /dev/sdb2 /dev/sdb3
 Physical volume "/dev/sdb1" successfully created.
 Physical volume "/dev/sdb2" successfully created.
 Physical volume "/dev/sdb3" successfully created.

Erstellen der Volumegroup

  • vgcreate daten /dev/sdb1 /dev/sdb2 /dev/sdb3
 Volume group "daten" successfully created

Erstellen der Logical Volumes

  • lvcreate -L 5G -n misc daten
 Logical volume "misc" created
  • lvcreate -L 1G -n video daten
 Logical volume "video" created.
  • lvcreate -l 100%VG -n audio daten
 Reducing 100%VG to remaining free space <4,99 GiB in VG.
 Logical volume "audio" created.

Formatieren der Logical Volumes

  • mkfs.ext4 /dev/daten/misc
  • mkfs.ext4 /dev/daten/video
  • mkfs.ext4 /dev/daten/audio

Verwenden der Logical Volume

Einbinden der LV in das Dateisystem

Mountpunkte erstellen
  • mkdir -v /mnt/{misc,video,audio}
Mounten
  • mount /dev/daten/misc /mnt/misc/
  • mount /dev/daten/video /mnt/video
  • mount /dev/daten/audio /mnt/audio


Kontrolle, z.B. durch Anzeigen des freien Speichers

df -h | grep mapper

/dev/mapper/daten-misc    15G     24K   14G    1% /mnt/misc
/dev/mapper/daten-video  9,8G     24K  9,3G    1% /mnt/video
/dev/mapper/daten-audio  4,9G     24K  4,6G    1% /mnt/audio

Erweitern einer Volume Group

  • pvcreate /dev/sdb4
  • vgextend daten /dev/sdb4
 Volume group "daten" successfully extended

Anzeigen der vergößerten Volume Group

  • vgs
 VG    #PV #LV #SN Attr   VSize VFree
 daten   3   1   0 wz--n- 2,99G 1,52G

Vergrößern des Logical Volumes

  • lvextend -L 3G /dev/daten/video

oder um 2GB vergrössen

  • lvextend -L +2G /dev/daten/video
Size of logical volume daten/video changed from 12.00 GiB (3072 extents) to 14.00 GiB (3584 extents).
 Logical volume daten/video successfully resized.

Vergrößern des Logical Volumes online

Anzeigen des momentanen Status

  • df -h /mnt/video
Dateisystem             Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/daten-video  9,8G     24K  9,3G    1% /mnt/video

Vergrössern

  • resize2fs /dev/daten/video
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/daten/video is mounted on /mnt/video; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 3
The filesystem on /dev/daten/video is now 4718592 (4k) blocks long.

Anzeigen des momentanen Status

  • df -h /mnt/video
Dateisystem             Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/daten-video   18G     44M   17G    1% /mnt/video


Vergrößern des Logical Volumes auf Maximalwert

  • lvextend -l +100%FREE /dev/daten/audio
  • resize2fs /dev/daten/audio

Löschen eines Logical Volumes

  • umount /dev/daten/misc
  • lvremove /dev/daten/misc
Do you really want to remove active logical volume daten/misc? [y/n]: y
  Logical volume "misc" successfully removed

Verkleinern

Dateisystem verkleinern

  • umount /mnt/video
  • e2fsck -f /dev/daten/video
e2fsck 1.46.2 (28-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/daten/video: 11/1179648 files (0.0% non-contiguous), 101703/4718592 blocks
  • resize2fs /dev/daten/video 9G
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/daten/video to 3670016 (4k) blocks.
The filesystem on /dev/daten/video is now 3670016 (4k) blocks long.

Logisches Volume verkleinern

  • lvreduce -L 9G /dev/daten/video
  WARNING: Reducing active logical volume to 14,00 GiB.
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce daten/video? [y/n]: y
  Size of logical volume daten/video changed from 18,00 GiB (4608 extents) to 14,00 GiB (3584 extents).
  Logical volume daten/video successfully resized.
  • lvs
 LV       VG    Attr   LSize Origin Snap%  Move Log Copy%  Convert
 Speicher daten -wi-ao 1,50G

Physical Volume entfernen

Physical Volume leeren oder verschieben

  • Es muss genügend Platz auf den restlichen Physical Volumes vorhanden sein!
  • pvmove /dev/sdb1
/dev/sdb1: Moved: 0,51%
/dev/sdb1: Moved: 100,00%

Physical Volume aufs VG entfernen

  • vgreduce daten /dev/sdb1
 Removed "/dev/sdb1" from volume group "daten"

LVM Label entfernen

  • pvremove /dev/sdb1
 Labels on physical volume "/dev/sdb1" successfully wiped.

LV auflösen

Umounten

  • umount /mnt/{misc,video,audio}

Stoppen der Logical Volumes

  • lvchange -a n /dev/daten/video
  • lvchange -a n /dev/daten/audio
  • lvchange -a n /dev/daten/misc

Löschen der Logical Volumes

  • lvremove /dev/daten/video
  • lvremove /dev/daten/audio
  • lvremove /dev/daten/misc

VG auflösen

Stoppen

  • vgchange -a n /dev/daten

Entfernen

  • vgremove /dev/daten

PV auflösen

  • pvremove /dev/sdb[2-4]

Physical Volume vergrößern

  • pvresize /dev/sda5
 Physical volume "/dev/sda5" changed
 1 physical volume(s) resized or updated / 0 physical volume(s) not resized
  • lvextend -r -l +100%FREE /dev/vg_test/root
 Size of logical volume vg_test/root changed from <241,52 GiB (61829 extents) to <341,52 GiB (87429 extents).
 Logical volume vg_test/root successfully resized.
 resize2fs 1.44.5 (15-Dec-2018)
 Dateisystem bei /dev/mapper/vg_test ist auf / eingehängt; Online-Größenänderung ist
 erforderlich
 old_desc_blocks = 31, new_desc_blocks = 43
 Das Dateisystem auf /dev/mapper/vg_test is nun 89527296 (4k) Blöcke lang.

Kurzinfos

Informationen über Physical Volumes abfragen

  • pvs
 PV         VG    Fmt  Attr PSize    PFree
 /dev/sdb   daten lvm2 a-   1020,00M      0
 /dev/sdc   daten lvm2 a-   1020,00M 540,00M

Informationen über Volume Groups abfragen

  • vgs
 VG    #PV #LV #SN Attr   VSize VFree
 daten   2   1   0 wz--n- 1,99G 540,00M

Informationen über Logical Volumes abfragen

  • lvs
 LV       VG    Attr   LSize Origin Snap%  Move Log Copy%  Convert
 Speicher daten -wi-a- 1,46G

Detailierte Infos

Informationen über Physical Volumes abfragen

  • pvdisplay
 
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               daten
  PV Size               6.00 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              1535
  Free PE               0
  Allocated PE          1535
  PV UUID               bFu5lR-NZCh-3JXc-Ri4y-TcIB-Nkr3-tjGyrg
   
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               daten
  PV Size               6.00 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              1535
  Free PE               0
  Allocated PE          1535
  PV UUID               VNJGe3-nI7c-4mOi-qmqE-EZqL-epXP-1i7qy1
   
  --- Physical volume ---
  PV Name               /dev/sdb3
  VG Name               daten
  PV Size               6.00 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              1535
  Free PE               0
  Allocated PE          1535
  PV UUID               HbDzxt-2cLa-L1jh-Cen8-8DbB-aW1y-3Ps72S
   
  --- Physical volume ---
  PV Name               /dev/sdb4
  VG Name               daten
  PV Size               6.00 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              1535
  Free PE               0
  Allocated PE          1535
  PV UUID               W2Cg8y-Rw1j-ANyZ-T6AS-55tD-zR11-tKLY2M

Informationen über Volume Groups abfragen

  • vgdisplay
  --- Volume group ---
  VG Name               daten
  System ID             
  Format                lvm2
  Metadata Areas        4
  Metadata Sequence No  9
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                4
  Act PV                4
  VG Size               23.98 GiB
  PE Size               4.00 MiB
  Total PE              6140
  Alloc PE / Size       6140 / 23.98 GiB
  Free  PE / Size       0 / 0   
  VG UUID               vxYO0U-hfOW-A6BC-vzdl-B6lm-c9yR-3PFcVx

Informationen über Logical Volumes abfragen

  • lvdisplay
  --- Logical volume ---
  LV Path                /dev/daten/misc
  LV Name                misc
  VG Name                daten
  LV UUID                XxGoSt-VMGt-tP9b-P8b2-SeI4-6QHQ-mfyyXT
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:31:37 +0200
  LV Status              available
  # open                 1
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/daten/video
  LV Name                video
  VG Name                daten
  LV UUID                8GtlnY-wkEb-8jBx-Jw3P-4cet-xNEh-0sZg3y
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:32:07 +0200
  LV Status              available
  # open                 1
  LV Size                7.00 GiB
  Current LE             1792
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/daten/audio
  LV Name                audio
  VG Name                daten
  LV UUID                UvJjbN-cFBu-ZIRN-r71e-pade-CoKn-LoeJpv
  LV Write Access        read/write
  LV Creation host, time debian13.sec-labs.de, 2026-08-26 11:32:38 +0200
  LV Status              available
  # open                 1
  LV Size                11.98 GiB
  Current LE             3068
  Segments               4
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2