23.7 Compression Commands

23.7.1 Server-Level Compression Commands

Use the following commands to modify server-level compression parameters from the command line in NetWare server console for NSS on NetWare, or in nsscon for NSS on Linux. For details about each parameter, see Section 17.2.1, Understanding Server-Level Compression Parameters.

Command

Values

nss /DaysUntouchedBeforeCompression= value

Range: 0 to 100000 (in days)

Default: 14

nss /CompressionDailyCheckStartingHour= value

Range: 0 to 23

Hours are specified by a 24-hour clock: (0 = midnight; 23 = 11 p.m.).

Default Value: 0

nss /CompressionDailyCheckStopHour= value

Supported Values: 0 to 23

Hours are specified by a 24-hour clock: (0 = midnight; 23 = 11 p.m.).

Default Value: 6

nss /EnableFileCompression=<On | Off>

Supported Values: On (default) or Off

Default Value: On

nss /MinimumCompressionPercentageGain= value

Supported Values: 0 to 50

Default Value: 20

nss /MaximumConcurrentCompressions= value

Supported Values: 1 to 8

Default Value: 2

nss /ConvertCompressedToUncompressedOption= value

Supported Values: 0, 1, or 2

0 = Always leave the file compressed

1 = Leave the file compressed until second access if it is read only once during the time specified by the Days Untouched Before Compression parameter

2 = Always leave the file decompressed

Default Value: 1

nss /DecompressPercentDiskSpaceFreeToAllowCommit= value

Supported Values: 0 to 75

Default Value: 10

nss /DecompressFreeSpaceWarningInterval= value

Supported Values: 0 seconds to 29 days 15 hours 50 minutes 3.8 seconds

Setting the interval to 0 turns off the alert.

Default Value: 31 minutes 18.5 seconds

nss /DeletedFilesCompressionOption= value

Supported Values: 0, 1, or 2

0 = Do not compress deleted files

1 = Compress deleted files the next day

2 = Compress deleted files immediately

Default Value: 1

23.7.2 Volume-Level Compression Parameters

NSS offers the following commands for configuring and monitoring compression.

Command

Description

CompScreen 

Displays the NSS volume compression statistics on the compression screen.

nss /Compression=volume 

Enables the Compression attribute for the specified volume. After you enable the Compression attribute, the setting persists for the life of the volume. You cannot disable compression, but you can set parameters to effectively turn it off. For information, see Section 17.0, Managing Compression on NSS Volumes.

nss /Compression=all

Enables the Compression attribute for all volumes on the server.

StopNormalCompression

Stops all queued compression for files, based on the compression triggered by a file open or close.

nss /BGCompression

Allows compression to occur in the background at any time, instead of only within specified hours.

nss /NoBGCompression

Stops background compression and clears any queued background compression requests. Allow compression to occur only within the specified hours.