From 3bba8f55918dd7bd3cd33537e9531106ea8fb8cb Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 11 Jan 2021 22:04:10 +0100 Subject: [PATCH] proxmox: added instruction for setting up proxmox after initial installation --- wiki/linux/dm-crypt.md | 8 ++++++++ wiki/linux/lvm.md | 10 ++++++++++ wiki/linux/mdadm.md | 15 +++++++++++++++ wiki/linux/proxmox.md | 8 ++++++++ 4 files changed, 41 insertions(+) create mode 100644 wiki/linux/dm-crypt.md create mode 100644 wiki/linux/lvm.md create mode 100644 wiki/linux/mdadm.md diff --git a/wiki/linux/dm-crypt.md b/wiki/linux/dm-crypt.md new file mode 100644 index 0000000..77d927a --- /dev/null +++ b/wiki/linux/dm-crypt.md @@ -0,0 +1,8 @@ +# DM-Crypt + +`dm-crypt` can create and manage encrypted devices. + +## Creating an encrypted devices + +To create a encrypted device simply run: +`cryptsetup -y -v luksFormat /dev/sda2`. diff --git a/wiki/linux/lvm.md b/wiki/linux/lvm.md new file mode 100644 index 0000000..d1d1654 --- /dev/null +++ b/wiki/linux/lvm.md @@ -0,0 +1,10 @@ +# LVM + +`lvm` is a utility to create logical volumes. + +## Create VG for proxmox + +Setup the disk for the physical volume with `sgdisk -N 1 /dev/sdb`. +Then create the physical volume `pvcreate --metadatasize 250k -y -ff /dev/sdb1`. +And finally create the volume group `vgcreate vmdata /dev/sdb1`. +Then follow the guide in proxmox on how to connect a `vg` to proxmox. diff --git a/wiki/linux/mdadm.md b/wiki/linux/mdadm.md new file mode 100644 index 0000000..6b17d13 --- /dev/null +++ b/wiki/linux/mdadm.md @@ -0,0 +1,15 @@ +# MDADM + +`mdadm` is a utility to create and manage raid devices. + +## Raid 1 + +Raid 1 creates a mirror with even amount of drives. + +### Create Raid 0 device + +You can create a Raid 0 device with +`mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb` +where `sda` and `sdb` are the disks you want to include in your raid. +You can increase the number of raid devices, but they have to be at least 2. +If it is an uneven amount of disks in the raid, a disk will act as a spare disk. diff --git a/wiki/linux/proxmox.md b/wiki/linux/proxmox.md index 1e51003..8c7a2a2 100644 --- a/wiki/linux/proxmox.md +++ b/wiki/linux/proxmox.md @@ -4,6 +4,14 @@ Proxmox is an environment for virtual machines and containers. ## Disk Management +### Adding a LVM to Proxmox + +Create a `pv` and `vg` according to [the LVM page](lvm.md) at subsection +`Create VG for proxmox`. +Then add the LVM via the web-interface. +Select Datacenter and Storage. The `Add` and choose `LVM`. +After that follow the instructions and fill in the fields to your liking. + ### Enlarging disk of a VM SSH into Proxmox.