RAID Setup
These instructions only apply if the MultiDevice ISO installation media was used. If the two drives are not the exact same size, then the smaller drive must be the drive selected during installation. There is no way to add a second drive to a RAID array if it’s not at least the same size or bigger than the first drive.
Warning
MD RAID setup can be temperamental. If there are any problems during the installation it’s recommended to wipe all drives and start over. That can be done with wipefs, I.E. wipefs -fa /dev/sda or wipefs -fa /dev/nvme0, prior to installing.
Setup Instructions
If not already, login as the
rootuser to get to the # command prompt.Type
vicibox-mdraid1and pressENTERto start the setup process.If there are any orphaned RAID arrays, they will be shown. To remove them press
Yand thenENTER. This will destroy the data on these drives.If this is not the first time running the script, a summary of the current RAID arrays will be shown.
If there are any suitable target drives in the system, they will be shown. Select the appropriate drive number from the list and press
ENTER.A confirmation prompt will be shown to confirm the destruction of the target drive. Press
ENTERto confirm the target drive.The drive will be partitioned and added to the RAID arrays. A summary of the arrays will be shown when complete.
To check the status of the MD RAID arrays, type
cat /proc/mdstatand pressENTER. md1 is the swap array and md2 is the root array.While not strictly necessary, it’s advised to reboot the server at this time. Type
rebootand pressENTERto reboot the server.
For more screenshots of these steps, see RAID Specific.
Filesystem Layout
Mount |
MD Array |
|---|---|
/ (root) |
/dev/md2 |
swap |
/dev/md1 |
MD Array |
Partition |
|---|---|
/dev/md2 |
/dev/sda4 or /dev/nvme0n1p4 |
/dev/md1 |
/dev/sda3 or /dev/nvme0n1p3 |
Note
When initially installed, the swap MD array is not setup. The drive layout shows only a single drive, but you can replace sda with sdb or nvme0 with nvme1 for the second drive that gets added to the array. /dev/md0 is not used by ViciBox and available for end users to use as they see fit.
