此内容没有您所选择的语言版本。
5.8.3. Sorting LVM Reports
Normally the entire output of the
lvs
, vgs
, or pvs
command has to be generated and stored internally before it can be sorted and columns aligned correctly. You can specify the --unbuffered
argument to display unsorted output as soon as it is generated.
To specify an alternative ordered list of columns to sort on, use the
-O
argument of any of the reporting commands. It is not necessary to include these fields within the output itself.
The following example shows the output of the
pvs
command that displays the physical volume name, size, and free space.
The following example shows the same output, sorted by the free space field.
The following example shows that you do not need to display the field on which you are sorting.
To display a reverse sort, precede a field you specify after the
-O
argument with the -
character.