Re: gmirror with hot spare




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

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages