Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #379014
    skeates
    Participant

    Hi all.

    This may have been covered before, and I am sure I have seen something about it. Although for the life of me can not find the information. I am wanting to quota my portable home directories server side. I don’t really care about backing up data as such. The reason I have them in place is to keep settings and profiles on the server so when users switch machines they have there settings follow them.

    Music, photos and personal data is the responsibility of the user. Documents have there place in the server structure. So the only data I really need to back up is the settings.

    I am sure I saw some were before that I could have a phd from the machine sync into a disk image probably a spares image. This would then enable a quota for me. Is this possible and does any one have a link to the information regarding this?

    Thanks

    #379024
    tlarkin
    Participant

    The disk quotas are set up in Server Admin by selecting the share point and enabling quotas. The actual quota limit is set either by user, group, or computer list policy in WGM. As for synchronizing specific folders, you can do that in group policy as well. In the mobility section you can set what file paths to skip and what file paths to sync. I ignore every folder in my users home directory except for ~/Documents, and I also set the Microsoft data in ~/Documents to be skipped as well.

    I used to run search and destroy scripts that would scan the server shares with the find command and delete anything that was music or video related by file extension. However, now I just make users delete that stuff or move it out of their ~/Documents folder and tell them to only keep their important work in ~/Documents and nothing else.

    #379026
    skeates
    Participant

    From what I can figure the quota set in server admin applied to a share point applies to the share point and not the user folders on the share point (I may be wrong). So what I see is that applying a 2gb limit to the share would give all the users 2gb of space to share instead of giving each user 2gb of data storage. Again I may be wrong about this.

    From what I have read setting the quota’s in WGM only applies to non PHD users.

    #379028
    tlarkin
    Participant

    [QUOTE][u]Quote by: skeates[/u][p]From what I can figure the quota set in server admin applied to a share point applies to the share point and not the user folders on the share point (I may be wrong). So what I see is that applying a 2gb limit to the share would give all the users 2gb of space to share instead of giving each user 2gb of data storage. Again I may be wrong about this.

    From what I have read setting the quota’s in WGM only applies to non PHD users.[/p][/QUOTE]

    You must enable disk quotas on the share point for them to be honored. You can also use disk quotas for PHDs. I have tons of protable users (I work in a 1:1) and they all get the correct limit. Now, if you want to enable soft quotas that is a bit rough around the edges and I believe requires command line work in 10.5.x. We have not migrated to 10.6 yet at my work.

    When I import users into OD, I set up a test user exactly how I want it. give them the disk quota I want in WGM under the home folder tab, and then create the user and test it. If it works out how I want it, I save that user as a template user. Then I import my list of users off that template and their quota gets applied.

    The only problem with a PHD is, say you need to delete that account out of LDAP for whatever reason, and then recreate it. That new account will have a new UID and that new UID will not match the old one and that account is no longer managed. I had some account corruption once and had to delete some accounts that were already synchronized to the client machines. So, those machines no longer were really managed and I had to get the users to come see me so I could migrate their local data to their new UID mobile account.

    #379040
    skeates
    Participant

    Thanks.

    I am going to try this out today and see how it goes.

    #379043
    skeates
    Participant

    That seemed to work. Thank you for the help with this.

    I now need to figure out how to get some sort of quota warning up for the users so they can see how much space they have available.

    I have tried the quotamenubar program, but can only get it to show me the local hard disk percentages and not that of my server quota.

    #379046
    tlarkin
    Participant

    That is a tricky question, and I don’t quite have the answer to it. I think we could whip something up, like a log-in-hook which always tells the user how much space they are using, but as for built in tools I have yet to really discover any that work like they are suppose to with the Macintosh platform. Especially when it comes to folder synchronization and portable home directories.

    So, if you wanted to whip up some script or something maybe I could point you in the right direction.

    #379047
    skeates
    Participant

    hmm a script I guess could do the job. May be something that could calculate the amount of data used in your user folder with the same exclusions you set in the server sync rules. This way it could give you a real time update as to how much quota you had left on the server.

    I guess the question would be how to get the sync rules into the script with out having to manually add them into it and manually update it each time you made a change.

    I might be going down the wrong path with this but if you have any other ideas that would be great.

    #379048
    tlarkin
    Participant

    I am on 10.5.8 still, and when a network user logs in and I look at what is mounted under /Volumes I get:

    [code]
    $ ls -al /Volumes/
    total 8
    drwxrwxrwt@ 10 root admin 340 Jul 8 13:22 .
    drwxrwxr-t 29 root admin 1054 Jun 21 08:37 ..
    drwxrwxr-t 23 tlarkin staff 850 Oct 12 2007 Mac OS X Upgrade DVD
    lrwxr-xr-x 1 root admin 1 Jul 6 09:51 Macintosh HD -> /
    drwxrwxr-x 7 root admin 306 May 5 15:33 data
    drwxrwxr-t 49 tlarkin staff 1734 Jul 8 13:19 external
    dr-x——+ 24 netadmin staff 772 Jul 8 12:46 homes
    dr-x——+ 24 netadmin staff 772 Jul 8 12:46 homes-1
    dr-x——+ 24 netadmin staff 772 Jul 8 12:46 homes-2
    dr-x——+ 24 netadmin staff 772 Jul 8 12:46 homes-3
    [/code]

    However, if I try to use any disk quota command line tools they always return disk quotas are not enabled. If I do a df I get this:

    [code]
    $ df
    Filesystem 512-blocks Used Available Capacity Mounted on
    /dev/disk0s2 252268720 104042520 147714200 42% /
    devfs 223 223 0 100% /dev
    /dev/disk0s3 59379120 226216 59152904 1% /Volumes/data
    map -hosts 0 0 0 100% /net
    map auto_home 0 0 0 100% /home
    map -fstab 0 0 0 100% /Network/Servers
    afp_4fhNXa0000pe0000oM0000VU-1.2d000008 204800 25608 179192 13% /Volumes/homes
    afp_4fhNXa0000pe0000oM0000VU-1.2d000009 204800 25608 179192 13% /Volumes/homes-1
    /dev/disk1s3 14911944 14904872 7072 100% /Volumes/Mac OS X Upgrade DVD
    afp_4fhNXa0000pe0000oM0000VU-1.2d00000a 204800 25608 179192 13% /Volumes/homes-2
    /dev/disk2s2 311909984 191713200 120196784 62% /Volumes/external
    afp_4fhNXa0000pe0000oM0000VU-1.2d00000b 204800 25608 179192 13% /Volumes/homes-3
    [/code]

    When I try to run quotacheck on any of those paths it always returns back quotas are not enabled.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Comments are closed