Hey folks,

This may sound a little crazy, but I'm a long time windows admin planning on 
rolling out a Solaris server to act as our main filestore, and I could do with 
a bit of advice.

The main reason for switching is so we can use snapshots.  With Samba and 
Microsoft's Shadow Copy Client we can backup everybody's files and give users 
the power to restore files themselves.  That plus the other benefits of ZFS 
mean we're seriously looking into this.  However, there are one or two side 
effects...

I'm more than a little concerned about how we go about creating user profiles 
and managing quotas.  On a windows server this is easy.  As you create a user 
account the appropriate folders are created for you.  So long as you have the 
right permissions on the parent folder, all those folders inherit their 
permissions automatically, and since quotas work per user, that's automatic too.

The question is, can I do anything to automate all this if I move to Solaris?

We've got to use ZFS to get the benefits, but that doesn't have user quotas so 
I'll have to script the creation of a filesystem for each user.  First of all, 
if I have multiple filesystems, can I still share those out under one path?  
ie:  each user has a home folder of \\server\share\username, can I still do 
that when every 'username' is a separate filesystem?

Then, if that's possible, is there any way I can make the creation of these 
filesystems automatic?   What I'm thinking is that I'll need a parent 
filesystem for these to inherit quota settings from, and that will be the 
'share' location above.  Now, when windows creates user accounts, it will 
automatically create subfolders in that parent filesystem to act as home 
directories.  Would I be able to write a script to watch that filesystem for 
new subfolders and have it automatically delete the subfolder and create a 
filesystem in it's place?

And can I set permissions on a filesystem?  Could the script to that too?

If it works, while it may be a bit messy, there will actually be some 
advantages over the windows quota system.  In windows, the quota is set by 
ownership of the file.  If users move files between each other for any reason, 
or an admin has to take ownership to change permissions that can get messed up, 
and it's nigh on impossible to find out where all your space has gone if that 
happens.
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to