On Sat, 10 Dec 2005 10:37:58 +0100, Jarry wrote: > I'm going to re-install gentoo on a small hobby-server and because > I need both redundancy and flexibility, I thought in addition to > raid1 (2x 160GB ata-disk) this time I would also use lvm2: > > /dev/md0 /boot (~50MB) > /dev/md1 / (2GB) > /dev/md2 <swap> (2GB) > /dev/md3 lvm2 (rest for /var /tmp /usr /opt /chroot /home)
I've been running a similar setup for 18 months, it works well. > Is this generaly advisable solution (lvm2 over raid1), or is there > some risk in using raid1 together with lvm2 ? Not that I've heard of or discovered. > One more question concerning partition type: > If I want to use raid1, I have to set all those 2x4 (hda+hdc) primary > partitions as type fd (raid autodetect). Is it not problem later for > lvm2 when preparing and creating volume-group? Because lvm-guide says > something about setting partition type to 8e (linux lvm), which I can > not do, if I want to use raid1... The disk partitions should be set to type fd, because they are RAID partitions. LVM is running on the RAID array, not directly on the partitions, so it doesn't have a problem with this. -- Neil Bothwick What animal & what bit?
signature.asc
Description: PGP signature