49 lines
788 B
Plaintext
49 lines
788 B
Plaintext
# -----
|
|
# - Configure LVM system on file-ah
|
|
# -----
|
|
|
|
# Installiere lvm2 package
|
|
#
|
|
apt-get install lvm2
|
|
|
|
# kpartx
|
|
#
|
|
# reads the partition table and creates device files for the partitions in /dev/mapper .
|
|
# Each device file represents a disk volume or a disk partition on a device or within an
|
|
# image file.
|
|
#
|
|
# Note:
|
|
# The 'kpartx' package is primarily used to mount an LCM partition.
|
|
#
|
|
apt-get install kpartx
|
|
|
|
|
|
|
|
# ---
|
|
# Initialisiere Partition zur Benutzung als LVM Device:
|
|
# ---
|
|
|
|
# for Windows Server 2025
|
|
#
|
|
pvcreate /dev/mapper/kvm-system
|
|
|
|
|
|
|
|
# ---
|
|
# Erstelle Volume Groups
|
|
# ---
|
|
|
|
# For Windows Server 2025
|
|
#
|
|
vgcreate VG-Windows-Server /dev/mapper/kvm-system
|
|
|
|
|
|
|
|
# ---
|
|
# Erstelle LVM Partition(en)
|
|
# ---
|
|
|
|
# For Windows Server 2025:
|
|
#
|
|
lvcreate -L 1000G -n WinSystem VG-Windows-Server
|