Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting Solaris ZFS partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Mar 23, 2017 3:10 am    Post subject: Mounting Solaris ZFS partition Reply with quote

Hi, ALL,
I have a laptop which has Gentoo and Solaris installed.
Now I just tried to compile kernel with ZFS support and compile zfs modules.

Now the problem is - how to mount ZFS pool on this machine?

Does anyone have experience with that?

Thank you.

P.S.: If this post does not belong here - I apologize. But I thought so since it is about zfs kernel module as well.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Thu Mar 23, 2017 1:10 pm    Post subject: Reply with quote

If this is oracle solaris and not illumos I'm not sure it's possible as zfs and openzfs aren't compatible since > version 28 (zpool get version <poolname>).
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Mar 23, 2017 1:41 pm    Post subject: Reply with quote

mrbassie,
Yes, this is Oracle Solaris, but can you give me the command?
I can try and see.

If something goes wrong, I will just re-install Solaris.

Thank you.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Thu Mar 23, 2017 2:56 pm    Post subject: Reply with quote

Code:
 zpool import <poolname>
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Mar 23, 2017 4:31 pm    Post subject: Reply with quote

mrbassie,
Shouldn't I do first:

Code:

zpool attach <partition>


or even

Code:

zpool create <partition>


?

I am getting an error on "import". Will post it later when I come home.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Thu Mar 23, 2017 4:47 pm    Post subject: Reply with quote

Sorry, I thought you were trying to mount an existing zpool created on Solaris(?)
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Fri Mar 24, 2017 1:56 am    Post subject: Reply with quote

mrbassie,
My setup is as follows:

/dev/sda1 - small boot partition
/dev/sda2 - boot partition - this is where kernel and grub configuration are stored
/dev/sda3 - swap partition
/dev/sda4 - root partition
/dev/sda5 - Solaris partition

So, what I'm trying to do is mount /dev/sda5 inside Gentoo.

So, from the Gentoo POV there is no zpool. Therefore I can't import because there is nothing to import.

Thank you.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Fri Mar 24, 2017 12:10 pm    Post subject: Reply with quote

If you try and mount the partition the usual non-zfs way, something like:
Code:
mkdir /mnt/solaris

Code:
mount /dev/sda5 /mnt/solaris


It will return 'unknown filesystem zfs_member' or something similar, at least that what it does with the open source fork of zfs.
zpool list will return "no pools available" if no pools are imported.

(although having said that, I don't know if solaris uses zfs for the root filesystem or if they use ufs or something else entirely, there is experimental read support for ufs in the kernel, probably not enabled)

You could try creating a pool on a spare usb drive from within gentoo and checking whether you can import that (just to make sure it's working properly).

But as I said closed source zfs on solaris and openzfs on the other platforms aren't compatible so I wouldn't expect it to work anyway, maybe you can get a readonly pool imported but I'd doubt even that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum