This post is more than 5 years old
3 Posts
0
1279
February 21st, 2013 13:00
Celerra Homedir creation
We currently have our home directories map to 5 different file systems spilt among the groups.
Is there a way to direct the Path based off of their group?
If user is a member of Group1, then their path is \home\group1\username
If user is a member of Group2, then their path is \home\group2\username
etc...
Right now I'm creating individual lines in our celerra homedir management but we're at 137 lines, and growing for every new user.
I would really like something like:
domain:user:path
*:*:\home\$group\$user
Thanks!
No Events found!
cincystorage
2 Intern
•
467 Posts
0
February 22nd, 2013 04:00
You can't use the group name, that is true, but you can limit your homedir config file to two lines.
I have mine spread across 8 filesystems and here is my entire homedir config.
domain:*:/userdata/user2/
domain:*:/userdata/user3/
domain:*:/userdata/user4/
domain:*:/userdata/user5/
domain:*:/userdata/user6/
domain:*:/userdata/user7/
domain:*:/userdata/user1/
domain:*:/userdata/user8/
The downside of this is you really don't want to use the homedir auto create feature.
So when we privision a new users we do a mkdir /userdara/user5/avalanch00. Then when you access \\CIFSSERVER\HOME it will do a homedir database search in user2 (first in the list) but won't find /userdara/user2/avalanch00 so it will move on to user3, then user4, user5 where it will find a match. It will then keep searching the rest of the list... whatever the last match is it will make that hte users homedir. If you have auto create turned on it will look /userdara/user2/avalanch00, not find it, and make the directory. Which will, in effect, put all users on the first filesystem.
Your other option is to use regex to place the users in once place or another. Something like:
domain:[a-m].*:/path1/
domain:[n-z].*:/path2/
The advantage of that way is you turn auto-create on and it iwll make the homedir for them if it doesn't exist. Just make sure you enable regexg in your config file.
It looks like you can trim your homedir down to a few lines...
Hope this helps.
cincystorage
2 Intern
•
467 Posts
0
February 21st, 2013 22:00
It's actually really easy to do what you want.. check out this white paper... http://www.emc.com/collateral/hardware/white-papers/h2283-emc-celerra-home-directory.pdf
christopher_ime
2K Posts
0
February 21st, 2013 23:00
avalanch00,
Firstly welcome to the forums and thank you for being an EMC customer.
Unfortunately there isn't any way to use the group (primary in consideration obviously of a user in more than one) that the user is a member of for directory substitution. The only variables are /Domain and /Username which you are already using. I do see value in what you are proposing, and I am also envisioning what you are doing to work-around it and can see why your homedir config file is rather lengthy (and will grow as you add more users).
avalanch00
3 Posts
0
February 22nd, 2013 07:00
Thanks mmay! That seems to work, and I can't see any preformance hit.
My current config went from 137 lines, to 5 lines.
domain:*:/home/group1/
domain:*:/home/group2/
domain:*:/home/group3/
domain:*:/home/group4/
domain:*:/home/group5/
James
christopher_ime
2K Posts
1
February 22nd, 2013 08:00
As you note you do this with out the auto-create. Agreed.
avalanch00
3 Posts
0
February 22nd, 2013 13:00
Just a heads up for someone that runs across this post in the future. (Probably me in 2 years trying to figure out why it's not working for someone)
Make sure all your usernames match their homedirectory, I found 7 users that for whatever reason (legacy, typos, etc) that their home directory path was different then their username.
username: firstname
homedirectory: /home/group1/lastname
It looks like you'll have to have custom lines for those users.
Message was edited by: avalanch00