Raid unter Univention Corporate Server bauen

Der UCS hat für Storage-Management keine GUI, also Kommandozeile:

mdadm –create /dev/md/bigbox –verbose –chunk=2048 –level=5 –raid-devices=4 –spare-devices=0 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

Und dann heißt es warten, warten, warten, … RAID syncen dauert ewig.

Den BTRFS-Tools fehlen leider die RAID-Optimierungen über die Metadata-Profiles noch, Debian ist wohl zu alt, also ein Standard-Dateisystem anlegen:

mkfs.btrfs  /dev/md/bigbox

root@hydra:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md127 : active raid5 sdb1[1] sdd1[4] sdc1[2]
5860147200 blocks super 1.2 level 5, 2048k chunk, algorithm 2 [4/3] [_UUU]
unused devices: <none>

Und in die /etc/fstab

/dev/md/bigbox        /mnt/bigbox            btrfs    nosuid,noexec            0    2

Damit es nach dem Booten auch noch da ist fehlt noch ein Eintrag in der /etc/mdadm/mdadm.conf

ARRAY /dev/md/bigbox devices=/dev/sdb1,/dev/sdc1,/dev/sdd1,/dev/sde1 level=5 num-devices=4 auto=yes

Sehr schön: endlich Platz für die Container des UCS UVMM:

root@hydra:~# df -h
Dateisystem                                            Größe Benutzt Verf. Verw% Eingehängt auf
udev                                                     10M       0   10M    0% /dev
tmpfs                                                   1,6G     13M  1,6G    1% /run
/dev/disk/by-uuid/xxx  647G           31G  583G    6% /
tmpfs                                                   5,0M       0  5,0M    0% /run/lock
tmpfs                                                   9,4G       0  9,4G    0% /run/shm
/dev/md127                                         5,5T    4,4M  5,5T    1% /mnt/bigbox
cgroup                                                  7,8G       0  7,8G    0% /sys/fs/cgroup
root@hydra:~#

www.romal.de
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.