Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2006 09:54:51 -0300
From:      "Giovanni P. Tirloni" <gpt@tirloni.org>
To:        "Vladimir Terziev" <vlady@gbservices.biz>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: gmirror with hot spare
Message-ID:  <47542.208.24.179.208.1145969691.squirrel@70.103.189.85>
In-Reply-To: <20060425151913.63f2463f.vlady@gbservices.biz>
References:  <20060425151913.63f2463f.vlady@gbservices.biz>

next in thread | previous in thread | raw e-mail | index | archive | help

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




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