From 12e788cc3444affe90dac54edee03e06d19fb5cb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 19 Dec 2018 23:05:42 +0100 Subject: [PATCH] private/server --- in/index.rst | 5 ++++ in/private/server/index.rst | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 in/private/server/index.rst diff --git a/in/index.rst b/in/index.rst index e7a589d..d20af14 100644 --- a/in/index.rst +++ b/in/index.rst @@ -21,6 +21,11 @@ RTFD public/versions/index public/web/index +.. toctree:: + :maxdepth: 2 + + private/server/index + .. toctree:: :caption: Dispatch diff --git a/in/private/server/index.rst b/in/private/server/index.rst new file mode 100644 index 0000000..8506080 --- /dev/null +++ b/in/private/server/index.rst @@ -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