Page 1 of 1

Adding disks to an existing pool

Posted: 05 Jun 2013 02:47
by monotone
I'm trying to add some new mirrored disks to my existing pool and am having some trouble. From the command line this would be really simple:

zpool add pool mirror /dev/disk1 /dev/disk2

but
A) I can't find a command line utility that can give me a device list (/dev/disk1) that zpool wants. Nas4free seems to have intentionally removed these to make it smaller.
B) the web UI doesn't seem to allow me to add anything to an existing pool.

Is there something really simple I'm overlooking? Thanks.

Re: Adding disks to an existing pool

Posted: 05 Jun 2013 08:20
by b0ssman
the web gui will list all your drives under disk managment

Re: Adding disks to an existing pool

Posted: 05 Jun 2013 09:18
by chrisf4lc0n
What about:

Code: Select all

nas4free:~# camcontrol devlist
<SAMSUNG HD502HI 1AG01118>         at scbus0 target 0 lun 0 (ada0,pass0)
<ST3500630AS 3.AFM>                at scbus1 target 0 lun 0 (ada1,pass1)
<ST2000DM001-1CH164 CC24>          at scbus3 target 0 lun 0 (ada2,pass2)
<WDC WD3200AAKS-22B3A0 01.03A01>   at scbus4 target 0 lun 0 (ada3,pass3)
<WDC WD3200AAKS-00V1A0 05.01D05>   at scbus5 target 0 lun 0 (ada4,pass4)
<Kingston DataTraveler 111 PMAP>   at scbus10 target 0 lun 0 (pass5,da0)
<ADATA USB Flash Drive 0.00>       at scbus11 target 0 lun 0 (da1,pass6)
When you create pools or adding the disks to the existing pool without re-sizing the sectors you can discard "/dev/" and simply do:

Code: Select all

zpool add "name of your pool" mirror "device 1" "device 2"

Re: Adding disks to an existing pool

Posted: 06 Jun 2013 22:05
by monotone
I didn't realize you could skip the "/dev/". I knew about camcontrol, but it was missing said prefix. I also saw it in the disk management section, but wanted to know if there was a way to do it entirely via the UI or entirely via the command line. Didn't hear a way to do it via the UI -- which is fine.

Thanks. That got it working.

Re: Adding disks to an existing pool

Posted: 06 Jun 2013 23:47
by chrisf4lc0n
If you could also post the results from:
zpool status
Just to see that you are using 4kb sectors or not, as if you are using the 4kb sectors there is a bit more in the command line you need to add...
Chris.