Re: gmirror with hot spare

2006-04-30 Thread Andrew Pantyukhin

On 4/25/06, Vladimir Terziev [EMAIL PROTECTED] wrote:


Hi hackers,

is there a way to assign a hot spare disk/partition to a gmirror -ed 
disks/partitions ?


There's no sense in it, is there? When we have RAID5 hot
spare is needed, because we don't know what drive will
fail first. When we have gmirror, it doesn't matter! Just add
another drive to gmirror and take it easy.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gmirror with hot spare

2006-04-25 Thread Giovanni P. Tirloni

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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]