On Thu, Jul 09, 2009 at 10:34:13AM +0700, Vilasith Phonepadith wrote: > > I am trying with LVM+RAID, and I did some tests. I need your help for the > installation of Lenny. > > Problem: I have to install Debian with the requirements as follow:partition: > use the system of LVM for partitionning the serversif possible on the Disk > RAID1 Mirroring > I don't understand well and don't know how to start. Which one should be done > first, after or at the same time. > If we install by default, it's alright. But now, with LVM+RAID, it's > something different for me.
Make the LVM run on top of RAID. This works perfectly, and I use it on several systems. It all works through the debian installer. 1) Partition disks Give both disks the same partition layout: p1: (/boot) 200MiB is plenty for several kernels and initrds. But you could make it 500MiB to be extra safe. p2: (RAID) use the rest of the available space 2) Set up software RAID Assuming your discs are /dev/sda and /dev/sdb, sda2 and sdb2 will be your RAID set. Just choose them when setting up RAID. 3) Configure LVM Start by creating a new physical volume (PV). Choose your raid device (/dev/md0) created in the previous step as the PV. Next, create a volume group (VG). I normally give it the same name as the machine hostname. Then, create the logical volumes (LVs) for / (root), /usr, /var, /home, /srv and any other volumes you need. Also create any swap partitions you like. I normally create a series of 2GiB LVs swap0, swap1, ... swapn but I think the 2GiB size limit is gone now. 4) Set up the filesystems In the partitioner, set /dev/sda1 as /boot. /boot needs to be separate from the RAID+LVM setup in order to be accessible by the bootloader, though it's possible grub2 will fix this at some point. Keeping it separate is safe and recommended. Configure all of your LVs by choosing the filesystem type and mount point. For Lenny I'd go with ext2 for /boot and ext3 for everything else. 5) Continue It's all done now, just carry on with the installation as usual, and it should all Just Work. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org