Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

TrueNAS 12.0-RELEASE Launches!

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

msbxa

Member
Joined
Sep 21, 2014
Messages
132
I can't find a way to upgrade boot pool from web interface, but the status shows that can be upgraded:

action: Enable all features using 'zpool upgrade'. Once this is done,
It' s safe do to it from command line?

Best Regards,
Antonio
I did the upgrade through webgui and didn't take much time few seconds, otherwise run the zpool upgrade command to upgrade all of your pools command "zpool upgrade -a".
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
504
The general advice is to use the webUI or the APIs for all configuration changes. These changes go through the middleware which stores all state needed and coordinates anything necessary. This is how the software gets tested.

If changes are made through CLI, it may work, but there are no claims that it has been tested and that there are no potential issues.

Is there a reason why you want to upgrade the boot pool?
 

Tony-1971

Member
Joined
Oct 1, 2016
Messages
80
No reason (all is working well). So I can try to use API or not upgrading the boot pool.

Thanks
 

msbxa

Member
Joined
Sep 21, 2014
Messages
132
FYI, I just did a ZFS pool upgrade from my TrueNAS test and this is the output:

root@PRODNAS[~]# zpool upgrade -a
This system supports ZFS pool feature flags.
Enabled the following features on 'freenas-boot':
large_dnode
userobj_accounting
encryption
project_quota
allocation_classes
resilver_defer
bookmark_v2
redaction_bookmarks
redacted_datasets
bookmark_written
log_spacemap
livelist
device_rebuild
zstd_compress
 
Last edited:

Tony-1971

Member
Joined
Oct 1, 2016
Messages
80
I'm trying to use Rest API but I can't find the boot pool:
Code:
$ cat bin/freenas-rest-client.sh
#!/bin/bash
CURL="/usr/bin/curl --user root:xxxxx"
URL="http://freenas-emx.localdomain/api/v2.0"
${CURL} -X GET "${URL}/pool" -H "accept: */*"
${CURL} -X GET "${URL}/pool/id/1" -H "accept: */*"

The first curl shows only a pool with id = 2 (my data pool)
The second curl returns:
Code:
{
 "message": ""
}


Best Regards,
Antonio
 

sretalla

Wizened Sage
Joined
Jan 1, 2016
Messages
3,931
I'm trying to use Rest API but I can't find the boot pool:
Isn't there a class specifically for the boot pool? (called boot, I think)

I just checked... it's there, but it only implements a vastly reduced subset of properties and methods of pool, so update is missing...
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
504
Yes, the key requirement for the boot pool is stability not new features. So, it's probably why there are no upgrade tools available.
 

dsouleles

Neophyte
Joined
Nov 4, 2012
Messages
10
Hi Dean, After 12 years you definitely aren't a neophyte. We should review our forum software and its settings.
The upgrade from 11.3 to 12.0 is generally straightforward... the transition from FreeNAS to TrueNAS CORE is a name change.
TrueNAS 12.0 does include some ZFS changes... don't change the ZFS pool settings until after the upgrade has been successful. That will allow you to roll back if needed. There will be more data on update issues in the next month... so, if you don't need any specific features, you might be advised to wait. Morgan
No worries - just a little late night humor. All good. Its only 8 years - been with it through the "dark times" and the light. One update a few years ago nearly broke me - but the ZFS pool survived. Another time I had a drive fail - replaced it and increased the pool size at the time - one disk at a time - waiting for the re-silver. Took about a week. Really, this is an amazing product for the price! The last couple of updates have been very smooth. I'll give 12 a go.

Whoever asked about my configuration - it is primarily an SMB file server for my home windows network. One user account. Simple permissions. One pool, one volume - 4 3TB disks. No log device. One plug-in/jail running a Plex media server. One VM running Pi-Hole ad blocking. APC UPS with email alerts. That is about it. Been running with only a couple of incidents on the same server since 2012.

And to everyone that suggested I read the release notes - thanks for the advice. I always do - they usually tell me a lot about what used to be broken, but not much about what, if anything, I need to worry about when upgrading. I just thought that since this was being pushed so hard as a pivotal transition point - bringing the code bases together, etc. that there would be more information on the transition from FreeNAS to TrueNAS CORE there might be more information needed. If, as you say, it is mostly a re-branding at this point, then the release notes should probably say that too.

Thanks everyone for the feedback.

Dean
 

nojohnny101

Neophyte Sage
Joined
Dec 3, 2015
Messages
1,474
For reference I upgraded from 11.3-U5 with no problems on 2 separate systems. Smoothest upgrade I have actually done in a while. I primarily use mine as a file server, and have 2-3 jails running on both. No problems over the last couple of days! (and strangely, the actual update process was very fast, like abnormally fast compared to previous upgrades.)
 

dsouleles

Neophyte
Joined
Nov 4, 2012
Messages
10
No worries - just a little late night humor. All good. Its only 8 years - been with it through the "dark times" and the light. One update a few years ago nearly broke me - but the ZFS pool survived. Another time I had a drive fail - replaced it and increased the pool size at the time - one disk at a time - waiting for the re-silver. Took about a week. Really, this is an amazing product for the price! The last couple of updates have been very smooth. I'll give 12 a go.

Whoever asked about my configuration - it is primarily an SMB file server for my home windows network. One user account. Simple permissions. One pool, one volume - 4 3TB disks. No log device. One plug-in/jail running a Plex media server. One VM running Pi-Hole ad blocking. APC UPS with email alerts. That is about it. Been running with only a couple of incidents on the same server since 2012.

