Hi, I created couple zfs fs: datapool datapool/system datapool/system/mikkel datapool/users datapool/users/john ... I have set com.sun:auto-snapshot:daily to true on datapool/users and set inherit -r to datapool/users. datapool/users/john com.sun:auto-snapshot:daily true inherited from dataPool/users I wanted to do the same with system users: but i didn''t notice that instead of datapool/system I set datapool in inherit -r and all users under datapool/system inherits settings from datapool. How to revert this setting to default or change to correct one. I have also mistype feature com.sun:auto-snapshot:dailyy with double yy how to get rig of it. thanks -- This message posted from opensolaris.org
Hi-- I''m no user property expert, but I have some syntax for you to try to resolve these problems. See below. Maybe better ways exist but one way to correct datapool inheritance of com.sun:auto-snapshot:dailyy is to set it to false, inherit the false setting, then reset the correct property at the datapool/system level. If this is what happened: # zfs set com.sun:auto-snapshot:dailyy=true datapool # zfs get com.sun:auto-snapshot:dailyy datapool datapool/system NAME PROPERTY VALUE SOURCE datapool com.sun:auto-snapshot:dailyy true local datapool/system com.sun:auto-snapshot:dailyy true inherited from datapool Fix like this: # zfs set com.sun:auto-snapshot:dailyy=false datapool # zfs inherit -r com.sun:auto-snapshot:dailyy datapool # zfs get com.sun:auto-snapshot:dailyy datapool datapool/system NAME PROPERTY VALUE SOURCE datapool com.sun:auto-snapshot:dailyy - - datapool/system com.sun:auto-snapshot:dailyy - - Then, reset at the right level: # zfs set com.sun:auto-snapshot:daily=true datapool/system # zfs get com.sun:auto-snapshot:daily datapool datapool/system NAME PROPERTY VALUE SOURCE datapool com.sun:auto-snapshot:daily - - datapool/system com.sun:auto-snapshot:daily true local Thanks, Cindy On 05/31/10 06:44, wojciech wrote:> Hi, > > I created couple zfs fs: > > datapool > datapool/system > datapool/system/mikkel > datapool/users > datapool/users/john > ... > > I have set com.sun:auto-snapshot:daily to true on datapool/users and set inherit -r to datapool/users. > > datapool/users/john com.sun:auto-snapshot:daily true inherited from dataPool/users > > I wanted to do the same with system users: > but i didn''t notice that instead of datapool/system I set datapool in inherit -r and all users under datapool/system inherits settings from datapool. > > How to revert this setting to default or change to correct one. > > I have also mistype feature com.sun:auto-snapshot:dailyy with double yy how to get rig of it. > thanks
On Mon, May 31, 2010 at 5:44 AM, wojciech <wojciech.giel at cimr.cam.ac.uk> wrote:> I wanted to do the same with system users: > but i didn''t notice that instead of datapool/system ?I set datapool in inherit -r and all users under datapool/system inherits settings from datapool.zfs inherit -r isn''t sticky, it just clears any locally set values in descendant datasets when run. Inherit isn''t really the best name for the command either, because it doesn''t set any value in the dataset, it removes any locally set properties. If a property isn''t set in a parent, then it will inherit an unset value. For instance, if you were to do: # zfs set com.sun:auto-snapshot:daily=true datapool/system all descendant datasets from datapool/system would have the snapshot property set, because they would inherit it. If you were to do: zfs inherit -r com.sun:auto-snapshot:dailyy datapool then the dailyy (double-y) value would be unset from the datapool dataset and all descendants. Because there isn''t a default value, there wouldn''t be anything to inherit and the value would be null. -B -- Brandon High : bhigh at freaks.com