Zentyal Forum, Linux Small Business Server
Zentyal Server => Contributions / Tips&Tricks / Features Requests => Topic started by: vandykmarsu on May 20, 2022, 11:20:49 am
-
Following the installation procedure, but with software raid support.
I. SOFTWARE RAID CONFIGURATION.
Choose expert mode installation:
(https://i.ibb.co/bbfzPBs/rd0.png) (https://imgbb.com/)
Once in the partition disks menu, select “Manual”:
(https://i.ibb.co/L1jTZz7/rd1.png) (https://ibb.co/M7wzCD0)
Go to the free space of the “sda” disk:
(https://i.ibb.co/Y87gsNf/rd2.png) (https://ibb.co/HYDZ8KG)
Create a new partition:
(https://i.ibb.co/ZYsKPXD/rd3.png) (https://ibb.co/CMdvZ8G)
Choose the maximum partition size:
(https://i.ibb.co/ygbbbdt/rd4.png) (https://ibb.co/vLKKKVp)
Then select the type of partition, logical in our case:
(https://i.ibb.co/NWF48Yj/rd5.png) (https://ibb.co/QYJ52mN)
Change partition characteristics for raid volume:
(https://i.ibb.co/5sggyPh/rd6.png) (https://ibb.co/1Rtt5kG)
(https://i.ibb.co/VT1hZzt/rd7.png) (https://ibb.co/sqfDGN2)
Validate the end of the configuration:
(https://i.ibb.co/H4qBWjk/rd8.png) (https://ibb.co/02rmgxd)
Do the same operations above for the “sdb” disk.
Once the two raid volumes have been created, let's go to the software raid configuration:
(https://i.ibb.co/19ZzNH1/rd9.png) (https://ibb.co/Jzn3TXV)
Apply changes to disks:
(https://i.ibb.co/YfmYJtP/rd10.png) (https://ibb.co/MPrWKRZ)
Then create a multi-disk device:
(https://i.ibb.co/2qjspqh/rd11.png) (https://ibb.co/XXz3GXL)
Select “Raid1”:
(https://i.ibb.co/QdzLpQz/rd12.png) (https://ibb.co/k1kj5Bk)
Check the number of active devices, 2 in our case:
(https://i.ibb.co/3vs6gS8/rd13.png) (https://ibb.co/w7LG5pb)
Leave the spare device count at 0:
(https://i.ibb.co/t8v400g/rd14.png) (https://ibb.co/m62Gnnk)
Overview of active devices and selection thereof: (space to select)
(https://i.ibb.co/zW3b3J4/rd15.png) (https://ibb.co/DPBkBpR)
(https://i.ibb.co/pd2P95Q/rd16.png) (https://ibb.co/XtX4vMD)
Finish configuring volumes:
(https://i.ibb.co/WBq8XpP/rd17.png) (https://ibb.co/1RhyNJd)
Finish partitioning and apply changes:
(https://i.ibb.co/ZgGXp7X/rd18.png) (https://ibb.co/WzG54j5)
Appears a new Raid1 device:
(https://i.ibb.co/zZcyNq6/rd19.png) (https://ibb.co/0rNgQHs)
Select free space to apply partition characteristics:
(https://i.ibb.co/cQCxNrV/rd20.png) (https://ibb.co/yqYV8Q7)
Apply the filesystem type, journaled ext4 in our example:
(https://i.ibb.co/zZVwC7c/rd21.png) (https://ibb.co/cQhdRC5)
Select the partition mount point, root “/” in our case:
(https://i.ibb.co/d62WBdP/rd22.png) (https://ibb.co/nfcgrH7)
(https://i.ibb.co/Db8vKpt/rd23.png) (https://ibb.co/GJt8PT0)
Finish setting the raid partition:
(https://i.ibb.co/HGqK7h5/rd24.png) (https://ibb.co/dkDfBm8)
Finish partitioning and apply changes:
(https://i.ibb.co/k3JkBQB/rd25.png) (https://ibb.co/Jxq0t5t)
(https://i.ibb.co/Nt7L5Vm/rd26.png) (https://ibb.co/q7xRKyW)
After applying the changes on the disks the installation of Zentyal continues
with software raid1 support.
Once the installation is complete, to verify the volumes, enter the command below
in a terminal:
(https://i.ibb.co/G5j4f5h/rd27.png) (https://imgbb.com/)
We see a raid1 volume md0 belonging to disk sda partition sda5, same for
sdb5.
II. RAID MAINTENANCE
To display the status of a raid1 volume enter the following command:
sudo mdadm -D /dev/md0
Output of the above command:
(https://i.ibb.co/VCdt0Pz/rd29.png) (https://imgbb.com/)
To remove a bad volume: (* select the bad disk number)
sudo mdadm --remove /dev/md0 /dev/sda*
To add a new volume:
sudo mdadm --add /dev/md0 /dev/sda*
Source (https://doc.ubuntu-fr.org/tutoriel/raid1_logiciel_ubuntu_serveur)