Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 20:11:07 +0800
From:      Francis Vidal <francisv-sender-988004@irc.dagupan.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Help with vinum configuration
Message-ID:  <1055419869.67993.TMDA@irc.dagupan.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm using FreeBSD 4.8-STABLE on an Pentium III machine. I'm trying to
configure a RAID-5 storage consisting of 5 80GB IDE drives connected to
two (2) Promise Ultra-133 TX2 controllers (1 disk on each channel and one
on channel 2 of the system board). The disks were configured as
"dangerously dedicated" (using /stand/sysinstall).

Here's the output of `fdisk ad2':

******* Working on device /dev/ad2 *******
parameters extracted from in-core disklabel are:
cylinders=10767 heads=236 sectors/track=63 (14868 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=10767 heads=236 sectors/track=63 (14868 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 0, size 160086528 (78167 Meg), flag 80 (active)
        beg: cyl 0/ head 0/ sector 1;
        end: cyl 1023/ head 235/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

Here's the output of one of the disks (ad2) `disklabel ad2':

# /dev/ad2c:
type: ESDI
disk: ad2s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 9964
sectors/unit: 160086528
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 160086528        0    unused        0     0        # (Cyl.    0 -
9964*)
  e: 160086528        0     vinum                       # (Cyl.    0 -
9964*)


Here's my vinum configuration file (/etc/vinum.conf):

drive d1 device /dev/ad2s1e
drive d2 device /dev/ad4s1e
drive d3 device /dev/ad6s1e
drive d4 device /dev/ad8s1e
drive d5 device /dev/ad10s1e
volume raid
 plex org raid5 512k
  sd length 76345m drive d1
  sd length 76345m drive d2
  sd length 76345m drive d3
  sd length 76345m drive d4
  sd length 76345m drive d5

Here's the output of `vinum list' after doing `vinum create -v
/etc/vinum.conf':

5 drives:
D d1  State: up       Device /dev/ad2s1e      Avail: 1822/78167 MB (2%)
D d2  State: up       Device /dev/ad4s1e      Avail: 1822/78167 MB (2%)
D d3  State: up       Device /dev/ad6s1e      Avail: 0/76345 MB (0%)
D d4  State: up       Device /dev/ad8s1e      Avail: 1822/78167 MB (2%)
D d5  State: up       Device /dev/ad10s1e     Avail: 1822/78167 MB (2%)

1 volumes:
V raid                  State: down     Plexes:       1 Size:        298
GB

1 plexes:
P raid.p0            R5 State: init     Subdisks:     5 Size:        298
GB

5 subdisks:
S raid.p0.s0            State: empty    PO:        0  B Size:         74
GB
S raid.p0.s1            State: empty    PO:      512 kB Size:         74
GB
S raid.p0.s2            State: empty    PO:     1024 kB Size:         74
GB
S raid.p0.s3            State: empty    PO:     1536 kB Size:         74
GB
S raid.p0.s4            State: empty    PO:     2048 kB Size:         74
GB

I can't figure out what's wrong with my configuration.

---
 francis a. vidal [bitstop network services] | http://www.bnshosting.net
 streaming media + web hosting               | http://www.bitstop.ph
 v(02)330-2871,(02)330-2872; f(02)330-2873   | http://www.kuro.ph



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1055419869.67993.TMDA>