Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Moderators: jhartley, MSR734, nola

Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by satadru » Thu Aug 29, 2013 9:46 pm

So I'm trying to figure out the best way to transition from zevo to another zfs platform.

While I know that freebsd systems are well supported, I'm quite comfortable with debian based distributions and thus have setup my previously single boot Mountain Lion/Zevo system to dual boot into ubuntu, with the zfsonlinux release from earlier this week as mentioned by Don Brady here: https://twitter.com/DonJBrady/status/371513828799807490.

My question: Do I need to export my pools and then reimport the pools if I cleanly shutdown and reboot from one system to the other?

Is there an easy way to reimport the pools after each reboot?

When I do a
Code: Select all
sudo blkid
in linux I do see all of the individual drives, by UUID, listed with a LABEL that indicates the volume name used by the zpool in zevo. The UUIDs in linux through blkid do match up with the members of each zpool. These UUIDs do not appear to match the member names given in zpool status in zevo.

The simplest way I can think of would be to have a startup/shutdown script that would import at boot and export at shutdown each of my volumes in each OS.

I think zevo automatically exports drives at shutdown, no?

So I would just have to setup a script in Linux?
satadru Offline


 
Posts: 20
Joined: Fri Sep 14, 2012 10:07 pm

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by ilovezfs » Thu Aug 29, 2013 10:20 pm

What do you mean "the member names"?

Export/import is merely a convenience. You can import -f. Are you worried about breaking something or you want auto-import on Linux?
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by satadru » Thu Aug 29, 2013 11:35 pm

I wanted to auto-import on linux.

I think I've figured most of it out.
Once I imported everything with
Code: Select all
sudo zpool import -a

and after I set mountpoints in the zpools like thus:
Code: Select all
sudo zfs set mountpoint=/Volumes/tank tank


ubuntu automatically mounted the zpools at every subsequent boot.
satadru Offline


 
Posts: 20
Joined: Fri Sep 14, 2012 10:07 pm

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by ilovezfs » Fri Aug 30, 2013 1:50 am

But then what happens when you boot into OS X with ZEVO, and then reboot to Ubuntu?
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by Fredje_B » Tue Sep 03, 2013 1:28 am

As long as you don't upgrade the pool in Ubuntu, it will run on both system.

Be aware that I tried my self to do the same but got some problems with the destroy of my two pools as result. I installed Ubuntu then ZFS On Linux (ZOL) and import the two pools. I upgraded the pool to the version 5000 (and so was not able any more to go back to Zevo and OSX). It run smoothly and I was able to access my file. The problem was that the owner of each files was the PID of my OSX user, so I tried to change it to my new Ubuntu user for all the files...The command chown has hanged up and the pool was not accessible anymore.

Export, destroy or whatever commands on the pool did not have any reaction or expected effect...this happens with both of my pools. The conclusion was that I had to completely destroy my pools and recreate it...

Thus, I think it's possible to have a dual boot and to work with both system on the same pool, but you will have to manage the user rights or to work with the root user everytime...on Ubuntu you have to do a trick for that.
Fredje_B Offline


 
Posts: 7
Joined: Sun Sep 16, 2012 6:06 am

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by satadru » Thu Sep 19, 2013 9:08 am

I also had a problem with chown. My solution was to change my user id # in /etc/passwd on the linux system to the id on the OS X system. (Originally I did this to allow me to flip between OS X and Linux, but in retrospect it appears to have alleviated the chown issue too.)

Zfsonlinux has been stable for me for the last two weeks, with the caveat that I have an issue with one pool refusing to consistently mount, the relevant pool also having issues in zevo/osx due to esata bus saturation issues.

I also think I'm seeing slightly higher r/w speeds on the zfsonlinux system, but that could also be due to more mature drivers for my sata card, as I'm using a current linux kernel.

I did have a write issue with a pool that has one drive on a esata bus, and another on a firewire800 bus, but a scrub detected no issues.

I have not updated the pools to version 5000, and will avoid doing so until maczfs reaches some semblance of parity with zevo.... It's good to have an alternate OS to boot into in case the zfsonlinux install goes south.

Now if I can just find a good ARQ alternative for linux so I can restart my glacier backups!
satadru Offline


 
Posts: 20
Joined: Fri Sep 14, 2012 10:07 pm

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by satadru » Thu Sep 19, 2013 9:09 am

Also, going between OS X and linux hasn't been an issue, though I have had to occasionally export and reimport drives in linux when switching between the two.
satadru Offline


 
Posts: 20
Joined: Fri Sep 14, 2012 10:07 pm

Re: Zevo_MountainLion/zfsonlinux_ubuntu dual boot

Post by Fredje_B » Sun Sep 22, 2013 4:07 am

satadru wrote:Zfsonlinux has been stable for me for the last two weeks, with the caveat that I have an issue with one pool refusing to consistently mount, the relevant pool also having issues in zevo/osx due to esata bus saturation issues.

I also think I'm seeing slightly higher r/w speeds on the zfsonlinux system, but that could also be due to more mature drivers for my sata card, as I'm using a current linux kernel.


I do also have a regular problem with the mount of one pool after reboot...most of the time the command "zfs mount -a" solve the problem. Two of the three disks of this pool are on a PCI sata card...perhaps is this the reason of the problem, i don't really know.

I also notice an increase of the performance, ZOL is much faster than Zevo.
Fredje_B Offline


 
Posts: 7
Joined: Sun Sep 16, 2012 6:06 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron