lvm

Dies ist eine alte Version des Dokuments!


LVM

Abstraktionsschicht, um Partitionen flexibel über mehrere physische Devices zu bilden. Fasst eine oder mehrere Disks zu einem Logical Volume zusammen. Mehrere Physical Volumes (Platten) bilden eine Volume Group. In der Volume Group werden Logical Volumes gebildet. In den LV werden die Dateisysteme angelegt.

Dateisystem

^^

Logical Volume (LV)

^^

Volume Group (VG)

^^

Physical Volume (PV, HDD1 -- HDD2)

pvdisplay zeigt alle LVM Volumes und die darin zusammengefassten physischen Devices

root@tarapiroe /mnt # pvdisplay
  --- Physical volume ---
  PV Name               /dev/md3
  VG Name               data1
  PV Size               <2,66 TiB / not usable 2,31 MiB
  Allocatable           yes
  PE Size               4,00 MiB
  Total PE              696964
  Free PE               364164
  Allocated PE          332800
  PV UUID               JGWU94-FLRS-zV60-ZAzg-gRvE-ifmR-qLIdMs

  --- Physical volume ---
  PV Name               /dev/nbd0p5
  VG Name               ffes-vg
  PV Size               19,52 GiB / not usable 2,00 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              4997
  Free PE               0
  Allocated PE          4997
  PV UUID               jqhYf1-VhUf-ApgM-vPtW-alD3-EFkZ-etDGgz

vgdisplay zeigt die Volume Groups

root@tarapiroe /mnt # pvdisplay
  --- Physical volume ---
  PV Name               /dev/md3
  VG Name               data1
  PV Size               <2,66 TiB / not usable 2,31 MiB
  Allocatable           yes
  PE Size               4,00 MiB
  Total PE              696964
  Free PE               364164
  Allocated PE          332800
  PV UUID               JGWU94-FLRS-zV60-ZAzg-gRvE-ifmR-qLIdMs

  --- Physical volume ---
  PV Name               /dev/nbd0p5
  VG Name               ffes-vg
  PV Size               19,52 GiB / not usable 2,00 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              4997
  Free PE               0
  Allocated PE          4997
  PV UUID               jqhYf1-VhUf-ApgM-vPtW-alD3-EFkZ-etDGgz

lvddisplay zeigt die logical volumes

root@tarapiroe /mnt # lvdisplay
  --- Logical volume ---
  LV Path                /dev/data1/VMs
  LV Name                VMs
  VG Name                data1
  LV UUID                ccDAJ2-sN1H-lRYL-fQFf-q11k-FtSB-7nSSQO
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                300,00 GiB
  Current LE             76800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Path                /dev/data1/Backup
  LV Name                Backup
  VG Name                data1
  LV UUID                2aABCv-Dwp0-W9Wu-0SpK-Xrwy-fHVF-pDEpge
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                1000,00 GiB
  Current LE             256000
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Path                /dev/ffes-vg/root
  LV Name                root
  VG Name                ffes-vg
  LV UUID                A9CTeG-Da3f-CtnJ-Hgkd-Yp6r-NpJ0-yaiwlT
  LV Write Access        read/write
  LV Creation host, time ffes, 2017-11-22 10:33:21 +0100
  LV Status              available
  # open                 0
  LV Size                <17,52 GiB
  Current LE             4485
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

  --- Logical volume ---
  LV Path                /dev/ffes-vg/swap_1
  LV Name                swap_1
  VG Name                ffes-vg
  LV UUID                tTYpH9-jJsi-0HsE-twF2-3UtO-NZQB-UWepLj
  LV Write Access        read/write
  LV Creation host, time ffes, 2017-11-22 10:33:21 +0100
  LV Status              available
  # open                 0
  LV Size                2,00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
  • lvm.1557592108.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)