Page 1 of 1

zpool doesn't allow vdev with different setup?

Posted: 25 Oct 2014 17:14
by Rimini486
I'm trying a (temporary) upgrade of my zpool with some new discs. The "vdev add" function doesn't allow me to add a vdev consisting of a single HDD in stripe mode to my existing zpool which is on a raidz1.
I could add the (stripe) vdev to another zpool which is on a stripe single HDD. Is this normal (maybe a security feature)?

This upgrade is only until the end of the year. Then I'm meeting with a friend, he will get all my data and I can set up a new RAID5 (then also without ZFS as I do not have ECC-RAM) with 5 disks properly and copy everything back. Just have to get by until then with a less than optimal setup. I know of the increased risks when combining a stripe volume in a zpool, my really important data is backed up on my PC.

Thank you for your insights!

Re: zpool doesn't allow vdev with different setup?

Posted: 25 Oct 2014 17:56
by raulfg3
use shell must work, and as you say is not recommended but is also possible.

Re: zpool doesn't allow vdev with different setup?

Posted: 25 Oct 2014 19:57
by Rimini486
Thanks for the reply.
I believe I should use the "zpool add" command like this:

zpool add "my pool name" "my vdev name"

How exactly do I write the vdev name? Nas4Free tells me: "cannot open 'Extra': no such GEOM provider must be a full path or shorthand device name"

Re: zpool doesn't allow vdev with different setup?

Posted: 25 Oct 2014 20:14
by raulfg3
do a zpool status and tell us the name of the HD that you want to add , and I wrote to you the exact line to execute.

Re: zpool doesn't allow vdev with different setup?

Posted: 26 Oct 2014 12:18
by Rimini486
Thank you already for your help!

Ok, I changed my idea a little bit and decided not to use that much space until December (when I really upgrade).
Therefore I would like to add my 2 new HDDs as a RAID1 to my existing zpool "FrederiksNAS_6TB".
This is my current setup:
My HDDs.jpg
My pools.jpg
My pool status 2.jpg
Unfortunately I not to be able to add a new vdev now. Last time I was able to add the devices as "stripe", don't know why they don't appear now.
For some reason two devices which are in use appear, ada4 and ada5.
Adding a new vdev.jpg

Re: zpool doesn't allow vdev with different setup?

Posted: 29 Oct 2014 12:16
by Rimini486
Maybe I can rephrase my questions to make them easier to answer.

1. My NAS4Free was used with 4 discs before (ada0-ada3). Now I added two HDDs as can be seen in the picture above. They appear as ada0 and ada1 now. If I want to add a vdev, NAS4Free only lets me chose between ada4 and ada5 (both are currently in use, therefore should NOT be available). Can somebody explain why NAS4Free makes this mistake? Why does it add the new discs as ada0 and ada1 (I have read that this has something to do with the order in which the controller registers them) but then seems to think ada4 and ada5 are the new ones?

2. Can somebody tell me the shell command for adding ada0 and ada1 as mirror (RAID1) vdev?

3. Can somebody tell me the shell command for adding a vdev to an existing zpool?

4. Is there a list of commands for NAS4Free? I only find lists which are much to general (as for example for the whole of FreeBSD)?

Re: zpool doesn't allow vdev with different setup?

Posted: 29 Oct 2014 12:38
by raulfg3
Rimini486 wrote:hey appear as ada0 and ada1 now. If I want to add a vdev, NAS4Free only lets me chose between ada4 and ada5 (both are currently in use, therefore should NOT be available). Can somebody explain why NAS4Free makes this mistake?
YES, this is well know as disk sift syndrome, and happends in all OS. not only in BSD, it happends on linux and windows too, the reason is that BIOS assing letters ( disk order) to OS, so if you add new disk, this new disk can be assigned in order.

this only mean that N4F webGUI is confused about what disk is in use, but your data is safe, to correct , you only need to use new buttn in Disk | Manegement: http://wiki.nas4free.org/doku.php?id=do ... management .

please push button "Clear config & Import Disk" this action that is safe, assing correct phisical disk to adax names, when done you can select correct clean disk in drop-down menu in other webGUI pages.

PD1: Perhaps you need also to sync ZFSWebGUI and real ZFS pool, to do it go to Disks|ZFS|Configuration|Synchronize and push button: syncronize http://wiki.nas4free.org/doku.php?id=do ... ynchronize

Rimini486 wrote:2. Can somebody tell me the shell command for adding ada0 and ada1 as mirror (RAID1) vdev?

3. Can somebody tell me the shell command for adding a vdev to an existing zpool?
documentation: http://docs.oracle.com/cd/E19253-01/819 ... index.html

Code: Select all

zpool add FrederiksNAS_6TB mirror ada0 ada1
<- ada0 and ada1 MUST be the new disk,and can't be previosly used as ZFS disk, because Zpool command refuse to use previosly used ZFS disk to avoid data lost ( if is your case, you need to wipe first disk ) http://wiki.nas4free.org/doku.php?id=faq:0129

Rimini486 wrote:4. Is there a list of commands for NAS4Free? I only find lists which are much to general (as for example for the whole of FreeBSD)?
Nas4Free is only a web Front-end for BSD, if you need to play with commands you need to use BSD Unix commands and guides.

Re: zpool doesn't allow vdev with different setup?

Posted: 29 Oct 2014 14:57
by Rimini486
Great!!
It seems to have worked. I now have an enlarged zpool. Thanks a lot.
With the lits of commands I will hopefully be able to change my pools/vdevs in the future on my own.
New zpool Status.jpg

Re: zpool doesn't allow vdev with different setup?

Posted: 29 Oct 2014 17:37
by crowi
I now have an enlarged zpool
Congrats, now you should switch to a mainboard which supports ECC RAM, because this (ECC RAM) is mandatory for safe use of ZFS.
https://forums.freenas.org/index.php?th ... zfs.15449/

Re: zpool doesn't allow vdev with different setup?

Posted: 30 Oct 2014 17:55
by Rimini486
That is the long-term goal, it would be the better solution. Unfortunately is the ASRock C2550D4I at the moment not in my budget range.

I'll probably change to non-ZFS RAID5 in a couple of weeks or decide to go with Brians thoughts that RAM rarely brakes down during usage (http://blog.brianmoses.net/2014/03/why- ... eenas.html or the discussion of it: https://forums.freenas.org/index.php?th ... ram.20327/).

Thanks again for your help and the link to the list of storage commands.

Re: zpool doesn't allow vdev with different setup?

Posted: 30 Oct 2014 22:10
by crowi
Sorry to say, but this is just silly
decide to go with Brians thoughts that RAM rarely brakes down during usage
We just recently had this case here:
viewtopic.php?f=66&t=7386&p=43194#p43184
The lesson was learned the hard way.

If you need a cheap ECC solution, take the HP Proliant Microserver N54L, you get it (at least in Europe) for ~150-160€