1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-04 07:47:45 +02:00

proxmox: added instruction for setting up proxmox after initial installation

This commit is contained in:
TiynGER 2021-01-11 22:04:10 +01:00
parent a35e1c6a9b
commit 3bba8f5591
4 changed files with 41 additions and 0 deletions

8
wiki/linux/dm-crypt.md Normal file
View File

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

10
wiki/linux/lvm.md Normal file
View File

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

15
wiki/linux/mdadm.md Normal file
View File

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

View File

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