[opensuse] Re: setting up a raid (Suse 10.0)

2007-03-19 Thread Joachim Schrod

John Andersen wrote:

On Friday 16 March 2007, Joachim Schrod wrote:

SUSE normally starts mdadm and notifies you about disk breakage. For
extended supervision Nagios is even better.


That has not been my experience.  
I've always had to take steps to make sure mdadm is started in

monitor mode at each boot.


On 10.0, I set up the software RAID during installation. Then mdadm 
was started automatically in monitor mode. I wouldn't have started 
it myself, since I use Nagios for complete monitoring of all hosts 
and services, RAID states and enough free space on filesystems included.


Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod  Email: [EMAIL PROTECTED]
Roedermark, Germany

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse] Re: setting up a raid (Suse 10.0)

2007-03-16 Thread Joachim Schrod

Jerome R. Westrick wrote:

On Thursday 15 March 2007 20:12, David Mayr wrote:

Am Donnerstag, 15. März 2007 19:47 schrieb John Andersen:
 On Thursday 15 March 2007, James D. Parra wrote:
  Isn't mirroring a swap partition a bad idea, or at the least wasteful?

 Mirroring is not too bad for swap.  When the system needs to read
 swap the raid drivers will read from which ever disk is not busy, so
 it might be faster than non-raid, but only slightly so.

Mirroring swap isn't a bad idea also because your running system would
break if a disk crashes with swapped data on it.


I put seperate swaps one on each disk,
and raid the rest.

This means that the machine crashes when a disk breaks.
The system then works after  a reboot.

In this form I Immedeatetly know when a disk breaks at one
of my SOHO clients.  I find that to be a major plus.


SUSE normally starts mdadm and notifies you about disk breakage. For 
extended supervision Nagios is even better.


That's the whole reason for a RAID system, to be able to repair disk 
failures in a scheduled and organized way without crashing a running 
system. Not mirroring the swap partition counters that advantage and 
is bad advice, IMNSHO.


Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod  Email: [EMAIL PROTECTED]
Roedermark, Germany

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse] Re: setting up a raid (Suse 10.0)

2007-03-16 Thread Joachim Schrod

James D. Parra wrote:

Hello,

I have two identical drives, mirrored as /dev/md0, however I am unable to
carve out mount points on it or put a swap partition on it. One drive is a
system drive and I'd like to mirror it. What is the best way to accomplish
this?


Normally you don't mirror drives, but partitions. I.e., you 
partition the two drives exactly the same way (hint: use sfdisk -d 
to copy the partition table) and then produce md-partitions for each 
pairs of them. Since you already succeeded in creating /dev/md0, I 
assume that you know how to do this.


The enterprise-class alternative is to use Logical Volume Management 
(LVM). See http://www.suse.com/en/whitepapers/lvm/lvm1.html and the 
neighboring lvm2.html for some information.


With that, you make your /dev/md0 into a physical volume (with 
pvcreate), add it to a volume group (vgcreate), and create several 
logical volumes (lvcreate) on this group.


The advantage of LVM is that you can later add more disks easily to 
your volume group (vgextend) and enlarge existing partitions, 
without being restricted by disk and partition sizes.


The disadvantage of LVM is that it doesn't play well with booting. 
You are well advised to put /boot into a (mirrored) separate partition.


I hope that gets you started.

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod  Email: [EMAIL PROTECTED]
Roedermark, Germany

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Re: setting up a raid (Suse 10.0)

2007-03-16 Thread John Andersen
On Friday 16 March 2007, Joachim Schrod wrote:
 SUSE normally starts mdadm and notifies you about disk breakage. For
 extended supervision Nagios is even better.

That has not been my experience.  
I've always had to take steps to make sure mdadm is started in
monitor mode at each boot.

-- 
_
John Andersen


pgpBqgs0gYphv.pgp
Description: PGP signature