Migrating down: from ZFS Pool Version 31 to ZFS Pool Version 28

Joined
Mar 20, 2012
Messages
7
I am in the process of moving my current ZFS Pool from Solaris Express 11 to OpenIndiana, primarily because I can not get patches etc without a support contract from Oracle. This involves moving the pool from ZFS Version 31 down to ZFS Version 28. Any thoughts on the best way to do this?

Obviously I can't just export and import the pool.
Does anyone know if ZFS Send would work?
Or should I just stick one of the new drives in the old NAS and do a CP?
 
If i understand correctly you will need to create a new zpool and transfer the data into it. ZFS pool versions are a one way street: up
 
If i understand correctly you will need to create a new zpool and transfer the data into it. ZFS pool versions are a one way street: up

ya, that is what I have read as well, afaik you can't downgrade
and rsync would be a better option than CP, just in case the transfer fails part way through, you can quickly pick up where you left off
 
How can I get v28? Is it available in OI? Or Solaris 11 Express?

I have an old zpool version that I need to upgrade. But I want to be able to go OI or Oracle Solaris way. If I upgrade to v31, then Im stuck with Oracle. v28 is the version I need to be able to go both directions? Which distro provides v28?
 
How can I get v28? Is it available in OI? Or Solaris 11 Express?

I have an old zpool version that I need to upgrade. But I want to be able to go OI or Oracle Solaris way. If I upgrade to v31, then Im stuck with Oracle. v28 is the version I need to be able to go both directions? Which distro provides v28?

Pool Version 28 is common on all newer ZFS capable distributions
(Eon, FreeBSD, Illumian, OpenIndiana, OSX, Linux, Schillix, SmartOS)

You can create compatible Pools V. 28 with Solaris 11 also
zpool create -o version=28

But you are not able to use features like encryption with Solaris 11 on Pool Version 28
 
So v28 is the version I want, if I want to be able to choose OI or Oracle? Can you confirm this, Gea?

Do you know if I can upgrade to v28 from Solaris 11 too? You say I can create v28 pools, but can I upgrade?
 
So v28 is the version I want, if I want to be able to choose OI or Oracle? Can you confirm this, Gea?

Do you know if I can upgrade to v28 from Solaris 11 too? You say I can create v28 pools, but can I upgrade?

Pool version 28 is the version you need for compatibility between all ZFS systems.

On Solaris 11, you can upgrade older pools up to V 31
On OI and others, you can upgrade older pools up to V. 28

You cannot downgrade to a lower number.
You can always upgrade to the newest supported version.

I doubt, we will ever see a higher compatible number on OpenIndiana.
If they add features like encryption, pools may become incompatible with Oracle.
ZFS V. 31 is the same like with MicroSoft NTFS. Its a closed source system and hard to
support for others.
 
This should do what you want

# zpool upgrade -V 28 <pool>

or

# zpool upgrade -V 28 -a (upgrades all pools to V28)



For your peace of mind though, you could try and create a low version zpool from some files and then upgrade it to V28, as a test!

# mkfile 300m /file1
# mkfile 300m /file2
# mkfile 300m /file3
# mkfile 300m /file4
# zpool create -f -o version=22 filepool raidz /file1 /file2 /file3 /file4
# zpool upgrade
# zpool upgrade -V 28 filepool
# zpool upgrade
 
Awesome - didn't know you could do that! This means I can migrate everything on my existing machine rather than having to wait - thanks!
 
Gea: For what it is worth, I strongly suggest you do not use Solaris 11 unless you are willing to pay for support. If you do, you are committing yourself to sitting at a particular patch level for the life of your NAS - there is no way to upgrade it. The only reason I would contemplate doing it is if you really have to have encryption or something else that v28 does not support.
 
Is this still true or are there any other methods of downgrading?

I'd like to switch from Solaris 11 to OpenIndiana, but my ZFS pools are v31. My largest pool is 20 TB (RAID-Z2) which makes it impossible for me to copy data off (to spare HDDs) and then recreate from empty pools... :(
 
Is this still true or are there any other methods of downgrading?

I'd like to switch from Solaris 11 to OpenIndiana, but my ZFS pools are v31. My largest pool is 20 TB (RAID-Z2) which makes it impossible for me to copy data off (to spare HDDs) and then recreate from empty pools... :(


If you have a way to mount your spare HDDs, there are several ways to get your data from your S11 to OI.
 
Is this still true or are there any other methods of downgrading?

