Installation manual

Grouping Files into Filesets
Grouping Files by Size
13-12 CLI Storage-Management Guide
Selecting Files Based on their Sizes
The next step in configuring a filesize fileset is to determine a size range for its files.
You can select files larger-than (or equal-to) a certain size, smaller-than a certain size,
or between two sizes. From gbl-ns-vol-fs-filesize mode, use the
select-files command
to identify the size for the files:
select-files {larger-than-or-equal-to | smaller-than} size[k|M|G|T]
where
larger-than-or-equal-to | smaller-than is a required choice,
size is any integer, and
k|M|G|T (optional) sets the size units: kilobytes, Megabytes, Gigabytes, or
Terabytes. The default is bytes if you omit this. All of these values are
2-based, so a kilobyte is 1024 bytes, a megabytes is 1024*1024, and so on.
There can be no spaces between the size and the unit letter; 20M is correct,
but 20 M is invalid.
You can run this command twice in the same fileset to choose files between two sizes.
For example, you can
select-files larger-than-or-equal-to 2M and select-files
smaller-than 10M
to get a set of files between 2 and 10 Megabytes. You cannot run a
select-files command that contradicts a previous one; if you already ran select-files
larger-than-or-equal-to 2M
, you cannot run select-files smaller-than 1k.
For example, these commands create a fileset with a range of sizes:
bstnA6k(gbl)# policy-filesize-fileset veryLarge
bstnA6k(gbl-ns-vol-fs-filesize[veryLarge])# select-files larger-than-or-equal-to 5G
bstnA6k(gbl-ns-vol-fs-filesize[veryLarge])# select-files smaller-than 20G
bstnA6k(gbl-ns-vol-fs-filesize[veryLarge])# ...
Removing a File Selection
Use the no select-files command to remove a file selection:
no select-files {larger-than-or-equal-to | smaller-than}
where larger-than-or-equal-to | smaller-than chooses the selection to remove.
For example, this removes the “smaller-than” selection from the above filesize fileset,
making it open-ended: