LVM und Software-RAID 1
Hallo Liste,
ich habe gerade einen Knoten im Hirm und komme mit der
Sarge-Installation nicht weiter. Ich habe zwei Platten `a 80 GB und
möchte diese als RAID 1 nutzen. Aufteilung der 1. Platte in etwa so:
300 MB für /
und die restlichen 79,7 GB mit LVM ungefähr so:
5 GB für /usr
3 GB für /var
3 MB für swap
400 MB für /tmp
Rest für /home
Beim Partitionieren mit d-i komme ich allerdings nicht weiter.
Wenn ich eine Software-RAID- und eine LVM-Partion erzeuge, kann ich die
LVM-Partion nicht mehr im RAID nutzen. Erzeuge ich zwei
RAID-Partitionen, zeigt mir parted nur die kleinere (wie es im
d-i-Handbuch steht). Wie komme ich an die zweite?
Wenn ich mit Software-RAID die gesamte Platte nutze, kann ich keine
LVM-Partitionen anlegen ...
LVM- und Software-RAID kann ich schon bald auswendig, aber da steht
nichts, was mir weiterhilft ... zumindest sehe ich nichts.
Vielleicht geht ja nicht, aber folgende Passage im Software-RAID-HOWTO
machte mir Hoffnung:
---schnipp--
We will not attempt to describe LVM setup in this HOWTO, as there already
is a fine HOWTO for exactly this purpose. A small example of a RAID + LVM
setup will be presented though. Consider the df output below, of such a system:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 942M 419M 475M 47% /
/dev/vg0/backup 40G 1.3M 39G 1% /backup
/dev/vg0/amdata 496M 237M 233M 51% /var/lib/amanda
/dev/vg0/mirror 62G 56G 2.9G 96% /mnt/mirror
/dev/vg0/webroot 97M 6.5M 85M 8% /var/www
/dev/vg0/local 2.0G 458M 1.4G 24% /usr/local
/dev/vg0/netswap 3.0G 2.1G 1019M 67% /mnt/netswap
"What's the difference" you might ask... Well, this system has only two
RAID-1 devices - one for the root filesystem, and one that cannot be seen on
the df output - this is because /dev/md1 is used as a "physical volume" for
LVM. What this means is, that /dev/md1 acts as "backing store" for all
"volumes" in the "volume group" named vg0.
---schnapp---
So möchte ich es haben, allein mir fehlt der Durchblick ...
Weiß jemand Rat,
Thomas
--
Thomas Hümmler * thomas@huemmler.de * http://www.huemmler.de
Reply to: