File: default-recreate_lvm.conf

package info (click to toggle)
blkreplay 1.0-3.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 25,672 kB
  • sloc: sh: 3,175; ansic: 2,057; makefile: 23
file content (80 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

#!/bin/bash
# Copyright 2010-2012 Thomas Schoebel-Theuer /  1&1 Internet AG
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.

#####################################################################

## defaults for module recreate_lvm
##
## recreate_lvm: transparently (re)create LVM devices from a
## set of physical volumes.
##

## enable_recreate_lvm
##
## Set to 0 or 1. Enable / disable this module.

enable_recreate_lvm=0

## vg_name
##
## Name of the LVM volume group.
##
## All physical devices supplied in $replay_device_list will be
## used to create a single volume group out of them, on each host
## from $replay_host_list. Only the full cartesian product between
## $replay_host_list and $replay_device_list is supported.
##
## WARNING! any pre-existing logical volumes (LVs) in that
## volume group (VG) will be destroyed, and their data will be lost!
## Their old physical volumes (PVs) are also removed and destroyed!
##
## After creation of the LVs, $replay_device_list will be re-written
## to reflect the list of LVs thereafter.
##
## This means: you just supply the physical devices, the number of LVs
## to create, and the size of each.
## The names of the LVs are then created and maintained automatically for you.
## This can be even combined with the iSCSI modules etc, which will
## automatically take the LVs and work on them, instead of on the PVs.

vg_name="vg-test"

## lv_count
##
## Number of LVs to create.
##
## This determines the replay parallelism, when not limited
## by $replay_max_parallelism.

lv_count=1

## lv_size
##
## Size of each logical volume. Syntax see "man lvcreate".
##
## Of course, there must be enough space on the physical volumes :)

lv_size=1T

## lvm_striping
##
## Set to 0 or 1. Enable / disable LVM striping over multiple
## physical volumes.
##
## When you have multiple RAID sets, this can _tremendously_ improve
## IO performance!

lvm_striping=1

## lvm_stripesize 
##
## For best performace, this should be equal to the RAID stripesize
## at physical level.

lvm_stripesize=64