mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
ef96186add
The devices file /etc/lvm/devices/system.devices is a list of devices that lvm can use. This is the default system devices file, which is specified in lvm.conf devices/devicesfile. The command option --devicesfile <filename> allows lvm to be used with a different set of devices. This allows different applications to use lvm on different sets of devices, e.g. system devices do not need to be exposed to an application using lvm on its own devices, and application devices do not need to be exposed to the system. In most cases (with limited exceptions), lvm will not read or use a device not listed in the devices file. When the devices file is used, the regex filter is not used, and the filter settings in lvm.conf are ignored. filter-deviceid is used when the devices file is enabled, and rejects any device that does not match an entry in the devices file. Set use_devicesfile=0 in lvm.conf or set --devicesfile "" on the command line to disable the use of a devices file. When disabled, lvm will see and use any device on the system that passes the regex filter (and other standard filters.) A device ID, e.g. wwid or serial number from sysfs, is a unique ID that identifies a device. The device ID is generally independent of the device content, and lvm can get the device ID without reading the device. The device ID is used in the devices file as the primary method of identifying device entries, and is also included in VG metadata for PVs. Each device_id has a device_id_type which indicates where the device_id comes from, e.g. "sys_wwid" means the device_id comes from the sysfs wwid file. Others are sys_serial, mpath_uuid, loop_file, md_uuid, devname. (devname is the device path, which is a fallback when no other proper device_id_type is available.) filter-deviceid permits lvm to use only devices on the system that have a device_id matching a devices file entry. Using the device_id, lvm can determine the set of devices to use without reading any devices, so the devices file will constrain lvm in two ways: 1. it limits the devices that lvm will read. 2. it limits the devices that lvm will use. In some uncommon cases, e.g. when devices have no unique ID and device_id has to fall back to using the devname, lvm may need to read all devices on the system to determine which ones correspond to the devices file entries. In this case, the devices file does not limit the devices that lvm reads, but it does limit the devices that lvm uses. pvcreate/vgcreate/vgextend are not constrained by the devices file, and will look outside it to find the new PV. They assign the new PV a device_id and add it to the devices file. It is also possible to explicitly add new PVs to the devices file before using them in pvcreate/etc, in which case these commands would not need to look outside the devices file for the new device. vgimportdevices VG looks at all devices on the system to find an existing VG and add its devices to the devices file. The command is not limited by an existing devices file. The command will also add device_ids to the VG metadata if the VG does not yet include device_ids. vgimportdevices -a imports devices for all accessible VGs. Since vgimportdevices does not limit itself to devices in an existing devices file, the lvm.conf regex filter applies. Adding --foreign will import devices for foreign VGs, but device_ids are not added to foreign VGs. Incomplete VGs are not imported. The lvmdevices command manages the devices file. The primary purpose is to edit the devices file, but it will read PV headers to find/check PVIDs. (It does not read, process or modify VG metadata.) lvmdevices . Displays devices file entries. lvmdevices --check . Checks devices file entries. lvmdevices --update . Updates devices file entries. lvmdevices --adddev <devname> . Adds devices_file entry (reads pv header). lvmdevices --deldev <devname> . Removes devices file entry. lvmdevices --addpvid <pvid> . Reads pv header of all devices to find <pvid>, and if found adds devices file entry. lvmdevices --delpvid <pvid> . Removes devices file entry. The vgimportclone command has a new option --importdevices that does the equivalent of vgimportdevices with the cloned devices that are being imported. The devices are "uncloned" (new vgname and pvids) while at the same time adding the devices to the devices file. This allows cloned PVs to be imported without duplicate PVs ever appearing on the system. The command option --devices <devnames> allows a specific list of devices to be exposed to the lvm command, overriding the devices file.
332 lines
13 KiB
C
332 lines
13 KiB
C
/*
|
|
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
|
* Copyright (C) 2004-2014 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* This file is part of LVM2.
|
|
*
|
|
* This copyrighted material is made available to anyone wishing to use,
|
|
* modify, copy, or redistribute it subject to the terms and conditions
|
|
* of the GNU Lesser General Public License v.2.1.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _LVM_DEFAULTS_H
|
|
#define _LVM_DEFAULTS_H
|
|
|
|
#include "device_mapper/vdo/vdo_limits.h"
|
|
|
|
|
|
/*
|
|
* By default the first PE is placed at 1 MiB.
|
|
*
|
|
* If default_data_alignment is 2, then the first PE
|
|
* is placed at 2 * 1 MiB.
|
|
*
|
|
* If default_data_alignment is 3, then the first PE
|
|
* is placed at 3 * 1 MiB.
|
|
*/
|
|
#define FIRST_PE_AT_ONE_MB_IN_SECTORS 2048 /* 1 MiB in 512 byte sectors */
|
|
#define FIRST_PE_AT_ONE_MB_IN_MB 1
|
|
|
|
#define DEFAULT_ARCHIVE_ENABLED 1
|
|
#define DEFAULT_BACKUP_ENABLED 1
|
|
|
|
#define DEFAULT_CACHE_FILE_PREFIX ""
|
|
|
|
#define DEFAULT_ARCHIVE_DAYS 30
|
|
#define DEFAULT_ARCHIVE_NUMBER 10
|
|
|
|
#define DEFAULT_DEV_DIR "/dev"
|
|
#define DEFAULT_PROC_DIR "/proc"
|
|
#define DEFAULT_SYSTEM_ID_SOURCE "none"
|
|
#define DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV 1
|
|
#define DEFAULT_EXTERNAL_DEVICE_INFO_SOURCE "none"
|
|
#define DEFAULT_SYSFS_SCAN 1
|
|
#define DEFAULT_MD_COMPONENT_DETECTION 1
|
|
#define DEFAULT_FW_RAID_COMPONENT_DETECTION 0
|
|
#define DEFAULT_MD_CHUNK_ALIGNMENT 1
|
|
#define DEFAULT_IGNORE_LVM_MIRRORS 1
|
|
#define DEFAULT_MULTIPATH_COMPONENT_DETECTION 1
|
|
#define DEFAULT_IGNORE_SUSPENDED_DEVICES 0
|
|
#define DEFAULT_REQUIRE_RESTOREFILE_WITH_UUID 1
|
|
#define DEFAULT_DATA_ALIGNMENT_OFFSET_DETECTION 1
|
|
#define DEFAULT_DATA_ALIGNMENT_DETECTION 1
|
|
#define DEFAULT_ISSUE_DISCARDS 0
|
|
#define DEFAULT_PV_MIN_SIZE_KB 2048
|
|
#define DEFAULT_ALLOW_CHANGES_WITH_DUPLICATE_PVS 0
|
|
|
|
#define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
|
|
#define DEFAULT_ERROR_WHEN_FULL 0
|
|
#define DEFAULT_FALLBACK_TO_LOCAL_LOCKING 1
|
|
#define DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING 1
|
|
#define DEFAULT_WAIT_FOR_LOCKS 1
|
|
#define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
|
|
#define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
|
|
#define DEFAULT_PRIORITISE_WRITE_LOCKS 1
|
|
#define DEFAULT_USE_MLOCKALL 0
|
|
#define DEFAULT_METADATA_READ_ONLY 0
|
|
#define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
|
|
#define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
|
|
#define DEFAULT_USE_AIO 1
|
|
|
|
#define DEFAULT_SANLOCK_LV_EXTEND_MB 256
|
|
|
|
#define DEFAULT_MIRRORLOG MIRROR_LOG_DISK
|
|
#define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
|
|
#define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"
|
|
#define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */
|
|
/* Limited by kernel failed devices bitfield in superblock (raid4/5/6 MD max 253) */
|
|
/*
|
|
* FIXME: Increase these to 64 and further to the MD maximum
|
|
* once the SubLVs split and name shift got enhanced
|
|
*/
|
|
#define DEFAULT_RAID1_MAX_IMAGES 64
|
|
#define DEFAULT_RAID_MAX_IMAGES 64
|
|
#define DEFAULT_ALLOCATION_STRIPE_ALL_DEVICES 0 /* Don't stripe across all devices if not -i/--stripes given */
|
|
|
|
#define DEFAULT_RAID_FAULT_POLICY "warn"
|
|
|
|
#define DEFAULT_DMEVENTD_RAID_LIB "libdevmapper-event-lvm2raid.so"
|
|
#define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"
|
|
#define DEFAULT_DMEVENTD_SNAPSHOT_LIB "libdevmapper-event-lvm2snapshot.so"
|
|
#define DEFAULT_DMEVENTD_THIN_LIB "libdevmapper-event-lvm2thin.so"
|
|
#define DEFAULT_DMEVENTD_THIN_COMMAND "lvm lvextend --use-policies"
|
|
#define DEFAULT_DMEVENTD_VDO_LIB "libdevmapper-event-lvm2vdo.so"
|
|
#define DEFAULT_DMEVENTD_VDO_COMMAND "lvm lvextend --use-policies"
|
|
#define DEFAULT_DMEVENTD_MONITOR 1
|
|
#define DEFAULT_BACKGROUND_POLLING 1
|
|
|
|
#ifndef DMEVENTD_PATH
|
|
# define DEFAULT_DMEVENTD_PATH ""
|
|
#else
|
|
# define DEFAULT_DMEVENTD_PATH DMEVENTD_PATH
|
|
#endif
|
|
|
|
#ifdef THIN_CHECK_NEEDS_CHECK
|
|
# define DEFAULT_THIN_CHECK_OPTION1 "-q"
|
|
# define DEFAULT_THIN_CHECK_OPTION2 "--clear-needs-check-flag"
|
|
# define DEFAULT_THIN_CHECK_OPTIONS_CONFIG "#S" DEFAULT_THIN_CHECK_OPTION1 "#S" DEFAULT_THIN_CHECK_OPTION2
|
|
#else
|
|
# define DEFAULT_THIN_CHECK_OPTION1 "-q"
|
|
# define DEFAULT_THIN_CHECK_OPTION2 ""
|
|
# define DEFAULT_THIN_CHECK_OPTIONS_CONFIG "#S" DEFAULT_THIN_CHECK_OPTION1
|
|
#endif
|
|
|
|
#define DEFAULT_THIN_REPAIR_OPTION1 ""
|
|
#define DEFAULT_THIN_REPAIR_OPTIONS_CONFIG "#S" DEFAULT_THIN_REPAIR_OPTION1
|
|
#define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
|
|
#define DEFAULT_THIN_POOL_CROP_METADATA 0
|
|
#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE_V1_KB (UINT64_C(255) * ((1 << 14) - 64) * 4) /* KB */ /* 0x3f8040 blocks */
|
|
#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (DM_THIN_MAX_METADATA_SIZE / 2) /* KB */
|
|
#define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048 /* KB */
|
|
#define DEFAULT_THIN_POOL_OPTIMAL_METADATA_SIZE (128 * 1024) /* KB */
|
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY "generic"
|
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE 64 /* KB */
|
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE_PERFORMANCE 512 /* KB */
|
|
/* Chunk size big enough it no longer needs jump by power-of-2 */
|
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE_ALIGNED 1024 /* KB */
|
|
#define DEFAULT_THIN_POOL_DISCARDS "passdown"
|
|
#define DEFAULT_THIN_POOL_ZERO 1
|
|
#define DEFAULT_POOL_METADATA_SPARE 1 /* thin + cache */
|
|
#define DEFAULT_ZERO_METADATA 1 /* thin + cache */
|
|
|
|
#ifdef CACHE_CHECK_NEEDS_CHECK
|
|
# define DEFAULT_CACHE_CHECK_OPTION1 "-q"
|
|
# define DEFAULT_CACHE_CHECK_OPTION2 "--clear-needs-check-flag"
|
|
# define DEFAULT_CACHE_CHECK_OPTIONS_CONFIG "#S" DEFAULT_CACHE_CHECK_OPTION1 "#S" DEFAULT_CACHE_CHECK_OPTION2
|
|
#else
|
|
# define DEFAULT_CACHE_CHECK_OPTION1 "-q"
|
|
# define DEFAULT_CACHE_CHECK_OPTION2 ""
|
|
# define DEFAULT_CACHE_CHECK_OPTIONS_CONFIG "#S" DEFAULT_CACHE_CHECK_OPTION1
|
|
#endif
|
|
|
|
#define DEFAULT_CACHE_REPAIR_OPTION1 ""
|
|
#define DEFAULT_CACHE_REPAIR_OPTIONS_CONFIG "#S" DEFAULT_CACHE_REPAIR_OPTION1
|
|
#define DEFAULT_CACHE_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
|
|
#define DEFAULT_CACHE_POOL_CHUNK_SIZE 64 /* KB */
|
|
#define DEFAULT_CACHE_POOL_MAX_CHUNKS 1000000
|
|
#define DEFAULT_CACHE_POOL_MIN_METADATA_SIZE 2048 /* KB */
|
|
#define DEFAULT_CACHE_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
|
|
#define DEFAULT_CACHE_POLICY "mq"
|
|
#define DEFAULT_CACHE_METADATA_FORMAT CACHE_METADATA_FORMAT_UNSELECTED /* Autodetect */
|
|
#define DEFAULT_CACHE_MODE "writethrough"
|
|
|
|
|
|
/* VDO defaults */
|
|
#define DEFAULT_VDO_USE_COMPRESSION (true)
|
|
#define DEFAULT_VDO_USE_DEDUPLICATION (true)
|
|
#define DEFAULT_VDO_USE_METADATA_HINTS (true)
|
|
#define DEFAULT_VDO_MINIMUM_IO_SIZE (4096)
|
|
#define DEFAULT_VDO_BLOCK_MAP_CACHE_SIZE_MB (DM_VDO_BLOCK_MAP_CACHE_SIZE_MINIMUM_MB)
|
|
#define DEFAULT_VDO_BLOCK_MAP_ERA_LENGTH (DM_VDO_BLOCK_MAP_ERA_LENGTH_MAXIMUM)
|
|
#define DEFAULT_VDO_USE_SPARSE_INDEX (false)
|
|
#define DEFAULT_VDO_CHECK_POINT_FREQUENCY (0)
|
|
#define DEFAULT_VDO_INDEX_MEMORY_SIZE_MB (DM_VDO_INDEX_MEMORY_SIZE_MINIMUM_MB)
|
|
#define DEFAULT_VDO_SLAB_SIZE_MB (2 * 1024) // 2GiB ... 19 slabbits
|
|
#define DEFAULT_VDO_ACK_THREADS (1)
|
|
#define DEFAULT_VDO_BIO_THREADS (4)
|
|
#define DEFAULT_VDO_BIO_ROTATION (64)
|
|
#define DEFAULT_VDO_CPU_THREADS (2)
|
|
#define DEFAULT_VDO_HASH_ZONE_THREADS (1)
|
|
#define DEFAULT_VDO_LOGICAL_THREADS (1)
|
|
#define DEFAULT_VDO_PHYSICAL_THREADS (1)
|
|
#define DEFAULT_VDO_WRITE_POLICY "auto"
|
|
#define DEFAULT_VDO_MAX_DISCARD (DM_VDO_MAX_DISCARD_MINIMUM)
|
|
|
|
#define DEFAULT_VDO_FORMAT_OPTIONS_CONFIG "#S" ""
|
|
/*
|
|
* VDO pool will reverve some sectors in the front and the back of pool device to avoid
|
|
* seeing same device twice in the system.
|
|
*/
|
|
#define DEFAULT_VDO_POOL_HEADER_SIZE (1024) // 512KiB
|
|
|
|
|
|
|
|
#define DEFAULT_FSADM_PATH FSADM_PATH
|
|
|
|
#define DEFAULT_UMASK 0077
|
|
|
|
#define DEFAULT_FORMAT "lvm2"
|
|
|
|
#define DEFAULT_STRIPESIZE 64 /* KB */
|
|
#define DEFAULT_RECORD_LVS_HISTORY 0
|
|
#define DEFAULT_LVS_HISTORY_RETENTION_TIME 0
|
|
#define DEFAULT_PVMETADATAIGNORE 0
|
|
#define DEFAULT_PVMETADATACOPIES 1
|
|
#define DEFAULT_VGMETADATACOPIES 0
|
|
#define DEFAULT_LABELSECTOR UINT64_C(1)
|
|
#define DEFAULT_READ_AHEAD "auto"
|
|
#define DEFAULT_UDEV_RULES 1
|
|
#define DEFAULT_UDEV_SYNC 1
|
|
#define DEFAULT_NOTIFY_DBUS 1
|
|
#define DEFAULT_VERIFY_UDEV_OPERATIONS 0
|
|
#define DEFAULT_RETRY_DEACTIVATION 1
|
|
#define DEFAULT_ACTIVATION_CHECKS 0
|
|
#define DEFAULT_EXTENT_SIZE 4096 /* In KB */
|
|
#define DEFAULT_MAX_PV 0
|
|
#define DEFAULT_MAX_LV 0
|
|
#define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
|
|
#define DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS 0
|
|
#define DEFAULT_MAXIMISE_CLING 1
|
|
#define DEFAULT_CLUSTERED 0
|
|
|
|
#define DEFAULT_MSG_PREFIX " "
|
|
#define DEFAULT_CMD_NAME 0
|
|
#define DEFAULT_OVERWRITE 0
|
|
|
|
#ifndef DEFAULT_LOG_FACILITY
|
|
# define DEFAULT_LOG_FACILITY LOG_USER
|
|
#endif
|
|
|
|
#define DEFAULT_COMMAND_LOG_REPORT 0
|
|
#define DEFAULT_SYSLOG 1
|
|
#define DEFAULT_VERBOSE 0
|
|
#define DEFAULT_SILENT 0
|
|
#define DEFAULT_LOGLEVEL 0
|
|
#define DEFAULT_INDENT 0
|
|
#define DEFAULT_ABORT_ON_INTERNAL_ERRORS 0
|
|
#define DEFAULT_UNITS "r"
|
|
#define DEFAULT_SUFFIX 1
|
|
#define DEFAULT_HOSTTAGS 0
|
|
|
|
#ifndef DEFAULT_SI_UNIT_CONSISTENCY
|
|
# define DEFAULT_SI_UNIT_CONSISTENCY 1
|
|
#endif
|
|
|
|
#ifdef DEVMAPPER_SUPPORT
|
|
# define DEFAULT_ACTIVATION 1
|
|
#else
|
|
# define DEFAULT_ACTIVATION 0
|
|
#endif
|
|
|
|
#define DEFAULT_RESERVED_MEMORY 8192
|
|
#define DEFAULT_RESERVED_STACK 64 /* KB */
|
|
#define DEFAULT_PROCESS_PRIORITY -18
|
|
|
|
#define DEFAULT_AUTO_SET_ACTIVATION_SKIP 1
|
|
#define DEFAULT_ACTIVATION_MODE "degraded"
|
|
#define DEFAULT_USE_LINEAR_TARGET 1
|
|
#define DEFAULT_STRIPE_FILLER "error"
|
|
#define DEFAULT_RAID_REGION_SIZE 2048 /* KB */
|
|
#define DEFAULT_INTERVAL 15
|
|
|
|
#define DEFAULT_MAX_HISTORY 100
|
|
|
|
#define DEFAULT_REP_COMPACT_OUTPUT 0
|
|
#define DEFAULT_REP_ALIGNED 1
|
|
#define DEFAULT_REP_BUFFERED 1
|
|
#define DEFAULT_REP_COLUMNS_AS_ROWS 0
|
|
#define DEFAULT_REP_HEADINGS 1
|
|
#define DEFAULT_REP_PREFIXES 0
|
|
#define DEFAULT_REP_QUOTED 1
|
|
#define DEFAULT_REP_SEPARATOR " "
|
|
#define DEFAULT_REP_LIST_ITEM_SEPARATOR ","
|
|
#define DEFAULT_TIME_FORMAT "%Y-%m-%d %T %z"
|
|
|
|
#define DEFAULT_REP_OUTPUT_FORMAT "basic"
|
|
#define DEFAULT_COMPACT_OUTPUT_COLS ""
|
|
|
|
#define DEFAULT_COMMAND_LOG_SELECTION "!(log_type=status && message=success)"
|
|
|
|
#define DEFAULT_LVS_COLS "lv_name,vg_name,lv_attr,lv_size,pool_lv,origin,data_percent,metadata_percent,move_pv,mirror_log,copy_percent,convert_lv"
|
|
#define DEFAULT_VGS_COLS "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
|
|
#define DEFAULT_PVS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
|
|
#define DEFAULT_SEGS_COLS "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
|
|
#define DEFAULT_PVSEGS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
|
|
#define DEFAULT_DEVTYPES_COLS "devtype_name,devtype_max_partitions,devtype_description"
|
|
#define DEFAULT_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"
|
|
|
|
#define DEFAULT_LVS_COLS_VERB "lv_name,vg_name,seg_count,lv_attr,lv_size,lv_major,lv_minor,lv_kernel_major,lv_kernel_minor,pool_lv,origin,data_percent,metadata_percent,move_pv,copy_percent,mirror_log,convert_lv,lv_uuid,lv_profile"
|
|
#define DEFAULT_VGS_COLS_VERB "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
|
|
#define DEFAULT_PVS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
|
|
#define DEFAULT_SEGS_COLS_VERB "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
|
|
#define DEFAULT_PVSEGS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size,lv_name,seg_start_pe,segtype,seg_pe_ranges"
|
|
#define DEFAULT_DEVTYPES_COLS_VERB "devtype_name,devtype_max_partitions,devtype_description"
|
|
|
|
#define DEFAULT_VGS_COLS_FULL "vg_all"
|
|
#define DEFAULT_PVS_COLS_FULL "pv_all"
|
|
#define DEFAULT_LVS_COLS_FULL "lv_all"
|
|
#define DEFAULT_PVSEGS_COLS_FULL "pvseg_all,pv_uuid,lv_uuid"
|
|
#define DEFAULT_SEGS_COLS_FULL "seg_all,lv_uuid"
|
|
|
|
#define DEFAULT_LVS_SORT "vg_name,lv_name"
|
|
#define DEFAULT_VGS_SORT "vg_name"
|
|
#define DEFAULT_PVS_SORT "pv_name"
|
|
#define DEFAULT_SEGS_SORT "vg_name,lv_name,seg_start"
|
|
#define DEFAULT_PVSEGS_SORT "pv_name,pvseg_start"
|
|
#define DEFAULT_DEVTYPES_SORT "devtype_name"
|
|
#define DEFAULT_COMMAND_LOG_SORT "log_seq_num"
|
|
|
|
#define DEFAULT_VGS_SORT_FULL "vg_name"
|
|
#define DEFAULT_PVS_SORT_FULL "pv_name"
|
|
#define DEFAULT_LVS_SORT_FULL "vg_name,lv_name"
|
|
#define DEFAULT_PVSEGS_SORT_FULL "pv_uuid,pvseg_start"
|
|
#define DEFAULT_SEGS_SORT_FULL "lv_uuid,seg_start"
|
|
|
|
#define DEFAULT_MIRROR_DEVICE_FAULT_POLICY "remove"
|
|
#define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
|
|
#define DEFAULT_SNAPSHOT_AUTOEXTEND_THRESHOLD 100
|
|
#define DEFAULT_SNAPSHOT_AUTOEXTEND_PERCENT 20
|
|
#define DEFAULT_THIN_POOL_AUTOEXTEND_THRESHOLD 100
|
|
#define DEFAULT_THIN_POOL_AUTOEXTEND_PERCENT 20
|
|
#define DEFAULT_VDO_POOL_AUTOEXTEND_THRESHOLD 100
|
|
#define DEFAULT_VDO_POOL_AUTOEXTEND_PERCENT 20
|
|
|
|
#define DEFAULT_SCAN_LVS 0
|
|
|
|
#define DEFAULT_HINTS "all"
|
|
|
|
#define DEFAULT_IO_MEMORY_SIZE_KB 8192
|
|
|
|
#define DEFAULT_MD_COMPONENT_CHECKS "auto"
|
|
|
|
#define DEFAULT_USE_DEVICES_FILE 0
|
|
#define DEFAULT_DEVICES_FILE "system.devices"
|
|
|
|
#define DEFAULT_SEARCH_FOR_DEVNAMES "auto"
|
|
|
|
#endif /* _LVM_DEFAULTS_H */
|