proxmox: added instruction for setting up proxmox after initial installation

master
TiynGER 4 years ago
parent a35e1c6a9b
commit 3bba8f5591

@ -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`.

@ -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.

@ -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.

@ -4,6 +4,14 @@ Proxmox is an environment for virtual machines and containers.
## Disk Management ## 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 ### Enlarging disk of a VM
SSH into Proxmox. SSH into Proxmox.

Loading…
Cancel
Save