freebsd-dev/sys
Søren Schmidt 6f87be981b Major update of the ATA RAID code, part 3:
Add code to properly detach/attach disks that are part of a RAID.

Mark a disk that is attached on an ATA channel belonging to a
RAID as a spare disk that can be used for rebuilding failed RAID1's.

Add support for rebuilding failed RAID1's.

Several fixes to the detach/attach code.

For replacing a disk in a failed RAID1 do the following:

Find the controller channel# of the failed disk.

Exec 'atacontrol detach <channel#>' to free the disk from the system.

Replace the failed disk with a new one of at least the same size.
If your have your disks in drawers/enclosures this can be done with
the system still running.

Exec 'atacontrol attach <channel#>' to add the disk to the system and
mark it as a valid spare for rebuild.

Exec 'atacontrol rebuild <array#>'

The system will rebuild the array on the fly, the array can still
be used during this, although with slower performance.

Please let me know of any problems with this!

Sponsored by: Advanis Inc.

MFC after: 2 weeks
2002-03-03 15:36:21 +00:00
..
alpha Make it compile again. 2002-03-01 23:15:45 +00:00
amd64 - Move a comment from being on the same line as a #ifdef to the line 2002-02-28 21:52:08 +00:00
arm We need machine/{signal,ucontext}.h to build a cross GCC compiler. 2001-12-09 19:39:49 +00:00
boot Catch up to change in tte format. 2002-03-01 06:17:28 +00:00
cam Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
coda Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
compat Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
conf MFi386: revision 1.394. 2002-03-02 13:21:12 +00:00
contrib Change two occurrences of HTONS() to use htons(). 2002-02-28 09:56:31 +00:00
crypto off by one error in Aaron Gifford's code. KAME PR 393. 2002-02-26 16:58:58 +00:00
ddb ^U kills an entire input line in most applications, 2002-02-12 23:38:40 +00:00
dev Major update of the ATA RAID code, part 3: 2002-03-03 15:36:21 +00:00
fs Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
geom Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
gnu Deverbosified previous 2 commits (removed the rotted list of reasons why 2002-03-02 11:14:13 +00:00
i4b Quiet bogus gcc warning 2002-02-28 03:15:53 +00:00
i386 - Move a comment from being on the same line as a #ifdef to the line 2002-02-28 21:52:08 +00:00
ia64 - Move a comment from being on the same line as a #ifdef to the line 2002-02-28 21:52:08 +00:00
isa revert last commit temporarily due to whining on the lists. 2002-02-26 20:33:41 +00:00
isofs/cd9660 Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
kern Check the version of ex_anon (a `struct xucred') before using it to 2002-03-03 06:07:57 +00:00
libkern Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
modules turn on the ethertype filter module 2002-02-27 08:54:13 +00:00
net Fix warnings. 2002-02-28 00:09:17 +00:00
netatalk Make `options NETATALK' compile after the -fno-common changes. 2002-01-16 11:26:50 +00:00
netatm Unbreak fore adapters from POV of warnings. 2002-02-27 21:12:44 +00:00
netgraph Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
netinet - Set inc_isipv6 in tcp6_usr_connect(). 2002-02-28 17:11:10 +00:00
netinet6 - In nd6_rtrequest(), ignored a route when it is created by cloning and 2002-02-28 17:05:46 +00:00
netipx Pre-KSE/M3 commit. 2002-02-07 20:58:47 +00:00
netkey missing splx 2002-03-01 13:13:17 +00:00
netnatm Fix warnings 2002-02-28 03:02:20 +00:00
netncp Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
netns Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netsmb Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
nfs When the old nfsm_adv() macro was moved to nfsm_adv_xx(), a '>=' 2001-12-31 06:56:31 +00:00
nfsclient Fix warnings.. bootpc_init() and related. 2002-02-28 03:07:35 +00:00
nfsserver Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
pc98 MFi386: revision 1.498. 2002-03-02 13:19:22 +00:00
pccard Get the generic name right 2002-03-03 01:04:39 +00:00
pci Fix warning; amdsmb_abort() is not used. 2002-02-26 01:04:58 +00:00
posix4 In a threaded world, differnt priorirites become properties of 2002-02-11 20:37:54 +00:00
powerpc - Move a comment from being on the same line as a #ifdef to the line 2002-02-28 21:52:08 +00:00
rpc
security/lomac Simple p_ucred -> td_ucred changes to start using the per-thread ucred 2002-02-27 18:32:23 +00:00
sparc64 We don't need KTR_COMPILE in assym.s, its already in opt_global.h. Add 2002-03-01 16:22:06 +00:00
svr4
sys Add new command definition for rebuilding RAID arrays. 2002-03-03 15:00:39 +00:00
tools Return vnode_if back to its AWK roots. 2002-03-01 01:20:23 +00:00
ufs Use thread0.td_ucred instead of proc0.p_ucred. This change is cosmetic 2002-02-27 19:18:10 +00:00
vm Remove some long dead code. 2002-03-02 22:21:42 +00:00
Makefile