Robert Lor
2007-Sep-13 21:00 UTC
[zfs-discuss] How to delegate filesystems from different pools to non-global zone
I''m trying to add filesystems from two different pools to a zone but can''t seem to find any mention of how to do this in the docs. I tried this but the second set overwrites the first one. add dataset set name=pool1/fs1 set name=pool2/fs2 end Is this possible or do I need to use different syntax? -Robert This message posted from opensolaris.org
Marion Hakanson
2007-Sep-13 21:12 UTC
[zfs-discuss] How to delegate filesystems from different pools to non-global zone
robert.lor at sun.com said:> I''m trying to add filesystems from two different pools to a zone but can''t > seem to find any mention of how to do this in the docs. > > I tried this but the second set overwrites the first one. > > add dataset > set name=pool1/fs1 > set name=pool2/fs2 > end > > Is this possible or do I need to use different syntax?You need two separate dataset declarations: add dataset set name=pool1/fs1 end add dataset set name=pool2/fs2 end Regards, Marion
Robert.Lor at Sun.COM
2007-Sep-13 21:46 UTC
[zfs-discuss] How to delegate filesystems from different pools to non-global zone
Marion Hakanson wrote:> You need two separate dataset declarations: > >add dataset >set name=pool1/fs1 >end >add dataset >set name=pool2/fs2 >end > > >Duh... makes sense. Thanks Marion! -Robert
Marion Hakanson
2007-Sep-13 23:32 UTC
[zfs-discuss] How to delegate filesystems from different pools to non-global zone
Robert.Lor at Sun.COM said:> Duh... makes sense.Oh, I dunno, I think your first try makes sense, too. That''s what I tried to do my first time out. Maybe the zones team will get around to supporting multiple datasets in one clause someday.... Regards, Marion
Matthew Ahrens
2007-Sep-29 18:58 UTC
[zfs-discuss] How to delegate filesystems from different pools to non-global zone
Robert Lor wrote:> I''m trying to add filesystems from two different pools to a zone but can''t seem to find any mention of how to do this in the docs. > > I tried this but the second set overwrites the first one. > > add dataset > set name=pool1/fs1 > set name=pool2/fs2 > end > > Is this possible or do I need to use different syntax?You want to add two datasets? Try: add dataset set name=pool1/fs1 end add dataset set name=pool2/fs2 end or check out the zonecfg(1m) manpage. --matt