Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2004 08:40:26 +0200 (CEST)
From:      daniele@callimaco.com
To:        freebsd-doc@FreeBSD.org
Subject:   missing a command in RAID FreeBSD documentation
Message-ID:  <63687.213.188.197.133.1097649626.squirrel@213.188.197.133>

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

i write you because i think you have an error on this page of FreeBSD
documentation:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html

In documentation, you miss a command in rebuilding RAID array procedure.
Let me know if i have reason.
Best regards,
Daniele Biasci.

You will first need to detach the disk from the array so that you can
safely remove it:

# atacontrol detach 3

Replace the disk.

Reattach the disk as a spare:

# atacontrol attach 3
Master:  ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
Slave:   no device present

<MISSING>
# atacontrol addspare ar0 ad6
</MISSING>

Rebuild the array:

# atacontrol rebuild ar0

The rebuild command hangs until complete. However, it is possible to open
another terminal (using Alt+Fn) and check on the progress by issuing the
following command:

# dmesg | tail -10
[output removed]
ad6: removed from configuration
ad6: deleted from ar0 disk1
ad6: inserted into ar0 disk1 as spare

# atacontrol status ar0
ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 0% completed

Wait until this operation completes



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