This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS Pool Management creation error

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
xrs444
NewUser
NewUser
Posts: 3
Joined: 12 Jul 2013 22:30
Status: Offline

ZFS Pool Management creation error

Post 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?

xrs444
NewUser
NewUser
Posts: 3
Joined: 12 Jul 2013 22:30
Status: Offline

Re: ZFS Pool Management creation error

Post 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.

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: ZFS Pool Management creation error

Post 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.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

xrs444
NewUser
NewUser
Posts: 3
Joined: 12 Jul 2013 22:30
Status: Offline

Re: ZFS Pool Management creation error

Post 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.

bunk3m
Starter
Starter
Posts: 42
Joined: 16 May 2013 21:36
Status: Offline

Re: ZFS Pool Management creation error

Post 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.
9.1.0.1 - Sandstorm (revision 775)
Mirrored ZPool

bunk3m
Starter
Starter
Posts: 42
Joined: 16 May 2013 21:36
Status: Offline

Re: ZFS Pool Management creation error

Post by bunk3m »

I'm not sure what I did differently this time but it worked without doing a reinstall.
9.1.0.1 - Sandstorm (revision 775)
Mirrored ZPool

Sanduleak
NewUser
NewUser
Posts: 14
Joined: 05 Feb 2013 15:41
Status: Offline

Re: ZFS Pool Management creation error

Post by Sanduleak »

Exact same problem here, reinstalling the server did not help... maybe something hardwre related?

bunk3m
Starter
Starter
Posts: 42
Joined: 16 May 2013 21:36
Status: Offline

Re: ZFS Pool Management creation error

Post 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.)
9.1.0.1 - Sandstorm (revision 775)
Mirrored ZPool

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: ZFS Pool Management creation error

Post 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.

bunk3m
Starter
Starter
Posts: 42
Joined: 16 May 2013 21:36
Status: Offline

Re: ZFS Pool Management creation error

Post 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.
9.1.0.1 - Sandstorm (revision 775)
Mirrored ZPool

awinn17
Starter
Starter
Posts: 24
Joined: 28 Apr 2013 15:23
Status: Offline

Re: ZFS Pool Management creation error

Post 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.

rebelbah
NewUser
NewUser
Posts: 3
Joined: 18 Oct 2014 12:57
Status: Offline

Re: ZFS Pool Management creation error

Post 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
BIOSTAR Group G31D-M7, CPU E1500 @ 2.20GHz, 4GB RAM, 1 IDE port, 2 SATA ports
NAS4Free version 9.2.0.1 - Shigawire (revision 972) x86 Embedded USB

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: ZFS Pool Management creation error

Post 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.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

Post Reply

Return to “ZFS (only!)”