From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jA7MroV01021 for ; Mon, 7 Nov 2005 17:53:50 -0500 Received: from NAMESPRO-EMAIL.mailroot.namespro.ca (mailroot.namespro.ca [70.85.153.146]) by mx3.redhat.com (8.13.1/8.13.1) with ESMTP id jA7MreXf032474 for ; Mon, 7 Nov 2005 17:53:43 -0500 Message-ID: <436FDADF.80805@picardconsulting.ca> Date: Mon, 07 Nov 2005 17:53:19 -0500 From: Patrick Picard MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [linux-lvm] RAID 5 + LVM Planning help needed Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/html; charset="us-ascii" To: linux-lvm@redhat.com Hi Everyone,

I am planning to have a raid 5 array (software based) with LVM riding atop.

I have a few questions regarding the setup.

1- From Suse 10.0 Reference Manual: The physical extent size defines the size of a physical block in the volume group. All the disk space in a volume group is handled in chunks of this size. This value is normally set to 4 MB and allows for a maximum size of 256 GB for physical and logical volumes. The physical extent size should only be increased, for example, to 8, 16, or 32 MB, if you need logical volumes larger than 256 GB.

Is this a linear function, meaning??
PE      Max Size
8mb   512GB
16mb 1TB
32mb 2TB

2- Raid setup: In the following config extract, do the hard drives have to be formatted first, or could I do like in extract 2:
I assume extract 1 has the drives partitionned with type fd ( raid autodetect)...which one is the right one!!!
Extract 1:
raiddev /dev/md0
        raid-level      5
        nr-raid-disks   6
        nr-spare-disks  0
        persistent-superblock 1
        parity-algorithm        left-symmetric
        chunk-size      32
        device          /dev/sdb1
        raid-disk       0
        device          /dev/sdc1
        raid-disk       1
        device          /dev/sdd1
        raid-disk       2
        device          /dev/sde1
        raid-disk       3
        device          /dev/sdf1
        raid-disk       4
        device          /dev/sdg1
        raid-disk  	5
Extract 2: (using raw disk)
raiddev /dev/md0
        raid-level      5
        nr-raid-disks   6
        nr-spare-disks  0
        persistent-superblock 1
        parity-algorithm        left-symmetric
        chunk-size      32
        device          /dev/sdb
        raid-disk       0
        device          /dev/sdc
        raid-disk       1
        device          /dev/sdd
        raid-disk       2
        device          /dev/sde
        raid-disk       3
        device          /dev/sdf
        raid-disk       4
        device          /dev/sdg
        raid-disk  	5


Then mkraid /dev/md0


3- Once the raid is setup, 
pvcreate /dev/md0
vgcreate -s16 data /dev/md0
lvcreate  ( a bunch of lv's are created here)

I plan to partition the lv's with reiserfs

Some lv's will have lots of small files, where another will have tons of 700MB files.... does the PE size affect this ?

If you have any suggestion to make this setup optimal, it would be greatly appreciated. The HD's will be SATA and PATA ( mixed, but on different busses)


Thanks to everyone who will help.

Patrick Picard
Picard Consulting