Dear All,

I have a machine with two Maxtor 160GB hard disks. I've installed OpenBSD 4.2 
on first one and I would like to use second one as a mirror.

As far as I understood I will have to repartition and reinstall whole system 
to enable second disk as a mirror. All I want is to have software RAID 1.

How to enable RAID 1 and sync first disk with second one without installing 
everthing from scratch like in those howtos?

http://www.monkey.org/openbsd/archive/misc/0203/msg00803.html

http://www.argon18.com/raid_openbsd.html


wd0 at pciide1 channel 0 drive 0: <MAXTOR STM3160215AS>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5

wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3160215AS>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5

I've recompiled the kernel with RAID enabled.

This is disklabel for wd0:

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:          8401932               63  4.2BSD   2048 16384    1
  b:          4209030          8401995    swap
  c:        312581808                0  unused      0     0
  d:         10490445         12611025  4.2BSD   2048 16384    1
  e:         27278370         23101470  4.2BSD   2048 16384    1
  f:         20980890         50379840  4.2BSD   2048 16384    1
  g:         62926605         71360730  4.2BSD   2048 16384    1
  h:         83891430        134287335  4.2BSD   2048 16384    1
  i:         31471335        218178765  4.2BSD   2048 16384    1
  j:         62926605        249650100  4.2BSD   2048 16384    1

from /etc/fstab:

/dev/wd0a / ffs rw,softdep 1 1
/dev/wd0h /home ffs rw,softdep,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,softdep,nodev,nosuid 1 2
/dev/wd0g /usr ffs rw,softdep,nodev 1 2
/dev/wd0e /var ffs rw,softdep,nodev,nosuid 1 2
/dev/wd0i /var/log ffs rw,softdep,nodev,nosuid 1 2
/dev/wd0j /var/squid ffs rw,softdep,nodev,nosuid 1 2
/dev/wd0f /var/www ffs rw,softdep,nodev,nosuid 1 2

Any help is welcome :)

Thank in advance,

Dominik

Reply via email to