User space quotas are the space restrictions you optionally set for users of an NSS volume where the User Space Quotas attribute is enabled. The Users with Quotas page of the Storage plug-in reports the quota setting and space usage for each user who has space restrictions in place for a specified volume, whether the user has data stored on the volume or not.
This section discusses the following:
User space quotas are available on NetWare and on OES SP1 Linux and later. Before you set user space quotas on Linux, you must Linux-enable the users with Linux User Management so that file ownership can be tracked and space consumption can be enforced. For information about how access differs for NSS volumes on OES Linux as compared to OES NetWare, see Section 6.3, Access Control Issues for NSS on OES Linux.
For information about installing and configuring Linux User Management and enabling users and groups for Linux, see the Novell Linux User Management Technology Guide for OES .
If you Linux-enable a user who has previously logged in to the system, you must execute the resetidcache command from the NSS Console ( nsscon) utility afterwards to allow the proper reporting of ownership. The resetidcache command resets the mapping of user identities in the ID cache and forces it to update with the Linux UID for the user.
You can view and modify attribute settings for the User Space Quotas attribute at any time.
In iManager, click .
For instructions, see Section 3.1.6, Accessing Roles and Tasks in iManager.
Select a server to manage to view a list of its volumes.
For instructions, see Section 3.1.7, Selecting a Server to Manage.
In the Volumes list, select a volume that you want manage, then wait for the page to refresh to view its details.
Click .
The page has three tabs: , , and . It opens to the Attributes tab.
On the tab, select (enable) or deselect (disable) the check box, then click .
As the Admin user or an equivalent user, you can view and configure user space quotas in the Storage plug-in for iManager. Users can view their own user quotas and space usage statistics, but they cannot modify the quota settings.
The page reports the quota setting and space usage for each user who has space restrictions in place for a specified volume, whether the user has data stored on the volume or not. The page reports the current usage of all users on the volume who have data stored on the volume, whether the users have a quota on the volume or not.
The report and report include the following information:
Table 18-1 Report of User Space Quotas
Log in to iManager as the Admin user or equivalent user.
In iManager, click .
Click the browser, then select the volume that you want to manage.
Wait for the page to refresh to see the user space restrictions for all users with quotas for the selected volume.
To view all users (with or without quotas) who have data stored on that volume, click .
Log in to iManager as an individual user with your eDirectory username and password.
In iManager, click .
Click the Volume browser, then select the volume that you want to manage.
Wait for the page to refresh to see the individual user’s space restrictions for the selected volume on the page.
The Admin user or equivalent user can configure the user space quota for one user or multiple users at a time.
In iManager, click , then select the volume you want to manage.
Click to open the dialog box.
Click the icon to open the User object list, then browse to select one or more users who you want to share the same quota.
In , specify the upper limit of storage space that you want to assign to each of the selected users.
Use the drop-down list to select the units to use for the quota you specified in Step 4. Options are bytes, kilobytes, megabytes, and gigabytes.
Click to apply the quota, or click to back out of the transaction.
Each of the usernames you selected now has user space quotas assigned to it.
The Admin user or equivalent user can modify the quota for one user or multiple users at a time. Modify the current quotas for the selected users by setting a new quota for all users, increasing each quota by the same amount, or decreasing each quota by the same amount.
In iManager, click , select a server, then select the volume you want to manage.
Click .
Open the dialog box by doing one of the following:
Single User: Select the name link for the user.
Multiple Users: Select the check box next to one or more user names whose user space quota you want to delete, then click .
Specify the change that you want to apply to each of the selected users by doing one of the following:
Modify Quota: Specify a value to set each selected user's quota to the specified value, such as 200 MB.
Increase Quota: Use a plus (+) with the value to increase each selected user's quota by that amount, such as +50 MB.
If any individual quota or the total of all quotas exceeds the volume size, the increase is processed, because space is allocated to the users as needed, on a first-come-first-served basis.
If you attempt to increase the quota for a user with an Unlimited quota, no changes are made for that user's quota. The setting remains Unlimited.
Decrease Quota: Use a minus (-) with the value to decrease each selected user's quota by that amount, such as -20 MB.
If a reduction takes a user's quota to 0 MB, then the user is fully restricted. The user cannot add any new files no matter how many existing files are deleted. To remove the restriction, set a non-zero quota or delete the quota for the user.
If a reduction takes a user's quota to a negative value, then an error message reports the quota as an Invalid Quota. You must repeat the process to set a valid quota for the user.
Use the drop-down list to select the units to use for the quota you specified in Step 4. Options are bytes, kilobytes, megabytes, and gigabytes.
Click .
Each of the users you selected now has the new user quota assigned to his or her individual account on this volume.
The Admin user or equivalent user can delete the user space quota for one or multiple users. Deleting the user space quota for a user removes the space restriction for the user on the selected volume. Of course, any directory quotas or volume quotas still apply.
In iManager, click , then select the volume you want to manage.
Select the check box next to one or more user names whose user space quota you want to delete, then click .
Do one of following:
To confirm, click to remove the quotas. The user accounts no longer have quotas assigned to them for the selected volume.
To back out of the process, click .
To remove all user space quotas on the volume at the same time, you can simply disable the User Space Quota attribute for the volume. For information about disabling the attribute, see Section 18.4.2, Setting the User Space Quotas Attribute for an NSS Volume.
Users who are not enabled for Linux access with Linux User Management can work on NSS volumes through NCP clients and Web-based file services, such as NetStorage. Files created by these users are not counted against user space quotas because the system cannot map file ownership between POSIX and eDirectory. All newly created files are owned by the root user. For information, see Section 6.3, Access Control Issues for NSS on OES Linux.
If you have created an NSS volume on an OES Linux server or moved a volume from NetWare to OES Linux, and you did not enable volume users for Linux prior to allowing users to access the volume, be aware of the following points:
File ownership for files initially created on NSS volumes while on NetWare servers remains intact.
Files created on OES Linux servers by users who are not enabled for Linux access are owned by the root user.
This applies both to files on newly created NSS volumes and to files on NSS volumes moved from NetWare servers.
User space quotas in force while an NSS volume was on a NetWare server are no longer in force after the volume is moved to OES Linux.
If you decide to assign user space quotas to users who created files on an NSS volume while they were not enabled for Linux access, you must do the following:
Disconnect any connected users you are enabling for Linux access while you are working.
Some methods to do this are:
Request that the users log out until you are done, then notify them when it is safe to reconnect.
Remove file system access rights to the volume for the affected users to prevent access while you are working, then add the rights back when you are done. This is easier, of course, if all of the users involved have file system access rights granted through a group assignment so that you remove and add rights for the group instead of each individual user at a time.
Allow the users to remain logged in until you are done, then reboot the server to break their connections. When users log in again, the user quotas are enforced.
In iManager, use the Linux User Management plug-in to Linux-enable the user.
Use either of the following methods to change ownership of any files that the user normally uses that were previously assigned to the root user as owner:
Use the Novell Client to modify ownership of those files.
At the server’s shell prompt, log in as the root user, then use the chown command to modify file ownership.
IMPORTANT:Directories and files that were created while users were not Linux enabled are owned by the root user and are not counted against the user space quotas you set unless you reassign file ownership to the individual users.
Establish quotas for each user by following the instructions in Section 18.4.4, Configuring a User Space Quota.
At the server’s shell prompt, start the nsscon utility and run the resetidcache command.
This is required for displaying the correct owner name. Otherwise, the owner is listed as Nobody.
Verify the user’s file ownership from a Linux interface. At the server’s terminal command prompt, log in as the root user, then use the ls command to list the files in the user’s directory.
Activate the volume for user access by following the instructions in Section 13.15, Mounting and Dismounting an NSS Volume (Linux).
Notify users that they can reconnect to the volume.