dd,mdadm,parted,rsync,storage

This commit is contained in:
Marc Beninca 2019-08-25 10:44:25 +02:00
parent cb00653688
commit 545ff2f6a3
11 changed files with 19 additions and 23 deletions

View file

@ -0,0 +1,31 @@
Creation
========
.. warning::
Only use partitions, never whole devices,
otherwise assembly will fail after reboot!
RAID 0
------
.. code:: shell
mdadm --create /dev/md0 --level=0 \
--raid-devices=2 /dev/sd[bc]1
RAID 1
------
.. code:: shell
mdadm --create /dev/md0 --level=1 \
--raid-devices=2 /dev/sd[bc]1
RAID 5
------
.. code:: shell
mdadm --create /dev/md0 --level=5 \
--raid-devices=3 /dev/sd[b-d]1

10
in/public/mdadm/index.rst Normal file
View file

@ -0,0 +1,10 @@
mdadm
=====
Multi Disk ADMin
.. toctree::
creation
persistence
manual

View file

@ -0,0 +1,27 @@
Manual operations
=================
.. note::
Use --scan to refer to all known devices
Details
-------
.. code:: shell
mdadm --detail /dev/md0
Stop
----
.. code:: shell
mdadm --stop /dev/md0
Assemble
--------
.. code:: shell
mdadm --assemble /dev/md0

View file

@ -0,0 +1,14 @@
Persistence
===========
* reference the device in configuration
.. code:: shell
mdadm --detail --scan /dev/md0 >> /etc/mdadm/mdadm.conf
* update the initial file system
.. code:: shell
update-initramfs -u