Merge conflicts and NetBSD local changes.
This commit is contained in:
parent
bec4d750d4
commit
526dfe53d4
10
external/gpl2/lvm2/dist/include/configure.h
vendored
10
external/gpl2/lvm2/dist/include/configure.h
vendored
@ -28,7 +28,7 @@
|
||||
/* #undef DMEVENTD_PIDFILE */
|
||||
|
||||
/* Library version */
|
||||
#define DM_LIB_VERSION "1.02.29 (2008-11-10)"
|
||||
#define DM_LIB_VERSION "1.02.30 (2009-01-26)"
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#define HAVE_ALLOCA 1
|
||||
@ -101,7 +101,7 @@
|
||||
/* #undef HAVE_LIBINTL_H */
|
||||
|
||||
/* Define to 1 if you have the `readline' library (-lreadline). */
|
||||
#define HAVE_LIBREADLINE 1
|
||||
/* #undef HAVE_LIBREADLINE */
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
@ -160,10 +160,10 @@
|
||||
/* #undef HAVE_PTHREAD_H */
|
||||
|
||||
/* Define to 1 if you have the <readline/history.h> header file. */
|
||||
#define HAVE_READLINE_HISTORY_H 1
|
||||
/* #undef HAVE_READLINE_HISTORY_H */
|
||||
|
||||
/* Define to 1 if you have the <readline/readline.h> header file. */
|
||||
#define HAVE_READLINE_READLINE_H 1
|
||||
/* #undef HAVE_READLINE_READLINE_H */
|
||||
|
||||
/* Define to 1 to include support for realtime clock. */
|
||||
/* #undef HAVE_REALTIME */
|
||||
@ -384,7 +384,7 @@
|
||||
#define POOL_INTERNAL 1
|
||||
|
||||
/* Define to 1 to include the LVM readline shell. */
|
||||
#define READLINE_SUPPORT 1
|
||||
/* #undef READLINE_SUPPORT */
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
16
external/gpl2/lvm2/dist/lib/activate/fs.c
vendored
16
external/gpl2/lvm2/dist/lib/activate/fs.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fs.c,v 1.2 2008/12/22 00:56:58 haad Exp $ */
|
||||
/* $NetBSD: fs.c,v 1.3 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
@ -415,11 +415,17 @@ int fs_del_lv_byname(const char *dev_dir, const char *vg_name, const char *lv_na
|
||||
return _fs_op(FS_DEL, dev_dir, vg_name, lv_name, "", "");
|
||||
}
|
||||
|
||||
int fs_rename_lv(struct logical_volume *lv,
|
||||
const char *dev, const char *old_name)
|
||||
int fs_rename_lv(struct logical_volume *lv, const char *dev,
|
||||
const char *old_vgname, const char *old_lvname)
|
||||
{
|
||||
return _fs_op(FS_RENAME, lv->vg->cmd->dev_dir, lv->vg->name, lv->name,
|
||||
dev, old_name);
|
||||
if (strcmp(old_vgname, lv->vg->name)) {
|
||||
return
|
||||
(_fs_op(FS_DEL, lv->vg->cmd->dev_dir, old_vgname, old_lvname, "", "") &&
|
||||
_fs_op(FS_ADD, lv->vg->cmd->dev_dir, lv->vg->name, lv->name, dev, ""));
|
||||
}
|
||||
else
|
||||
return _fs_op(FS_RENAME, lv->vg->cmd->dev_dir, lv->vg->name, lv->name,
|
||||
dev, old_lvname);
|
||||
}
|
||||
|
||||
void fs_unlock(void)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: toolcontext.c,v 1.3 2009/01/06 23:21:16 haad Exp $ */
|
||||
/* $NetBSD: toolcontext.c,v 1.4 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
@ -164,6 +164,7 @@ static void _init_logging(struct cmd_context *cmd)
|
||||
/* Test mode */
|
||||
cmd->default_settings.test =
|
||||
find_config_tree_int(cmd, "global/test", 0);
|
||||
init_test(cmd->default_settings.test);
|
||||
|
||||
/* Settings for logging to file */
|
||||
if (find_config_tree_int(cmd, "log/overwrite", DEFAULT_OVERWRITE))
|
||||
@ -739,7 +740,7 @@ static int _init_formats(struct cmd_context *cmd)
|
||||
|
||||
#ifdef HAVE_LIBDL
|
||||
/* Load any formats in shared libs if not static */
|
||||
if (!cmd->is_static &&
|
||||
if (!is_static() &&
|
||||
(cn = find_config_tree_node(cmd, "global/format_libraries"))) {
|
||||
|
||||
struct config_value *cv;
|
||||
@ -785,6 +786,7 @@ static int _init_formats(struct cmd_context *cmd)
|
||||
if (!strcasecmp(fmt->name, format) ||
|
||||
(fmt->alias && !strcasecmp(fmt->alias, format))) {
|
||||
cmd->default_settings.fmt = fmt;
|
||||
cmd->fmt = cmd->default_settings.fmt;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -848,7 +850,7 @@ static int _init_segtypes(struct cmd_context *cmd)
|
||||
|
||||
#ifdef HAVE_LIBDL
|
||||
/* Load any formats in shared libs unless static */
|
||||
if (!cmd->is_static &&
|
||||
if (!is_static() &&
|
||||
(cn = find_config_tree_node(cmd, "global/segment_libraries"))) {
|
||||
|
||||
struct config_value *cv;
|
||||
@ -926,8 +928,8 @@ static int _init_backup(struct cmd_context *cmd)
|
||||
|
||||
if (!cmd->sys_dir) {
|
||||
log_warn("WARNING: Metadata changes will NOT be backed up");
|
||||
backup_init(cmd, "");
|
||||
archive_init(cmd, "", 0, 0);
|
||||
backup_init(cmd, "", 0);
|
||||
archive_init(cmd, "", 0, 0, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -953,7 +955,8 @@ static int _init_backup(struct cmd_context *cmd)
|
||||
dir = find_config_tree_str(cmd, "backup/archive_dir",
|
||||
default_dir);
|
||||
|
||||
if (!archive_init(cmd, dir, days, min)) {
|
||||
if (!archive_init(cmd, dir, days, min,
|
||||
cmd->default_settings.archive)) {
|
||||
log_debug("backup_init failed.");
|
||||
return 0;
|
||||
}
|
||||
@ -973,7 +976,7 @@ static int _init_backup(struct cmd_context *cmd)
|
||||
|
||||
dir = find_config_tree_str(cmd, "backup/backup_dir", default_dir);
|
||||
|
||||
if (!backup_init(cmd, dir)) {
|
||||
if (!backup_init(cmd, dir, cmd->default_settings.backup)) {
|
||||
log_debug("backup_init failed.");
|
||||
return 0;
|
||||
}
|
||||
@ -981,9 +984,23 @@ static int _init_backup(struct cmd_context *cmd)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void _init_rand(struct cmd_context *cmd)
|
||||
{
|
||||
if (read_urandom(&cmd->rand_seed, sizeof(cmd->rand_seed)))
|
||||
return;
|
||||
|
||||
cmd->rand_seed = (unsigned) time(NULL) + (unsigned) getpid();
|
||||
}
|
||||
|
||||
static void _init_globals(struct cmd_context *cmd)
|
||||
{
|
||||
init_full_scan_done(0);
|
||||
init_mirror_in_sync(0);
|
||||
|
||||
}
|
||||
|
||||
/* Entry point */
|
||||
struct cmd_context *create_toolcontext(struct arg *the_args, unsigned is_static,
|
||||
unsigned is_long_lived)
|
||||
struct cmd_context *create_toolcontext(unsigned is_long_lived)
|
||||
{
|
||||
struct cmd_context *cmd;
|
||||
|
||||
@ -1005,8 +1022,6 @@ struct cmd_context *create_toolcontext(struct arg *the_args, unsigned is_static,
|
||||
return NULL;
|
||||
}
|
||||
memset(cmd, 0, sizeof(*cmd));
|
||||
cmd->args = the_args;
|
||||
cmd->is_static = is_static;
|
||||
cmd->is_long_lived = is_long_lived;
|
||||
cmd->handles_missing_pvs = 0;
|
||||
cmd->hosttags = 0;
|
||||
@ -1079,6 +1094,10 @@ struct cmd_context *create_toolcontext(struct arg *the_args, unsigned is_static,
|
||||
if (!_init_backup(cmd))
|
||||
goto error;
|
||||
|
||||
_init_rand(cmd);
|
||||
|
||||
_init_globals(cmd);
|
||||
|
||||
cmd->default_settings.cache_vgmetadata = 1;
|
||||
cmd->current_settings = cmd->default_settings;
|
||||
|
||||
|
5
external/gpl2/lvm2/dist/lib/device/dev-io.c
vendored
5
external/gpl2/lvm2/dist/lib/device/dev-io.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dev-io.c,v 1.3 2009/01/06 23:21:16 haad Exp $ */
|
||||
/* $NetBSD: dev-io.c,v 1.4 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
@ -310,6 +310,9 @@ static int _dev_get_size_dev(const struct device *dev, uint64_t *size)
|
||||
|
||||
int dev_get_size(const struct device *dev, uint64_t *size)
|
||||
{
|
||||
if (!dev)
|
||||
return 0;
|
||||
|
||||
if ((dev->flags & DEV_REGULAR))
|
||||
return _dev_get_size_file(dev, size);
|
||||
else
|
||||
|
51
external/gpl2/lvm2/dist/lib/metadata/lv_manip.c
vendored
51
external/gpl2/lvm2/dist/lib/metadata/lv_manip.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lv_manip.c,v 1.2 2008/12/22 00:56:59 haad Exp $ */
|
||||
/* $NetBSD: lv_manip.c,v 1.3 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
@ -518,6 +518,7 @@ struct alloc_handle {
|
||||
uint32_t area_count; /* Number of parallel areas */
|
||||
uint32_t area_multiple; /* seg->len = area_len * area_multiple */
|
||||
uint32_t log_count; /* Number of parallel 1-extent logs */
|
||||
uint32_t log_region_size; /* region size for log device */
|
||||
uint32_t total_area_len; /* Total number of parallel extents */
|
||||
|
||||
struct dm_list *parallel_areas; /* PVs to avoid */
|
||||
@ -545,6 +546,7 @@ static struct alloc_handle *_alloc_init(struct cmd_context *cmd,
|
||||
uint32_t mirrors,
|
||||
uint32_t stripes,
|
||||
uint32_t log_count,
|
||||
uint32_t log_region_size,
|
||||
struct dm_list *parallel_areas)
|
||||
{
|
||||
struct alloc_handle *ah;
|
||||
@ -584,6 +586,7 @@ static struct alloc_handle *_alloc_init(struct cmd_context *cmd,
|
||||
|
||||
ah->area_count = area_count;
|
||||
ah->log_count = log_count;
|
||||
ah->log_region_size = log_region_size;
|
||||
ah->alloc = alloc;
|
||||
ah->area_multiple = calc_area_multiple(segtype, area_count);
|
||||
|
||||
@ -705,6 +708,28 @@ static int _setup_alloced_segments(struct logical_volume *lv,
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns log device size in extents, algorithm from kernel code
|
||||
*/
|
||||
#define BYTE_SHIFT 3
|
||||
static uint32_t mirror_log_extents(uint32_t region_size, uint32_t pe_size, uint32_t area_len)
|
||||
{
|
||||
size_t area_size, bitset_size, log_size, region_count;
|
||||
|
||||
area_size = area_len * pe_size;
|
||||
region_count = dm_div_up(area_size, region_size);
|
||||
|
||||
/* Work out how many "unsigned long"s we need to hold the bitset. */
|
||||
bitset_size = dm_round_up(region_count, sizeof(uint32_t) << BYTE_SHIFT);
|
||||
bitset_size >>= BYTE_SHIFT;
|
||||
|
||||
/* Log device holds both header and bitset. */
|
||||
log_size = dm_round_up((MIRROR_LOG_OFFSET << SECTOR_SHIFT) + bitset_size, 1 << SECTOR_SHIFT);
|
||||
log_size >>= SECTOR_SHIFT;
|
||||
|
||||
return dm_div_up(log_size, pe_size);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function takes a list of pv_areas and adds them to allocated_areas.
|
||||
* If the complete area is not needed then it gets split.
|
||||
@ -747,7 +772,9 @@ static int _alloc_parallel_area(struct alloc_handle *ah, uint32_t needed,
|
||||
if (log_area) {
|
||||
ah->log_area.pv = log_area->map->pv;
|
||||
ah->log_area.pe = log_area->start;
|
||||
ah->log_area.len = MIRROR_LOG_SIZE; /* FIXME Calculate & check this */
|
||||
ah->log_area.len = mirror_log_extents(ah->log_region_size,
|
||||
pv_pe_size(log_area->map->pv),
|
||||
area_len);
|
||||
consume_pv_area(log_area, ah->log_area.len);
|
||||
}
|
||||
|
||||
@ -819,7 +846,7 @@ static int _for_each_pv(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
|
||||
/* FIXME only_single_area_segments used as workaround to skip log LV - needs new param? */
|
||||
if (!only_single_area_segments && seg_is_mirrored(seg) && seg->log_lv) {
|
||||
if (!(r = _for_each_pv(cmd, seg->log_lv, 0, MIRROR_LOG_SIZE,
|
||||
if (!(r = _for_each_pv(cmd, seg->log_lv, 0, seg->log_lv->le_count,
|
||||
NULL, 0, 0, 0, only_single_area_segments,
|
||||
fn, data)))
|
||||
stack;
|
||||
@ -1258,7 +1285,7 @@ struct alloc_handle *allocate_extents(struct volume_group *vg,
|
||||
const struct segment_type *segtype,
|
||||
uint32_t stripes,
|
||||
uint32_t mirrors, uint32_t log_count,
|
||||
uint32_t extents,
|
||||
uint32_t log_region_size, uint32_t extents,
|
||||
struct dm_list *allocatable_pvs,
|
||||
alloc_policy_t alloc,
|
||||
struct dm_list *parallel_areas)
|
||||
@ -1284,7 +1311,7 @@ struct alloc_handle *allocate_extents(struct volume_group *vg,
|
||||
alloc = vg->alloc;
|
||||
|
||||
if (!(ah = _alloc_init(vg->cmd, vg->cmd->mem, segtype, alloc, mirrors,
|
||||
stripes, log_count, parallel_areas)))
|
||||
stripes, log_count, log_region_size, parallel_areas)))
|
||||
return_NULL;
|
||||
|
||||
if (!segtype_is_virtual(segtype) &&
|
||||
@ -1579,7 +1606,7 @@ int lv_extend(struct logical_volume *lv,
|
||||
if (segtype_is_virtual(segtype))
|
||||
return lv_add_virtual_segment(lv, status, extents, segtype);
|
||||
|
||||
if (!(ah = allocate_extents(lv->vg, lv, segtype, stripes, mirrors, 0,
|
||||
if (!(ah = allocate_extents(lv->vg, lv, segtype, stripes, mirrors, 0, 0,
|
||||
extents, allocatable_pvs, alloc, NULL)))
|
||||
return_0;
|
||||
|
||||
@ -1717,7 +1744,7 @@ int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
struct lv_names lv_names;
|
||||
|
||||
/* rename is not allowed on sub LVs */
|
||||
if (!lv_is_visible(lv)) {
|
||||
if (!lv_is_displayable(lv)) {
|
||||
log_error("Cannot rename internal LV \"%s\".", lv->name);
|
||||
return 0;
|
||||
}
|
||||
@ -2679,9 +2706,13 @@ int set_lv(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
if (!dev_open_quiet(dev))
|
||||
return_0;
|
||||
|
||||
dev_set(dev, UINT64_C(0),
|
||||
sectors ? (size_t) sectors << SECTOR_SHIFT : (size_t) 4096,
|
||||
value);
|
||||
if (!sectors)
|
||||
sectors = UINT64_C(4096) >> SECTOR_SHIFT;
|
||||
|
||||
if (sectors > lv->size)
|
||||
sectors = lv->size;
|
||||
|
||||
dev_set(dev, UINT64_C(0), (size_t) sectors << SECTOR_SHIFT, value);
|
||||
dev_flush(dev);
|
||||
dev_close_immediate(dev);
|
||||
|
||||
|
15
external/gpl2/lvm2/dist/libdm/libdm-common.c
vendored
15
external/gpl2/lvm2/dist/libdm/libdm-common.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: libdm-common.c,v 1.2 2008/12/22 00:56:59 haad Exp $ */
|
||||
/* $NetBSD: libdm-common.c,v 1.3 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
@ -151,18 +151,27 @@ int dm_task_set_name(struct dm_task *dmt, const char *name)
|
||||
* as its last component.
|
||||
*/
|
||||
if ((pos = strrchr(name, '/'))) {
|
||||
if (dmt->type == DM_DEVICE_CREATE) {
|
||||
log_error("Name \"%s\" invalid. It contains \"/\".", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s", _dm_dir, pos + 1);
|
||||
|
||||
if (stat(name, &st1) || stat(path, &st2) ||
|
||||
!(st1.st_dev == st2.st_dev)) {
|
||||
log_error("dm_task_set_name: Device %s not found",
|
||||
name);
|
||||
log_error("Device %s not found", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
name = pos + 1;
|
||||
}
|
||||
|
||||
if (strlen(name) >= DM_NAME_LEN) {
|
||||
log_error("Name \"%s\" too long", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(dmt->dev_name = dm_strdup(name))) {
|
||||
log_error("dm_task_set_name: strdup(%s) failed", name);
|
||||
return 0;
|
||||
|
137
external/gpl2/lvm2/dist/libdm/libdm-deptree.c
vendored
137
external/gpl2/lvm2/dist/libdm/libdm-deptree.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: libdm-deptree.c,v 1.2 2008/12/22 00:56:59 haad Exp $ */
|
||||
/* $NetBSD: libdm-deptree.c,v 1.3 2009/02/18 12:16:13 haad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved.
|
||||
@ -137,22 +137,6 @@ struct dm_tree {
|
||||
int no_flush; /* 1 sets noflush (mirrors/multipath) */
|
||||
};
|
||||
|
||||
/* FIXME Consider exporting this */
|
||||
static int _dm_snprintf(char *buf, size_t bufsize, const char *format, ...)
|
||||
{
|
||||
int n;
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, format);
|
||||
n = vsnprintf(buf, bufsize, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (n < 0 || (n > (int) bufsize - 1))
|
||||
return -1;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
struct dm_tree *dm_tree_create(void)
|
||||
{
|
||||
struct dm_tree *dtree;
|
||||
@ -1240,27 +1224,29 @@ static int _build_dev_string(char *devbuf, size_t bufsize, struct dm_tree_node *
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* simplify string emiting code */
|
||||
#define EMIT_PARAMS(p, str...)\
|
||||
do {\
|
||||
int w;\
|
||||
if ((w = dm_snprintf(params + p, paramsize - (size_t) p, str)) < 0) {\
|
||||
stack; /* Out of space */\
|
||||
return -1;\
|
||||
}\
|
||||
p += w;\
|
||||
} while (0)
|
||||
|
||||
static int _emit_areas_line(struct dm_task *dmt __attribute((unused)),
|
||||
struct load_segment *seg, char *params,
|
||||
size_t paramsize, int *pos)
|
||||
{
|
||||
struct seg_area *area;
|
||||
char devbuf[DM_FORMAT_DEV_BUFSIZE];
|
||||
int tw;
|
||||
const char *prefix = "";
|
||||
|
||||
dm_list_iterate_items(area, &seg->areas) {
|
||||
if (!_build_dev_string(devbuf, sizeof(devbuf), area->dev_node))
|
||||
return_0;
|
||||
|
||||
if ((tw = _dm_snprintf(params + *pos, paramsize - *pos, "%s%s %" PRIu64,
|
||||
prefix, devbuf, area->offset)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
|
||||
prefix = " ";
|
||||
*pos += tw;
|
||||
EMIT_PARAMS(*pos, " %s %" PRIu64, devbuf, area->offset);
|
||||
}
|
||||
|
||||
return 1;
|
||||
@ -1269,9 +1255,8 @@ static int _emit_areas_line(struct dm_task *dmt __attribute((unused)),
|
||||
static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uint64_t *seg_start, char *params, size_t paramsize)
|
||||
{
|
||||
unsigned log_parm_count;
|
||||
int pos = 0;
|
||||
int tw;
|
||||
int r;
|
||||
int pos = 0;
|
||||
int r;
|
||||
char originbuf[DM_FORMAT_DEV_BUFSIZE], cowbuf[DM_FORMAT_DEV_BUFSIZE];
|
||||
char logbuf[DM_FORMAT_DEV_BUFSIZE];
|
||||
const char *logtype;
|
||||
@ -1291,11 +1276,7 @@ static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uin
|
||||
if (seg->clustered) {
|
||||
if (seg->uuid)
|
||||
log_parm_count++;
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "clustered-")) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
EMIT_PARAMS(pos, "clustered-");
|
||||
}
|
||||
|
||||
if (!seg->log)
|
||||
@ -1307,61 +1288,25 @@ static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uin
|
||||
return_0;
|
||||
}
|
||||
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "%s %u ", logtype, log_parm_count)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
EMIT_PARAMS(pos, "%s %u", logtype, log_parm_count);
|
||||
|
||||
if (seg->log) {
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "%s ", logbuf)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
}
|
||||
if (seg->log)
|
||||
EMIT_PARAMS(pos, " %s", logbuf);
|
||||
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "%u ", seg->region_size)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
EMIT_PARAMS(pos, " %u", seg->region_size);
|
||||
|
||||
if (seg->clustered && seg->uuid) {
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "%s ", seg->uuid)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
}
|
||||
if (seg->clustered && seg->uuid)
|
||||
EMIT_PARAMS(pos, " %s", seg->uuid);
|
||||
|
||||
if ((seg->flags & DM_NOSYNC)) {
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "nosync ")) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
} else if ((seg->flags & DM_FORCESYNC)) {
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "sync ")) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
}
|
||||
if ((seg->flags & DM_NOSYNC))
|
||||
EMIT_PARAMS(pos, " nosync");
|
||||
else if ((seg->flags & DM_FORCESYNC))
|
||||
EMIT_PARAMS(pos, " sync");
|
||||
|
||||
if ((seg->flags & DM_BLOCK_ON_ERROR)) {
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "block_on_error ")) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
}
|
||||
if ((seg->flags & DM_BLOCK_ON_ERROR))
|
||||
EMIT_PARAMS(pos, " block_on_error");
|
||||
|
||||
if ((tw = _dm_snprintf(params + pos, paramsize - pos, "%u ", seg->mirror_area_count)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
pos += tw;
|
||||
EMIT_PARAMS(pos, " %u", seg->mirror_area_count);
|
||||
|
||||
break;
|
||||
case SEG_SNAPSHOT:
|
||||
@ -1369,30 +1314,16 @@ static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uin
|
||||
return_0;
|
||||
if (!_build_dev_string(cowbuf, sizeof(cowbuf), seg->cow))
|
||||
return_0;
|
||||
if ((pos = _dm_snprintf(params, paramsize, "%s %s %c %d",
|
||||
originbuf, cowbuf,
|
||||
seg->persistent ? 'P' : 'N',
|
||||
seg->chunk_size)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
EMIT_PARAMS(pos, "%s %s %c %d", originbuf, cowbuf,
|
||||
seg->persistent ? 'P' : 'N', seg->chunk_size);
|
||||
break;
|
||||
case SEG_SNAPSHOT_ORIGIN:
|
||||
if (!_build_dev_string(originbuf, sizeof(originbuf), seg->origin))
|
||||
return_0;
|
||||
if ((pos = _dm_snprintf(params, paramsize, "%s",
|
||||
originbuf)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
EMIT_PARAMS(pos, "%s", originbuf);
|
||||
break;
|
||||
case SEG_STRIPED:
|
||||
if ((pos = _dm_snprintf(params, paramsize, "%u %u ",
|
||||
seg->area_count,
|
||||
seg->stripe_size)) < 0) {
|
||||
stack; /* Out of space */
|
||||
return -1;
|
||||
}
|
||||
EMIT_PARAMS(pos, "%u %u", seg->area_count, seg->stripe_size);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1423,6 +1354,8 @@ static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uin
|
||||
return 1;
|
||||
}
|
||||
|
||||
#undef EMIT_PARAMS
|
||||
|
||||
static int _emit_segment(struct dm_task *dmt, struct load_segment *seg,
|
||||
uint64_t *seg_start)
|
||||
{
|
||||
|
151
external/gpl2/lvm2/dist/man/Makefile.in
vendored
151
external/gpl2/lvm2/dist/man/Makefile.in
vendored
@ -1,6 +1,6 @@
|
||||
#
|
||||
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
# Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
|
||||
# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This file is part of LVM2.
|
||||
#
|
||||
@ -16,74 +16,95 @@ srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
ifeq ("@FSADM@", "yes")
|
||||
FSADMMAN = fsadm.8
|
||||
SUBDIRS = doc include man scripts
|
||||
|
||||
ifeq ("@INTL@", "yes")
|
||||
SUBDIRS += po
|
||||
endif
|
||||
|
||||
SUBDIRS += lib tools daemons libdm
|
||||
|
||||
ifeq ($(MAKECMDGOALS),distclean)
|
||||
SUBDIRS += daemons/clvmd \
|
||||
daemons/dmeventd/plugins \
|
||||
lib/format1 \
|
||||
lib/format_pool \
|
||||
lib/locking \
|
||||
lib/mirror \
|
||||
lib/snapshot \
|
||||
test \
|
||||
po
|
||||
DISTCLEAN_TARGETS += lib/misc/configure.h
|
||||
DISTCLEAN_DIRS += lcov_reports*
|
||||
endif
|
||||
|
||||
include make.tmpl
|
||||
|
||||
libdm: include
|
||||
lib: libdm
|
||||
daemons: lib tools
|
||||
tools: lib device-mapper
|
||||
po: tools daemons
|
||||
|
||||
libdm.device-mapper: include.device-mapper
|
||||
daemons.device-mapper: libdm.device-mapper
|
||||
tools.device-mapper: libdm.device-mapper
|
||||
device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
|
||||
|
||||
ifeq ("@INTL@", "yes")
|
||||
lib.pofile: include.pofile
|
||||
tools.pofile: lib.pofile
|
||||
daemons.pofile: lib.pofile
|
||||
po.pofile: tools.pofile daemons.pofile
|
||||
pofile: po.pofile
|
||||
endif
|
||||
|
||||
ifneq ("@CFLOW_CMD@", "")
|
||||
tools.cflow: lib.cflow
|
||||
cflow: tools.cflow
|
||||
endif
|
||||
|
||||
ifneq ("@CSCOPE_CMD@", "")
|
||||
cscope.out: tools
|
||||
@CSCOPE_CMD@ -b -R
|
||||
all: cscope.out
|
||||
endif
|
||||
|
||||
check: all
|
||||
$(MAKE) -C test all
|
||||
|
||||
ifneq ("@LCOV@", "")
|
||||
.PHONY: lcov-reset lcov lcov-dated
|
||||
|
||||
ifeq ($(MAKECMDGOALS),lcov-dated)
|
||||
LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
|
||||
else
|
||||
FSADMMAN =
|
||||
LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
|
||||
endif
|
||||
|
||||
MAN5=lvm.conf.5
|
||||
MAN8=lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \
|
||||
lvmchange.8 lvmdiskscan.8 lvmdump.8 \
|
||||
lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \
|
||||
lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \
|
||||
pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \
|
||||
vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \
|
||||
vgimport.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 \
|
||||
vgs.8 vgscan.8 vgsplit.8 $(FSADMMAN)
|
||||
MAN8CLUSTER=clvmd.8
|
||||
MAN8DM=dmsetup.8
|
||||
MAN5DIR=${mandir}/man5
|
||||
MAN8DIR=${mandir}/man8
|
||||
lcov-reset:
|
||||
$(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
|
||||
$(LCOV) -d $(top_srcdir)/libdm --zerocounters
|
||||
$(LCOV) -d $(top_srcdir)/lib --zerocounters
|
||||
$(LCOV) -d $(top_srcdir)/tools --zerocounters
|
||||
|
||||
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
|
||||
|
||||
include $(top_srcdir)/make.tmpl
|
||||
|
||||
ifneq ("@CLVMD@", "none")
|
||||
install: install_cluster
|
||||
lcov: all
|
||||
$(RM) -rf $(LCOV_REPORTS_DIR)
|
||||
$(MKDIR_P) $(LCOV_REPORTS_DIR)
|
||||
$(LCOV) -b ${top_srcdir}/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info
|
||||
$(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
|
||||
$(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
|
||||
DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
|
||||
DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
|
||||
$(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
|
||||
$(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
|
||||
-a $(LCOV_REPORTS_DIR)/libdm.info \
|
||||
-a $(LCOV_REPORTS_DIR)/tools.info \
|
||||
-o $(LCOV_REPORTS_DIR)/lvm.info
|
||||
ifneq ("@GENHTML@", "")
|
||||
$(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
|
||||
endif
|
||||
|
||||
all: man
|
||||
lcov-dated: lcov
|
||||
|
||||
.PHONY: man
|
||||
|
||||
device-mapper: $(MAN8DM)
|
||||
|
||||
man: $(MAN5) $(MAN8) $(MAN8CLUSTER)
|
||||
|
||||
$(MAN5) $(MAN8) $(MAN8CLUSTER): Makefile
|
||||
|
||||
%: %.in
|
||||
$(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@
|
||||
|
||||
install: install_device-mapper
|
||||
@echo "Installing $(MAN8) in $(MAN8DIR)"
|
||||
@for f in $(MAN8); \
|
||||
do \
|
||||
$(RM) $(MAN8DIR)/$$f; \
|
||||
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
||||
done
|
||||
|
||||
@echo "Installing $(MAN5) in $(MAN5DIR)"
|
||||
@for f in $(MAN5); \
|
||||
do \
|
||||
$(RM) $(MAN5DIR)/$$f; \
|
||||
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
|
||||
done
|
||||
|
||||
install_cluster:
|
||||
@echo "Installing $(MAN8CLUSTER) in $(MAN8DIR)"
|
||||
@for f in $(MAN8CLUSTER); \
|
||||
do \
|
||||
$(RM) $(MAN8DIR)/$$f; \
|
||||
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
||||
done
|
||||
|
||||
install_device-mapper:
|
||||
@echo "Installing $(MAN8DM) in $(MAN8DIR)"
|
||||
@for f in $(MAN8DM); \
|
||||
do \
|
||||
$(RM) $(MAN8DIR)/$$f; \
|
||||
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
||||
done
|
||||
endif
|
||||
|
4
external/gpl2/lvm2/dist/man/clvmd.8
vendored
4
external/gpl2/lvm2/dist/man/clvmd.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: clvmd.8,v 1.1.1.1 2008/12/22 00:18:22 haad Exp $
|
||||
.\" $NetBSD: clvmd.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH CLVMD 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Red Hat Inc" \" -*- nroff -*-
|
||||
.TH CLVMD 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Red Hat Inc" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
clvmd \- cluster LVM daemon
|
||||
.SH SYNOPSIS
|
||||
|
2
external/gpl2/lvm2/dist/man/dmsetup.8
vendored
2
external/gpl2/lvm2/dist/man/dmsetup.8
vendored
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: dmsetup.8,v 1.1.1.1 2008/12/22 00:18:22 haad Exp $
|
||||
.\" $NetBSD: dmsetup.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH DMSETUP 8 "Apr 06 2006" "Linux" "MAINTENANCE COMMANDS"
|
||||
.SH NAME
|
||||
|
2
external/gpl2/lvm2/dist/man/fsadm.8
vendored
2
external/gpl2/lvm2/dist/man/fsadm.8
vendored
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: fsadm.8,v 1.1.1.2 2009/02/18 11:17:31 haad Exp $
|
||||
.\" $NetBSD: fsadm.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH "FSADM" "8" "LVM TOOLS 2.02.44-cvs (02-17-09)" "Red Hat, Inc" "\""
|
||||
.SH "NAME"
|
||||
|
28
external/gpl2/lvm2/dist/man/lvchange.8
vendored
28
external/gpl2/lvm2/dist/man/lvchange.8
vendored
@ -1,32 +1,32 @@
|
||||
.\" $NetBSD: lvchange.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: lvchange.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVCHANGE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVCHANGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvchange \- change attributes of a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvchange
|
||||
[\-\-addtag Tag]
|
||||
[\-A/\-\-autobackup y/n] [\-a/\-\-available y/n/ey/en/ly/ln]
|
||||
[\-A|\-\-autobackup y|n] [\-a|\-\-available y|n|ey|en|ly|ln]
|
||||
[\-\-alloc AllocationPolicy]
|
||||
[\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-\-deltag Tag]
|
||||
[\-C|\-\-contiguous y|n] [\-d|\-\-debug] [\-\-deltag Tag]
|
||||
[\-\-resync]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure]
|
||||
[\-\-ignoremonitoring]
|
||||
[\-\-monitor {y|n}]
|
||||
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
||||
[\-P/\-\-partial]
|
||||
[\-p/\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
|
||||
[\-M|\-\-persistent y|n] [\-\-minor minor]
|
||||
[\-P|\-\-partial]
|
||||
[\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
|
||||
[\-\-refresh]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
lvchange allows you to change the attributes of a logical volume
|
||||
including making them known to the kernel ready for use.
|
||||
.SH OPTIONS
|
||||
See \fBlvm\fP for common options.
|
||||
.TP
|
||||
.I \-a, \-\-available y/n/ey/en/ly/ln
|
||||
.I \-a, \-\-available y|n|ey|en|ly|ln
|
||||
Controls the availability of the logical volumes for use.
|
||||
Communicates with the kernel device-mapper driver via
|
||||
libdevmapper to activate (-ay) or deactivate (-an) the
|
||||
@ -38,7 +38,7 @@ To deactivate only on the local node use -aln.
|
||||
Logical volumes with single-host snapshots are always activated
|
||||
exclusively because they can only be used on one node at once.
|
||||
.TP
|
||||
.I \-C, \-\-contiguous y/n
|
||||
.I \-C, \-\-contiguous y|n
|
||||
Tries to set or reset the contiguous allocation policy for
|
||||
logical volumes. It's only possible to change a non-contiguous
|
||||
logical volume's allocation policy to contiguous, if all of the
|
||||
@ -55,7 +55,7 @@ of your data.
|
||||
.I \-\-minor minor
|
||||
Set the minor number.
|
||||
.TP
|
||||
.I \-\-monitor y/n
|
||||
.I \-\-monitor y|n
|
||||
Controls whether or not a mirrored logical volume is monitored by
|
||||
dmeventd, if it is installed.
|
||||
If a device used by a monitored mirror reports an I/O error,
|
||||
@ -68,7 +68,7 @@ Make no attempt to interact with dmeventd unless \-\-monitor
|
||||
is specified.
|
||||
Do not use this if dmeventd is already monitoring a device.
|
||||
.TP
|
||||
.I \-M, \-\-persistent y/n
|
||||
.I \-M, \-\-persistent y|n
|
||||
Set to y to make the minor number specified persistent.
|
||||
.TP
|
||||
.I \-p, \-\-permission r|rw
|
||||
|
24
external/gpl2/lvm2/dist/man/lvconvert.8
vendored
24
external/gpl2/lvm2/dist/man/lvconvert.8
vendored
@ -1,15 +1,15 @@
|
||||
.\" $NetBSD: lvconvert.8,v 1.1.1.1 2008/12/22 00:18:22 haad Exp $
|
||||
.\" $NetBSD: lvconvert.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVCONVERT 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Red Hat, Inc" \" -*- nroff -*-
|
||||
.TH LVCONVERT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Red Hat, Inc" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvconvert \- convert a logical volume from linear to mirror or snapshot
|
||||
.SH SYNOPSIS
|
||||
.B lvconvert
|
||||
\-m/\-\-mirrors Mirrors [\-\-mirrorlog {disk|core}] [\-\-corelog] [\-R/\-\-regionsize MirrorLogRegionSize]
|
||||
[\-A/\-\-alloc AllocationPolicy]
|
||||
[\-b/\-\-background] [\-i/\-\-interval Seconds]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-v/\-\-verbose]
|
||||
\-m|\-\-mirrors Mirrors [\-\-mirrorlog {disk|core}] [\-\-corelog] [\-R|\-\-regionsize MirrorLogRegionSize]
|
||||
[\-A|\-\-alloc AllocationPolicy]
|
||||
[\-b|\-\-background] [\-i|\-\-interval Seconds]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-v|\-\-verbose]
|
||||
[\-\-version]
|
||||
.br
|
||||
LogicalVolume[Path] [PhysicalVolume[Path]...]
|
||||
@ -17,10 +17,10 @@ LogicalVolume[Path] [PhysicalVolume[Path]...]
|
||||
|
||||
.br
|
||||
.B lvconvert
|
||||
\-s/\-\-snapshot [\-c/\-\-chunksize ChunkSize]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-v/\-\-verbose]
|
||||
[\-Z/\-\-zero y/n]
|
||||
\-s|\-\-snapshot [\-c|\-\-chunksize ChunkSize]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-v|\-\-verbose]
|
||||
[\-Z|\-\-zero y|n]
|
||||
[\-\-version]
|
||||
.br
|
||||
OriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]
|
||||
@ -70,7 +70,7 @@ existing logical volume as its origin.
|
||||
.I \-c, \-\-chunksize ChunkSize
|
||||
Power of 2 chunk size for the snapshot logical volume between 4k and 512k.
|
||||
.TP
|
||||
.I \-Z, \-\-zero y/n
|
||||
.I \-Z, \-\-zero y|n
|
||||
Controls zeroing of the first KB of data in the snapshot.
|
||||
If the volume is read-only the snapshot will not be zeroed.
|
||||
.br
|
||||
|
42
external/gpl2/lvm2/dist/man/lvcreate.8
vendored
42
external/gpl2/lvm2/dist/man/lvcreate.8
vendored
@ -1,33 +1,33 @@
|
||||
.\" $NetBSD: lvcreate.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvcreate.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVCREATE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVCREATE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvcreate \- create a logical volume in an existing volume group
|
||||
.SH SYNOPSIS
|
||||
.B lvcreate
|
||||
[\-\-addtag Tag]
|
||||
[\-\-alloc AllocationPolicy]
|
||||
[\-A/\-\-autobackup y/n] [\-C/\-\-contiguous y/n] [\-d/\-\-debug]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-i/\-\-stripes Stripes [\-I/\-\-stripesize StripeSize]]
|
||||
{\-l/\-\-extents LogicalExtentsNumber[%{VG|PVS|FREE}] |
|
||||
\-L/\-\-size LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
||||
[\-m/\-\-mirrors Mirrors [\-\-nosync] [\-\-mirrorlog {disk|core}] [\-\-corelog]
|
||||
[\-R/\-\-regionsize MirrorLogRegionSize]]
|
||||
[\-n/\-\-name LogicalVolumeName]
|
||||
[\-p/\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] [\-Z/\-\-zero y/n]
|
||||
[\-A|\-\-autobackup y|n] [\-C|\-\-contiguous y|n] [\-d|\-\-debug]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-i|\-\-stripes Stripes [\-I|\-\-stripesize StripeSize]]
|
||||
{\-l|\-\-extents LogicalExtentsNumber[%{VG|PVS|FREE}] |
|
||||
\-L|\-\-size LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-M|\-\-persistent y|n] [\-\-minor minor]
|
||||
[\-m|\-\-mirrors Mirrors [\-\-nosync] [\-\-mirrorlog {disk|core}] [\-\-corelog]
|
||||
[\-R|\-\-regionsize MirrorLogRegionSize]]
|
||||
[\-n|\-\-name LogicalVolumeName]
|
||||
[\-p|\-\-permission r|rw] [\-r|\-\-readahead ReadAheadSectors|auto|none]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] [\-Z|\-\-zero y|n]
|
||||
VolumeGroupName [PhysicalVolumePath...]
|
||||
.br
|
||||
|
||||
.br
|
||||
.B lvcreate
|
||||
{\-l/\-\-extents LogicalExtentsNumber[%{VG|FREE}] |
|
||||
\-L/\-\-size LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-c/\-\-chunksize ChunkSize]
|
||||
\-s/\-\-snapshot \-n/\-\-name SnapshotLogicalVolumeName OriginalLogicalVolumePath
|
||||
{\-l|\-\-extents LogicalExtentsNumber[%{VG|FREE}] |
|
||||
\-L|\-\-size LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-c|\-\-chunksize ChunkSize]
|
||||
\-s|\-\-snapshot \-n|\-\-name SnapshotLogicalVolumeName OriginalLogicalVolumePath
|
||||
.SH DESCRIPTION
|
||||
lvcreate creates a new logical volume in a volume group ( see
|
||||
.B vgcreate(8), vgchange(8)
|
||||
@ -48,7 +48,7 @@ See \fBlvm\fP for common options.
|
||||
.I \-c, \-\-chunksize ChunkSize
|
||||
Power of 2 chunk size for the snapshot logical volume between 4k and 512k.
|
||||
.TP
|
||||
.I \-C, \-\-contiguous y/n
|
||||
.I \-C, \-\-contiguous y|n
|
||||
Sets or resets the contiguous allocation policy for
|
||||
logical volumes. Default is no contiguous allocation based
|
||||
on a next free principle.
|
||||
@ -85,7 +85,7 @@ Default unit is megabytes.
|
||||
.I \-\-minor minor
|
||||
Set the minor number.
|
||||
.TP
|
||||
.I \-M, \-\-persistent y/n
|
||||
.I \-M, \-\-persistent y|n
|
||||
Set to y to make the minor number specified persistent.
|
||||
.TP
|
||||
.I \-m, \-\-mirrors Mirrors
|
||||
@ -147,7 +147,7 @@ as well. Run
|
||||
.B lvdisplay(8)
|
||||
on the snapshot in order to check how much data is allocated to it.
|
||||
.TP
|
||||
.I \-Z, \-\-zero y/n
|
||||
.I \-Z, \-\-zero y|n
|
||||
Controls zeroing of the first KB of data in the new logical volume.
|
||||
.br
|
||||
Default is yes.
|
||||
|
10
external/gpl2/lvm2/dist/man/lvdisplay.8
vendored
10
external/gpl2/lvm2/dist/man/lvdisplay.8
vendored
@ -1,14 +1,14 @@
|
||||
.\" $NetBSD: lvdisplay.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvdisplay.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVDISPLAY 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVDISPLAY 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvdisplay \- display attributes of a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvdisplay
|
||||
[\-c/\-\-colon] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-c|\-\-colon] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure]
|
||||
[\-\-maps] [\-P/\-\-partial]
|
||||
[\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
[\-\-maps] [\-P|\-\-partial]
|
||||
[\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
lvdisplay allows you to see the attributes of a logical volume
|
||||
like size, read/write status, snapshot information etc.
|
||||
|
16
external/gpl2/lvm2/dist/man/lvextend.8
vendored
16
external/gpl2/lvm2/dist/man/lvextend.8
vendored
@ -1,17 +1,17 @@
|
||||
.\" $NetBSD: lvextend.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvextend.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVEXTEND 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVEXTEND 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvextend \- extend the size of a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvextend
|
||||
[\-\-alloc AllocationPolicy]
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-i/\-\-stripes Stripes [\-I/\-\-stripesize StripeSize]]
|
||||
{\-l/\-\-extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
|
||||
\-L/\-\-size [+]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] LogicalVolumePath [PhysicalVolumePath...]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-i|\-\-stripes Stripes [\-I|\-\-stripesize StripeSize]]
|
||||
{\-l|\-\-extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
|
||||
\-L|\-\-size [+]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] LogicalVolumePath [PhysicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
lvextend allows you to extend the size of a logical volume.
|
||||
Extension of snapshot logical volumes (see
|
||||
|
4
external/gpl2/lvm2/dist/man/lvm.8
vendored
4
external/gpl2/lvm2/dist/man/lvm.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvm.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvm.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVM 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVM 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvm \- LVM2 tools
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/lvm.conf.5
vendored
4
external/gpl2/lvm2/dist/man/lvm.conf.5
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvm.conf.5,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvm.conf.5,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVM.CONF 5 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVM.CONF 5 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvm.conf \- Configuration file for LVM2
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/lvmchange.8
vendored
4
external/gpl2/lvm2/dist/man/lvmchange.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvmchange.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvmchange.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVMCHANGE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVMCHANGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvmchange \- change attributes of the logical volume manager
|
||||
.SH SYNOPSIS
|
||||
|
10
external/gpl2/lvm2/dist/man/lvmdiskscan.8
vendored
10
external/gpl2/lvm2/dist/man/lvmdiskscan.8
vendored
@ -1,13 +1,13 @@
|
||||
.\" $NetBSD: lvmdiskscan.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvmdiskscan.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVMDISKSCAN 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVMDISKSCAN 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvmdiskscan \- scan for all devices visible to LVM2
|
||||
.SH SYNOPSIS
|
||||
.B lvmdiskscan
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-l/\-\-lvmpartition]
|
||||
[\-v/\-\-verbose]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-l|\-\-lvmpartition]
|
||||
[\-v|\-\-verbose]
|
||||
.SH DESCRIPTION
|
||||
\fBlvmdiskscan\fP scans all SCSI, (E)IDE disks, multiple devices and a bunch
|
||||
of other block devices in the system looking for LVM physical volumes.
|
||||
|
4
external/gpl2/lvm2/dist/man/lvmdump.8
vendored
4
external/gpl2/lvm2/dist/man/lvmdump.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvmdump.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvmdump.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVMDUMP 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Red Hat, Inc."
|
||||
.TH LVMDUMP 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Red Hat, Inc."
|
||||
.SH NAME
|
||||
lvmdump - create lvm2 information dumps for diagnostic purposes
|
||||
.SH SYNOPSIS
|
||||
|
16
external/gpl2/lvm2/dist/man/lvreduce.8
vendored
16
external/gpl2/lvm2/dist/man/lvreduce.8
vendored
@ -1,16 +1,16 @@
|
||||
.\" $NetBSD: lvreduce.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvreduce.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVREDUCE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVREDUCE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvreduce \- reduce the size of a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvreduce
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-f/\-\-force]
|
||||
[\-h/\-?/\-\-help]
|
||||
{\-l/\-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}] |
|
||||
\-L/\-\-size [\-]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] LogicalVolume[Path]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-f|\-\-force]
|
||||
[\-h|\-?|\-\-help]
|
||||
{\-l|\-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}] |
|
||||
\-L|\-\-size [\-]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] LogicalVolume[Path]
|
||||
.SH DESCRIPTION
|
||||
lvreduce allows you to reduce the size of a logical volume.
|
||||
Be careful when reducing a logical volume's size, because data in the
|
||||
|
13
external/gpl2/lvm2/dist/man/lvremove.8
vendored
13
external/gpl2/lvm2/dist/man/lvremove.8
vendored
@ -1,19 +1,20 @@
|
||||
.\" $NetBSD: lvremove.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvremove.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVREMOVE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVREMOVE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvremove \- remove a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvremove
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-f/\-\-force]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-f|\-\-force]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
\fBlvremove\fP removes one or more logical volumes.
|
||||
Confirmation will be requested before deactivating any active logical
|
||||
volume prior to removal. Logical volumes cannot be deactivated
|
||||
or removed while they are open (e.g. if they contain a mounted filesystem).
|
||||
Removing an origin logical volume will also remove all dependent snapshots.
|
||||
.sp
|
||||
If the logical volume is clustered then it must be deactivated on all
|
||||
nodes in the cluster before it can be removed. A single lvchange command
|
||||
|
4
external/gpl2/lvm2/dist/man/lvrename.8
vendored
4
external/gpl2/lvm2/dist/man/lvrename.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvrename.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvrename.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVRENAME 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVRENAME 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvrename \- rename a logical volume
|
||||
.SH SYNOPSIS
|
||||
|
20
external/gpl2/lvm2/dist/man/lvresize.8
vendored
20
external/gpl2/lvm2/dist/man/lvresize.8
vendored
@ -1,17 +1,17 @@
|
||||
.\" $NetBSD: lvresize.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvresize.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVRESIZE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVRESIZE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvresize \- resize a logical volume
|
||||
.SH SYNOPSIS
|
||||
.B lvresize
|
||||
[\-\-alloc AllocationPolicy]
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-i/\-\-stripes Stripes [\-I/\-\-stripesize StripeSize]]
|
||||
{\-l/\-\-extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
|
||||
\-L/\-\-size [+]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] LogicalVolumePath [PhysicalVolumePath...]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-i|\-\-stripes Stripes [\-I|\-\-stripesize StripeSize]]
|
||||
{\-l|\-\-extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
|
||||
\-L|\-\-size [+]LogicalVolumeSize[kKmMgGtT]}
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] LogicalVolumePath [PhysicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
lvresize allows you to resize a logical volume.
|
||||
Be careful when reducing a logical volume's size, because data in the reduced
|
||||
@ -27,7 +27,7 @@ volume use
|
||||
.SH OPTIONS
|
||||
See \fBlvm\fP for common options.
|
||||
.TP
|
||||
.I \-l, \-\-extents [+/-]LogicalExtentsNumber[%{VG|LV|PVS|FREE}]
|
||||
.I \-l, \-\-extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE}]
|
||||
Change or set the logical volume size in units of logical extents.
|
||||
With the + or - sign the value is added to or subtracted from the actual size
|
||||
of the logical volume and without it, the value is taken as an absolute one.
|
||||
@ -38,7 +38,7 @@ the remaining free space of the PhysicalVolumes on the command line with the
|
||||
suffix %PVS, or as a percentage of the remaining free space in the
|
||||
Volume Group with the suffix %FREE.
|
||||
.TP
|
||||
.I \-L, \-\-size [+/-]LogicalVolumeSize[kKmMgGtTpPeE]
|
||||
.I \-L, \-\-size [+|-]LogicalVolumeSize[kKmMgGtTpPeE]
|
||||
Change or set the logical volume size in units of megabytes.
|
||||
A size suffix of M for megabytes,
|
||||
G for gigabytes, T for terabytes, P for petabytes
|
||||
|
28
external/gpl2/lvm2/dist/man/lvs.8
vendored
28
external/gpl2/lvm2/dist/man/lvs.8
vendored
@ -1,18 +1,19 @@
|
||||
.\" $NetBSD: lvs.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvs.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVS 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVS 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvs \- report information about logical volumes
|
||||
.SH SYNOPSIS
|
||||
.B lvs
|
||||
[\-\-aligned] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o/\-\-options [+]Field[,Field]]
|
||||
[\-O/\-\-sort [+/-]Key1[,[+/-]Key2[,...]]]
|
||||
[\-P/\-\-partial] [\-\-segments]
|
||||
[\-\-aligned] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-nameprefixes] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o|\-\-options [+]Field[,Field]]
|
||||
[\-O|\-\-sort [+|-]Key1[,[+|-]Key2[,...]]]
|
||||
[\-P|\-\-partial] [\-\-rows] [\-\-segments]
|
||||
[\-\-separator Separator] [\-\-unbuffered]
|
||||
[\-\-units hsbkmgtHKMGT]
|
||||
[\-v/\-\-verbose]
|
||||
[\-\-unquoted]
|
||||
[\-v|\-\-verbose]
|
||||
[\-\-version] [VolumeGroupName [VolumeGroupName...]]
|
||||
.SH DESCRIPTION
|
||||
lvs produces formatted output about logical volumes.
|
||||
@ -22,6 +23,11 @@ See \fBlvm\fP for common options.
|
||||
.I \-\-aligned
|
||||
Use with \-\-separator to align the output columns.
|
||||
.TP
|
||||
.I \-\-nameprefixes
|
||||
Add an "LVM2_" prefix plus the field name to the output. Useful
|
||||
with --noheadings to produce a list of field=value pairs that can
|
||||
be used to set environment variables (for example, in \fBudev (7)\fP rules).
|
||||
.TP
|
||||
.I \-\-noheadings
|
||||
Suppress the headings line that is normally the first line of output.
|
||||
Useful if grepping the output.
|
||||
@ -73,6 +79,9 @@ Use default columns that emphasize segment information.
|
||||
Comma-separated ordered list of columns to sort by. Replaces the default
|
||||
selection. Precede any column with - for a reverse sort on that column.
|
||||
.TP
|
||||
.I \-\-rows
|
||||
Output columns as rows.
|
||||
.TP
|
||||
.I \-\-separator Separator
|
||||
String to use to separate each column. Useful if grepping the output.
|
||||
.TP
|
||||
@ -84,6 +93,9 @@ All sizes are output in these units: (h)uman-readable, (s)ectors, (b)ytes,
|
||||
(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes. Capitalise to use multiples
|
||||
of 1000 (S.I.) instead of 1024. Can also specify custom (u)nits e.g.
|
||||
\-\-units 3M
|
||||
.TP
|
||||
.I \-\-unquoted
|
||||
When used with --nameprefixes, output values in the field=value pairs are not quoted.
|
||||
.SH SEE ALSO
|
||||
.BR lvm (8),
|
||||
.BR lvdisplay (8),
|
||||
|
4
external/gpl2/lvm2/dist/man/lvscan.8
vendored
4
external/gpl2/lvm2/dist/man/lvscan.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: lvscan.8,v 1.1.1.1 2008/12/22 00:18:23 haad Exp $
|
||||
.\" $NetBSD: lvscan.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH LVSCAN 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH LVSCAN 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
lvscan \- scan (all disks) for logical volumes
|
||||
.SH SYNOPSIS
|
||||
|
16
external/gpl2/lvm2/dist/man/pvchange.8
vendored
16
external/gpl2/lvm2/dist/man/pvchange.8
vendored
@ -1,17 +1,17 @@
|
||||
.\" $NetBSD: pvchange.8,v 1.1.1.1 2008/12/22 00:18:22 haad Exp $
|
||||
.\" $NetBSD: pvchange.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVCHANGE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVCHANGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvchange \- change attributes of a physical volume
|
||||
.SH SYNOPSIS
|
||||
.B pvchange
|
||||
[\-\-addtag Tag]
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug]
|
||||
[\-\-deltag Tag]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] [\-a/\-\-all] [\-x/\-\-allocatable y/n]
|
||||
[\-u/\-\-uuid] [PhysicalVolumePath...]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] [\-a|\-\-all] [\-x|\-\-allocatable y|n]
|
||||
[\-u|\-\-uuid] [PhysicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
pvchange allows you to change the allocation permissions of one or
|
||||
more physical volumes.
|
||||
@ -25,7 +25,7 @@ physical volumes are searched for and used.
|
||||
.I \-u, \-\-uuid
|
||||
Generate new random UUID for specified physical volumes.
|
||||
.TP
|
||||
.I \-x, \-\-allocatable y/n
|
||||
.I \-x, \-\-allocatable y|n
|
||||
Enable or disable allocation of physical extents on this physical volume.
|
||||
.SH Example
|
||||
"pvchange -x n /dev/sdk1" disallows the allocation of physical extents
|
||||
|
4
external/gpl2/lvm2/dist/man/pvck.8
vendored
4
external/gpl2/lvm2/dist/man/pvck.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: pvck.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvck.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVCK 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVCK 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvck \- check physical volume metadata
|
||||
.SH SYNOPSIS
|
||||
|
8
external/gpl2/lvm2/dist/man/pvcreate.8
vendored
8
external/gpl2/lvm2/dist/man/pvcreate.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: pvcreate.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvcreate.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVCREATE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVCREATE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvcreate \- initialize a disk or partition for use by LVM
|
||||
.SH SYNOPSIS
|
||||
@ -19,7 +19,7 @@ pvcreate \- initialize a disk or partition for use by LVM
|
||||
.RB [ \-\-setphysicalvolumesize size ]
|
||||
.RB [ \-u | \-\-uuid uuid ]
|
||||
.RB [ \-\-version ]
|
||||
.RB [ \-Z | \-\-zero y/n ]
|
||||
.RB [ \-Z | \-\-zero y|n ]
|
||||
.IR PhysicalVolume " [" PhysicalVolume ...]
|
||||
.SH DESCRIPTION
|
||||
.B pvcreate
|
||||
@ -64,7 +64,7 @@ onto a replacement device - see \fBvgcfgrestore\fP(8).
|
||||
.BR \-y ", " \-\-yes
|
||||
Answer yes to all questions.
|
||||
.TP
|
||||
.BR \-Z ", " \-\-zero " y/n"
|
||||
.BR \-Z ", " \-\-zero " y|n"
|
||||
Whether or not the first 4 sectors (2048 bytes) of the device should be
|
||||
wiped.
|
||||
If this option is not given, the
|
||||
|
8
external/gpl2/lvm2/dist/man/pvdisplay.8
vendored
8
external/gpl2/lvm2/dist/man/pvdisplay.8
vendored
@ -1,12 +1,12 @@
|
||||
.\" $NetBSD: pvdisplay.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvdisplay.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVDISPLAY 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVDISPLAY 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvdisplay \- display attributes of a physical volume
|
||||
.SH SYNOPSIS
|
||||
.B pvdisplay
|
||||
[\-c/\-\-colon] [\-d/\-\-debug] [\-h/\-?/\-\-help] [\-s/\-\-short]
|
||||
[\-v[v]/\-\-verbose [\-\-verbose]]
|
||||
[\-c|\-\-colon] [\-d|\-\-debug] [\-h|\-?|\-\-help] [\-s|\-\-short]
|
||||
[\-v[v]|\-\-verbose [\-\-verbose]]
|
||||
PhysicalVolumePath [PhysicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
pvdisplay allows you to see the attributes of one or more physical volumes
|
||||
|
10
external/gpl2/lvm2/dist/man/pvmove.8
vendored
10
external/gpl2/lvm2/dist/man/pvmove.8
vendored
@ -1,15 +1,15 @@
|
||||
.\" $NetBSD: pvmove.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvmove.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVMOVE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVMOVE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvmove \- move physical extents
|
||||
.SH SYNOPSIS
|
||||
.B pvmove
|
||||
[\-\-abort]
|
||||
[\-\-alloc AllocationPolicy]
|
||||
[\-b/\-\-background]
|
||||
[\-d/\-\-debug] [\-h/\-\-help] [\-i/\-\-interval Seconds] [\-v/\-\-verbose]
|
||||
[\-n/\-\-name LogicalVolume]
|
||||
[\-b|\-\-background]
|
||||
[\-d|\-\-debug] [\-h|\-\-help] [\-i|\-\-interval Seconds] [\-v|\-\-verbose]
|
||||
[\-n|\-\-name LogicalVolume]
|
||||
[SourcePhysicalVolume[:PE[-PE]...] [DestinationPhysicalVolume[:PE[-PE]...]...]]
|
||||
.SH DESCRIPTION
|
||||
.B pvmove
|
||||
|
4
external/gpl2/lvm2/dist/man/pvremove.8
vendored
4
external/gpl2/lvm2/dist/man/pvremove.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: pvremove.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvremove.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVREMOVE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVREMOVE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvremove \- remove a physical volume
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/pvresize.8
vendored
4
external/gpl2/lvm2/dist/man/pvresize.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: pvresize.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvresize.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVRESIZE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVRESIZE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvresize \- resize a disk or partition in use by LVM2
|
||||
.SH SYNOPSIS
|
||||
|
30
external/gpl2/lvm2/dist/man/pvs.8
vendored
30
external/gpl2/lvm2/dist/man/pvs.8
vendored
@ -1,17 +1,19 @@
|
||||
.\" $NetBSD: pvs.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvs.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVS 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVS 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvs \- report information about physical volumes
|
||||
.SH SYNOPSIS
|
||||
.B pvs
|
||||
[\-\-aligned] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o/\-\-options [+]Field[,Field]]
|
||||
[\-O/\-\-sort [+/-]Key1[,[+/-]Key2[,...]]]
|
||||
[\-\-aligned] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-nameprefixes] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o|\-\-options [+]Field[,Field]]
|
||||
[\-O|\-\-sort [+|-]Key1[,[+|-]Key2[,...]]]
|
||||
[\-\-rows] [\-\-segments]
|
||||
[\-\-separator Separator] [\-\-unbuffered]
|
||||
[\-\-units hsbkmgtHKMGT]
|
||||
[\-v/\-\-verbose]
|
||||
[\-\-unquoted]
|
||||
[\-v|\-\-verbose]
|
||||
[\-\-version] [PhysicalVolume [PhysicalVolume...]]
|
||||
.SH DESCRIPTION
|
||||
pvs produces formatted output about physical volumes.
|
||||
@ -21,6 +23,11 @@ See \fBlvm\fP for common options.
|
||||
.I \-\-aligned
|
||||
Use with \-\-separator to align the output columns.
|
||||
.TP
|
||||
.I \-\-nameprefixes
|
||||
Add an "LVM2_" prefix plus the field name to the output. Useful
|
||||
with --noheadings to produce a list of field=value pairs that can
|
||||
be used to set environment variables (for example, in \fBudev (7)\fP rules).
|
||||
.TP
|
||||
.I \-\-noheadings
|
||||
Suppress the headings line that is normally the first line of output.
|
||||
Useful if grepping the output.
|
||||
@ -33,7 +40,8 @@ if processing the output.
|
||||
Comma-separated ordered list of columns. Precede the list with '+' to append
|
||||
to the default selection of columns. Column names are: pv_fmt, pv_uuid,
|
||||
pv_size, dev_size, pv_free, pv_used, pv_name, pv_attr, pv_pe_count,
|
||||
pv_pe_alloc_count, pv_tags, pvseg_start, pvseg_size, pe_start.
|
||||
pv_pe_alloc_count, pv_tags, pvseg_start, pvseg_size, pe_start,
|
||||
pv_mda_count, pv_mda_free, and pv_mda_size.
|
||||
With --segments, any "pvseg_" prefixes are optional; otherwise any
|
||||
"pv_" prefixes are optional. Columns mentioned in \fBvgs (8)\fP can also
|
||||
be chosen. The pv_attr bits are: (a)llocatable and e(x)ported.
|
||||
@ -48,6 +56,9 @@ units of physical extents.
|
||||
Comma-separated ordered list of columns to sort by. Replaces the default
|
||||
selection. Precede any column with - for a reverse sort on that column.
|
||||
.TP
|
||||
.I \-\-rows
|
||||
Output columns as rows.
|
||||
.TP
|
||||
.I \-\-separator Separator
|
||||
String to use to separate each column. Useful if grepping the output.
|
||||
.TP
|
||||
@ -59,6 +70,9 @@ All sizes are output in these units: (h)uman-readable, (s)ectors, (b)ytes,
|
||||
(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes. Capitalise to use multiples
|
||||
of 1000 (S.I.) instead of 1024. Can also specify custom (u)nits e.g.
|
||||
\-\-units 3M
|
||||
.TP
|
||||
.I \-\-unquoted
|
||||
When used with --nameprefixes, output values in the field=value pairs are not quoted.
|
||||
.SH SEE ALSO
|
||||
.BR lvm (8),
|
||||
.BR pvdisplay (8),
|
||||
|
4
external/gpl2/lvm2/dist/man/pvscan.8
vendored
4
external/gpl2/lvm2/dist/man/pvscan.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: pvscan.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: pvscan.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH PVSCAN 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH PVSCAN 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
pvscan \- scan all disks for physical volumes
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgcfgbackup.8
vendored
4
external/gpl2/lvm2/dist/man/vgcfgbackup.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgcfgbackup.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgcfgbackup.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCFGBACKUP 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCFGBACKUP 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgcfgbackup \- backup volume group descriptor area
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgcfgrestore.8
vendored
4
external/gpl2/lvm2/dist/man/vgcfgrestore.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgcfgrestore.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgcfgrestore.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCFGRESTORE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCFGRESTORE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgcfgrestore \- restore volume group descriptor area
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgchange.8
vendored
4
external/gpl2/lvm2/dist/man/vgchange.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgchange.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgchange.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCHANGE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCHANGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgchange \- change attributes of a volume group
|
||||
.SH SYNOPSIS
|
||||
|
6
external/gpl2/lvm2/dist/man/vgck.8
vendored
6
external/gpl2/lvm2/dist/man/vgck.8
vendored
@ -1,11 +1,11 @@
|
||||
.\" $NetBSD: vgck.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgck.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCK 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCK 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgck \- check volume group metadata
|
||||
.SH SYNOPSIS
|
||||
.B vgck
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help] [\-v/\-\-verbose] [VolumeGroupName...]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help] [\-v|\-\-verbose] [VolumeGroupName...]
|
||||
.SH DESCRIPTION
|
||||
vgck checks LVM metadata for each named volume group for consistency.
|
||||
.SH OPTIONS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgconvert.8
vendored
4
external/gpl2/lvm2/dist/man/vgconvert.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgconvert.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgconvert.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCONVERT 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCONVERT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgconvert \- convert volume group metadata format
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgcreate.8
vendored
4
external/gpl2/lvm2/dist/man/vgcreate.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgcreate.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgcreate.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGCREATE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGCREATE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgcreate \- create a volume group
|
||||
.SH SYNOPSIS
|
||||
|
4
external/gpl2/lvm2/dist/man/vgdisplay.8
vendored
4
external/gpl2/lvm2/dist/man/vgdisplay.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgdisplay.8,v 1.1.1.1 2008/12/22 00:18:24 haad Exp $
|
||||
.\" $NetBSD: vgdisplay.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGDISPLAY 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGDISPLAY 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgdisplay \- display attributes of volume groups
|
||||
.SH SYNOPSIS
|
||||
|
10
external/gpl2/lvm2/dist/man/vgexport.8
vendored
10
external/gpl2/lvm2/dist/man/vgexport.8
vendored
@ -1,13 +1,13 @@
|
||||
.\" $NetBSD: vgexport.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgexport.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGEXPORT 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGEXPORT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgexport \- make volume groups unknown to the system
|
||||
.SH SYNOPSIS
|
||||
.B vgexport
|
||||
[\-a/\-\-all]
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-v/\-\-verbose]
|
||||
[\-a|\-\-all]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-v|\-\-verbose]
|
||||
VolumeGroupName [VolumeGroupName...]
|
||||
.SH DESCRIPTION
|
||||
vgexport allows you to make the inactive
|
||||
|
10
external/gpl2/lvm2/dist/man/vgextend.8
vendored
10
external/gpl2/lvm2/dist/man/vgextend.8
vendored
@ -1,13 +1,13 @@
|
||||
.\" $NetBSD: vgextend.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgextend.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGEXTEND 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGEXTEND 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgextend \- add physical volumes to a volume group
|
||||
.SH SYNOPSIS
|
||||
.B vgextend
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose]
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose]
|
||||
VolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]
|
||||
.SH DESCRIPTION
|
||||
vgextend allows you to add one or more initialized physical volumes ( see
|
||||
|
10
external/gpl2/lvm2/dist/man/vgimport.8
vendored
10
external/gpl2/lvm2/dist/man/vgimport.8
vendored
@ -1,13 +1,13 @@
|
||||
.\" $NetBSD: vgimport.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgimport.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGIMPORT 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGIMPORT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgimport \- make exported volume groups known to the system
|
||||
.SH SYNOPSIS
|
||||
.B vgimport
|
||||
[\-a/\-\-all]
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-v/\-\-verbose]
|
||||
[\-a|\-\-all]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-v|\-\-verbose]
|
||||
VolumeGroupName [VolumeGroupName...]
|
||||
.SH DESCRIPTION
|
||||
.B vgimport
|
||||
|
8
external/gpl2/lvm2/dist/man/vgmerge.8
vendored
8
external/gpl2/lvm2/dist/man/vgmerge.8
vendored
@ -1,12 +1,12 @@
|
||||
.\" $NetBSD: vgmerge.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgmerge.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGMERGE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGMERGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgmerge \- merge two volume groups
|
||||
.SH SYNOPSIS
|
||||
.B vgmerge
|
||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help] [\-l/\-\-list]
|
||||
[\-t/\-\-test] [\-v/\-\-verbose] DestinationVolumeGroupName
|
||||
[\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help] [\-l|\-\-list]
|
||||
[\-t|\-\-test] [\-v|\-\-verbose] DestinationVolumeGroupName
|
||||
SourceVolumeGroupName
|
||||
.SH DESCRIPTION
|
||||
vgmerge merges two existing volume groups. The inactive SourceVolumeGroupName
|
||||
|
8
external/gpl2/lvm2/dist/man/vgmknodes.8
vendored
8
external/gpl2/lvm2/dist/man/vgmknodes.8
vendored
@ -1,12 +1,12 @@
|
||||
.\" $NetBSD: vgmknodes.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgmknodes.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGMKNODES 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGMKNODES 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgmknodes \- recreate volume group directory and logical volume special files
|
||||
.SH SYNOPSIS
|
||||
.B vgmknodes
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-v/\-\-verbose]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-v|\-\-verbose]
|
||||
[[VolumeGroupName | LogicalVolumePath]...]
|
||||
.SH DESCRIPTION
|
||||
Checks the LVM2 special files in /dev that are needed for active
|
||||
|
10
external/gpl2/lvm2/dist/man/vgreduce.8
vendored
10
external/gpl2/lvm2/dist/man/vgreduce.8
vendored
@ -1,14 +1,14 @@
|
||||
.\" $NetBSD: vgreduce.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgreduce.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGREDUCE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGREDUCE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgreduce \- reduce a volume group
|
||||
.SH SYNOPSIS
|
||||
.B vgreduce
|
||||
[\-a/\-\-all] [\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-a|\-\-all] [\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-removemissing]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose] VolumeGroupName
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose] VolumeGroupName
|
||||
[PhysicalVolumePath...]
|
||||
.SH DESCRIPTION
|
||||
vgreduce allows you to remove one or more unused physical volumes
|
||||
|
8
external/gpl2/lvm2/dist/man/vgremove.8
vendored
8
external/gpl2/lvm2/dist/man/vgremove.8
vendored
@ -1,12 +1,12 @@
|
||||
.\" $NetBSD: vgremove.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgremove.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGREMOVE 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGREMOVE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgremove \- remove a volume group
|
||||
.SH SYNOPSIS
|
||||
.B vgremove
|
||||
[\-d/\-\-debug] [\-f/\-\-force] [\-h/\-?/\-\-help]
|
||||
[\-t/\-\-test] [\-v/\-\-verbose]
|
||||
[\-d|\-\-debug] [\-f|\-\-force] [\-h|\-?|\-\-help]
|
||||
[\-t|\-\-test] [\-v|\-\-verbose]
|
||||
VolumeGroupName [VolumeGroupName...]
|
||||
.SH DESCRIPTION
|
||||
vgremove allows you to remove one or more volume groups.
|
||||
|
14
external/gpl2/lvm2/dist/man/vgrename.8
vendored
14
external/gpl2/lvm2/dist/man/vgrename.8
vendored
@ -1,15 +1,15 @@
|
||||
.\" $NetBSD: vgrename.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgrename.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGRENAME 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGRENAME 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgrename \- rename a volume group
|
||||
.SH SYNOPSIS
|
||||
.B vgrename
|
||||
[\-A/\-\-autobackup y/n]
|
||||
[\-d/\-\-debug]
|
||||
[\-h/\-?/\-\-help]
|
||||
[\-t/\-\-test]
|
||||
[\-v/\-\-verbose]
|
||||
[\-A|\-\-autobackup y|n]
|
||||
[\-d|\-\-debug]
|
||||
[\-h|\-?|\-\-help]
|
||||
[\-t|\-\-test]
|
||||
[\-v|\-\-verbose]
|
||||
.IR OldVolumeGroup { Path | Name | UUID }
|
||||
.IR NewVolumeGroup { Path | Name }
|
||||
.SH DESCRIPTION
|
||||
|
30
external/gpl2/lvm2/dist/man/vgs.8
vendored
30
external/gpl2/lvm2/dist/man/vgs.8
vendored
@ -1,18 +1,19 @@
|
||||
.\" $NetBSD: vgs.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgs.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGS 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGS 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgs \- report information about volume groups
|
||||
.SH SYNOPSIS
|
||||
.B vgs
|
||||
[\-\-aligned] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o/\-\-options [+]Field[,Field]]
|
||||
[\-O/\-\-sort [+/-]Key1[,[+/-]Key2[,...]]]
|
||||
[\-P/\-\-partial]
|
||||
[\-\-aligned] [\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure] [\-\-nameprefixes] [\-\-noheadings] [\-\-nosuffix]
|
||||
[\-o|\-\-options [+]Field[,Field]]
|
||||
[\-O|\-\-sort [+|-]Key1[,[+|-]Key2[,...]]]
|
||||
[\-P|\-\-partial] [\-\-rows]
|
||||
[\-\-separator Separator] [\-\-unbuffered]
|
||||
[\-\-units hsbkmgtHKMGT]
|
||||
[\-v/\-\-verbose]
|
||||
[\-\-unquoted]
|
||||
[\-v|\-\-verbose]
|
||||
[\-\-version] [VolumeGroupName [VolumeGroupName...]]
|
||||
.SH DESCRIPTION
|
||||
vgs produces formatted output about volume groups.
|
||||
@ -22,6 +23,11 @@ See \fBlvm\fP for common options.
|
||||
.I \-\-aligned
|
||||
Use with \-\-separator to align the output columns.
|
||||
.TP
|
||||
.I \-\-nameprefixes
|
||||
Add an "LVM2_" prefix plus the field name to the output. Useful
|
||||
with --noheadings to produce a list of field=value pairs that can
|
||||
be used to set environment variables (for example, in \fBudev (7)\fP rules).
|
||||
.TP
|
||||
.I \-\-noheadings
|
||||
Suppress the headings line that is normally the first line of output.
|
||||
Useful if grepping the output.
|
||||
@ -35,7 +41,7 @@ Comma-separated ordered list of columns. Precede the list with '+' to append
|
||||
to the default selection of columns. Column names are: vg_fmt, vg_uuid,
|
||||
vg_name, vg_attr, vg_size, vg_free, vg_sysid, vg_extent_size, vg_extent_count,
|
||||
vg_free_count, max_lv, max_pv, pv_count, lv_count, snap_count, vg_seqno,
|
||||
vg_tags.
|
||||
vg_tags, vg_mda_count, vg_mda_free, and vg_mda_size.
|
||||
Any "vg_" prefixes are optional. Columns mentioned in either \fBpvs (8)\fP
|
||||
or \fBlvs (8)\fP can also be chosen, but columns cannot be taken from both
|
||||
at the same time.
|
||||
@ -61,6 +67,9 @@ Allocation policy: (c)ontiguous, c(l)ing, (n)ormal, (a)nywhere, (i)nherited
|
||||
Comma-separated ordered list of columns to sort by. Replaces the default
|
||||
selection. Precede any column with - for a reverse sort on that column.
|
||||
.TP
|
||||
.I \-\-rows
|
||||
Output columns as rows.
|
||||
.TP
|
||||
.I \-\-separator Separator
|
||||
String to use to separate each column. Useful if grepping the output.
|
||||
.TP
|
||||
@ -72,6 +81,9 @@ All sizes are output in these units: (h)uman-readable, (s)ectors, (b)ytes,
|
||||
(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes. Capitalise to use multiples
|
||||
of 1000 (S.I.) instead of 1024. Can also specify custom (u)nits e.g.
|
||||
\-\-units 3M
|
||||
.TP
|
||||
.I \-\-unquoted
|
||||
When used with --nameprefixes, output values in the field=value pairs are not quoted.
|
||||
.SH SEE ALSO
|
||||
.BR lvm (8),
|
||||
.BR vgdisplay (8),
|
||||
|
10
external/gpl2/lvm2/dist/man/vgscan.8
vendored
10
external/gpl2/lvm2/dist/man/vgscan.8
vendored
@ -1,15 +1,15 @@
|
||||
.\" $NetBSD: vgscan.8,v 1.1.1.1 2008/12/22 00:18:25 haad Exp $
|
||||
.\" $NetBSD: vgscan.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGSCAN 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGSCAN 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgscan \- scan all disks for volume groups and rebuild caches
|
||||
.SH SYNOPSIS
|
||||
.B vgscan
|
||||
[\-d/\-\-debug] [\-h/\-?/\-\-help]
|
||||
[\-d|\-\-debug] [\-h|\-?|\-\-help]
|
||||
[\-\-ignorelockingfailure]
|
||||
[\-\-mknodes]
|
||||
[\-P/\-\-partial]
|
||||
[\-v/\-\-verbose]
|
||||
[\-P|\-\-partial]
|
||||
[\-v|\-\-verbose]
|
||||
.SH DESCRIPTION
|
||||
vgscan scans all SCSI, (E)IDE disks, multiple devices and a bunch
|
||||
of other disk devices in the system looking for LVM physical volumes
|
||||
|
4
external/gpl2/lvm2/dist/man/vgsplit.8
vendored
4
external/gpl2/lvm2/dist/man/vgsplit.8
vendored
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: vgsplit.8,v 1.1.1.1 2008/12/22 00:18:22 haad Exp $
|
||||
.\" $NetBSD: vgsplit.8,v 1.2 2009/02/18 12:16:13 haad Exp $
|
||||
.\"
|
||||
.TH VGSPLIT 8 "LVM TOOLS 2.2.02.43-cvs (12-13-08)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.TH VGSPLIT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
|
||||
.SH NAME
|
||||
vgsplit \- split a volume group into two
|
||||
.SH SYNOPSIS
|
||||
|
7630
external/gpl2/lvm2/dist/po/lvm2.po
vendored
7630
external/gpl2/lvm2/dist/po/lvm2.po
vendored
File diff suppressed because it is too large
Load Diff
90
external/gpl2/lvm2/dist/scripts/clvmd_init
vendored
90
external/gpl2/lvm2/dist/scripts/clvmd_init
vendored
@ -1,90 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# /etc/rc.d/init.d/clvmd
|
||||
#
|
||||
# Starts the clvm daemon
|
||||
# NOTE: These startup levels may not be right yet - it depends on where
|
||||
# the rest of the cluster startup goes.
|
||||
#
|
||||
# chkconfig: 345 72 5
|
||||
# description: distributes LVM commands in a clustered environment. \
|
||||
# a clvmd must be run on all nodes in a cluster for clustered LVM \
|
||||
# operations to work.
|
||||
# processname: clvmd
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
BINARY=/usr/sbin/clvmd
|
||||
LOCKFILE=/var/lock/subsys/clvmd
|
||||
|
||||
test -x "$BINARY" || exit 0
|
||||
|
||||
RETVAL=0
|
||||
|
||||
#
|
||||
# See how we were called.
|
||||
#
|
||||
|
||||
prog="clvmd"
|
||||
|
||||
start() {
|
||||
# Check if clvmd is already running
|
||||
if [ ! -f "$LOCKFILE" ]; then
|
||||
echo -n $"Starting $prog: "
|
||||
daemon $BINARY
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] && touch $LOCKFILE
|
||||
echo
|
||||
fi
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc $BINARY
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
|
||||
echo
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
reload() {
|
||||
restart
|
||||
}
|
||||
|
||||
status_clvm() {
|
||||
status $BINARY
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
reload|restart)
|
||||
restart
|
||||
;;
|
||||
condrestart)
|
||||
if [ -f $LOCKFILE ]; then
|
||||
restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
status_clvm
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
exit $RETVAL
|
140
external/gpl2/lvm2/dist/scripts/clvmd_init_rhel4
vendored
140
external/gpl2/lvm2/dist/scripts/clvmd_init_rhel4
vendored
@ -1,140 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# chkconfig: - 24 76
|
||||
# description: Starts and stops clvmd
|
||||
#
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides:
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
LVDISPLAY="/usr/sbin/lvdisplay"
|
||||
VGCHANGE="/usr/sbin/vgchange"
|
||||
VGSCAN="/usr/sbin/vgscan"
|
||||
VGDISPLAY="/usr/sbin/vgdisplay"
|
||||
VGS="/usr/sbin/vgs"
|
||||
CLVMDOPTS="-T20"
|
||||
|
||||
[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
|
||||
|
||||
LOCK_FILE="/var/lock/subsys/clvmd"
|
||||
|
||||
start()
|
||||
{
|
||||
for rtrn in 0
|
||||
do
|
||||
if ! pidof clvmd > /dev/null
|
||||
then
|
||||
echo -n "Starting clvmd: "
|
||||
daemon clvmd $CLVMDOPTS
|
||||
rtrn=$?
|
||||
echo
|
||||
if [ $rtrn -ne 0 ]
|
||||
then
|
||||
break
|
||||
fi
|
||||
fi
|
||||
# refresh cache
|
||||
$VGSCAN > /dev/null 2>&1
|
||||
|
||||
if [ -n "$LVM_VGS" ]
|
||||
then
|
||||
for vg in $LVM_VGS
|
||||
do
|
||||
action "Activating VG $vg:" $VGCHANGE -ayl $vg || rtrn=$?
|
||||
done
|
||||
else
|
||||
action "Activating VGs:" $VGCHANGE -ayl || rtrn=$?
|
||||
fi
|
||||
done
|
||||
|
||||
return $rtrn
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
for rtrn in 0
|
||||
do
|
||||
if [ -n "$LVM_VGS" ]
|
||||
then
|
||||
for vg in $LVM_VGS
|
||||
do
|
||||
action "Deactivating VG $vg:" $VGCHANGE -anl $vg || rtrn=$?
|
||||
done
|
||||
else
|
||||
# Hack to only deactivate clustered volumes
|
||||
clustervgs=`$VGDISPLAY 2> /dev/null | awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'`
|
||||
for vg in $clustervgs; do
|
||||
action "Deactivating VG $vg:" $VGCHANGE -anl $vg || rtrn=$?
|
||||
done
|
||||
fi
|
||||
|
||||
[ $rtrn -ne 0 ] && break
|
||||
|
||||
echo -n "Stopping clvm:"
|
||||
killproc clvmd -TERM
|
||||
rtrn=$?
|
||||
echo
|
||||
done
|
||||
|
||||
return $rtrn
|
||||
}
|
||||
|
||||
wait_for_finish()
|
||||
{
|
||||
count=0
|
||||
|
||||
while [ "$count" -le 10 -a -n "`pidof clvmd`" ]
|
||||
do
|
||||
sleep 1
|
||||
count=$((count + 1))
|
||||
done
|
||||
|
||||
if [ `pidof clvmd` ]
|
||||
then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
rtrn=1
|
||||
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
rtrn=$?
|
||||
[ $rtrn = 0 ] && touch $LOCK_FILE
|
||||
;;
|
||||
|
||||
stop)
|
||||
stop
|
||||
rtrn=$?
|
||||
[ $rtrn = 0 ] && rm -f $LOCK_FILE
|
||||
;;
|
||||
|
||||
restart)
|
||||
if stop
|
||||
then
|
||||
wait_for_finish
|
||||
start
|
||||
fi
|
||||
rtrn=$?
|
||||
;;
|
||||
|
||||
status)
|
||||
status clvmd
|
||||
rtrn=$?
|
||||
vols=$( $LVDISPLAY -C --nohead 2> /dev/null | awk '($3 ~ /....a./) {print $1}' )
|
||||
echo active volumes: ${vols:-"(none)"}
|
||||
;;
|
||||
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|status}"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $rtrn
|
Loading…
Reference in New Issue
Block a user