Enlarging volume -- please advise

Status
Not open for further replies.

danzg

Contributor
Joined
Jun 18, 2011
Messages
105
We currently have a server with 5x3TB disks configured as a RAIDZ:

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
	    replacing                                     ONLINE       0     0     0
	      ada2p2                                      ONLINE       0     0     0
	      gptid/a767b8ef-1c95-11e2-af4c-f46d049aaeca  ONLINE       0     0     0
	    ada4p2                                        ONLINE       0     0     0
	    ada5p2                                        ONLINE       0     0     0
	    ada3p2                                        ONLINE       0     0     0

errors: No known data errors


We are now adding a SECOND 5x3TB RAIDZ into the same machine.

We want to enlarge the volume we have now with this new raid set ... is that possible?

I am still confused by the terminology -- zpool / volume / dataset -- want to make sure I do it right.

Also -- not sure why zpool status still says "replacing" -- it's been like that for several weeks, since I replaced a disk with a hot spare.
Is it safe to remove the old disk now?

Thanks!
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Yep, you want to add a new vdev to your existing raidz1.

Code:
zpool add raid-5x3 raidz1 <list your disks>

I'm not sure if this is possible through the GUI. And keep in mind that if you lose one of the vdevs, you lose the whole pool.

I'm not sure about the replacing part, it may be that you just need to offline the old disk.

You should read noobsauce80's ZFS guide for the terminology.
 

bollar

Patron
Joined
Oct 28, 2012
Messages
411
It is possible to add a second vdev to the existing zpool via the GUI volume manager. The documentation, combined with noobsauce80's guide does a good job of describing how this process works.

It does sound like that old disk needs to be removed from the pool. You can do this via the GUI. Go to Storage and in the row that contains your zpool, you'll see an icon called "Volume Status". Click that and find the old drive -- there will probably be a button there called "Remove". Click that and it will be removed from the zpool and your status will clear.
 
Status
Not open for further replies.
Top