Convert Solaris ZFS fileserver to FreeNAS

Status
Not open for further replies.
Joined
Jul 13, 2013
Messages
286
My original ZFS fileserver is still running (it's still my main home fileserver). It's an AMD box with an add-on controller, 8 hot-swap bays (well, 12; 4 2.5" and 8 3.5").

Will FreeNAS understand the ZFS pool on my existing disk drives?

Given how FreeNAS can boot and run from a thumb drive, it kind of looks like I can try this with little risk.

If I export the pool under Solaris, shut down the system, and boot from a FreeNAS thumb drive (assuming FreeNAS can tolerate the hardware), should I be able to import my existing pool? What are the risks of trying this?

Under what circumstances would FreeNAS upgrade an old ZFS on-disk version? Does it require an explicit command from me? (I'm sure the on-disk ZFS version I'm running is older than what FreeNAS defaults to, but it should read old versions, and so long as it doesn't upgrade without my permission, it won't do any damage.)

Is this a simple easy safe thing to try? Or is it an insane idea nearly certain to destroy my data? Or roughly where in between?

(I've got three backup sets at any given time, I would of course make sure they were all up-to-date before trying anything like this. But having to restore from backup is still somewhat of a pain.)

(The Solaris box identifies its version as:

Sun Microsystems Inc. SunOS 5.11 snv_134 February 2010

The pool is:

-bash-4.0$ zpool get all zp1
NAME PROPERTY VALUE SOURCE
zp1 size 3.63T -
zp1 capacity 50% -
zp1 altroot - default
zp1 health ONLINE -
zp1 guid 123924226373954006 default
zp1 version 22 default
zp1 bootfs - default
zp1 delegation on default
zp1 autoreplace off default
zp1 cachefile - default
zp1 failmode wait default
zp1 listsnapshots off default
zp1 autoexpand on local
zp1 dedupditto 0 default
zp1 dedupratio 1.00x -
zp1 free 1.81T -
zp1 allocated 1.83T -

And a representative dataset in the pool is:

-bash-4.0$ zfs get all zp1/ddb
NAME PROPERTY VALUE SOURCE
zp1/ddb type filesystem -
zp1/ddb creation Sat Feb 7 12:05 2009 -
zp1/ddb used 1.56T -
zp1/ddb available 1.75T -
zp1/ddb referenced 1.35T -
zp1/ddb compressratio 1.00x -
zp1/ddb mounted yes -
zp1/ddb quota none default
zp1/ddb reservation none default
zp1/ddb recordsize 128K default
zp1/ddb mountpoint /home/ddb inherited from zp1
zp1/ddb sharenfs off default
zp1/ddb checksum on default
zp1/ddb compression off default
zp1/ddb atime on default
zp1/ddb devices on default
zp1/ddb exec on local
zp1/ddb setuid off inherited from zp1
zp1/ddb readonly off default
zp1/ddb zoned off default
zp1/ddb snapdir visible inherited from zp1
zp1/ddb aclmode groupmask default
zp1/ddb aclinherit restricted default
zp1/ddb canmount on default
zp1/ddb shareiscsi off default
zp1/ddb xattr on default
zp1/ddb copies 1 default
zp1/ddb version 3 -
zp1/ddb utf8only off -
zp1/ddb normalization none -
zp1/ddb casesensitivity mixed -
zp1/ddb vscan off default
zp1/ddb nbmand on inherited from zp1
zp1/ddb sharesmb name=ddb local
zp1/ddb refquota none default
zp1/ddb refreservation none default
zp1/ddb primarycache all default
zp1/ddb secondarycache all default
zp1/ddb usedbysnapshots 209G -
zp1/ddb usedbydataset 1.35T -
zp1/ddb usedbychildren 0 -
zp1/ddb usedbyrefreservation 0 -
zp1/ddb logbias latency default
zp1/ddb dedup off default
zp1/ddb mlslabel none default
zp1/ddb net.dd-b:bup:backup yes inherited from zp1
)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
There's been a few people that import pools from other OSes. Sometimes it works. Sometimes it works and then suddenly fails catastrophically. We've had 2 people in the last week or so that lost their pools trying to import zpool from other OSes.

The short answer is "don't do it".

The long answer is it may work, it may not. Even if it works your pool might suddenly go corrupt without warning one day. If you want to use this pool long term in FreeNAS you should create a new pool in FreeNAS and restore from backups. It's the only way to be 100% sure your pool won't just up and fail one day.
 

david kennedy

Explorer
Joined
Dec 19, 2013
Messages
98
I'm looking to do the exact same thing as you are (migrate from solaris to freenas).

For your older version of solaris you are probably using a version 22 file system and potentially could import it.

I am using Solaris 11.1 and can tell you this is NOT POSSIBLE on newer versions of Solaris (beyond the version you are using).
By default (unless you used zpool create -o version=28 -O version=5 ) Solaris would have created pools using version > 30. Freenas only supports version 28 (with feature flags).

Next, as cyberjock points out others have reported problems. Considering he spends a lot more time on the forums then I do I am inclined to trust his opinion on this one.

I'd rather waste my time destroying and recreating the pool then risk losing my data.


PS.
This is sort of covered here: http://forums.freenas.org/index.php?threads/reading-solaris-zfs-volumes.13765/
 
Joined
Jul 13, 2013
Messages
286
Okay, thanks. Clearly I should not try to import and use even my old Solaris pool.

Means I'm more committed to the change if I start the process, I guess, which means it'll be longer until I get to it.
 
Status
Not open for further replies.
Top