Differences between revisions 11 and 16 (spanning 5 versions)
Revision 11 as of 2017-10-10 22:46:55
Size: 1497
Editor: shran
Comment:
Revision 16 as of 2018-01-03 10:46:39
Size: 1793
Comment:
Deletions are marked like this. Additions are marked like this.
Line 41: Line 41:
md1_crypt lvm (vg1) md1_crypt lvm (vg_system)
Line 44: Line 44:
==== LVM volumes ==== ==== LVM Volumes ====
Initially the swap partition was 512M, but it ran full and was increased to 1G. That ran full as well, so a swap partition on the seconds volume was added too.
Line 47: Line 48:
vg1 root   2G (/dev/vg1/root)
vg1 swap 512M (/dev/vg1/swap)
vg_system root 2G (/dev/vg_system/root)
vg_system swap 1G (/dev/vg_system/swap)
Line 53: Line 54:
/dev/vg1/root / (btrfs) /dev/vg_system/root / (btrfs)
Line 55: Line 56:
/dev/vg1/swap (swap) /dev/vg_system/swap (swap)
Line 85: Line 86:
md2_crypt lvm (vg2) md2_crypt lvm (vg_storage)
Line 88: Line 89:
==== LVM volumes ==== ==== LVM Volumes ====
Line 91: Line 92:
vg2 media 4G (/dev/vg2/media) vg_storage media 4G (/dev/vg_storage/media)
vg_storage swap 4G (swap)
Line 96: Line 98:
/dev/vg2/media /mnt/media (btrfs) /dev/vg_storage/swap (swap)
/dev/vg_storage
/media /mnt/media (btrfs)

KVM Host Disk Layout

This disk layout has several layers. It uses btrfs, on top of LVM, on top of luks encryption, on top of raid, on top of the disks partitions.

Hardware

Two 16G SSD disks are used for the KVM Host. Two 2T SATA disks are used for the KVM Guests filesystem images.

Mark your disks! Spend time finding your disks S/N. Put a physical sticker on the disk. In the future this will help you identify a failing disk.

KVM Host Disks

Physical Disks and Partitions

sda     16G
sda1   256M
sda2 15360M

sdb     16G
sdb1   256M
sdb2 15360M

Raid

md0 raid1 (sda1, sdb1)
md1 raid1 (sda2, sdb2)

Luks

md1 luks (md1_crypt)

LVM

md1_crypt lvm (vg_system)

LVM Volumes

Initially the swap partition was 512M, but it ran full and was increased to 1G. That ran full as well, so a swap partition on the seconds volume was added too.

vg_system root 2G (/dev/vg_system/root)
vg_system swap 1G (/dev/vg_system/swap)

Filesystems and Mountpoints

/dev/vg_system/root /     (btrfs)
/dev/md0      /boot (btrfs)
/dev/vg_system/swap       (swap)

KVM Host Disks for Guest Filesystem Images

Physical Disks and Partitions

sdc     2T
sdc1 1856G

sdd     2T
sdd1 1856G

Raid

md2 raid1 (sdc1, sdd1)

Luks

md2 luks (md2_crypt)

LVM

md2_crypt lvm (vg_storage)

LVM Volumes

vg_storage media 4G (/dev/vg_storage/media)
vg_storage swap  4G (swap)

Filesystems and Mountpoints

/dev/vg_storage/swap             (swap)
/dev/vg_storage/media /mnt/media (btrfs)

None: KVM Host Disk Layout (last edited 2024-01-29 20:16:56 by Kristian Kallenberg)