Commit Graph

141 Commits

Author SHA1 Message Date
oster
2b7fd0220d How about we use the 'len' parameter to rf_get_next_nonblank_line()
instead of assuming all buffers are 256 bytes.
2004-10-26 19:23:19 +00:00
wiz
894fc3b8de Use Dq instead of quotes; bump date for previous. 2004-05-24 00:08:04 +00:00
oster
1c6a30a0b2 Update docs to reflect the support for the word "absent" in the "disks"
section of RAID config files.
2004-05-22 20:58:04 +00:00
wiz
9b2142b96c Add commas in enumeration; bump date for previous. 2004-05-16 10:27:16 +00:00
dsl
9debb4b795 Add i386 to the list of systems that support booting from raid1.
RAID(4) also needs changing - if someone knows where the source is....
2004-05-15 21:46:54 +00:00
snj
853c328fb4 Bump date for last. 2004-04-11 04:15:53 +00:00
oster
e3d079e02e Swapping to RAID 5 is happy now. Remove indications to the contrary. 2004-04-11 02:46:27 +00:00
oster
0084f2a5e2 Note in the description of hot-adding components that a component label is
not required for the component.  Thanks to David Maxwell for the
documentation suggestion.
2004-02-29 22:22:35 +00:00
oster
eac5920af1 As suggested by Paul Ripke, have raidctl use raw devices by default. 2004-02-29 20:40:29 +00:00
wiz
8920f41e3e Bump date for previous. 2003-11-02 09:01:47 +00:00
oster
f80b4d6ea1 Add a couple little warnings about swapping to RAID 5 sets.
(it currently doesn't work.)
2003-11-02 02:20:26 +00:00
fvdl
efbda96887 Don't compare argc to NULL. 2003-10-21 02:31:43 +00:00
itojun
0b04aee3ea use bouded string ops 2003-07-13 07:37:02 +00:00
agc
c2a3b5ec84 Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
itojun
aa5672d8c5 sscanf overrun 2003-05-17 01:02:01 +00:00
itojun
84490858f9 correct questionable use of strncpy(). 2003-04-15 07:36:14 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
a6e74f9b81 Remove trailing space. 2002-11-16 23:54:16 +00:00
oster
01b2347533 Catch up on some documentation stuff:
- add a note about adding 'swapoff=YES' to /etc/rc.conf
- add a note about not using raid0[cd] for a filesystem.
- filesystems -> file systems
2002-11-16 22:49:48 +00:00
oster
c1058540a3 Cleanup and update usage(). 2002-11-16 17:22:36 +00:00
wiz
1233505082 Use more markup. 2002-10-01 14:20:26 +00:00
wiz
2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
wiz
7b1f0f9426 Remove duplicate 'to'. From Ryo HAYASAKA in bin/17562. 2002-07-11 15:06:04 +00:00
simonb
6fccd7ab03 Open the raid device read-only for the commands that don't need
write access.  With the default set up this allows users in group
operator to query the status of the raid devices.

Fixes PR admin/15840.
2002-03-21 00:27:11 +00:00
ross
dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz
8c920e9e22 Drop trailing whitespace. 2002-01-21 11:40:20 +00:00
oster
c4aed2da0e Add a description of how to possibly recover a RAID set in the
event of a multiple disk failure.
2002-01-20 02:30:11 +00:00
wiz
dbb255dc26 Don't abuse -unfilled for -literal; sort sections, sort SEE ALSO, drop
lots of unnecessary .Pps.
2001-11-16 11:06:46 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
oster
6c2d6f6c4f Remove cruft. We no longer need to look into sys/dev/raidframe to
find the needed include files.
2001-10-04 16:03:05 +00:00
oster
541d521a40 rf_configure.c
- remove dependence on stuff in sys/dev/raidframe
 - now rely on <dev/raidframe/*>
 - bring in some needed prototypes for local functions
 - nuke RF_ASSERT's.
 - drag in some needed RF_ERRORMSG's

raidctl.c
 - rely on <dev/raidframe/*>
 - welcome to the New Way of doing RAIDframe #includes.

(No functional changes.)
2001-10-04 16:02:08 +00:00
oster
75d30c8978 Add a pruned-down version of rf_configure.h. First step at disentangling
raidctl files from the hairy .h file mess.
2001-10-04 16:00:37 +00:00
oster
91ffb9ffd3 Since this is the only place it's used, nuke RF_DEV2RAIDID and
replace it with DISKUNIT.
2001-09-26 02:59:40 +00:00
lukem
364e3039be * add -G, which lists the configuration of the given raid set in the
same configuration format that -c and -C use.
  this is useful if you're using autoconfig and you've misplaced the
  /etc/raidXXX.conf files
* "filesystem" -> "file system", and other man page cleanups.
2001-07-10 01:30:52 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos
e2571306fb remove redundant prototypes. 2001-02-04 21:05:42 +00:00
oster
705631a231 Move parts of a RAID type mapping table from rf_layout.c to rf_configure.c.
This means we don't need to compile or link with rf_layout.c here.
2001-01-27 19:32:47 +00:00
wiz
944d6ad333 Check return value of fgets. Approved by Greg Oster. 2000-12-31 01:58:03 +00:00
lukem
4e9651bacd - use opendisk(3) instead of homegrown solution
- separate items in -s output with commas; much easier to read
- add maxOutstanding (aka queue len) to -s output
- sort #includes (per knf)
2000-10-31 14:18:39 +00:00
oster
617759aa4c - cleanup wording and add additional comments on such things as
"component1" and "raidctl -A yes"
- add a note about how to build a RAID set with a limited number of disks
    (thanks to Simon Burge for suggestions)
- improve layout of 'raidctl -i' discussion (thanks to Hubert Feyrer)
- add a (small) section on Performance Tuning
2000-10-27 02:40:37 +00:00
is
9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
oster
8b77995122 It is impolite to poll in a tight loop. (Thanks to Christos for noting
the problem.)
2000-08-19 19:51:17 +00:00
oster
ff1bb25d60 Clarify a few things about parity. Add more documentation about RAID on RAID,
and root on RAID.
2000-08-10 15:14:14 +00:00
oster
e828ccd7df Add a .Sq for single quotes, instead of doing it by hand.
Fixes a formatting problem noted by Hubert Feyrer (Thanks Hubert!).
2000-07-05 02:42:39 +00:00
oster
3fa8f52b84 In certain cases (e.g. where it makes sense) read/display the
component label for spare disks too.
2000-06-03 16:59:36 +00:00
oster
f26e8d9a17 Slight wording improvement on the 'raidctl -R' case. 2000-06-02 04:11:46 +00:00
oster
4d75110047 Make sure we handle the 'no progress' case properly.
Thanks to Manuel Bouyer for noting the problem (and supplying a patch!).
2000-05-31 00:47:30 +00:00
oster
239e79a9ad Fix up some single quotes that messed up a line. (Thanks Wiz!) 2000-05-29 03:40:43 +00:00
oster
c4f772eecb Obtaining component labels from spares is not supported yet, but add
some code that makes some progress in that direction.
2000-05-28 23:12:01 +00:00
oster
0ce56710af Cleanup ETA calculation stuff. 2000-05-28 22:22:11 +00:00
oster
64ad6c882c Have raidctl use the fine-grained progress info. ETA calculation stuff
needs to be cleaned up.
2000-05-28 00:49:35 +00:00
thorpej
340761f659 Apply indent. 2000-05-23 01:03:05 +00:00
thorpej
a53c712bd6 Build with WARNS=2. 2000-05-23 00:46:53 +00:00
thorpej
632c1d5e7c ioctl(2) commands are u_long, so do_meter() must take the same. 2000-05-23 00:33:13 +00:00
simonb
48a5c3efa9 Don't declare 'extern opt*' getopt variables. 2000-04-14 05:58:01 +00:00
oster
807e453c32 When displaying component labels, indicate whether or not the set is
marked as being the one that should be used for the root partition.
2000-03-23 14:50:36 +00:00
oster
680c384366 Update for 'options RAID_AUTOCONFIG'. 2000-02-26 19:43:07 +00:00
oster
1f4cc78a38 Add a few more examples, and a summary. 2000-02-26 04:02:03 +00:00
oster
f4f9f7bc66 More updates, spelling fixes, etc. 2000-02-25 22:38:51 +00:00
oster
f1717bc7fd First revamp of the docs. This is still work-in-progress. More to come
shortly.
2000-02-25 22:24:46 +00:00
oster
3a374be745 Reorganize a few things. Make the general status ('-s') a bit more verbose
by including component labels, and less verbose by removing some other stuff.
2000-02-25 22:24:11 +00:00
oster
268ef0a8e2 Document the new autoconfiguration switches, and update the Usage: line.
More doc changes expected soon.
2000-02-24 23:52:46 +00:00
oster
5aee30c016 - support for autoconfig setup and / on RAID setup
- new parts are still work-in-progress (no docs yet either)
2000-02-13 04:55:30 +00:00
wiz
78798f9991 it's -> its 2000-01-22 14:48:43 +00:00
oster
e5b5b86865 Nuke a debugging printf that I forgot to remove before last commit. 2000-01-09 03:06:35 +00:00
oster
c714a07d22 - add '-v' (Verbose) option, which, most notably, provides
a spiffy lukemftp-inspired progress bar for parity re-writing,
reconstructs, copybacks, et al.

- make 'raidctl -P' wait until the parity has been updated before exiting
(it waited previously, but only because the parity re-write ioctl wouldn't
exit until the parity was successfully re-written)
2000-01-05 03:02:41 +00:00
kristerw
ebf003eaf4 Typos (from OpenBSD) 1999-11-19 22:48:01 +00:00
oster
b2af35bc2d rf_MakeConfig succeeds only if it returns 0, not if it returns
values 0 or greater.
1999-08-15 03:18:19 +00:00
oster
225f5a8b60 Display the parity status as part of the status ('-s') display. 1999-08-15 03:15:00 +00:00
oster
67e8cf0262 No need to include rf_sys.h. 1999-08-13 03:37:42 +00:00
oster
d0740fb357 Add two more options to raidctl:
-p    check (and return) the status of the parity
  -P    check the status of the parity, and rebuild if necessary

Addresses PR#7494
1999-08-10 18:21:39 +00:00
oster
180bbfd871 Move two functions from rf_strutils.c into rf_configure.c, removing
the need for rf_strutils.c.
1999-08-07 23:48:11 +00:00
oster
efffe046a2 Move COPTS to CPPFLAGS. Nuke some no-longer needed compile options. 1999-03-26 00:46:05 +00:00
oster
c2408285ae Nuke unused code. 1999-03-26 00:45:01 +00:00
mycroft
66902a3cfd Remove blank lines. 1999-03-24 06:14:18 +00:00
mycroft
17ab98299b Fix minor formatting error. 1999-03-06 11:57:20 +00:00
mycroft
4300219122 Fix minor formatting error. 1999-03-06 11:51:48 +00:00
oster
53d349a107 Update for recent changes: component labels, clean bits, adding hot
spares, and rebuilding components in-place.  Re-arrange the
letters/options to make more sense (and make better use of the alphabet).
1999-03-02 03:13:59 +00:00
oster
ae9b468dbe Clean things up a bit. Teach raidctl a little about component labels
and hot-adding of spares.  New code is there, but not enabled (yet).
1999-02-24 00:03:12 +00:00
msaitoh
73b35dd2b4 fix typo 1999-02-18 07:54:33 +00:00
oster
068fe3dab2 Add missing NetBSD RCS ID's! Thanks to SAITOH Masanobu (msaitoh@netbsd.org)
for pointing this out.
1999-02-04 14:50:31 +00:00
oster
e8d64a5862 Never used, and certainly no longer needed. 1999-01-26 02:46:26 +00:00
oster
543c143bd8 Take care of a few minor things due to the major RAIDframe cleanup.
Again, no functionality changes.
1999-01-26 02:40:02 +00:00
lukem
482f72a42c no need for CWARNFLAGS; ../Makefile.inc sets WARNS=1 1999-01-18 04:48:01 +00:00
matt
3740dde63b Allow CFLAGS to be set in /etc/mk.conf 1999-01-17 18:53:59 +00:00
mjacob
93bf4aae36 recover from errno.h changes 1999-01-12 22:58:10 +00:00
simonb
8305a06f33 Fix tpyo. 1999-01-10 01:34:37 +00:00
mrg
da5f0873c9 fix compile errors on the alpha. 1998-11-23 00:18:40 +00:00
oster
ed77a60f62 Oops. Forgot the man-page for 'raidctl' when the rest of 'raidctl' went in. 1998-11-13 13:16:46 +00:00
oster
f675e35d77 RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

raidctl is our userland configuration tool for RAIDframe.
1998-11-13 04:34:02 +00:00