I'd like to switch from Solaris 11 to OpenIndiana, but my ZFS pools are v31. My largest pool is 20 TB (RAID-Z2) which makes it impossible for me to copy data off (to spare HDDs) and then recreate from empty pools... :(

Unfortunately, I think you are stuck!

AFAIK, there is no supported way to downgrade a zpool to a lower version - all you can do is copy data off, then destroy and recreate your pools at the the lower version.

Sun did apparently look at implementing a downgrade feature where you could do it IF none of the features unique to the higher version were actually in use on the pool, but I don't believe it ever got off the ideas board!
 
Unfortunately, I think you are stuck!

AFAIK, there is no supported way to downgrade a zpool to a lower version - all you can do is copy data off, then destroy and recreate your pools at the the lower version.

Sun did apparently look at implementing a downgrade feature where you could do it IF none of the features unique to the higher version were actually in use on the pool, but I don't believe it ever got off the ideas board!


Good to have inside information! Looks like OP will just have to find a way to copy his data over.

I don't think OI or any other ZFS can downgrade or downsize a zpool. Sounds like a job for the Open Source community!
 
Just an FYI for those unaware - any OS running on the Illumos platform (openindiana, omnios, etc) have moved away from ZFS versions and have instead enabled "feature flags".

This means that on say openindiana you can create a pool at v.28 which will be compatible with solaris etc, or you can create one at v.1000 which is the feature flag enabled revision.

The purpose of this is this change is to allow for illumos, omnios and openindiana to cooperatively make their own ZFS features with the ability to roll them into each distribution via the core package (stops everyone spending time working on the same features).

I doubt that a v.1000 or feature flagged enabled pool is backwards compatible with Solaris - so if you want something that can always be ported stick to v.28.

I am also not sure what BSD is doing in this regard.

More here http://blog.delphix.com/csiden/files/2012/01/ZFS_Feature_Flags.pdf

Paul
 
FreeBSD has feature flags commited to HEAD. And as FreeBSD 9.1 is now released it will very soon (if not already), be commited to STABLE.
 
FreeBSD has feature flags commited to HEAD. And as FreeBSD 9.1 is now released it will very soon (if not already), be commited to STABLE.

Would you know if these will be compatible with the illumos feature flags?
 
Would you know if these will be compatible with the illumos feature flags?

The upstream for FreeBSD's ZFS implementation is Illumos (according to FreeBSD's wiki anyway) so I imagine that they will be compatible.

Someone who knows more feel free to correct me, but going forward it looks like Illumos will be the maintainer of ZFS and upstream for non Oracle ZFS implementations (FreeBSD, ZFS on Linux, etc).
 
I was trying to mount my OI rpool via one of the Linux ZFS implementations. It said that the ZFS pool version was too high (above 28) which confused me as it shouldn't have been, or so I thought.

I eventually noticed that the root pool (rpool) has feature flags enabled by default (async_destroy and empty_bpobj) which changes the version number. This behaviour appears to be present since 151a5 http://wiki.openindiana.org/oi/oi_151a_prestable5+Release+Notes.

There is no way to turn off feature flags after they have been enabled. Is there any way to specify the zpool version for rpool during the installation of OI, so that it remains compatible with the ZFS implementations in other OS's?

I'm not sure why they have feature flags on by default as v28 is a good baseline for compatibility. Perhaps after most other implementations catch up, this won't be an issue anymore.
 
What about file system version?

I tested importing a v28 pool created in solarus 11.1 into oi but i got an error that the filesystem was not supported.

I think it was 6 vs 5.

I am currently in a dilemma to move from oi to solaris 11.1. From reading this thread it seems like a bad idea however I am seeing better performance in S11.1. Especially with vmware vmxnet3.

A two disk pool (test) write at 200Mb/s under oi where the same pool write at 250Mb/s under S11.1
 
Hi,

@Blue Thunder

I think the newest zfs on linux is supporting feature flags.

Maybe, you can upgrade your version?
 
An important correction, to create an array you can freely migrate you need to set both the ZFS FS version AND the ZFS zpool version. Those are two separate things.

This can be done via:
#zpool create -o version=28 -O version=5 <poolname> <drive1>
To make a mirror use
#zpool create -o version=28 -O version=5 <poolname> mirror <drive1> <drive2>

v5 is the latest ZFS FS version that was open source, I am guessing it is what FreeBSD supports. v6 was added in solaris 11.1 and adds "Multilevel file system support".

I am currently working on my own migration away from Solaris 11.1 to FreeBSD and will post the results when I have them.
EDIT: Booted to FreeBSD and checked, it states latest versions are v5 and v28 respectively.
 
Last edited:
Back
Top