gmirror with hot spare

Giovanni P. Tirloni gpt at tirloni.org
Tue Apr 25 12:54:53 UTC 2006


On Tue, April 25, 2006 9:19 am, Vladimir Terziev said:
>
> 	Hi hackers,
>
> 	is there a way to assign a hot spare disk/partition to a gmirror -ed
> disks/partitions ?

That's a good question. From the man pages there doesn't seem to exist
anything to mark a insert disk as "disabled". Atacontrol has a "addspare"
option.

Just in case, to replace a faulty (SCSI) disk:

 gmirror remove gm0 da1
 camcontrol stop da1
 camcontrol rescan all
 camcontrol rescan all (after inserting replacement)
 gmirror insert gm0 da1

The same procedure in atacontrol would be similar to:

 atacontrol detach 3
 atacontrol attach 3
 atacontrol addspare ar0 ad6
 atacontrol rebuild ar0

Good luck,

-- 
Giovanni P. Tirloni
http://www.tirloni.org



More information about the freebsd-hackers mailing list