Upgrade from MacZFS

Moderators: jhartley, MSR734, nola

Re: Upgrade from MacZFS

Post by Shaman » Tue Oct 16, 2012 12:11 am

grahamperrin wrote:As it relates to TrueCrypt (not specific to MacZFS), let's make this most useful for future readers:

  • discuss under the TrueCrypt topic.

Thanks.


Considering it works for MacZFS and not Zevo, you're missing details if you're ignoring it. Please pay attention to the subject of this thread.
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

cross reference

Post by grahamperrin » Tue Oct 16, 2012 12:53 am

For reference and discussion: 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: cross reference

Post by Shaman » Tue Oct 16, 2012 2:04 am

grahamperrin wrote:For reference and discussion: disks without a GUID Partition Table (GPT)


Thanks for summarizing. How actively developed is Zevo? Is this a known bug/issue?
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: Upgrade from MacZFS

Post by jsb204 » Tue Oct 16, 2012 11:33 am

Shaman wrote:actually, after reading it. What is the actual work around? Using the symlinks? Or doing the partition?


Symlinks, and using import -d /dev. Also, make sure you have the 1.1.1 update installed or you might get a crash with import -d /dev in some circumstances.
jsb204 Offline


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

Re: Upgrade from MacZFS

Post by alexwasserman » Wed Oct 17, 2012 8:10 pm

wonkywonky wrote:
Shaman wrote:zevo isn't finding the pools at all for me. I wonder what's different.


What's your vdev configuration? I was able to import all my RAIDZ pools, but not the mirrored pools.


My pool has 3 vdevs, each is a 2 drive mirror.
alexwasserman Offline


 
Posts: 21
Joined: Mon Sep 17, 2012 4:04 pm

Re: Upgrade from MacZFS

Post by jsb204 » Wed Oct 17, 2012 8:49 pm

alexwasserman wrote:No issues at all so far, actually.

When I get a chance I'm going to boot using an OpenIndiana USB key I have and upgrade to 28.



I can confirm that this works. I created a pool in MacZFS (v8). Then I booted OpenIndiana in VirtualBox from a livecd, with my MacZFS pool accessible in VirtualBox as a raw device. I was able to import the pool under OpenIndiana and upgrade it to v28. The upgraded pool imported into Zevo without difficulty. As I expected, it was still able to receive zfs replication streams from MacZFS.
jsb204 Offline


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

Re: Upgrade from MacZFS

Post by alexwasserman » Wed Oct 17, 2012 8:58 pm

@JSB,

Yes, I booted up into OI, upgraded, and it worked fine for me too.
alexwasserman Offline


 
Posts: 21
Joined: Mon Sep 17, 2012 4:04 pm

Re: Upgrade from MacZFS

Post by Shaman » Wed Nov 28, 2012 11:51 pm

I just created a thumbdrive without truecrypt to try:

on host with MacZFS
Code: Select all
diskutil partitiondisk /dev/disk2 GPTFormat ZFS %noformat% 100%
sudo zpool create tiny /dev/disk2
cp ~/Desktop/someimage.png /Volumes/tiny/
sudo zpool export -f tiny


On host with ZEVO
Code: Select all
 sudo zpool showdisks

DISK DEVICE      SIZE  CONNECTION    DESCRIPTION
/dev/disk5     984MiB  USB           USB2.0 FlashDisk Media


So, OK, it shows fine with showdisks... but what about with import?

Code: Select all
[~]$ sudo zpool import tiny
cannot import 'tiny': no such pool available
[~]$ sudo zpool import


So what's going on? Why can't I mount it?
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: Upgrade from MacZFS

Post by Shaman » Wed Nov 28, 2012 11:53 pm

Code: Select all
 sudo zdb -l /dev/disk5
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 8
    name: 'tiny'
    state: 1
    txg: 36
    pool_guid: 11476004619125433197
    top_guid: 396779805640270484
    guid: 396779805640270484
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 396779805640270484
        path: '/dev/disk7'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 23
        ashift: 9
        asize: 1027080192
        is_log: 0
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 8
    name: 'tiny'
    state: 1
    txg: 36
    pool_guid: 11476004619125433197
    top_guid: 396779805640270484
    guid: 396779805640270484
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 396779805640270484
        path: '/dev/disk7'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 23
        ashift: 9
        asize: 1027080192
        is_log: 0
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 8
    name: 'tiny'
    state: 1
    txg: 36
    pool_guid: 11476004619125433197
    top_guid: 396779805640270484
    guid: 396779805640270484
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 396779805640270484
        path: '/dev/disk7'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 23
        ashift: 9
        asize: 1027080192
        is_log: 0
--------------------------------------------
LABEL 3
--------------------------------------------
    version: 8
    name: 'tiny'
    state: 1
    txg: 36
    pool_guid: 11476004619125433197
    top_guid: 396779805640270484
    guid: 396779805640270484
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 396779805640270484
        path: '/dev/disk7'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 23
        ashift: 9
        asize: 1027080192
        is_log: 0


I guess one question is why it shows up as disk7 with zdb and disk5 with diskutil list (i'm not too familiar with zdb tool)
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: Upgrade from MacZFS

Post by grahamperrin » Thu Nov 29, 2012 2:38 am

Shaman wrote:On host with ZEVO
Code: Select all
 sudo zpool showdisks

DISK DEVICE      SIZE  CONNECTION    DESCRIPTION
/dev/disk5     984MiB  USB           USB2.0 FlashDisk Media


So, OK, it shows fine with showdisks …


– shows disks that are likely available for use with ZFS storage pools.

In your case, it does not show that the disk is already used for ZFS – maybe because partitioning for use by MacZFS was not a fit with normal requirements for ZEVO Community Edition 1.1.1. Consider the linked topic, disks without a GUID Partition Table (GPT).

For the affected device, if still at disk5, run either of the following commands to see which which slice (if any) is used by MacZFS for ZFS:

Code: Select all
diskutil list /dev/disk5
sudo gpt -r show /dev/disk5
grahamperrin Offline

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

Previous

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 2 guests

cron