Any special requirements for zpools?

Moderators: jhartley, MSR734, nola

Any special requirements for zpools?

Post by RHB » Thu Mar 28, 2013 11:51 am

Hi :)

I'm trying to import a simple one-disk pool on an external USB drive using Zevo. It's on partition 3 (with a 0x83 (linux) partition code) of a 3-partition MBR layout. Works fine with ZOL and ZFS-FUSE, but Zevo just doesn't see it.

I was wondering if there are any special requirements for Zevo to get it to recognize a pool, like GPT, special partition codes, etc.?

Thanks, and happy Easter! :)

Daniel
RHB Offline


 
Posts: 5
Joined: Thu Mar 28, 2013 1:21 am

Link

Post by grahamperrin » Thu Mar 28, 2013 3:08 pm

Currently pinned in general discussion:

grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Any special requirements for zpools?

Post by RHB » Fri Mar 29, 2013 12:35 am

Hmm, strange.

I converted the partition table to GPT with gdisk, and Zevo still doesn't see it. Disk Utility confirms the presence of a GPT.

Any other requirements? The pool is version 23.

No dedup, by the way.
RHB Offline


 
Posts: 5
Joined: Thu Mar 28, 2013 1:21 am

pool version 28, not 23

Post by grahamperrin » Fri Mar 29, 2013 12:31 pm

In the ZEVO wiki, ZFS Pool And Filesystem Versions specifies ZFS pool version 28.

Compatibility with other ZFS systems
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Any special requirements for zpools?

Post by RHB » Sun Mar 31, 2013 6:22 am

Yep, but 23 < 28. Is Zevo's implementation really not backwards compatible? If so, it'd be the only implementation of ZFS that I know of that isn't.

Also, there are no symlinks under /dev/dsk/... Which makes me wonder if Zevo is even finding the partition? Or are the symlinks only generated once a pool is imported? I read that one could "trick" MBR partitions to work by symlinking them into /dev/dsk/ and then try importing, which again suggests that these links should exist before an import...?
Last edited by RHB on Sun Mar 31, 2013 6:26 am, edited 1 time in total.
RHB Offline


 
Posts: 5
Joined: Thu Mar 28, 2013 1:21 am

/dev/dsk/ and a version 23 pool

Post by grahamperrin » Sun Mar 31, 2013 6:42 am

RHB wrote:… are the symlinks only generated once a pool is imported? …


Please see:


What's the origin of your version 23 pool? If it's the FUSE-based ZFS for Linux, then please continue under:

Last edited by grahamperrin on Mon Apr 01, 2013 4:13 am, edited 1 time in total.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Any special requirements for zpools?

Post by RHB » Sun Mar 31, 2013 7:56 am

First of all, thank you Graham for taking the time with me :) It's insane how many people you're helping here!

To answer your question, yes, it was originally ZFS-FUSE, created on an mdadm ICH10R RAID5 partition under Kubuntu, then dd'ed to an image file on my Ubuntu server, then dd'ed back to a partition on this external drive.

The post you're linking to is actually the one that I got the thing with the symlinks from. The only thing is that he's got no partition table at all, while I first had MBR, then GPT. I also set the GPT partition type to "FreeBSD ZFS", didn't help either.

I just tried updating the pool to version 28 using ZoL, but still Zevo doesn't see it.

It isn't strictly critical to get this working, it'd just be really nice to know what kind of interoperability I can expect with Zevo. I.e., is it ZFS or not, in that ZFS is portable. If I can't use ZFS here and expect it to be portable, I'll just use something else. Perhaps MacZFS if it plays well with ZFS-FUSE, ZoL and SmartOS.

Thanks again :) And happy Easter!
RHB Offline


 
Posts: 5
Joined: Thu Mar 28, 2013 1:21 am

gpt

Post by grahamperrin » Mon Apr 01, 2013 4:12 am

Happy Easter to you too :-)

You're ahead of me with the partition type thought.

So ZFS on Linux imports and exports the pool (now at version 28) without difficulty, yes?

Can you paste output from a gpt command?

Back to basics … with ZEVO, does a simple command –

Code: Select all
sudo zpool import


– list the pool, with a state that might explain why import is not dynamic?

In Console, what messages are logged when the one disk is connected? viewtopic.php?p=713#p713 if you'd like to use the .aslquery that I most often use for this type of thing.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Any special requirements for zpools?

Post by RHB » Fri Apr 12, 2013 10:06 am

Wow, man, so so sorry for just leaving like that. I was in the most stressfully hectic work race I've had for years, and completely forgot about this :oops: Did manage to have a nice Easter, though, thank you for that :)

About you questions, first of all, yes, ZoL imports/exports the pool without any messages that would indicate anything but success (it also doesn't complain about the pool being owned by another system on re-import, so that would further indicate proper exporting).

GPT — on Mac? Something like this?
Code: Select all
daniel@rogosx:~$ sudo gpt -r show /dev/disk1
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34        2014
        2048   524288000      1  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   524290048   524288000      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  1048578048  2858446848      3  GPT part - 516E7CBA-6ECF-11D6-8FF8-00022D09712B
  3907024896        4239
  3907029135          32         Sec GPT table
  3907029167           1         Sec GPT header


"sudo zpool import" silently fails, no output. It does exit with error code 1 which would indicate some kind of failure (according to Oracle docs, "1 An error occurred." That's great! :D. Not sure if this is just Zevo staying quiet or if the "mainstream" zfs import would be equally quiet...

If we can't get it up and running, it's not the biggest deal in the world, I'd just really like for this to be a medium that could be read by all my systems (MS excluded, naturally).

Thanks — and sorry — again.
RHB Offline


 
Posts: 5
Joined: Thu Mar 28, 2013 1:21 am

Link

Post by grahamperrin » Sat Apr 13, 2013 12:18 pm

Compatibility with other ZFS systems: FreeBSD use of 516E7CBA-6ECF-11D6-8FF8-00022D09712B
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron