LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2021, 03:34 AM   #1
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Blog Entries: 6

Rep: Reputation: Disabled
Smile How good is OpenZFS on sharing across FreeBSD and Linux?


I’m about to switch to OpenZFS for my upcoming 384GiB serious partition, which is to be shared between Artix, Void, FreeBSD, and Gentoos
Artix, Void, FreeBSD, and Gentoos all have native OpenZFS support
Gentoos include Funtoo, Mocaccino, and Calculate
Venom (an src-based distro like Gentoos) lneeds help from their founder to add OpenZFS native support by asking him
 
Old 12-19-2021, 09:18 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by hd_scania View Post
I’m about to switch to OpenZFS for my upcoming 384GiB serious partition, which is to be shared between Artix, Void, FreeBSD, and Gentoos
Artix, Void, FreeBSD, and Gentoos all have native OpenZFS support
Gentoos include Funtoo, Mocaccino, and Calculate
Venom (an src-based distro like Gentoos) lneeds help from their founder to add OpenZFS native support by asking him
Good luck with it, it will all depend on the features enabled on the pools and the version of the software they run. They will need to be identical on every one of the OSs or it will fail. At least that is my experience with it and the supposed works on any. Oh then there will be the inevitable forced imports when you forget to export the pool before switching the OS.
 
Old 12-19-2021, 08:05 PM   #3
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
And ... where are the exports of those pools supposed to be stored on? An USB storage?
Also, this also requires all those active runs in use on the zpools manually stopped before rebooting into the next OS also sharing those zpools right?
I mean in some ZFS manuals exporting zpools requires unmounting every active volumes under the pools
 
Old 12-19-2021, 08:58 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by hd_scania View Post
And ... where are the exports of those pools supposed to be stored on? An USB storage?
Also, this also requires all those active runs in use on the zpools manually stopped before rebooting into the next OS also sharing those zpools right?
I mean in some ZFS manuals exporting zpools requires unmounting every active volumes under the pools
Not totally certain on the details. All I know is when I boot I see the zfs import pool from cache in the boot messages on my machines using it. They are imported automatically by the scripts or service installed when the zfs is. Now if you reboot into another OS using the zfs and try to access it tells you the pool is in use by another you must force the import if wanting to use it. That is where the errors can happen on the version/feature mis-match not allowing the use by older version and unsupported features on the version installed on that machine. Then if everything went fine you were able to use it and you are done with that OS then reboot into another the same forced import the pool is already in use happens once again, if you forgot to export it first. Universal works everywhere my behind. Export is not in the sense of storing something somewhere it is exporting the pool taking it offline for that machines OS that is currently using it. So yes everything mounted, running on it has to be stopped too. I was going to suggest the ext4 or similar file system for use on it, but the BSD is in there so perhaps a BSD file system that has Linux support would be the best to use. File systems are supposed to just work without this foolishness involved with the zfs implementation.
 
Old 12-20-2021, 07:44 PM   #5
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
And forced imports from where? I guess nowhere other than the system in use on the zpools haven't been exported yet
Since the zpool is still in use on Artix (for example), but i rebooted unto Funtoo (another example), then back to Artix to export first, then to import on Funtoo?
How about on chroot sessions? When i imported the zpools on the host system could they be at once imported again on the chrooted guest?
If no i’m about to back to ext4 for that 384GiB partition which FreeBSD also has full supports on ext4

Last edited by hd_scania; 12-20-2021 at 07:49 PM.
 
Old 12-20-2021, 10:13 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by hd_scania View Post
And forced imports from where? I guess nowhere other than the system in use on the zpools haven't been exported yet
Since the zpool is still in use on Artix (for example), but i rebooted unto Funtoo (another example), then back to Artix to export first, then to import on Funtoo?
How about on chroot sessions? When i imported the zpools on the host system could they be at once imported again on the chrooted guest?
If no i’m about to back to ext4 for that 384GiB partition which FreeBSD also has full supports on ext4
The last OS to have imported the pool is the one that has it in use even if not booted unless you export it before shutting down/rebooting. Yes the Artix and Funtoo example is what is needed to be done or on the Funtoo you just force the import. Chroot not a clue really my use of it is always with another OS going it to repair a broken one usually due to that piece of junk GRUB breaking the boot. I do not think you get the pool imported in there who knows only way to find out is try it. Really ext4 is your best bet all OSs support it and there is no advantage to using the zfs on a single drive other than the checksums of the files it does.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenZFS 2.1 Adds Linux 5.13 and InfluxDB Support, Distributed Spare RAID LXer Syndicated Linux News 0 07-03-2021 10:00 AM
LXer: OpenZFS v2.0.0 targets Linux and FreeBSD -- shame about the Oracle licensing worries LXer Syndicated Linux News 0 12-02-2020 05:00 AM
LXer: OpenZFS 2.0 Released with ZStandard Compression, Persistent L2ARC, and More LXer Syndicated Linux News 0 12-01-2020 07:10 PM
OpenZFS on Linux and BSD zdb command gives space map refcount mismatch User9 Linux - Server 1 01-24-2018 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration