Subject: Re: RAIDFRAME questions
To: Greg Oster <oster@cs.usask.ca>
From: Simon Burge <simonb@netbsd.org>
List: current-users
Date: 01/05/2000 09:45:05
Greg Oster wrote:
> Markus Kilbinger writes:
>
> > Another question: With the mounted /dev/raid0d 'raidctl -s raid0' just
> > says:
> >
> > raidctl: unable to open device file: /dev/raid0d
> >
> > -> Are all these control and reconstruct raidctl commands only
> > available for unmounted raid devices??
>
> Are you mounting /dev/raid0d as a filesystem (this is i386, I'm assuming)?
> If so, that might be the problem (I've never tried mounting the "entire raid
> partition" like that.. I always use a non-"raw" partition like /dev/raid0e).
> You can certainly view the status of a raid set with mounted filesystems.
> You can even rebuild the parity on a mounted filesystem... even when I/O is
> being performed to that filesystem...
On NetBSD/pmax, I use the entire `c' partition and can only check the
status using the `a' partition:
fhfss:~ 6# df /ftp
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/raid0c 20222934 16359860 2851927 85% /ftp
fhfss:~ 7# disklabel raid0
# /dev/rraid0c:
type: RAID
disk: raid
label: ftp-disk
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 20067
total sectors: 41099040
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
a: 41099040 0 4.2BSD 1024 8192 32 # (Cyl. 0 - 20067*)
c: 41099040 0 4.2BSD 1024 8192 32 # (Cyl. 0 - 20067*)
fhfss:~ 8# raidctl -s raid0
raidctl: unable to open device file: /dev/raid0c
fhfss:~ 9# raidctl -s /dev/raid0a
Components:
/dev/rz8a: optimal
/dev/rz1a: optimal
/dev/rz9a: optimal
/dev/rz2a: optimal
/dev/rz10a: optimal
/dev/rz3a: optimal
/dev/rz11a: optimal
/dev/rz4a: optimal
/dev/rz12a: optimal
/dev/rz5a: optimal
/dev/rz13a: optimal
No spares.
This is on the 1.4 branch a month or so before 1.4.2_ALPHA.
Simon.