mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Various cleanups following recent commits.
This commit is contained in:
parent
aec39dcc34
commit
b4ee00356b
16
WHATS_NEW
16
WHATS_NEW
@ -1,16 +1,18 @@
|
|||||||
Version 2.02.68 -
|
Version 2.02.68 -
|
||||||
===============================
|
===============================
|
||||||
Add workaround for clvmd -S (socket closed too early and server drops the command).
|
Sleep to workaround clvmd -S race: socket closed early and server drops cmd.
|
||||||
Use early udev synchronisation and update of dev nodes for clustered mirrors.
|
Use early udev synchronisation and update of dev nodes for clustered mirrors.
|
||||||
Unneeded kdev_t.h reference causing harm for cmirrord on some archs.
|
Remove incorrect inclusion of kdev_t.h from cmirrord/functions.h.
|
||||||
Add man pages for lvmconf and unsupported lvmsadc and lvmsar tools.
|
Add man pages for lvmconf and non-existent lvmsadc and lvmsar tools.
|
||||||
Fix exit code when requesting help using documented -o help option.
|
Exit successfully when using -o help (but not -o +help) with LVM reports.
|
||||||
Do not use internal DLM lock definitions in generic LVM2 clvmd code.
|
Do not use internal DLM lock definitions in generic LVM2 clvmd code.
|
||||||
Add dmeventd man page.
|
Add dmeventd man page.
|
||||||
Update lvresize/extend/reduce manpages with --nofsck, --resizefs options.
|
Add --force, --nofsck and --resizefs to lvresize/extend/reduce man pages.
|
||||||
Fix lvm2cmd example in documentation.
|
Fix lvm2cmd example in documentation.
|
||||||
Allow use of lvm2app and lvm2cmd headers in C++ mode.
|
Allow use of lvm2app and lvm2cmd headers in C++ code.
|
||||||
Fix wrong lvm path creation from configure introduced in previous release.
|
Remove some unused #includes from clvmd files.
|
||||||
|
Use #include "" for libdevmapper.h and configure.h throughout tree.
|
||||||
|
Fix 'make exec_prefix' with LVM_PATH / DMEVENTD_PATH. (2.02.67)
|
||||||
Fix segfault in clvmd -R if no response from daemon received.
|
Fix segfault in clvmd -R if no response from daemon received.
|
||||||
|
|
||||||
Version 2.02.67 - 4th June 2010
|
Version 2.02.67 - 4th June 2010
|
||||||
|
@ -17,38 +17,19 @@
|
|||||||
* CMAN communication layer for clvmd.
|
* CMAN communication layer for clvmd.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/uio.h>
|
|
||||||
#include <sys/un.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <getopt.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
#include <libdlm.h>
|
|
||||||
|
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "clvmd.h"
|
#include "clvmd.h"
|
||||||
#include "lvm-functions.h"
|
#include "lvm-functions.h"
|
||||||
|
|
||||||
|
#include <libdlm.h>
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
#define LOCKSPACE_NAME "clvmd"
|
#define LOCKSPACE_NAME "clvmd"
|
||||||
|
|
||||||
struct clvmd_node
|
struct clvmd_node
|
||||||
|
@ -50,32 +50,18 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include "locking.h"
|
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "lvm-functions.h"
|
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd.h"
|
#include "clvmd.h"
|
||||||
|
#include "lvm-functions.h"
|
||||||
|
|
||||||
|
#include "locking.h"
|
||||||
|
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
extern debug_t debug;
|
extern debug_t debug;
|
||||||
extern struct cluster_ops *clops;
|
extern struct cluster_ops *clops;
|
||||||
|
33
daemons/clvmd/clvmd-common.h
Normal file
33
daemons/clvmd/clvmd-common.h
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2010 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file must be included first by every clvmd source file.
|
||||||
|
*/
|
||||||
|
#ifndef _LVM_CLVMD_COMMON_H
|
||||||
|
#define _LVM_CLVMD_COMMON_H
|
||||||
|
|
||||||
|
#include "configure.h"
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
|
||||||
|
#include "libdevmapper.h"
|
||||||
|
|
||||||
|
#include "lvm-logging.h"
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#endif
|
@ -17,46 +17,23 @@
|
|||||||
* and lock manager.
|
* and lock manager.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/file.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <utmpx.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include <corosync/corotypes.h>
|
#include "clvm.h"
|
||||||
|
#include "clvmd-comms.h"
|
||||||
|
#include "clvmd.h"
|
||||||
|
#include "lvm-functions.h"
|
||||||
|
|
||||||
|
#include "locking.h"
|
||||||
|
|
||||||
#include <corosync/cpg.h>
|
#include <corosync/cpg.h>
|
||||||
#include <corosync/quorum.h>
|
#include <corosync/quorum.h>
|
||||||
#include <corosync/confdb.h>
|
#include <corosync/confdb.h>
|
||||||
#include <libdlm.h>
|
#include <libdlm.h>
|
||||||
|
|
||||||
#include "locking.h"
|
#include <syslog.h>
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "clvm.h"
|
|
||||||
#include "clvmd-comms.h"
|
|
||||||
#include "lvm-functions.h"
|
|
||||||
#include "clvmd.h"
|
|
||||||
|
|
||||||
/* Timeout value for several corosync calls */
|
/* Timeout value for several corosync calls */
|
||||||
#define LOCKSPACE_NAME "clvmd"
|
#define LOCKSPACE_NAME "clvmd"
|
||||||
|
@ -24,35 +24,27 @@
|
|||||||
* on the cluster nodes. That is done in tcp-comms.c
|
* on the cluster nodes. That is done in tcp-comms.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "configure.h"
|
#include "clvmd-common.h"
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <utmpx.h>
|
#include <utmpx.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "libdevmapper.h"
|
|
||||||
#include <ccs.h>
|
#include <ccs.h>
|
||||||
#include <libgulm.h>
|
#include <libgulm.h>
|
||||||
|
|
||||||
#include "locking.h"
|
#include "locking.h"
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "lvm-functions.h"
|
#include "lvm-functions.h"
|
||||||
|
@ -17,33 +17,11 @@
|
|||||||
* and lock manager.
|
* and lock manager.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/file.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <utmpx.h>
|
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <assert.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include <openais/saAis.h>
|
#include <openais/saAis.h>
|
||||||
#include <openais/saLck.h>
|
#include <openais/saLck.h>
|
||||||
@ -52,7 +30,6 @@
|
|||||||
#include <corosync/cpg.h>
|
#include <corosync/cpg.h>
|
||||||
|
|
||||||
#include "locking.h"
|
#include "locking.h"
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "lvm-functions.h"
|
#include "lvm-functions.h"
|
||||||
|
@ -12,26 +12,20 @@
|
|||||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <sys/un.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "locking.h"
|
#include "locking.h"
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "lvm-functions.h"
|
#include "lvm-functions.h"
|
||||||
#include "clvmd.h"
|
#include "clvmd.h"
|
||||||
|
|
||||||
|
#include <sys/un.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
static const char SINGLENODE_CLVMD_SOCKNAME[] = "\0singlenode_clvmd";
|
static const char SINGLENODE_CLVMD_SOCKNAME[] = "\0singlenode_clvmd";
|
||||||
static int listen_fd = -1;
|
static int listen_fd = -1;
|
||||||
|
|
||||||
|
@ -17,44 +17,28 @@
|
|||||||
* CLVMD: Cluster LVM daemon
|
* CLVMD: Cluster LVM daemon
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
#include "clvmd-comms.h"
|
||||||
#include <sys/socket.h>
|
#include "clvm.h"
|
||||||
#include <sys/uio.h>
|
#include "clvmd.h"
|
||||||
#include <sys/un.h>
|
#include "lvm-functions.h"
|
||||||
#include <sys/time.h>
|
#include "lvm-version.h"
|
||||||
#include <sys/ioctl.h>
|
#include "refresh_clvmd.h"
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <getopt.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#ifdef HAVE_COROSYNC_CONFDB_H
|
#ifdef HAVE_COROSYNC_CONFDB_H
|
||||||
#include <corosync/confdb.h>
|
#include <corosync/confdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "clvmd-comms.h"
|
#include <fcntl.h>
|
||||||
#include "lvm-functions.h"
|
#include <netinet/in.h>
|
||||||
#include "clvm.h"
|
#include <signal.h>
|
||||||
#include "lvm-version.h"
|
#include <stddef.h>
|
||||||
#include "clvmd.h"
|
#include <syslog.h>
|
||||||
#include "refresh_clvmd.h"
|
#include <sys/un.h>
|
||||||
#include "lvm-logging.h"
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
@ -13,28 +13,9 @@
|
|||||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include "lvm-types.h"
|
#include "lvm-types.h"
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
@ -45,14 +26,13 @@
|
|||||||
/* LVM2 headers */
|
/* LVM2 headers */
|
||||||
#include "toolcontext.h"
|
#include "toolcontext.h"
|
||||||
#include "lvmcache.h"
|
#include "lvmcache.h"
|
||||||
#include "lvm-logging.h"
|
|
||||||
#include "lvm-globals.h"
|
#include "lvm-globals.h"
|
||||||
#include "activate.h"
|
#include "activate.h"
|
||||||
#include "locking.h"
|
|
||||||
#include "archiver.h"
|
#include "archiver.h"
|
||||||
#include "defaults.h"
|
|
||||||
#include "memlock.h"
|
#include "memlock.h"
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
static struct cmd_context *cmd = NULL;
|
static struct cmd_context *cmd = NULL;
|
||||||
static struct dm_hash_table *lv_hash = NULL;
|
static struct dm_hash_table *lv_hash = NULL;
|
||||||
static pthread_mutex_t lv_hash_lock;
|
static pthread_mutex_t lv_hash_lock;
|
||||||
|
@ -17,23 +17,15 @@
|
|||||||
* Send a command to a running clvmd from the command-line
|
* Send a command to a running clvmd from the command-line
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/un.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include "libdevmapper.h"
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "refresh_clvmd.h"
|
#include "refresh_clvmd.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/un.h>
|
||||||
|
|
||||||
typedef struct lvm_response {
|
typedef struct lvm_response {
|
||||||
char node[255];
|
char node[255];
|
||||||
char *response;
|
char *response;
|
||||||
|
@ -20,31 +20,22 @@
|
|||||||
* It can also make outgoing connnections to the other clvmd nodes.
|
* It can also make outgoing connnections to the other clvmd nodes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include "clvmd-common.h"
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "configure.h"
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "libdevmapper.h"
|
|
||||||
|
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef _LVM_LOG_H
|
#ifndef _LVM_LOG_H
|
||||||
#define _LVM_LOG_H
|
#define _LVM_LOG_H
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* printf()-style macros to use for messages:
|
* printf()-style macros to use for messages:
|
||||||
*
|
*
|
||||||
|
@ -3,29 +3,28 @@
|
|||||||
dmeventd \- Device-mapper event daemon
|
dmeventd \- Device-mapper event daemon
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B dmeventd
|
.B dmeventd
|
||||||
[\-V]
|
|
||||||
[\-d]
|
[\-d]
|
||||||
[\-f]
|
[\-f]
|
||||||
[\-h]
|
[\-h]
|
||||||
|
[\-V]
|
||||||
[\-?]
|
[\-?]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
dmeventd is the event monitoring daemon for device-mapper devices.
|
dmeventd is the event monitoring daemon for device-mapper devices.
|
||||||
Plugins are supported.
|
Library plugins can register and carry out actions triggered when
|
||||||
|
particular events occur.
|
||||||
.br
|
.SH
|
||||||
LVM plugins:
|
LVM PLUGINS
|
||||||
.TP
|
.TP
|
||||||
Snapshot: monitor the filling of snapshot and emits a warning through
|
.I Mirror
|
||||||
syslog, when the use of snapshot exceedes 80%.
|
Attempts to handle device failure automatically. See \fBlvm.conf\fP).
|
||||||
The warning is repeated when 85%, 90% and 95% of the snapshot are filled.
|
|
||||||
(see \fBlvm.conf\fP)
|
|
||||||
.TP
|
.TP
|
||||||
Mirror: attempts to recover from failures (see \fBlvm.conf\fP).
|
.I Snapshot
|
||||||
|
Monitors how full a snapshot is becoming and emits a warning to
|
||||||
|
syslog when it exceeds 80% full.
|
||||||
|
The warning is repeated when 85%, 90% and 95% of the snapshot is filled.
|
||||||
|
See \fBlvm.conf\fP.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.I \-V
|
|
||||||
Show version of dmeventd.
|
|
||||||
.TP
|
|
||||||
.I \-d
|
.I \-d
|
||||||
Repeat from 1 to 3 times (-d, -dd, -ddd) to increase the detail of
|
Repeat from 1 to 3 times (-d, -dd, -ddd) to increase the detail of
|
||||||
debug messages sent to syslog.
|
debug messages sent to syslog.
|
||||||
@ -36,6 +35,9 @@ Don't fork, run in the foreground.
|
|||||||
.TP
|
.TP
|
||||||
.I \-h, \-?
|
.I \-h, \-?
|
||||||
Show help information.
|
Show help information.
|
||||||
|
.TP
|
||||||
|
.I \-V
|
||||||
|
Show version of dmeventd.
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR lvm (8),
|
.BR lvm (8),
|
||||||
|
@ -65,7 +65,7 @@ use a single value throughout.
|
|||||||
StripeSize must be 2^n (n = 2 to 9)
|
StripeSize must be 2^n (n = 2 to 9)
|
||||||
.TP
|
.TP
|
||||||
.I \-f, \-\-force
|
.I \-f, \-\-force
|
||||||
Force size extension without any question.
|
Proceed with size extension without prompting.
|
||||||
.TP
|
.TP
|
||||||
.I \-n, \-\-nofsck
|
.I \-n, \-\-nofsck
|
||||||
Do not perform fsck before extending filesystem when filesystem
|
Do not perform fsck before extending filesystem when filesystem
|
||||||
@ -73,8 +73,8 @@ requires it. You may need to use \fB--force\fR to proceed with
|
|||||||
this option.
|
this option.
|
||||||
.TP
|
.TP
|
||||||
.I \-r, \-\-resizefs
|
.I \-r, \-\-resizefs
|
||||||
Resize underlying filesystem together with logical volume size.
|
Resize underlying filesystem together with the logical volume using
|
||||||
\fBfsadm\fR tool is used for filesystem resize.
|
\fBfsadm\fR(8).
|
||||||
.SH Examples
|
.SH Examples
|
||||||
"lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size of
|
"lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size of
|
||||||
that logical volume by 54MB on physical volume /dev/sdk3.
|
that logical volume by 54MB on physical volume /dev/sdk3.
|
||||||
|
@ -6,33 +6,31 @@
|
|||||||
|
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.B lvmconf
|
.B lvmconf
|
||||||
[\-\-enable-cluster]
|
|
||||||
[\-\-disable-cluster]
|
[\-\-disable-cluster]
|
||||||
[\-\-lockinglibdir <dir>]
|
[\-\-enable-cluster]
|
||||||
[\-\-lockinglib <lib>]
|
|
||||||
[\-\-file <configfile>]
|
[\-\-file <configfile>]
|
||||||
|
[\-\-lockinglib <lib>]
|
||||||
|
[\-\-lockinglibdir <dir>]
|
||||||
|
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.B lvmconf
|
.B lvmconf
|
||||||
is a helper tool to modify cluster locking in \fBlvm.conf\fP(5).
|
is a script that modifies the locking configuration in an lvm configuration file. See \fBlvm.conf\fP(5).
|
||||||
|
|
||||||
.SH "OPTIONS"
|
.SH "OPTIONS"
|
||||||
.TP
|
.TP
|
||||||
.BR \-\-disable-cluster
|
.BR \-\-disable-cluster
|
||||||
Set the default non-cluster \fBlocking_type\fR.
|
Set \fBlocking_type\fR to the default non-clustered type.
|
||||||
.TP
|
.TP
|
||||||
.BR \-\-enable-cluster
|
.BR \-\-enable-cluster
|
||||||
Set a cluster-wide \fBlocking_type\fR available on the system.
|
Set \fBlocking_type\fR to the default clustered type on this system.
|
||||||
.TP
|
|
||||||
.BR \-\-lockinglibdir " " \fI<dir>\fR
|
|
||||||
Set \fBlocking_dir\fR directory where LVM2 places its files locks.
|
|
||||||
.TP
|
|
||||||
.BR \-\-lockinglib " " \fI<lib>\fR
|
|
||||||
Set external \fBlocking_library\fR locking library to load.
|
|
||||||
.TP
|
.TP
|
||||||
.BR \-\-file " " \fI<configfile>\fR
|
.BR \-\-file " " \fI<configfile>\fR
|
||||||
Use non-default \fBconfigfile\fR instead of \fB#DEFAULT_SYS_DIR#/lvm.conf\fR.
|
Apply the changes to \fBconfigfile\fR instead of the default \fB#DEFAULT_SYS_DIR#/lvm.conf\fR.
|
||||||
|
.TP
|
||||||
|
.BR \-\-lockinglib " " \fI<lib>\fR
|
||||||
|
Set external \fBlocking_library\fR locking library to load if an external locking type is used.
|
||||||
|
.TP
|
||||||
|
.BR \-\-lockinglibdir " " \fI<dir>\fR
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.I #DEFAULT_SYS_DIR#/lvm.conf
|
.I #DEFAULT_SYS_DIR#/lvm.conf
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ be a multiple of the number of stripes.
|
|||||||
See \fBlvm\fP for common options.
|
See \fBlvm\fP for common options.
|
||||||
.TP
|
.TP
|
||||||
.I \-f, \-\-force
|
.I \-f, \-\-force
|
||||||
Force size reduction without any question.
|
Force size reduction without prompting even when it may cause data loss.
|
||||||
.TP
|
.TP
|
||||||
.I \-\-noudevsync
|
.I \-\-noudevsync
|
||||||
Disable udev synchronisation. The
|
Disable udev synchronisation. The
|
||||||
@ -70,11 +70,11 @@ an absolute size.
|
|||||||
.I \-n, \-\-nofsck
|
.I \-n, \-\-nofsck
|
||||||
Do not perform fsck before resizing filesystem when filesystem
|
Do not perform fsck before resizing filesystem when filesystem
|
||||||
requires it. You may need to use \fB--force\fR to proceed with
|
requires it. You may need to use \fB--force\fR to proceed with
|
||||||
this option. Note: using this option is dangerous.
|
this option.
|
||||||
.TP
|
.TP
|
||||||
.I \-r, \-\-resizefs
|
.I \-r, \-\-resizefs
|
||||||
Resize underlying filesystem together with logical volume size.
|
Resize underlying filesystem together with the logical volume using
|
||||||
\fBfsadm\fR tool is used for filesystem resize.
|
\fBfsadm\fR(8).
|
||||||
.SH Example
|
.SH Example
|
||||||
"lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1
|
"lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1
|
||||||
in volume group vg00 by 3 logical extents.
|
in volume group vg00 by 3 logical extents.
|
||||||
|
@ -29,12 +29,8 @@ volume use
|
|||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
See \fBlvm\fP for common options.
|
See \fBlvm\fP for common options.
|
||||||
.TP
|
.TP
|
||||||
.I \-\-noudevsync
|
.I \-f, \-\-force
|
||||||
Disable udev synchronisation. The
|
Force resize without prompting even when it may cause data loss.
|
||||||
process will not wait for notification from udev.
|
|
||||||
It will continue irrespective of any possible udev processing
|
|
||||||
in the background. You should only use this if udev is not running
|
|
||||||
or has rules that ignore the devices LVM2 creates.
|
|
||||||
.TP
|
.TP
|
||||||
.I \-l, \-\-extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]
|
.I \-l, \-\-extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]
|
||||||
Change or set the logical volume size in units of logical extents.
|
Change or set the logical volume size in units of logical extents.
|
||||||
@ -48,6 +44,22 @@ suffix %PVS, as a percentage of the remaining free space in the
|
|||||||
Volume Group with the suffix %FREE, or (for a snapshot) as a percentage
|
Volume Group with the suffix %FREE, or (for a snapshot) as a percentage
|
||||||
of the total space in the Origin Logical Volume with the suffix %ORIGIN.
|
of the total space in the Origin Logical Volume with the suffix %ORIGIN.
|
||||||
.TP
|
.TP
|
||||||
|
.I \-n, \-\-nofsck
|
||||||
|
Do not perform fsck before resizing filesystem when filesystem
|
||||||
|
requires it. You may need to use \fB--force\fR to proceed with
|
||||||
|
this option.
|
||||||
|
.TP
|
||||||
|
.I \-\-noudevsync
|
||||||
|
Disable udev synchronisation. The
|
||||||
|
process will not wait for notification from udev.
|
||||||
|
It will continue irrespective of any possible udev processing
|
||||||
|
in the background. You should only use this if udev is not running
|
||||||
|
or has rules that ignore the devices LVM2 creates.
|
||||||
|
.TP
|
||||||
|
.I \-r, \-\-resizefs
|
||||||
|
Resize underlying filesystem together with the logical volume using
|
||||||
|
\fBfsadm\fR(8).
|
||||||
|
.TP
|
||||||
.I \-L, \-\-size [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
|
.I \-L, \-\-size [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
|
||||||
Change or set the logical volume size in units of megabytes.
|
Change or set the logical volume size in units of megabytes.
|
||||||
A size suffix of M for megabytes,
|
A size suffix of M for megabytes,
|
||||||
@ -70,18 +82,6 @@ Not applicable to LVs using the original metadata LVM format, which
|
|||||||
must use a single value throughout.
|
must use a single value throughout.
|
||||||
.br
|
.br
|
||||||
StripeSize must be 2^n (n = 2 to 9)
|
StripeSize must be 2^n (n = 2 to 9)
|
||||||
.TP
|
|
||||||
.I \-f, \-\-force
|
|
||||||
Force resize without any question.
|
|
||||||
.TP
|
|
||||||
.I \-n, \-\-nofsck
|
|
||||||
Do not perform fsck before resizing filesystem when filesystem
|
|
||||||
requires it. You may need to use \fB--force\fR to proceed with
|
|
||||||
this option.
|
|
||||||
.TP
|
|
||||||
.I \-r, \-\-resizefs
|
|
||||||
Resize underlying filesystem together with logical volume size.
|
|
||||||
\fBfsadm\fR tool is used for filesystem resize.
|
|
||||||
.SH Examples
|
.SH Examples
|
||||||
.br
|
.br
|
||||||
"lvresize -L+16M vg1/lv1 /dev/sda:0-1 /dev/sdb:0-1"
|
"lvresize -L+16M vg1/lv1 /dev/sda:0-1 /dev/sdb:0-1"
|
||||||
|
Loading…
Reference in New Issue
Block a user