Add drive as hot spare?

Status
Not open for further replies.

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I know I can't expand a vdev after it's been created -- e.g., to increase the capacity or to change from RAIDZ1 to RAIDZ2 -- but can I add an identical drive as a hot spare?
 

herby

Dabbler
Joined
Oct 12, 2011
Messages
10
Bump

I'm curious about this too, and I can't find anything in the documentation about hot spares; except in the section about creating a new volume.

My motherboard only supports 4 SATA drives. I would like make a 3 disk raidz with a hot spare that can be pulled (from time to time) to free up a SATA port for backups.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
There's at least one ticket open about hot spares. I *think* I saw another ticket about some issue with FreeBSD that needed to be resolved before this could be fixed but I can't find it right now, I could be mistaken.

You can specify the spare drive(s) when you create a pool, or add them later. I think the only way you can add a hot spare in FreeNAS currently is to create the pool at the command line and specify your spare disks, then export the pool at the command line and import it using the GUI.

Here's a link to the Solaris docs on adding spares:

http://download.oracle.com/docs/cd/E19082-01/817-2271/gcvcw/index.html
 

danzg

Contributor
Joined
Jun 18, 2011
Messages
105
I tried doing what you said -- added spare & exported pool in CLI.

But then FreeNAS wouldn't auto-import the pool -- said "volume already exists".

So in CLI I tried

Code:
# zpool import raid-5x3
cannot mount '/raid-5x3': failed to create mountpoint
cannot mount '/raid-5x3/alpha': failed to create mountpoint


Now,

Code:
# zpool status
  pool: raid-5x3
 state: ONLINE
 scrub: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	raid-5x3    ONLINE       0     0     0
	  raidz1    ONLINE       0     0     0
	    ada1p2  ONLINE       0     0     0
	    ada2p2  ONLINE       0     0     0
	    ada4p2  ONLINE       0     0     0
	    ada5p2  ONLINE       0     0     0
	    ada3p2  ONLINE       0     0     0
	spares
	  ada0      AVAIL   

errors: No known data errors


Console shows the volumes, but with "Used: None (Error)" and "Size: Error getting total space"

Also, in CLI:

Code:
# ls /mnt
./       ../      .snap/   md_size


Looks like my mounts are gone??

Help!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Have you tried rebooting then try auto-importing?
 
Status
Not open for further replies.
Top