private/server

This commit is contained in:
Marc Beninca 2018-12-19 23:05:42 +01:00
parent 1415cfcfff
commit 12e788cc34
2 changed files with 51 additions and 0 deletions

View file

@ -21,6 +21,11 @@ RTFD
public/versions/index
public/web/index
.. toctree::
:maxdepth: 2
private/server/index
.. toctree::
:caption: Dispatch

View file

@ -0,0 +1,46 @@
Server
======
Hardware
--------
Partition
---------
.. code:: shell
parted
select /dev/sda
mktable gpt
mkpart raid 1 2000364
mkpart boot 2000364 2000399
toggle 2 boot
select /dev/sdb
mktable gpt
mkpart raid 1 2000364
mkpart boot 2000364 2000399
toggle 2 boot
q
.. code:: shell
mdadm --create /dev/md0 \
--level 0 --raid-devices 2 /dev/sd[ab]1
.. code:: shell
parted /dev/md0
mktable gpt
mkpart data 1 3966099
mkpart swap 3966099 4000458
q
.. code:: shell
mkfs.ext4 -L data /dev/md0p1
mkswap --label swap /dev/md0p2