2002-01-07 11:12:11 +00:00
/*
2009-07-09 10:00:36 +00:00
* Copyright ( C ) 2001 - 2004 Sistina Software , Inc . All rights reserved .
2012-01-19 15:34:32 +00:00
* Copyright ( C ) 2004 - 2012 Red Hat , Inc . All rights reserved .
2002-01-07 11:12:11 +00:00
*
2004-03-30 19:35:44 +00:00
* 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
2007-08-20 20:55:30 +00:00
* of the GNU Lesser General Public License v .2 .1 .
2004-03-30 19:35:44 +00:00
*
2007-08-20 20:55:30 +00:00
* You should have received a copy of the GNU Lesser General Public License
2004-03-30 19:35:44 +00:00
* along with this program ; if not , write to the Free Software Foundation ,
* Inc . , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA
2002-01-07 11:12:11 +00:00
*/
# ifndef _LVM_DEFAULTS_H
# define _LVM_DEFAULTS_H
2010-08-12 04:11:48 +00:00
# define DEFAULT_PE_ALIGN 2048
2010-08-20 20:59:05 +00:00
# define DEFAULT_PE_ALIGN_OLD 128
2010-08-12 04:11:48 +00:00
2002-01-08 19:17:08 +00:00
# define DEFAULT_ARCHIVE_ENABLED 1
# define DEFAULT_BACKUP_ENABLED 1
2002-01-07 11:12:11 +00:00
2007-02-28 18:27:13 +00:00
# define DEFAULT_CACHE_FILE_PREFIX ""
2002-01-07 11:12:11 +00:00
2002-01-08 19:17:08 +00:00
# define DEFAULT_ARCHIVE_DAYS 30
# define DEFAULT_ARCHIVE_NUMBER 10
2002-01-07 11:12:11 +00:00
# define DEFAULT_DEV_DIR " / dev"
2002-01-15 23:34:13 +00:00
# define DEFAULT_PROC_DIR " / proc"
2011-04-22 12:05:32 +00:00
# define DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV 1
2004-02-13 14:46:04 +00:00
# define DEFAULT_SYSFS_SCAN 1
2004-04-16 16:12:04 +00:00
# define DEFAULT_MD_COMPONENT_DETECTION 1
2008-09-19 05:33:37 +00:00
# define DEFAULT_MD_CHUNK_ALIGNMENT 1
2011-11-11 15:11:08 +00:00
# define DEFAULT_MULTIPATH_COMPONENT_DETECTION 1
2007-01-25 21:22:30 +00:00
# define DEFAULT_IGNORE_SUSPENDED_DEVICES 1
2010-10-13 15:40:38 +00:00
# define DEFAULT_DISABLE_AFTER_ERROR_COUNT 0
2010-08-12 04:08:59 +00:00
# define DEFAULT_REQUIRE_RESTOREFILE_WITH_UUID 1
2009-08-01 17:07:36 +00:00
# define DEFAULT_DATA_ALIGNMENT_OFFSET_DETECTION 1
2009-08-01 17:08:43 +00:00
# define DEFAULT_DATA_ALIGNMENT_DETECTION 1
2011-04-12 21:59:01 +00:00
# define DEFAULT_ISSUE_DISCARDS 0
2011-04-28 17:33:34 +00:00
# define DEFAULT_PV_MIN_SIZE_KB 2048
2002-01-07 11:12:11 +00:00
2006-08-31 20:56:33 +00:00
# define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
2006-09-02 01:18:17 +00:00
# define DEFAULT_FALLBACK_TO_LOCAL_LOCKING 1
# define DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING 1
2009-07-24 23:28:55 +00:00
# define DEFAULT_WAIT_FOR_LOCKS 1
2009-09-02 14:47:39 +00:00
# define DEFAULT_PRIORITISE_WRITE_LOCKS 1
2010-03-05 14:48:33 +00:00
# define DEFAULT_USE_MLOCKALL 0
2010-10-25 11:20:54 +00:00
# define DEFAULT_METADATA_READ_ONLY 0
2012-01-26 14:02:42 +00:00
# define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
2002-02-08 14:28:52 +00:00
2011-08-02 22:07:20 +00:00
# define DEFAULT_MIRROR_SEGTYPE "mirror"
2007-08-21 19:46:36 +00:00
# define DEFAULT_MIRRORLOG "disk"
2006-05-11 19:45:53 +00:00
# define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
2010-01-06 13:27:06 +00:00
# define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"
2009-11-27 14:35:38 +00:00
# define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */
2013-02-20 15:10:04 -06:00
# define DEFAULT_RAID10_SEGTYPE "mirror"
2011-12-06 19:30:15 +00:00
# define DEFAULT_RAID_FAULT_POLICY "warn"
2011-08-11 05:00:20 +00:00
# define DEFAULT_DMEVENTD_RAID_LIB "libdevmapper-event-lvm2raid.so"
2006-01-27 19:05:05 +00:00
# define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"
2010-08-16 22:54:35 +00:00
# define DEFAULT_DMEVENTD_SNAPSHOT_LIB "libdevmapper-event-lvm2snapshot.so"
2011-12-21 13:08:11 +00:00
# define DEFAULT_DMEVENTD_THIN_LIB "libdevmapper-event-lvm2thin.so"
2006-05-12 19:16:48 +00:00
# define DEFAULT_DMEVENTD_MONITOR 1
2010-01-05 20:56:51 +00:00
# define DEFAULT_BACKGROUND_POLLING 1
2006-01-27 19:05:05 +00:00
2012-03-14 17:12:05 +00:00
# define DEFAULT_THIN_CHECK_OPTIONS "-q"
2011-11-04 22:44:21 +00:00
# define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
2011-11-04 22:43:10 +00:00
# define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
# define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048 /* KB */
2012-03-05 14:19:13 +00:00
# define DEFAULT_THIN_POOL_OPTIMAL_SIZE (128 * 1024 * 1024) /* KB */
2012-11-26 11:20:13 +01:00
# define DEFAULT_THIN_POOL_CHUNK_SIZE 64 /* KB */
# define DEFAULT_THIN_POOL_DISCARDS "passdown"
# define DEFAULT_THIN_POOL_ZERO 1
2011-11-04 22:43:10 +00:00
2002-01-09 19:16:48 +00:00
# define DEFAULT_UMASK 0077
2004-04-08 15:23:23 +00:00
# ifdef LVM1_FALLBACK
# define DEFAULT_FALLBACK_TO_LVM1 1
# else
# define DEFAULT_FALLBACK_TO_LVM1 0
# endif
2009-10-05 12:44:20 +00:00
# define DEFAULT_FORMAT "lvm2"
2002-04-24 18:20:51 +00:00
2002-12-19 23:25:55 +00:00
# define DEFAULT_STRIPESIZE 64 /* KB */
2010-06-30 12:17:24 +00:00
# define DEFAULT_PVMETADATAIGNORE 0
2010-06-30 12:49:28 +00:00
# define DEFAULT_PVMETADATAIGNORE_STR "n"
2002-11-18 14:01:16 +00:00
# define DEFAULT_PVMETADATASIZE 255
# define DEFAULT_PVMETADATACOPIES 1
2010-06-28 20:36:37 +00:00
# define DEFAULT_VGMETADATACOPIES 0
2003-03-24 18:08:53 +00:00
# define DEFAULT_LABELSECTOR UINT64_C(1)
2007-11-09 16:51:54 +00:00
# define DEFAULT_READ_AHEAD "auto"
2010-01-07 19:54:21 +00:00
# define DEFAULT_UDEV_RULES 1
2011-08-02 10:49:57 +00:00
# define DEFAULT_UDEV_SYNC 1
2011-06-27 21:43:58 +00:00
# define DEFAULT_VERIFY_UDEV_OPERATIONS 0
2011-09-22 17:39:56 +00:00
# define DEFAULT_RETRY_DEACTIVATION 1
2011-07-01 14:09:19 +00:00
# define DEFAULT_ACTIVATION_CHECKS 0
2008-01-17 15:31:18 +00:00
# define DEFAULT_EXTENT_SIZE 4096 /* In KB */
2009-07-09 10:00:36 +00:00
# define DEFAULT_MAX_PV 0
# define DEFAULT_MAX_LV 0
# define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
2011-02-27 00:38:31 +00:00
# define DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS 0
# define DEFAULT_MAXIMISE_CLING 1
2009-07-09 10:00:36 +00:00
# define DEFAULT_CLUSTERED 0
2002-05-07 12:50:01 +00:00
2002-11-18 14:01:16 +00:00
# define DEFAULT_MSG_PREFIX " "
2002-05-07 12:50:01 +00:00
# define DEFAULT_CMD_NAME 0
2002-11-18 14:01:16 +00:00
# define DEFAULT_OVERWRITE 0
# ifndef DEFAULT_LOG_FACILITY
2003-04-15 13:24:42 +00:00
# define DEFAULT_LOG_FACILITY LOG_USER
2002-11-18 14:01:16 +00:00
# endif
2013-01-07 22:25:19 +00:00
# define DEFAULT_LOGGED_DEBUG_CLASSES (LOG_CLASS_MEM | LOG_CLASS_DEVS | \
LOG_CLASS_ACTIVATION | LOG_CLASS_ALLOC | LOG_CLASS_LVMETAD | \
LOG_CLASS_METADATA | LOG_CLASS_CACHE | LOG_CLASS_LOCKING )
2002-11-18 14:01:16 +00:00
# define DEFAULT_SYSLOG 1
# define DEFAULT_VERBOSE 0
config: add silent mode
Accept -q as the short form of --quiet.
Suppress non-essential standard output if -q is given twice.
Treat log/silent in lvm.conf as equivalent to -qq.
Review all log_print messages and change some to
log_print_unless_silent.
When silent, the following commands still produce output:
dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay,
pvs, version, vgcfgrestore -l, vgdisplay, vgs.
[Needs checking.]
Non-essential messages are shifted from log level 4 to log level 5
for syslog and lvm2_log_fn purposes.
2012-08-25 20:35:48 +01:00
# define DEFAULT_SILENT 0
2002-11-18 14:01:16 +00:00
# define DEFAULT_LOGLEVEL 0
# define DEFAULT_INDENT 1
2009-11-30 17:17:11 +00:00
# define DEFAULT_ABORT_ON_INTERNAL_ERRORS 0
2011-08-11 17:46:13 +00:00
# define DEFAULT_DETECT_INTERNAL_VG_CACHE_CORRUPTION 0
2002-12-12 20:55:49 +00:00
# define DEFAULT_UNITS "h"
# define DEFAULT_SUFFIX 1
2004-03-08 18:13:22 +00:00
# define DEFAULT_HOSTTAGS 0
2002-11-18 14:01:16 +00:00
2009-09-28 16:23:44 +00:00
# ifndef DEFAULT_SI_UNIT_CONSISTENCY
# define DEFAULT_SI_UNIT_CONSISTENCY 1
# endif
2003-01-08 22:44:07 +00:00
# ifdef DEVMAPPER_SUPPORT
2003-04-15 13:24:42 +00:00
# define DEFAULT_ACTIVATION 1
2003-07-04 22:34:56 +00:00
# define DEFAULT_RESERVED_MEMORY 8192
2011-10-11 09:13:39 +00:00
# define DEFAULT_RESERVED_STACK 64 /* KB */
2003-07-04 22:34:56 +00:00
# define DEFAULT_PROCESS_PRIORITY -18
2003-01-08 22:44:07 +00:00
# else
2003-04-15 13:24:42 +00:00
# define DEFAULT_ACTIVATION 0
2003-01-08 22:44:07 +00:00
# endif
2002-05-07 12:50:01 +00:00
2011-11-28 20:37:51 +00:00
# define DEFAULT_USE_LINEAR_TARGET 1
2008-09-19 06:42:00 +00:00
# define DEFAULT_STRIPE_FILLER "error"
2013-02-20 14:40:17 -06:00
# define DEFAULT_RAID_REGION_SIZE 512 /* KB */
2003-04-30 15:27:48 +00:00
# define DEFAULT_INTERVAL 15
2003-04-24 22:10:56 +00:00
2002-01-08 19:17:08 +00:00
# ifdef READLINE_SUPPORT
2003-04-15 13:24:42 +00:00
# define DEFAULT_MAX_HISTORY 100
2002-01-08 19:17:08 +00:00
# endif
2010-10-13 15:40:38 +00:00
# define DEFAULT_MAX_ERROR_COUNT NO_DEV_ERROR_COUNT_LIMIT
2002-12-12 20:55:49 +00:00
# define DEFAULT_REP_ALIGNED 1
# define DEFAULT_REP_BUFFERED 1
2008-06-24 22:48:53 +00:00
# define DEFAULT_REP_COLUMNS_AS_ROWS 0
2002-12-12 20:55:49 +00:00
# define DEFAULT_REP_HEADINGS 1
2008-04-20 00:15:08 +00:00
# define DEFAULT_REP_PREFIXES 0
2008-06-24 21:21:04 +00:00
# define DEFAULT_REP_QUOTED 1
2002-12-12 20:55:49 +00:00
# define DEFAULT_REP_SEPARATOR " "
2012-01-19 15:34:32 +00:00
# define DEFAULT_LVS_COLS "lv_name,vg_name,lv_attr,lv_size,pool_lv,origin,data_percent,move_pv,mirror_log,copy_percent,convert_lv"
2002-12-12 20:55:49 +00:00
# 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"
2005-04-19 20:58:25 +00:00
# define DEFAULT_PVSEGS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
2002-12-12 20:55:49 +00:00
2012-01-25 11:32:41 +00:00
# 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"
2002-12-12 20:55:49 +00:00
# define DEFAULT_VGS_COLS_VERB "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid"
2004-08-11 13:15:05 +00:00
# define DEFAULT_PVS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
2002-12-12 20:55:49 +00:00
# define DEFAULT_SEGS_COLS_VERB "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
2007-12-14 21:53:02 +00:00
# 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"
2002-12-12 20:55:49 +00:00
# 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"
2005-04-19 20:58:25 +00:00
# define DEFAULT_PVSEGS_SORT "pv_name,pvseg_start"
2002-12-12 20:55:49 +00:00
2009-06-04 12:01:15 +00:00
# define DEFAULT_MIRROR_DEVICE_FAULT_POLICY "remove"
# define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
2010-10-15 16:28:14 +00:00
# define DEFAULT_SNAPSHOT_AUTOEXTEND_THRESHOLD 100
# define DEFAULT_SNAPSHOT_AUTOEXTEND_PERCENT 20
2011-12-21 13:10:52 +00:00
# define DEFAULT_THIN_POOL_AUTOEXTEND_THRESHOLD 100
# define DEFAULT_THIN_POOL_AUTOEXTEND_PERCENT 20
2009-06-04 12:01:15 +00:00
2002-11-18 14:01:16 +00:00
# endif /* _LVM_DEFAULTS_H */