Am 12.12.13 17:21, schrieb CJ Keist:
I not able to set any attributes on ZFS FS's when the pool has been
imported as readonly:
zpool import -o readonly=on data
Not sure that is different from your command: "-o ro"
zfs set readonly=on data/projects/ALP
cannot set property for 'data/projects/ALP': dataset is read-only
Interesting. I am on S11, so that may differ. However, I can assure you,
that this is the way I was dealing with this, when I had that issue, but
that has been at least 430+ days ago.
On 12/12/13, 9:06 AM, Udo Grabowski (IMK) wrote:
On 12/12/2013 16:14, Stephan Budach wrote:
Am 12.12.13 15:18, schrieb Jim Klimov:
On 2013-12-12 14:38, Stephan Budach wrote:
So basically, I am still running with this work around of setting the
affected fs to read-only, before I export the zpool.
This server is under constant load and I just don't have the time and
resources to move all 370+ ZFS fs onto another storage.
And how did you manage to set the read-only attribute the first time?
Were there any problems or tricks involved? As CJ suggested, one
wouldn't be able to do this on a pool imported read-only... did you
import it without mounts indeed?
//Jim
You surely can set the readonly attribute for a ZFS fs on a read-only
mounted zpool. Mounting the zpool readonly only seems to affect the
global setting. It seems to possible to change the ZFS FS attributes
without any issue. So the work around was…
zpool import -o ro zpool
zfs set readonly=on zpool/zfs
zpool export zpool
zpool import zpool
zfs set readonly=off zpool/zfs
This has always worked for me and it still does.
Would be interesting to know under which cicumstances this problem
appears. I saw from one of the crash dumps that there was a scrub
active, could it be that this happens on servers which go down with
an active scrub on that pool and fail to reactivate the scrub then ?
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss
--
Stephan Budach
Deputy Managing Director
Jung von Matt/it-services GmbH
Glashüttenstraße 79
20357 Hamburg
Tel: +49 40-4321-1353
Fax: +49 40-4321-1114
E-Mail: stephan.bud...@jvm.de
Internet: http://www.jvm.com
Geschäftsführer: Frank Wilhelm, Stephan Budach (stellv.)
AG HH HRB 98380
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss