NSS offers the following commands for configuring and monitoring compression. Issue the commands at the NSS Console (nsscon) as the root user.
Table 22-5 Compression Management Commands
Command |
Description |
---|---|
nss /Compression=volume_name |
Enables the Compression attribute for the specified volume. |
nss /Compression=all |
Enables the Compression attribute for all volumes on the server. |
nss /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 all the enqueued background compression request. Allows compression to occur only within the specified hours. |
nss /CompressionDailyCheckStartingHour |
Starts scanning each enabled volume for files that need to be compressed at the specified hour (Range = 0 - 23, where 0=midnight, 23=11p.m). |
nss /CompressionDailyCheckStopHour |
Ends scanning each enabled volume for files that need to be compressed at the specified hour (Range = 0-23, where 0=midnight, 23=11p.m). NOTE:If CompressionDailyCheckStopHour is equal to CompressionDailyStartingHour then the start checking every day at CompressionDailyStartingHour and run as long as necessary to finish all files meeting the compressible criteria. [Value=6, Range=0-23]. |
nss /DaysUntouchedBeforeCompression |
The number of days to wait after a file was last accessed before automatically compressing it. [Value=14, Range=0-100000]. |
nss /DeletedFilesCompressionOption |
Options to compress the deleted files. 0 = do not compress the files, 1= compress next day, 2=compress immediately. [Value=1, Range=0-2]. |
nss /(No)EnableFileCompression |
Allows file compression to occur on compression enabled volumes. If disabled, the compression does not happen. Immediate compress requests are queued until compression is allowed. [Value=ON]. |
nss /MaximumConcurrentCompressions |
Maximum number of simultaneous compressions allowed by the system (simultaneous compressions can only occur if there are multiple volumes). [Value=2, Range=1-8]. |
nss /MinimumCompressionPercentageGain |
Minimum percentage a file must compress in order to remain compressed. [Value=20 Range=0-50] |