22.3 Managing Directory Quotas

A directory quota limits the amount of space on a volume that can be consumed by all of the files and folders in that directory. You can specify any positive value for the quota. If the current size of the directory exceeds the specified limit, users cannot save data to the directory until space is cleared by removing files from the directory. If the specified directory quota exceeds the volume quota, the volume quota overrides the directory quota in determining whether data can be saved to the directory as data is written. Because overbooking is allowed for directory and volume quotas, the physical space limits for the pool might also prevent the directory from growing to its specified maximum. Physical space limits for the pool override the volume and directory quotas.

For example, lets assume that volume VOL1: has a volume quota of 50 GB in pool POOL1. You set the directory quota to 100 GB for directory VOL1:\finance\sales. Users cannot save 100 GB of files in the sales directory because NSS reaches the volume quota long before it reaches the directory quota. Because of overbooking, other directories are competing for the 50 GB of space in the volume, and VOL1: is competing for space with other volumes in POOL1. You might not be able to put as much as 50 GB of data in the sales directory.

Setting the directory quotas on a volume will automatically enable the Directory Quotas attribute for the volume as well. As the administrator user, you can view and configure directory quotas with the Files and Folders plug-in for iManager, NetStorage, and the Novell Client.

This section describes the following:

22.3.1 Enabling or Disabling the Directory Quotas Attribute for an NSS Volume

Setting the directory quotas on a volume will automatically enable the Directory Quotas attribute for the volume as well. You can set the attribute at create time or at any time for an existing volume.

To set the Directory Quotas attribute for an existing volume:

  1. In iManager, click Storage > Volumes.

    For instructions, see Section 9.1.5, Accessing Roles and Tasks in iManager.

  2. Select a server to manage to view a list of NSS volumes on the server.

    For instructions, see Section 9.1.6, Selecting a Server to Manage.

  3. In the Volumes list, select a volume that you want manage.

    Wait for the volume details to be displayed before you continue.

  4. Click Properties.

    The Properties page has three tabs: Attributes, Statistics, and Quota Usage. It opens to the Attributes tab.

  5. On the Attributes tab, select or deselect the Directory Quotas check box, then click Apply.

  6. If you enabled or disabled the Directory Quotas attribute, restart NCP2NSS by entering the following at a terminal console prompt:

    /etc/init.d/ncp2nss restart
    

22.3.2 Configuring Directory Quotas

Adding or Modifying a Directory Quota with iManager

  1. In iManager, select Files and Folders > Properties.

  2. Click the Search icon, then browse to locate and select the folder you want to manage on an NSS volume.

  3. View the current status of the Directory Quota.

    If a Directory Quota is set, the Restrict Size field is selected and the Limit field shows the quota size in KB.

    If the Directory Quota is not set, the Restrict Size field is deselected and the Limit field is dimmed (grayed out).

  4. Do one of the following:

    • Add a Quota: On the Information tab, select Restrict Size to enable space restrictions for the selected directory. In the Limit field, type the directory quota in KB. The value must be an increment of 4 KB; that is, it must be divisible by 4 with no remainder.

    • Modify an Existing Quota: In the Limit field, type the new directory quota in KB/MB/GB/TB. Select a value from the drop-down list. The value must be an increment of 4 KB; that is, it must be divisible by 4 with no remainder.

    • Remove a Quota: On the Information tab, deselect Restrict Size to disable space restrictions for the selected directory. The Limit field is automatically dimmed (grayed out).

  5. On the Information page, click Apply or OK to apply the changes.

Adding or Modifying a Directory Quota with Novell NetStorage

Using Novell NetStorage, you can manage directory quotas for directories in an NSS volume from any computer with a supported Web browser. This requires you to first configure a NetStorage server in the same context. For information, see the OES 11 SP2: NetStorage Administration Guide for Linux.

To create or modify NSS directory quotas with NetStorage:

  1. In a Web browser, connect to NetStorage.

    For information, see Section 9.4, Novell NetStorage.

  2. Log in to NetStorage with the username and password of the Administrator user or equivalent user.

  3. Navigate to the directory you want to manage.

  4. Right-click the directory, then select Properties.

  5. Click the NetWare Info tab.

    Although the option label refers to NetWare, you can use the option for your NSS and NCP volumes on Linux.

  6. Do one of the following to configure the directory quota:

    • Space Restriction: Select Restrict Size, then specify the directory quota in KB. The value must be a multiple of 4.

    • No Space Restriction: Deselect Restrict Size to set the directory quota to Unlimited.

    • Complete Space Restriction: Select Restrict Size, then specify the directory quota as 0 KB. If the directory already contains files and subdirectories, the directory cannot grow beyond the current space consumed.

  7. Click Apply to accept the directory quota configuration.

Adding or Modifying Directory Quotas with the Novell Client

The Novell Client for Windows 2000/XP allows the Administrator user to manage directory quotas for directories in an NSS volume from a Windows computer.

  1. In the Novell Client, map a drive to the NSS directory you want to manage, or map to its parent directory.

    1. Right-click the Novell Client icon (the red N icon in the notification area), then select Novell Map Network Drive.

    2. Specify the network path to the directory. For example: 192.168.1.1/users.

    3. Specify the username of the Administrator user or equivalent user, then click Map.

    4. When prompted, enter the user’s password.

  2. In a file browser, locate and right-click the directory you want to manage, then click Properties > Novell Info (or NetWare Info on older clients).

    Sample NetWare Info Dialog for the Novell Client
  3. In the Space Restriction field, click Change to open the Space Restriction dialog box.

    The Novell Client Space Restriction Dialog Box
  4. Do one of the following to configure the directory quota:

    • Space Restriction: Specify the directory quota in KB. The value must be a multiple of 4.

    • No Space Restriction: Select No Space Restriction to set the directory quota to Unlimited.

    • Complete Space Restriction: Select Complete Space Restriction to set the directory quota to 0 KB. If the directory already contains files and subdirectories, the directory cannot grow beyond the current space consumed.

  5. Click OK to accept the directory quota.

22.3.3 Removing a Directory Quota

  1. In iManager, select Files and Folders > Properties.

  2. Click the Search icon, then browse to locate and select the folder you want to manage on an NSS volume.

  3. On the Information tab, deselect Restrict Size to disable space restrictions for the selected folder.

  4. Click Apply or OK to apply the changes.

22.3.4 Removing All Directory Quotas for an NSS Volume

To delete the directory quotas for all directories on an NSS volume without dealing individually with each directory, you can simply disable the Directory Quotas attribute for the NSS volume.

  1. In iManager, click Storage > Volumes.

    For instructions, see Section 9.1.5, Accessing Roles and Tasks in iManager.

  2. Select a server to manage.

    For instructions, see Section 9.1.6, Selecting a Server to Manage.

    A list of volumes appears in the Volumes list.

  3. In the Volumes list, select a volume that you want manage.

  4. Click Properties.

    The Properties page has three tabs: Attributes, Statistics, and Quota Usage. It opens to the Attributes tab.

  5. On the Attributes tab, deselect the Directory Quotas check box, then click Apply.

  6. Restart NCP2NSS by entering the following at a terminal prompt:

    /etc/init.d/ncp2nss restart