vinum, RAID-5, newfs

From: Oliver Lehmann <lehmann(at)ans-netz.de>
Date: Fri, 3 Oct 2003 00:23:13 +0200

Hallo,

nun habe ich mir mal etwas Zeit genommen das schon laenger geplante RAID5
mit vinum an den Start zu bringen. Irgendwie komm ich aber nicht weit.
Hier erstmal die Sysconfig.

FreeBSD 5.1-p5 DualPII-333

root(at)nudel /root> camcontrol devlist -v
scbus0 on ahc0 bus 0:
<SANYO CRD-254S 1.02> at scbus0 target 3 lun 0 (pass0,cd0)
<YAMAHA CRW4416S 1.0j> at scbus0 target 4 lun 0 (pass1,cd1)
<HP C1533A A708> at scbus0 target 5 lun 0 (sa0,pass2)
<HP C1537A L812> at scbus0 target 6 lun 0 (sa1,pass3)
<SEAGATE ST34573W 6244> at scbus0 target 8 lun 0 (pass4,da0)
< > at scbus0 target -1 lun -1 ()
scbus1 on sym0 bus 0:
<SEAGATE ST11200N SUN1.05 9500> at scbus1 target 0 lun 0 (pass5,da1)
<SEAGATE ST31200N 8590> at scbus1 target 1 lun 0 (pass6,da2)
<SEAGATE ST31200N 8590> at scbus1 target 2 lun 0 (pass7,da3)
<SEAGATE ST31200N 8590> at scbus1 target 3 lun 0 (pass8,da4)
<SEAGATE ST31200N 8590> at scbus1 target 4 lun 0 (pass9,da5)
<Quantum VP32210 81HA> at scbus1 target 5 lun 0 (pass10,da6)
<NEC DSE2100S 0307> at scbus1 target 6 lun 0 (pass11,da7)
< > at scbus1 target -1 lun -1 ()
scbus2 on ata0 bus 0:
< > at scbus2 target -1 lun -1 ()
scbus3 on ata1 bus 0:
<_NEC DV-5700A 1.30> at scbus3 target 1 lun 0 (pass12,cd2)
< > at scbus3 target -1 lun -1 ()
scbus4 on ata2 bus 0:
< > at scbus4 target -1 lun -1 ()
scbus5 on ata3 bus 0:
< > at scbus5 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
< > at scbus-1 target -1 lun -1 (xpt0)
root(at)nudel /root>

es geht um die Platten an sym0, genauer um da1-da5

root(at)nudel /root> ls /dev/da[1-5]*
/dev/da1 /dev/da2 /dev/da3 /dev/da4 /dev/da5
/dev/da1s1 /dev/da2s1 /dev/da3s1 /dev/da4s1 /dev/da5s1
root(at)nudel /root>

Soweit so gut...

root(at)nudel /root> cat /etc/vinum.conf
drive d1 device /dev/da1s1
drive d2 device /dev/da2s1
drive d3 device /dev/da3s1
drive d4 device /dev/da4s1
drive d5 device /dev/da5s1
volume emc5
 plex org raid5 32k
  sd length 1004m drive d1
  sd length 1005m drive d2
  sd length 1005m drive d3
  sd length 1005m drive d4
  sd length 1005m drive d5

root(at)nudel /root> vinum
vinum -> create /etc/vinum.conf
5 drives:
D d1 State: up /dev/da1s1 A: 0/1004 MB (0%)
D d2 State: up /dev/da2s1 A: 0/1005 MB (0%)
D d3 State: up /dev/da3s1 A: 0/1005 MB (0%)
D d4 State: up /dev/da4s1 A: 0/1005 MB (0%)
D d5 State: up /dev/da5s1 A: 0/1005 MB (0%)

1 volumes:
V emc5 State: down Plexes: 1 Size: 4019
        MB

1 plexes:
P emc5.p0 R5 State: init Subdisks: 5 Size: 4019
        MB

5 subdisks:
S emc5.p0.s0 State: empty D: d1 Size: 1004
        MB
S emc5.p0.s1 State: empty D: d2 Size: 1005
        MB
S emc5.p0.s2 State: empty D: d3 Size: 1005
        MB
S emc5.p0.s3 State: empty D: d4 Size: 1005
        MB
S emc5.p0.s4 State: empty D: d5 Size: 1005
        MB
vinum ->

Sieht auch alles noch toll aus... wenn ich dann vinum verlasse, und ein
newfs versuche:

root(at)nudel /root> newfs /dev/vinum/emc5
newfs: /dev/vinum/emc5: could not open special device
root(at)nudel /root>

Hm... was mach ich falsch? Ein RAID0 liess sich iirc so erzeugen. Will ein
RAID5 nicht erst noch initialisiert werden?

  Gruesse, Olli

-- 
 Oliver Lehmann
        @home: lehmann(at)ans-netz.de
      @office: oliver.lehmann(at)mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 03 Oct 2003 - 00:24:41 CEST

search this site