|
|
Line 1: |
Line 1: |
− | {{Version|UCS=2.4}} | + | {{Review-Status}}{{Version|UCS=3.2}} |
− | Das UCS-Installationsprogramm unterstützt die Installation von UCS auf einem Software-RAID (mittels [http://neil.brown.name/blog/mdadm mdadm]). Eine vollständige Dokumentation des "expert mode" ist in der [[Dokumentationen zur erweiterten Administration]] unter '''Software RAID''' zu finden. Auf dieser Seite ist eine Sammlung von Anwendungsbeispielen aufgeführt.
| + | Since the described procedure is already a part of the offical UCS documentation, this article is no longer necessary. Please refer to [http://docs.univention.de/installation-3.2.html#expertpartitioning Expert mode for the partitioning in Univention Installer] from the offical documentation. |
− | | |
− | =RAID1 für Boot und LVM auf zwei Festplatten=
| |
− | | |
− | ==Partitionierung==
| |
− | Auf den Festplatten (hier ''sda'' und ''sdb'') werden zwei Partitionen angelegt:
| |
− | *250M RAID-autodetect ''FD'' (für /boot)<br>
| |
− | *Rest RAID-autodetect ''FD'' (für LVM)
| |
− | | |
− | == RAID-Devices anlegen ==
| |
− | <syntaxhighlight lang=bash>mdadm --create --auto=md /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
| |
− | mdadm --create --auto=md /dev/md1 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2</syntaxhighlight>
| |
− | | |
− | == LVM-Devices anlegen ==
| |
− | <syntaxhighlight lang=bash>pvcreate /dev/md1 #Anlegen eines Physical Volume (PV)
| |
− | vgcreate vg_ucs /dev/md1 #Anlegen einer Volume Group (VG)
| |
− | lvcreate -L2G -n swap vg_ucs #Erzeugt eines 2GB großen Logical Volume (LV) für Swap
| |
− | lvcreate -L20G -n rootfs vg_ucs #Erzeugt eines 20GB großen Logical Volume (LV) für /
| |
− | lvcreate -L150G -n var vg_ucs #Eventuelle weitere LVs</syntaxhighlight>
| |
− | | |
− | == Dateisysteme anlegen ==
| |
− | <syntaxhighlight lang=bash>mkfs.ext3 /dev/md0
| |
− | mkswap /dev/mapper/vg_ucs-swap
| |
− | mkfs.ext3 /dev/mapper/vg_ucs-rootfs</syntaxhighlight>
| |
− |
| |
− | == Installer Konfiguration ==
| |
− | <syntaxhighlight lang=bash>alias ucr='/bin/python2.4 /sbin/univention-config-registry'
| |
− | ucr set installer/device/0/fs=ext3
| |
− | ucr set installer/device/0/mp=/
| |
− | ucr set installer/device/0/name=/dev/mapper/vg_ucs-rootfs
| |
− | ucr set installer/device/1/fs=ext3
| |
− | ucr set installer/device/1/mp=/boot
| |
− | ucr set installer/device/1/name=/dev/md0
| |
− | ucr set installer/device/2/fs=linux-swap
| |
− | ucr set installer/device/2/mp=None
| |
− | ucr set installer/device/2/name=/dev/mapper/vg_ucs-swap
| |
− | ucr set grub/groot="(hd0,0)"</syntaxhighlight>
| |
− | | |
− | == Installation von Grub in den MBR der 2. Festplatte ==
| |
− | Um das System beim Ausfall der ersten Festplatte weiterhin booten zu können, sollte der Bootloader (Grub) auch in den Master Boot Record (MBR) der zweiten Festplatte installiert werden:
| |
− | | |
− | <syntaxhighlight lang=bash>grub
| |
− | grub> root (hd1,0)
| |
− | grub> setup (hd1)
| |
− | grub> quit</syntaxhighlight>
| |
− | | |
| | | |
| [[Category:Howtos]] | | [[Category:Howtos]] |