And to everyone that suggested I read the release notes - thanks for the advice. I always do - they usually tell me a lot about what used to be broken, but not much about what, if anything, I need to worry about when upgrading. I just thought that since this was being pushed so hard as a pivotal transition point - bringing the code bases together, etc. that there would be more information on the transition from FreeNAS to TrueNAS CORE there might be more information needed. If, as you say, it is mostly a re-branding at this point, then the release notes should probably say that too.

Thanks everyone for the feedback.

Dean
Upgrade went perfectly as far as I can tell.

Thanks again,

Dean
 

HoneyBadger

Mushroom! Mushroom!
Joined
Feb 6, 2014
Messages
3,171
Is there a place to get stats so one can determine how to configure the Metadata (Special) Small Block Size for the special vdev?
The right number is between 1% and 10% .. 1% for large files/record sizes and 10% for small files/record sizes. However, this is early in the release process and so we are still gathering practical data.
For those looking to get an idea:

Run zdb -LbbbA -U /data/zfs/zpool.cache poolname to walk through your entire pool (this will take some time (ignore any errors that come up about spacemap mismatches, it's the result of running this against a mounted pool)

Sum up the ASIZE column for everything other than L0 zvol object and L0 ZFS directory and that should give you the result (there's a handy total near the bottom)

There's also a histogram that will give you the recordsizes in use.

Example from a small pool that has no meta drive at the moment - containing a couple VMFS ZVOLs, recordsize 32K:

Code:
    13  1.62M     49K    104K      8K   33.96     0.00      L5 Total
    13  1.62M     49K    104K      8K   33.96     0.00      L4 Total
    15  1.88M     57K    120K      8K   33.68     0.00      L3 Total
    34  4.25M    372K    808K   23.8K   11.71     0.00      L2 Total
5.73K   665M    208M    435M   76.0K    3.20     0.55      L1 Total
4.69M   150G   70.9G   77.3G   16.5K    2.12    99.45      L0 Total
4.69M   151G   71.1G   77.7G   16.6K    2.12   100.00  Total


For this 151G of logical data, I'll need roughly 665M of logical metadata space. (It'll compress of course.)

10% of data space as metadata would be something like an almost-exclusively 4K workload (which would also lose out on compression in an ashift=12 setup)
 
Last edited:

HoneyBadger

Mushroom! Mushroom!
Joined
Feb 6, 2014
Messages
3,171
While I'm on the subject of meta SSDs, I'd be remiss if I didn't link to the efforts of @Stilez to document some of the behavior experienced playing with SSDs in 12.0-RC:


The short version is that metadata workloads are small size I/O, with mixed R/W, and Optane is one of the few NAND types that doesn't get progressively worse under that.

You'll also want to prefer a higher endurance SSD (again, Optane shows up here) as a random-write 4K workload creates greater write amplification. Look for SSDs with heavy overprovisioning from the factory, and a firmware that's tuned for small blocks. Often these are listed as "write intensive" drives.
 

jgreco

Resident Grinch
Moderator
Joined
May 29, 2011
Messages
13,541
by the way - whoever runs the forum - don't you think calling a user who has had FreeNas up and running since 2012 a neophyte is just a little insulting. :) Really. I don't post unless I need to.
It's calling you a forum neophyte. It lists your join date right below, which shows you to be a longtime member but low volume poster. The forumware has no idea how good you are with FreeNAS itself. If you have an idea how to get it to display your actual expertise with FreeNAS, we're all ears. :smile:
 

rogerh

Neophyte Sage
Joined
Apr 18, 2014
Messages
1,085
It's calling you a forum neophyte. It lists your join date right below, which shows you to be a longtime member but low volume poster. The forumware has no idea how good you are with FreeNAS itself. If you have an idea how to get it to display your actual expertise with FreeNAS, we're all ears. :smile:
An algorithm to allow for number of posts *and* duration of membership might be an improvement.
 

rogerh

Neophyte Sage
Joined
Apr 18, 2014
Messages
1,085
This just asks for a certification program :tongue:
The primary use case of web forums is the promotion of vacuous adolescent chatter to monetise page accesses. Probably, if we must have a web forum rather than a newsgroup, the ranking line would be better omitted, and only notes of moderator or ixsystems status used.
 

Dan Tudora

Senior Member
Joined
Jul 6, 2017
Messages
269
hello
please, please, please do not do another F***book here
let it like it is please
cheers
 

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,152
To state the obvious; Neither post history quantity nor forum membership length is a reflection of someone's knowledge. We used to accumulate and display likes as a proxy for those that posted appreciated content but even that is a proxy at best. Reminds me of a long posting by Comander Taco / Rob Malda on Slashdot re: all the ways how up and downvoting strategies, etc. influenced how they designed their forum system. Some folk get lost re: importance of their "standing" in a forum.

Anyhow, whenever the demi-gods wandering the halls here drop a load of insight / knowledge, their posts are instantly recognizable once you read them (sort of like the supreme court opinion on how to determine what is and what is not prurient content). No reason to ever look at the join date or the # of posts, sub headers, whatever. Even the OP acknowledged that this is a dead horse so lets stop beating it.

What I really wanted to do here is thank @HoneyBadger for the commands he mentioned in his posting re: Metadata. That is a very useful tool, thank you for teaching me about it and it's running in a tmux session right now. Further thank you to whoever posted about tmux! - I would not have learned about that either! I'll know in another 14 hours or so how much space to allocate to the metadata and the rest will then go to small files. Good news is that the server can do all this while I go out and swap the winter tires onto the cars, do some volunteer work at the pre-school, and buy some propane for the patio heater.

Lastly, before I go to 12 with the pool, I'll transfer the extant pool to a resurrected 2750DI server that I hope to set up as a remote backup eventually, nuke the extant pool and start over with special VDEVs, etc. Thank you all for helping me on this journey!
 
Last edited:
Top