Chapter 4. LVM Administration with CLI Commands
46
LV VG Attr LSize Origin Snap% Move Log Copy%
lvol0 new_vg owi-a- 52.00M
newvgsnap1 new_vg swi-a- 8.00M lvol0 0.20
Using the
-v
argauament with the
lvs
command adds the following fields to the default display:
seg_count
,
lv_major
,
lv_minor
,
lv_kernel_major
,
lv_kernel_minor
,
lv_uuid
.
#
lvs -v
Finding all logical volumes
LV VG #Seg Attr LSize Maj Min KMaj KMin Origin Snap%
Move Copy% Log LV UUID
lvol0 new_vg 1 owi-a- 52.00M -1 -1 253 3
LBy1Tz-sr23-OjsI-LT03-nHLC-y8XW-EhCl78
newvgsnap1 new_vg 1 swi-a- 8.00M -1 -1 253 5 lvol0 0.20
1ye1OU-1cIu-o79k-20h2-ZGF0-qCJm-CfbsIx
You can use the
--segments
argument of the
lvs
command to display information with default
columns that emphasize the segment information. When you use the
segments
argument, the
seg
prefix is optional. The
lvs --segments
command displays the following fields by default:
lv_name
,
vg_name
,
lv_attr
,
stripes
,
segtype
,
seg_size
. The default display is sorted by
vg_name
,
lv_name
within the volume group, and
seg_start
within the logical volume. If the logical volumes
were fragmented, the output from this command would show that.
#
lvs --segments
LV VG Attr #Str Type SSize
LogVol00 VolGroup00 -wi-ao 1 linear 36.62G
LogVol01 VolGroup00 -wi-ao 1 linear 512.00M
lv vg -wi-a- 1 linear 104.00M
lv vg -wi-a- 1 linear 104.00M
lv vg -wi-a- 1 linear 104.00M
lv vg -wi-a- 1 linear 88.00M
Using the
-v
argument with the
lvs --segments
command adds the following fields to the default
display:
seg_start
,
stripesize
,
chunksize
.
#
lvs -v --segments
Finding all logical volumes
LV VG Attr Start SSize #Str Type Stripe Chunk
lvol0 new_vg owi-a- 0 52.00M 1 linear 0 0
newvgsnap1 new_vg swi-a- 0 8.00M 1 linear 0 8.00K
The following example shows the default output of the
lvs
command on a system with one logical
volume configured, followed by the default output of the
lvs
command with the
segments
argument
specified.
#
lvs
Содержание CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Страница 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Страница 6: ...vi ...
Страница 12: ...xii ...
Страница 24: ...12 ...
Страница 62: ...50 ...
Страница 72: ...60 ...
Страница 82: ...70 ...
Страница 84: ...72 ...
Страница 86: ...74 ...
Страница 96: ...84 ...
Страница 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Страница 104: ...92 ...
Страница 108: ...96 ...