mirror of https://github.com/tiyn/wiki
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.
|
Loading…
Reference in new issue