12.2 NCPCON Quotas Command

NCPCON supports the ncpcon quotas command for Novell Dynamic Storage Technology shadow volume pairs on OES 2015 and later.

Syntax

Log in to the server as the root user and launch a terminal console. You can run NCPCON console commands without entering the console by prefacing the command with ncpcon. You can also use the ncpcon quotas command from within cron jobs to automate the synchronization of quotas on the primary volume to the secondary volume.

ncpcon quotas help
ncpcon quotas view <nss_volume_name> <d|u> [c]
ncpcon quotas sync <ALL|MISSING|PERCENT> <nss_volume_name> [percent_value] <d|u> [q]

Command Options

quotas help

Display help for the quotas command at the command prompt.

quotas view

Show the assigned NSS directory quotas or user quotas for a specified NSS volume that is used in a DST volume pair.

ncpcon quotas view <nss_volume_name> <d|u> [c]

Replace nss_volume_name with the name (such as VOL1) of the primary volume or the secondary volume.

Specify either directory (d) or user (u) after the volume name to indicate the type of quotas to display. You can use the combined (c) option to display the specified type of quotas for both volumes.

OPTIONS

c

(Optional) Shows a combined view for the specified type of quotas on the primary volume and secondary volume of a DST shadow volume pair.

d

Applies the operation to NSS directory quotas.

u

Applies the operation to NSS user quotas.

EXAMPLES

ncpcon quotas view VOL_D u

Show the user quotas for NSS volume VOL_D. VOL_D can be the primary volume or secondary volume in a DST shadow volume pair.

ncpcon quotas view VOL1 d c

Show a combined view of the directory quotas on the primary volume and secondary volume of a specified DST shadow volume.

quotas sync

Synchronize the NSS directory quotas or user quotas from the primary volume to the secondary volume of a DST shadow volume pair.

ncpcon quotas sync <ALL|MISSING|PERCENT> <nss_volume_name> [percent_value] <d|u> [q]

Replace nss_volume_name with the name (such as VOL1) of the primary volume. You can specify to use the same settings, or specify a percentage to set smaller or larger quotas on the secondary volume. You can duplicate all settings, or duplicate settings only where they do not exist.

Specify either directory (d) or user (u) after the volume name to indicate the type of quotas to synchronize.

OPERATIONS

ALL

For all of the directory quotas or user quotas (whichever type is specified) that are currently set on the primary volume, duplicate the quotas settings on the secondary volume.

MISSING

For each of the directory quotas or user quotas (whichever type is specified) that are currently set on the primary volume, if a quota is not set on the secondary volume, duplicate the quota setting on the secondary volume. This option does not overwrite existing quotas on the secondary volume.

PERCENT

For each of the directory quotas or user quotas (whichever type is specified) that are currently set on the primary volume, set the quotas settings on the secondary volume as a specified percentage of the quota that exists on the primary volume. The percentage value must also be specified after the volume name.

A percent value of 100 is a one-to-one quota assignment. A percent value of 50 assigns a quota that is one-half the size of the quota set on the primary volume. A percent value of 200 assigns a quota that is twice the size of the quota set on the primary volume.

OPTIONS

d

Applies the operation to all active NSS directory quotas. No information is synchronized for directories where no quota is set.

u

Applies the operation to NSS user quotas.

percent_value

Required if the PERCENT operation is used. Specifies the value to use when calculating the quota for the secondary volume based on a percentage of the primary volume’s quota.

q

(Optional) Indicates quiet mode. No output appears in the execution window.

EXAMPLES

ncpcon quotas sync ALL VOL_D u

For all of the NSS user quotas that are currently set on the primary volume VOL_D, duplicate the quotas setting on the secondary volume of a DST shadow volume pair.

ncpcon quotas sync PERCENT VOL1 50 d

For each of the NSS directory quotas that are currently set on the primary volume VOL1, set a quota that is one-half that size on the secondary volume of a DST shadow volume pair.

ncpcon quotas sync MISSING VOL1 u

For each of the NSS user quotas that are currently set on the primary volume VOL1, if a quota does not exist on the secondary volume, duplicate the quota setting on the secondary volume of a DST shadow volume pair.

NOTE:For AD users, use novcifs command to synchronize the user quotas from the primary volume to the secondary volume of a DST shadow volume pair.

--user-quota-sync <primary_volume>

For more information on command operations and examples, see Synchronizing Users Quotas in the OES 2018 SP1: Novell CIFS for Linux Administration Guide.