read-only

Moderators: jhartley, MSR734, nola

read-only

Post by robkrueger » Thu Sep 20, 2012 4:10 pm

it might be a stupid question, but I can't come up with an answer at the moment.
I installed zevo ce over my rather old maczfs-install. When I plug in usb-pool it automatically imports and mounts the pool, but in read-only mode.

trying to set "zpool set readonly=off mypool" doesn't work because this can only be set at import-time.
If I export the pool and then do a "zpool import" .. it doesn't find any pools to import until I unplug and re-plug the usb cable. But if I do that, zevo automatically mounts and imports the pool right away..

what am I missing?
robkrueger Offline


 
Posts: 1
Joined: Thu Sep 20, 2012 3:19 pm

Re: read-only

Post by dbrady » Thu Sep 20, 2012 6:46 pm

Unfortunately we didn't have much time and resources to test with older versions of ZFS, so to protect your data, we conservatively auto-import older pools as read-only.

There can be significant on-disk differences between ZFS pool versions and the way ZEVO writes vdev labels (using persistent /dev/dsk/GPTE..." device paths) is different from prior Mac versions. ZEVO also use the dnode System Attributes layout to store things like the FinderInfo and Lion "Date Added" values which requires version 24. It also has a different ACL format. When using older pools, different code paths are used.

You can over-ride this defaulting to read-only using zpool export/import as in the following live example.

1. Verify that it's older and read-only:
Code: Select all
$ zpool list
NAME          SIZE   ALLOC    FREE     CAP  HEALTH  ALTROOT
version_20  3.41Gi   668Ki  3.41Gi      0%  ONLINE  -
 ...
 
$ zpool get version,readonly version_20
NAME        PROPERTY  VALUE    SOURCE
version_20  version   20       local
version_20  readonly  on       -

$ zfs get readonly version_20
NAME        PROPERTY  VALUE   SOURCE
version_20  readonly  on      temporary

$ mount
 ...
/dev/disk4 on /Volumes/version_20 (zfs, local, read-only, journaled)

2. Override the default to make it writable:
Code: Select all
$ sudo zpool export version_20

$ sudo zpool import -o readonly=off version_20

$ zpool get version,readonly version_20
NAME        PROPERTY  VALUE    SOURCE
version_20  version   20       local
version_20  readonly  off      -

$ zfs get readonly version_20
NAME        PROPERTY  VALUE   SOURCE
version_20  readonly  off     default

$ mount
 ...
/dev/disk4 on /Volumes/version_20 (zfs, local, journaled)
dbrady Offline


 
Posts: 67
Joined: Wed Sep 12, 2012 12:43 am

Re: read-only

Post by La_Tristesse » Thu May 16, 2013 9:05 am

Is it possible to make that permanent? I'm using zfs-fuse on my raspberry-pi and want to be able to write to the usb-disk without exporting and importing them everytime I connect them to my macbook.
La_Tristesse Offline


 
Posts: 7
Joined: Sat Sep 15, 2012 1:26 am

Re: read-only

Post by grahamperrin » Fri May 17, 2013 9:24 am

The dynamic nature of ZEVO Community Edition 1.1.1 can not be overridden; if the version of the pool is relatively old, the dynamic import will be read-only.
grahamperrin Offline

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

Re: read-only

Post by La_Tristesse » Tue May 21, 2013 9:28 am

thanks for clearing that out. will there be a option in the commercial version?
La_Tristesse Offline


 
Posts: 7
Joined: Sat Sep 15, 2012 1:26 am

Link

Post by grahamperrin » Tue May 21, 2013 1:21 pm

I don't know about the version, but I do know that override or suppression was discussed in past topics.

For discussion of versions: editions and versions of ZEVO, community and open source
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: No registered users and 4 guests

cron