| 192 |
- |
1 |
#
|
|
|
2 |
# DO NOT EDIT THIS FILE!
|
|
|
3 |
#
|
|
|
4 |
# LVM configuration profile used by lvmdbusd daemon.
|
|
|
5 |
#
|
|
|
6 |
# This sets up LVM to produce output in the most suitable format for processing
|
|
|
7 |
# by lvmdbusd daemon which utilizes LVM shell to execute LVM commands.
|
|
|
8 |
#
|
|
|
9 |
# Do not edit this file in any way. This profile is distributed together with
|
|
|
10 |
# lvmdbusd and it contains configuration that is important for lvmdbusd to
|
|
|
11 |
# cooperate and interface with LVM correctly.
|
|
|
12 |
#
|
|
|
13 |
|
|
|
14 |
global {
|
|
|
15 |
# use bytes for expected and deterministic output
|
|
|
16 |
units=b
|
|
|
17 |
# no need for suffix if we have units set
|
|
|
18 |
suffix=0
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
report {
|
|
|
22 |
compact_output=0
|
|
|
23 |
compact_output_cols=""
|
|
|
24 |
binary_values_as_numeric=0
|
|
|
25 |
# time in number of seconds since the Epoch
|
|
|
26 |
time_format="%s"
|
|
|
27 |
mark_hidden_devices=1
|
|
|
28 |
# lvmdbusd expects JSON output
|
|
|
29 |
output_format=json
|
|
|
30 |
# *_cols_full for lvm fullreport's fields which lvmdbusd relies on to update its state
|
|
|
31 |
vgs_cols_full="vg_name,vg_uuid,vg_fmt,vg_size,vg_free,vg_sysid,vg_extent_size,vg_extent_count,vg_free_count,vg_profile,max_lv,max_pv,pv_count,lv_count,snap_count,vg_seqno,vg_mda_count,vg_mda_free,vg_mda_size,vg_mda_used_count,vg_attr,vg_tags"
|
|
|
32 |
pvs_cols_full="pv_name,pv_uuid,pv_fmt,pv_size,pv_free,pv_used,dev_size,pv_mda_size,pv_mda_free,pv_ba_start,pv_ba_size,pe_start,pv_pe_count,pv_pe_alloc_count,pv_attr,pv_tags,vg_name,vg_uuid"
|
|
|
33 |
lvs_cols_full="lv_uuid,lv_name,lv_path,lv_size,vg_name,pool_lv_uuid,pool_lv,origin_uuid,origin,data_percent,lv_attr,lv_tags,vg_uuid,lv_active,data_lv,metadata_lv,lv_parent,lv_role,lv_layout"
|
|
|
34 |
pvsegs_cols_full="pvseg_start,pvseg_size,segtype,pv_uuid,lv_uuid,pv_name"
|
|
|
35 |
segs_cols_full="seg_pe_ranges,segtype,lv_uuid"
|
|
|
36 |
vgs_sort_full="vg_name"
|
|
|
37 |
pvs_sort_full="pv_name"
|
|
|
38 |
lvs_sort_full="vg_name,lv_name"
|
|
|
39 |
pvsegs_sort_full="pv_uuid,pvseg_start"
|
|
|
40 |
segs_sort_full="lv_uuid,seg_start"
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
log {
|
|
|
44 |
# lvmdbusd relies on command log report to inspect LVM command's execution status
|
|
|
45 |
report_command_log=1
|
|
|
46 |
# display only outermost LVM shell-related log that lvmdbusd inspects first after LVM command execution (it calls 'lastlog' for more detailed log afterwards if needed)
|
|
|
47 |
command_log_selection="log_context=shell"
|
|
|
48 |
command_log_cols="log_seq_num,log_type,log_context,log_object_type,log_object_name,log_object_id,log_object_group,log_object_group_id,log_message,log_errno,log_ret_code"
|
|
|
49 |
command_log_sort="log_seq_num"
|
|
|
50 |
}
|