mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
25b733809a
Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
37 lines
668 B
C
37 lines
668 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the GPL.
|
|
*/
|
|
|
|
#ifndef _LVM_DEFAULTS_H
|
|
#define _LVM_DEFAULTS_H
|
|
|
|
|
|
#define DEFAULT_SYS_DIR "/etc/lvm"
|
|
|
|
#define DEFAULT_ARCHIVE_ENABLED 1
|
|
#define DEFAULT_BACKUP_ENABLED 1
|
|
|
|
#define DEFAULT_ARCHIVE_SUBDIR "archive"
|
|
#define DEFAULT_BACKUP_SUBDIR "backup"
|
|
|
|
#define DEFAULT_ARCHIVE_DAYS 30
|
|
#define DEFAULT_ARCHIVE_NUMBER 10
|
|
|
|
#define DEFAULT_DEV_DIR "/dev"
|
|
#define DEFAULT_PROC_DIR "/proc"
|
|
|
|
#define DEFAULT_LOCK_DIR "/var/lock/lvm"
|
|
|
|
#define DEFAULT_UMASK 0077
|
|
|
|
#define DEFAULT_FORMAT "lvm1"
|
|
|
|
#ifdef READLINE_SUPPORT
|
|
#define DEFAULT_MAX_HISTORY 100
|
|
#endif
|
|
|
|
|
|
#endif /* _LVM_DEFAULTS_H */
|