SLUG Mailing List Archives
Re: [SLUG] RAID and LVM
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] RAID and LVM
- From: Paul De Audney <pdeaudney@xxxxxxxxx>
- Date: Thu, 18 Feb 2010 16:45:54 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=90PR09XfI6U+rA8JMU60YdL7Vmbyatfn67zyZFEJreo=; b=x2VxSiow/epb3tuzmDhxtGx+bbxOtn6M71Zv3ZoeCoBAAc8Ca/xAxHWkRM3uPPO7OM 39EZ4mWkNxh9vt1sLQUA2aW8gAWFXNhfxhjk9XmE8anqT/kDU7v88A34UofJzrD0rRQs ICXD8zoHR2bZFY1NX5AW8FFDuKIesNwSjSJ9w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qNZHohpJVbaIrOWgKio8YNEzdNdFbZgs2hwQPofW28FPPAFwf6ZjhE0L43CMi94mGS kfy3dLujzAVFptTPjOeGn2CUJ95NgUjQHhSRiiTCeJEe0rjn1URtJtgnJLPPo2cyuOwY 8UVxLaI4rL0zsTB4wvTxrLmWHXxSygyaIoJvE=
On Thu, Feb 18, 2010 at 3:18 PM, Nigel Allen <dna@xxxxxxxxxxx> wrote:
> I want to set up a pair of 1 TB drives on an HP DL145 G3 and I'm looking for
> suggestions as to the best way to partition them.
> Would I be best using software RAID and LVM? Given that it's a fairly busy
> machine (mail server for 40+ users) I'd like to achieve:
> 1) Speed
How much speed do you really need for a email server?
For 40-100 users 2x SATA drives in software raid 1 should be sufficient.
> 2) Reliability
Sure software raid 1 will give you that. Make sure you install grub on
both drives so you can boot off either in case one dies.
Also make sure you monitor for failures.
> 3) Ease of maintenance.
Document the setup. And keep the docs current.
> Anyone care to take a punt at a layout?
This really depends on your requirement for how much email you want to
store on the system, duration of logs etc.
Will the system be doing anything else? If so the layout might change.
I would personally use something along the lines of the following.
/boot (md0 100mb)
Create another raid 1 array md1 & fully allocate this to a PV. I
usually call the PV the hostname of the machine.
So if I need to access the disk/s from another system I know which
system the disk is from.
/ - LV called root 3-4GB
/var/spool/mail - LV called mailspool 1-5 GB (I am assuming I would be
storing mail elsewhere such as /home/user/Maildir)
/var/log - LV called logs, 5 GB to start with. I'd also have mail logs
compressed and rotated daily. Archive as long as you need too.
/home - LV called home, 50GB to what ever you deem required for user
email storage needs. I'd have users storing mail in their home
directories so they can use IMAP and leave mail on the server.
If I was doing anything with a database, I would have a dedicated LV
for /var/lib/mysql or /var/lib/pgsql. This would allow me to snapshot
those volumes for backups etc.
Hope this gives you some ideas.