I dont get it. I created users with System -> Administration -> Users and Groups meny. I thought every user will get his own ZFS filesystem? But when I do # zfs list I can not see a zfs listing for each user. I only see this: rpool/export 60,4G 131G 32K /export rpool/export/home 60,4G 131G 60,4G /export/home rpool/export/home/michaelroot 760K 131G 760K /export/home/michaelroot I have at least three users in my system. I thought they would be listed when I do "zfs list"? -- This message posted from opensolaris.org
Dick Hoogendijk
2011-Jul-24 14:59 UTC
[zfs-discuss] Each user has his own zfs filesystem??
Op 24-7-2011 16:51 schreef Orvar Korvar:> I dont get it. I created users with > System -> Administration -> Users and Groups > meny. > > I thought every user will get his own ZFS filesystem? But when I do > # zfs list > I can not see a zfs listing for each user. I only see this: > rpool/export 60,4G 131G 32K /export > rpool/export/home 60,4G 131G 60,4G /export/home > rpool/export/home/michaelroot 760K 131G 760K /export/home/michaelroot > > I have at least three users in my system. I thought they would be listed when I do "zfs list"?Maybe you don''t have their home directories created while adding them...?
So, when I created users with the GUI System -> Administration -> Users and Groups meny, it did not automatically create a zfs filesystem?? I must do that manually? Or are the users on a separate user filesystem? I tried to move a large file from user to /rpool, but the system copied instead of moving. This is an indication of user having a separate filesystem. But the filesystem is not listed in "zfs list". -- This message posted from opensolaris.org
On 07/24/2011 08:07 AM, Orvar Korvar wrote:> So, when I created users with the GUI > System -> Administration -> Users and Groups > meny, it did not automatically create a zfs filesystem?? I must do that manually? Or are the users on a separate user filesystem? > > I tried to move a large file from user to /rpool, but the system copied instead of moving. This is an indication of user having a separate filesystem. But the filesystem is not listed in "zfs list".Orvar, What does it say in the new users'' entries in /etc/passwd, and what do you see if you ''ls -l /export/home''? Perhaps you only have directories underneath /export/home instead of new ZFS datasets. Jeff -- *Jeff Savit* | Principal Sales Consultant Phone: 602.824.6275 | Email: jeff.savit at oracle.com | Blog: http://blogs.oracle.com/jsavit Oracle North America Commercial Hardware Operating Environments & Infrastructure S/W Pillar 2355 E Camelback Rd | Phoenix, AZ 85016 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110724/bfcf207e/attachment.html>
cat /etc/passwd meme:x:1000:1000:Michael:/export/home/meme:/bin/bash amme:x:1001:1000:Amme:/export/home/amme:/bin/bash utwww:x:1002:1001:ut admin web server user:/tmp:/bin/sh $ ls -l /export/home total 11 drwxr-xr-x 36 amme user 55 2011-07-24 18:05 amme drwxr-xr-x 39 meme user 77 2011-07-24 17:58 meme drwxr-xr-x 18 semeroot staff 27 2011-06-14 20:08 michaelroot So this is strange. By default the GUI does not create zfs filesystems? I must do that manually? Are there any way I can tell which filesystem/partition a directory belongs to? -- This message posted from opensolaris.org
Roberto Waltman
2011-Jul-24 17:40 UTC
[zfs-discuss] Each user has his own zfs filesystem??
Orvar Korvar wrote:> So this is strange. By default the GUI does not create zfs filesystems? I must do that manually?I would have found it strange if it did. What other OS are you using that creates a separate filesystem per user?> Are there any way I can tell which filesystem/partition a directory belongs to?I am not near a Linux system now to try this, but, for what its worth, in Solaris 11, doing a df <dirname> will show the file system and mountpoint. -- Roberto Waltman
Roberto Waltman
2011-Jul-24 17:44 UTC
[zfs-discuss] Each user has his own zfs filesystem??
Roberto Waltman wrote:> I am not near a Linux system now to try this,...Oops! Bad email filtering - for some reason I had this message in the zfs-on-linux directory... -- Roberto Waltman
Cindy Swearingen
2011-Jul-24 19:30 UTC
[zfs-discuss] Each user has his own zfs filesystem??
That is correct. Those of us working in ZFS land recommend one file system per user, but the software has not yet caught up to that model. The wheels are turning though. When I get back to office, I will send out some steps that might help during this transition. Thanks, Cindy -- This message posted from opensolaris.org
Ah, ok. That explains it all. Thanx. And yes, "df" did the trick. So, if I want each user to have his own zfs filesystem, I just create the filesystem, and then copy everything from /export/home, and then I fire up the GUI and point to the new zfs filesystem? That is all? I dont have to edit /etc/passwd and such files? Or should I just delete the user and recreate the user? A question: if a user share filesystems, how can "Time Slider" work? I heard it snapshots the user zfs filesystem. If a user share filesystems, does this mean that TimeSlider snapshots the entire system disk? -- This message posted from opensolaris.org