Page 1 of 1

ZFS Pool Management creation error

Posted: 12 Jul 2013 22:46
by xrs444
Hello all, I couldn't see an answer to this exact issue, forgive me if I'm searching for the wrong thing, I've tried all the suggestions I could find that matched.

I'm trying to create a ZFS mirror between two drives presented as RDM to nas4free running in a VM on an ESXi5.1 server. I have another pair of disks running software RAID one presented in the same way.

I can successfully format the drives, and add them to a virtual device, however when I go to the management tab and create a pool, after clicking apply changes I get the following error: Error: The changes could not be applied (error code 1). Looking in the logs I get root: cannot create '<pool>': no such pool or dataset.

I've tried the dd scripts to wipe the drives and re-add them, but to no avail. In fact, if I wipe the drives and remove them and all the ZFS config, I still get the apply settings button under management and it'll throw the error code 1 if I click it.

I can carry on and create datasets and volumes, but the log will show it could not find the pool, even though it appears in the drop down.

Looking through the XML backup of the server, I can see the following config:

Code: Select all

<zfs>
<vdevices> 
<vdevice> <uuid>90a6f3ec-b630-454e-bb16-0fd3de896be9</uuid>
<name>fspool</name> 
<type>mirror</type>
<device>/dev/da3</device>
<device>/dev/da4</device>
<desc>FileStoregePool</desc>
</vdevice> 
</vdevices>
<pools> 
<pool>
<uuid>fa9cd518-08d1-4566-bec0-65be478ab2e5</uuid>
<name>fspoolmgmt</name>
<vdevice>fspool</vdevice>
<root/>
<mountpoint>/mnt/fs</mountpoint>
<desc/>
</pool>
</pools>
<datasets/>
</zfs>
It's got me stumped, any ideas?

Re: ZFS Pool Management creation error

Posted: 17 Jul 2013 00:15
by xrs444
I'm guessing this is either a very odd problem, or I've missed something fundamental!

I think I'll try and rebuild the server, and if that doesn't work it'll just have to be software RAID.

Re: ZFS Pool Management creation error

Posted: 17 Jul 2013 07:03
by kkd
zfs raid must work. click apply after every step, disk by disk. if u got error1, delete last step and reboot and continue after reboot.

Re: ZFS Pool Management creation error

Posted: 20 Jul 2013 01:11
by xrs444
Deleted the config, but the error shows even with no ZFS options selected.

In the end I re-installed NAS4free and it worked first time. Not sure what broke the first time, but it's all working now.

Thanks for the help.

Re: ZFS Pool Management creation error

Posted: 19 Aug 2013 21:51
by bunk3m
Interesting. I just found this thread after bashing my head against the wall trying to figure out why I couldn't get 2 disks to work together in ZFS in mirror with the same error you have. I guess I'll have to do a reinstall to the VM again. I've already done the reinstall twice ....

If one person has a problem it might be an anomaly. With more perhaps a bug somewhere? If perhaps a bug, how do we find it to report it.

Re: ZFS Pool Management creation error

Posted: 19 Aug 2013 23:57
by bunk3m
I'm not sure what I did differently this time but it worked without doing a reinstall.

Re: ZFS Pool Management creation error

Posted: 22 Aug 2013 09:15
by Sanduleak
Exact same problem here, reinstalling the server did not help... maybe something hardwre related?

Re: ZFS Pool Management creation error

Posted: 22 Aug 2013 17:47
by bunk3m
I wasn't exactly keeping notes but I think (a) I deleted the zpool set-up, and then (b) deleted the vdevs and (c) pushed the "accept" or "execute" button.

Following that I did a reboot of Nas4Free.

Then I started fresh.
1) I formatted the drives for zfs. (Be careful here. I've read but not understood something about problems with reformating zfs drives. I didn't have any data on the drives so I guess it didn't affect me.)
2) Then I went to menu:Disk:ZFS:Pool and selected Virtual Device. Both the drives showed up in the udev menu. From this menu I selected the two drives & mirror and gave it a name etc. Then pressed the button to save the change and second button to execute
3) Then menu:Disk:ZFS:Pool:Management and added the pool. There was only 1 vdev available.

My brain cramp was that I thought I mirror the pools. This was incorrect for my setup. You mirror the vdev/disks first and then create a pool.

(And yes, I believe I've read that you can mirror pools.)

Re: ZFS Pool Management creation error

Posted: 23 Aug 2013 03:20
by fsbruva
Why are you using RDM? I would just use raw disk access, without the mapping file. The less control that ESX has on the device, the better. ZFS likes being in complete control of its disks.

Re: ZFS Pool Management creation error

Posted: 23 Aug 2013 14:11
by bunk3m
Hi. I have an M1015 that is connected to the two drives. The M1015 is set on passthrough not RDM so I think ZFS is in full control.

Re: ZFS Pool Management creation error

Posted: 13 Nov 2013 03:02
by awinn17
Had the same issue. It looks like a bug.

First time, couple days ago, I had to reinstall N4F on the USB, then it worked first time. This time, I tried this and that and sometimes after a reboot (leaving the new pool un-deleted) it "seems" to look ok, and will create a dataset. Buggy I think, that's all. But it makes it hard to restore to a previous version of N4F when the config fails here.

Re: ZFS Pool Management creation error

Posted: 22 Oct 2014 05:09
by rebelbah
i have the same issue 1) 80GB 10) 120gB both IDE drives, the were formatted fine, added to virtual disk fine, pools management is where the issue came in, tried RAID 1 same Error: The changes could not be applied (error code 1). any ideas, tried the reinstall no go

Re: ZFS Pool Management creation error

Posted: 22 Oct 2014 07:03
by b0ssman
please do not post in old threads that are not created by you with your own problem.
please create a new thread, otherwise it gets confusing.