Mailinglist Archive: opensuse (3182 mails)

< Previous Next >
[opensuse] Re: setting up a raid (Suse 10.0)
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Fri, 16 Mar 2007 15:12:19 +0100
  • Message-id: <ete8k3$isf$1@xxxxxxxxxxxxx>
James D. Parra wrote:

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

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 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 Schrod                          Email: jschrod@xxxxxxx
Roedermark, Germany

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >