Importing zpool from Linux ZFS-Fuse

Moderators: jhartley, MSR734, nola

Re: Importing zpool from Linux ZFS-Fuse

Post by daniel.jozsef » Sat Oct 13, 2012 6:11 pm

Utf8only is set to off, and Normalization is set to none.

However, it is likely that the filenames are in normal form C, as they were created by Linux.

However, a weird thing happened when I used convmv to change the normal form of the filenames. They started appearing in Finder, but when I try to access these files from the command line, bash no longer seems to recognize them when I type their name on the keyboard.
Also, even weirder, the latin2 characters in NFD register as TWO characters for bash (eg. to access "hé.txt", I need to type "h??.txt" instead of "h?.txt").

It's as bash itself was using the wrong normalization...
daniel.jozsef Offline


 
Posts: 14
Joined: Sun Sep 30, 2012 2:26 pm

Re: Importing zpool from Linux ZFS-Fuse

Post by jsb204 » Sat Oct 13, 2012 8:27 pm

dbrady wrote:The import code is filtering for disk slices. It's possible you can work around this by creating a symlink whose name looks like a disk slice. I haven't tested this, but it's an easy experiment to try. Using your disks above as an example:
Code: Select all
$ sudo ln -s /dev/disk1 /dev/disk1s2
$ sudo ln -s /dev/disk2 /dev/disk2s2


Thanks Don, this works. It is a good workaround for my problem importing a mounted Truecrypt volume.
(see thread: http://zevo.getgreenbytes.com/forum/viewtopic.php?f=4&t=36)

Maybe the dev name filtering should be disabled, or optionally disabled with a command line switch?
jsb204 Offline


 
Posts: 16
Joined: Sat Sep 15, 2012 11:32 am

Re: Importing zpool from Linux ZFS-Fuse

Post by grahamperrin » Sun Oct 14, 2012 2:06 am

daniel.jozsef wrote:… a weird thing happened when I used convmv …


I began a separate topic: NFD: normalization=formD (normalisation form D)
grahamperrin Offline

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

cross reference

Post by grahamperrin » Mon Oct 15, 2012 9:28 pm

daniel.jozsef wrote:… trouble making the drives accessible to a virtualized environment (Virtualbox) …


Please see:

grahamperrin Offline

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

Re: Importing zpool from Linux ZFS-Fuse

Post by cdc-zevo » Mon Dec 17, 2012 12:16 pm

FWIW, I had daniel.jozsef's problem (invisible zpool with non-partitioned disks), and the symlink hack seems to have worked for me. (I did have to use the -d option to zfs import.) The pool was from a 10.5 system using (I think) maczfs. In my case, Finder seems happy with all my filenames.
cdc-zevo Offline


 
Posts: 1
Joined: Mon Dec 17, 2012 10:50 am

Re: Importing zpool from Linux ZFS-Fuse

Post by alexjj » Fri Jan 18, 2013 5:45 am

I have a pool made with zfsonlinux using UUIDs - is importing in ZEVO going to have the troubles suffered in this thread?
alexjj Offline


 
Posts: 2
Joined: Thu Jan 10, 2013 9:18 am

ZFS on Linux, UUIDs

Post by grahamperrin » Fri Jan 18, 2013 5:47 pm

If each disk has a GPT then you may be OK.

disks without a GUID Partition Table (GPT)
grahamperrin Offline

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

Re: Importing zpool from Linux ZFS-Fuse

Post by alexjj » Fri Jan 18, 2013 5:55 pm

Code: Select all
sudo gdisk -l /dev/sda

Code: Select all
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0B2A0C84-555B-AC40-8AFE-AA9610C0244D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2157 sectors (1.1 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      3907012607   1.8 TiB     BF01  zfs
   9      3907012608      3907028991   8.0 MiB     BF07


Looks like I should be okay! Thanks.
alexjj Offline


 
Posts: 2
Joined: Thu Jan 10, 2013 9:18 am

Direct interchange

Post by grahamperrin » Fri Jan 18, 2013 6:12 pm

Only two warnings in the quick start guide, here's one:

ZEVO uses the standard ZFS on-disk format (v28) and is therefore binary compatible with ZFS on other platforms. However, direct interchange with other platforms is not supported in this version.

The other warning advises users to have backups.

You may be OK with the import, but do please have backups. Just in case.

If the import is successful, maybe post under Compatibility with other ZFS systems.

If the import is problematic, please post to a separate topic. (This topic began with FUSE in mind (not the FUSE-less ZFS on Linux).)
Last edited by grahamperrin on Sun Mar 31, 2013 6:55 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: Importing zpool from Linux ZFS-Fuse

Post by JasonRain » Mon Mar 11, 2013 6:00 am

How does diskutil list display these 2 disks?

_________________
runescape gold|wow gold|RS Gold
JasonRain Offline


 
Posts: 3
Joined: Mon Mar 11, 2013 5:46 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron