Zfs on solaris 10 and home directory creation

I am using samba and a root preexec script to automatically create individual ZFS filesystem home directories with quotas on a Solaris 10 server that is a member of a Windows 2003 domain.
There are about 60,000 users in Active Directory.
My question is about best practice.
I am worried about the overhead of having 60,000 ZFS filesytems to mount and run on Solaris 10 ?
Edited by: fatfish on Apr 29, 2010 2:51 AM

Testing results as follows -
Solaris 10 10/09 running as VM on Vmware ESX server with 7 GB RAM 1 CPU 64 bit.
ZFS pool created with three 50 GB FC LUNS from our SAN (Hardware RAID5). There are shared to ESX server and presented to the Solaris VM as Raw Device Mappings (no VMFS).
I set up a simple script to create 3000 ZFS filesystem home directories
#!/usr/bin/bash
for i in {1..3000}
do
zfs create tank/users/test$i
echo "$i created"
done
The first 1000 created very quickly.
By the time I reached about 2000 each filesystem was taking almost 5 seconds to create. Way too long. I gave up after about 2500.
So I rebooted.
The 2500 ZFS filesystems mounted in about 4 seconds, so no problem there.
The problem I have is why do the ZFS file system creation time drop of and become unworkable? I tried again to add to the pool after reboot and there was the same slow creation time.
Am I better off with just one ZFS file system with 60,000 userquotas applied and lots of ordinary user home directories created under that with mkdir?

Similar Messages

  • Can't figure out how to change username, shortname and home directory?

    Hello,
    Trying to change the username, shortname and home directory on a new Macbook.
    I tried the following article to do this:
    http://www.macworld.com/article/132693/2008/03/changeshortusername.html
    This is my problem after trying the above article:
    I tried this but got stuck when it came to entering my password into terminal. After entering in the sudo command I hit return and saw the password prompt but when I tried to type my password in nothing happened at all as cursor never moved. I hit return again terminal tells me that there is no folder named "new user name" I restarted my Mac and tried it all over again and got the same message. When I go into the original account I see the shortname and home directory are changed but the username is the original one I started with.
    How do I make the password cursor move. Have I missed something?
    My Macbook if very new and I don't care what I lose on here. Thinking of doing a complete reinstall and updating all over again. Is there a way to fix this?
    Help anyone?

    After entering in the sudo command I hit return and saw the password prompt but when I tried to type my password in nothing happened at all as cursor never moved.
    This is intentional.
    I hit return again terminal tells me that there is no folder named "new user name" I restarted my Mac and tried it all over again and got the same message.
    Enter the actual old and new names into the Terminal instead of 'new user name'.
    (35525)

  • How to change the "short name (account name?)" and home directory name?

    Hi,
    I recently purchased a new iMac and migrated account info from my MacBook Pro.  I happened to use random account name during migration without knowing it will not be easy to change the short name (account name?) and home directory name.  As a result, I am now having extremely confusing short name and home directory name on my new iMac.
    I did online search to find out how to change the two names, but I could only found somethig like "enabiling root user and....."  I have no idea what it was talking about and I don't want to take risk altering such advance set up manually.
    Please advice how I can change the short name and home directory name safely without much PC knowledge.
    Thank you very much in advance.

    There are a few ways of doing this. The easiest method is logging into the first account and copying everything to an external drive (or flash drive or whatever), which changes the permissions so that others can see the files.
    Then, login with the new account and copy the files over. Once they are copied, the correct permissions will be applied again (so other people on your computer can't access them).
    If you can't do this method for one reason or other, you can do some terminal commands to change the ownership of the files. Login to the new account. If it is an admin account, open terminal and type the following command:
    sudo chown -R -v yourusername:admin /Users/originalaccountnamehere
    That should change the ownership of the files from your old account to the new one. At that point, you can simply drag the files into place.

  • Can not login after changing account short name and home directory

    Hi,
    I did sth rather stupid while trying a get timemachine working on my iMac 10.5.5.
    I changed the short name, login shell and home directory of my account. (didn't listen to the waning that I may not be able to login if I change those information Now I can not log into my account anymore. I tried to use fileVault master password to change the password of my account, but it didn't help. Can anyone tell me how do I fix this problem?
    Thanks a lot!

    xyz2008 wrote:
    No, I still can not log in as that user.
    I did as you advised, but it gave the following message:
    "attache failed, no such file or directory"
    then I suspect you may be entering the command incorrectly. another possibility is this. I noticed you said in one of the previous posts that if you cd into the main user home directory you only see user.sparseimage. It actually should be user.sparsebundle. Or have you upgraded to leopard from tiger with filevault turned on? then it could have remained sparseimage rather than sparsebundle.
    run the following in terminal
    sudo ls -la /users/username
    and post the results.
    does it list sparsebundle or sparseimage?
    Another thing, when I typed in the command, it didn't take the admin (root) password, but the password of the account I was logged in got me through.
    that's what it has to be. it takes the password of the user (it jhas to be an admin user) which is currently logged in.
    I am wondering if I can recover the problem user's files from the sparseimage file, then copied all the files to a new user.
    Message was edited by: V.K.

  • Changed shortname and home directory name and don't know how to set it back

    so i changed my short name and home directory name because i bought the macbook used and i was trying to rename it to my name.
    Like all the others now the desktops back to default without any of my files/music, i know its still here its in the old account folder how do i just reverse this so i can have my desktop and everything back.
    heres what it is like:
    my users folder there is a home icon called "Josh" which is my name, then there is a folder icon called "nick" which is the old name and it contains all my files etc. then a shared folder icon.
    what do i do?
    p.s. i tried the method of adding "_new" onto the home icon called Josh and it said i couldn't change it because its part of Mac OS X or something...

    if you bought a used computer the first thing you should do is reformat the hard drive and reinstall the OS. anything else is less than prudent. it will also let you name your computer and your user as you like.

  • Home Directory Creation using Remote Manager

    Hi,
    We are working on OIM-AD. we have two AD domains in our environment. we need to create home directory folder upon AD provisioning such that only admin or respective user can access the folder. We tried all possible stops but we are not able to assign proper permissions. Also in one of the domain the vbscript for folder creation is run by admin and in other domain it has to be run by domain user.
    has anyone achieved this by means of Remote Manager?

    Hi Cmm user,
    Thanks for your posting.
    To set the attribute of homedirectory for a user in powershell, please also try the cmdlet set-aduser:
    import-module activedirectory
    $HomeDrive=’Z:’
    $UserRoot=’\\CONTOSO-FPS\Users$\’
    $HomeDirectory=$UserRoot+$AccountName
    SET-ADUSER $AccountName –HomeDrive $HomeDrive –HomeDirectory $HomeDirectory
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Solaris 8 and iPlanet Directory Server 5.1: Help

    Could anyone help with advice or where to find documentation of how to setup a Solaris 8 client machine to authenticate against iPlanet Directory Server 5.1? The only documentation (eg books, BluePrint articles) I can find cover iPlanet Directory 4.11 or 4.12 and a Solaris 8 client. Even the tools from the BluePrint Tools area at Sun only talk about using iPlanet Directory Server 4.11/12. Quite a lot seems to have change from iDS 4.12 to iDS5.1.
    Any help would be greatly appreciated.
    Thanks in advance,
    Stewart

    Hi Steven, I suppose that this question is identical to your other question: " Topic: solaris 8 client setup with solaris 9 ldap".
    So the answer will be the same.
    You may find what you are looking for in the following technical note: http://knowledgebase.iplanet.com/ikb/kb/articles/7966.html
    It is called: "Cookbook for Solaris 8 client with Directory Server 5.1/Solaris 9"
    Cheers / Damien.

  • Home Directory Creation?

    I wonder if someone can help...
    I've just upgraded my server (G5 PowerPC Dual 2GHZ, 2GB Ram) form 10.4.10 to 10.5. I did a fresh install instead of upgrading to prevent there being any problems but unfortunately there is...
    Everything seems to be working fine apart from when i come to create a new user. I select the sharepoint (afp://server.com/Users) in the 'home' tab and select create home now button -> press save and i get the following message:-
    unable to create home directory because an error occurred.
    I've tried allsorts like creating new sharepoints, new users but nothing seems to help.
    Any suggestions?

    I had the same issue. I just got thru doing the third reinstall of Server. (1st. Basic, 2nd Advance, and now third workgroup). On this install it all works fine. On my advanced issue it was a hit and miss situation on what worked for me. So far starting from workgroup and using server admin to manage the system has worked for me to add the little things that workgroup did not provide.

  • Change uid and home directory locations?  - no more netinfo manager?

    greetings,
    just setting up my new MBpro with 10.5... i've discovered netinfo manager is no longer here... searched the discussion forum and have learned a little. i looked into the "directory utility", but don't see how to use it for configuring local user info... (seems to be primarily focused on network services, such as ldap)...
    i keep 2 accounts on my computer - personal account for home use and work account for when i need to use my laptop for work. for my work account i need to set my UID to match that of our servers (suns)... i nfs mount suns, and access servers, etc. without the same UID, i don't have access to my network files when locally mounted... also i keep my home directories on a second partition and need to change the location of the home directory... all of these were relatively straight forward in netinfo manager.... but i have no idea where to access the configuration info that was in netinfo manager...
    is there some kind of additional software i have to install?
    i'd appreciate any suggestions-
    thanks-

    great! thanks!!
    ps - besides the fact that i can get my own unique environments and keep my work life separate from my personal live on my home computer by making separate accounts, the 2nd account always gives me a way to test things and change things for an account without being logged into it... even if i didn't want to make a user account for my job on my personal computer, i'd still keep an alternate account for testing things and as a backdoor to fix problem in my primary account... i've always loved unix since i first started using it in 85... an i'm SO glad that apple made the switch to unix, albeit a little later than was good for them. i think it is undeniably better for the users, the administrators, and even apple... the mac is quite a joy to use these days, IMHO... (-;

  • User account name and home directory name do not match

    A month ago I bought the latest iMac and used Migration assistant to migrate all of my data on over.
    Everything went well... Except that my new iMac would not let me use my old user name. I had to create somethign else.
    So my user (admin) account name is not the same as my Home directory name. (I only have 1 user account and 1 user Home directory... they both are named differently).
    This has not caused problems, but I want to iron this out. I tried using System Preferences/Users and groups to change my user account name to match the name of my home directory name (which has my old user name)... but when I did that it said "Name not available".
    Long time Mac user but I'm not comfortable doing anything deeper without some input & advice.
    Thanks in advance!

    I enable the Root user as outlined in the Apple Way instructions...logged out and loged in as the rooot user... but I really don't want to change the name of my user directory... That's the name I want to keep as a User.
    Even logged in as a Root User...
    I tried to change my current User Name to match by directory name, but it said Name is Not Available
    I also tried to create a new User name that matches my directory name...same results Name is Not Available
    Is there a sudo entry that will change the User to match my Directory name (which I want to keep and use)?
    Thank in advance!

  • Home directory creation for local user accounts using powershell

    Through Computer Management when I create a user, a home directory is created for the same user in the folder C:\Users.I am creating a user through powershell in a remote machine.I am using the following script to create user 
    $comp = [ADSI]'WinNT://localhost,computer';
    $user = $comp.Create('User', 'account7');
    $user.SetPassword('Welcome1');
    $user.SetInfo();
    The account is getting created. But no home directory is created for this user. How to create a home directory for a user using powershell? Also the user created through GUI is a member of the group 'Users' by default. How to add the user created to the
    'Users'  Group.

    Hi Cmm user,
    Thanks for your posting.
    To set the attribute of homedirectory for a user in powershell, please also try the cmdlet set-aduser:
    import-module activedirectory
    $HomeDrive=’Z:’
    $UserRoot=’\\CONTOSO-FPS\Users$\’
    $HomeDirectory=$UserRoot+$AccountName
    SET-ADUSER $AccountName –HomeDrive $HomeDrive –HomeDirectory $HomeDirectory
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Solaris 8 and @home Dhcp

    Hello, I trying to find some docs or support for my above subject. I have been trying the docs for
    2.6 and solaris 7, but to know avail on 8. I have a compitable nic, intel 100b, can't seem to make connectivity happen. Please if anyone can help me, It would be much appreciated.
    Daniel

    Hello, I tried the ifconfig with both iprb and iprb0 up and I got back in responce no such interface. So
    I have been working with the sys-unconfig, which rebooted the system, but unlike a sparc I cannot get an OK prompt or stop the boot process. So I let it continue on it's own, well it asked me a few questions such as in the install. Networked or not, dhcp or not, ipv6 or not , oh and the language first off so I have tried this a few times and it says each time that it cannot reach the DHCP server
    and just continually loops over and over asking the same questions, with no exit at all. So I hard reset it, now i am getting that the inittab is truncated or corrupted and enter root password to enter
    system maintenance mode or ctrl-d for normal startup neither of which work. The system just sits there. Thanks for your help by the way. Thinking about what i might do next???? Humm reinstall the system? Well if i remember on the initial install it kept giving me problems about the DHCP server not being reached. Well I just don't know. What next?

  • Help with Finder and Home Directory

    I know this sounds daft but I wish to create a new folder under the home folder on my system but the house icon within finder has a lock on it. I have tried applying root access to this account and accessing finder again but to no avail. Therefore I assume I need to do something else to be able achieve this?

    It's supposed to have a lock on it, requiring an admin user password to unlock. There's no reason to use root access. Click on the lock, enter your admin password, and set the settings as: user w/R&W, staff or admin w/R only, and everyone w/read only. That should allow you to create a folder within that account.

  • "Home directory is already in use"

    Recently, we have been getting an error on several student laptops during login, that the "home directory is already in use". We have only been able to resolve the issue by deleting and remaking the account and home directory on the server. We have determined that the user has not been logging into their account from multiple machines.
    Any thoughts on where this problem is coming from or how to resolve it?

    Delete the .mcxlc file at the root of the user's network home.
    Be sure to let Apple know that your are having trouble. Assuming the user is using portable home directories and letting his syncs finish, he should not be getting this message.
    Also note there is checkbox in Workgroup Manager / Accounts / Advanced called "Allow simultaneous login on managed computers", but it only works for login with a AFP/SMB home. You may want to check or uncheck this depending on your needs.

  • Report Directory Creation

    Can you please change the report object to incorporate directory creation?  I'd like to file reports by date/time and dynamic directory creation is needed to do this in Lookout.
    Another way to print screens to pdf (preferred) or html with date/time directories or filenames would be welcome.  Since the report graphic objects are not nameable (by date/time for example), new directory is needed for each report to properly file/separate them.
    Related to this is the ability to make a date object (expression, or other) dynamic included in a filename with the correct numeric format.  No luck so far.
    Ideas/experience welcome!

    Okay, I've got it.  You will need to disable images for this post page to see as typed (without smiley faces...that are NOT supposed to be in my text below)
    Key was to use expressions with embedded text functions such as:
     "cmd /c mkdir \\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)
    The above is the value of an expression object that is connected to the run object's "Command line" property which writes the directory yyyy-mm-dd\hh based on a conditional pot value.
    The report's " Output directory" property uses another expression object that is similar, just without the dos command:
    "\\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)
    Lookout is power, even if it is clumsy sometimes.
    A separate issue with reports is that the panels I am trying to print are full screen (normally maximized, normal panels).  Unfortunately, when the Panel.graphic is connected to the report.display parameter, it uses the screen property size and does not use the "maximized" equivalent size.
    The issue is that you cannot make a "non" maximized normal panel as big as it is when displayed maximized, so it is impossible to print the entire panel as it is displayed in Lookout.
    It would be great if this could be "fixed" some how.  Ryan....comment?
    Ed
    Message Edited by erblock on 04-28-2009 12:53 AM

Maybe you are looking for

  • I can't get InDesign CS3 to export a pdf properly

    Hi all, Actually I have resolved the problem but I thought I share with you all. I have done up a booklet in CS2, containing 70 over TIFF images, all of them with clipping path done in Photoshop. In between this project, I upgraded to CS3 from CS2. A

  • Udev never ever works for me

    Udev is supposed to be so simple, but every time I play with it, I get edgy. Can somebody explain to me (in very very small words;)) why this is happening: dusty:~ $ ls -l /dev/misc/nvram crw-r----- 1 root kmem 10, 144 2008-12-01 19:23 /dev/misc/nvra

  • Problems with iCloud in iOS devices

    I check and both have the same accounts in the both devices.  I get into my iphone in contacts, groups and iCloud and are all my contacts  but the ipad says that Have no contacts. *** ?

  • Using Sony High Definition Camcorder with Premiere Elements

    My computer is a HP Pavilion Intel(R) Core(TM) 2 CPU, [email protected] GHZ, 1.59 GHz, 1.99GB of Ram. It is used solely for music(SONAR and Band in a Box) and photo/video(Adobe Premiere) software and never used online. My computer says that in my C d

  • Automatic refresh of KM navigation iview?

    I need to get a KM navigation iview showing company news to refresh at regular intervals. How would I best get this done? I have tried to find a previous thread that describes this (as it would be a common need, i guess) but all threads seem to be re