You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/lvms-creating-logical-volume-manager-cluster.adoc
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,11 +57,12 @@ spec:
57
57
optionalPaths:
58
58
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
59
59
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
60
+
forceWipeDevicesAndDestroyAllData: true <5>
60
61
thinPoolConfig:
61
62
name: thin-pool-1
62
63
sizePercent: 90
63
64
overprovisionRatio: 10
64
-
nodeSelector: <5>
65
+
nodeSelector: <6>
65
66
nodeSelectorTerms:
66
67
- matchExpressions:
67
68
- key: app
@@ -76,7 +77,8 @@ When configuring multiple device classes, you must specify the device path for e
76
77
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
77
78
If you are updating the `LVMCluster` resource from a previous version, you must specify a single default device class.
78
79
<4> Optional. To control or restrict the volume group to your preferred devices, you can manually specify the local paths of the devices in the `deviceSelector` section of the `LVMCluster` YAML. The `paths` section refers to devices the `LVMCluster` adds, which means those paths must exist. The `optionalPaths` section refers to devices the `LVMCluster` might add. You must specify at least one of `paths` or `optionalPaths` when specifying the `deviceSelector` section. If you specify `paths`, it is not mandatory to specify `optionalPaths`. If you specify `optionalPaths`, it is not mandatory to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, then the `LVMCluster` adds the unused devices on the node.
79
-
<5> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
80
+
<5> Optional: To force wipe the selected disks, set `forceWipeDevicesAndDestroyAllData` to true. This parameter is set to `false` by default.
81
+
<6> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
80
82
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.
81
83
82
84
.. Create the `LVMCluster` CR:
@@ -97,6 +99,17 @@ The `LVMCluster` resource creates the following system-managed CRs:
97
99
`LVMVolumeGroup`:: Tracks individual volume groups across multiple nodes.
98
100
`LVMVolumeGroupNodeStatus`:: Tracks the status of the volume groups on a node.
99
101
102
+
[NOTE]
103
+
====
104
+
Wiping the disk can lead to inconsistencies in data integrity if any of the following conditions is met:
105
+
106
+
* The disk is being used as swap space.
107
+
* The disk is part of the Redundant Array of Independent Disks (RAID).
108
+
* The disk is mounted.
109
+
110
+
In this case, you must manually wipe the disk.
111
+
====
112
+
100
113
.Verification
101
114
102
115
Verify that the `LVMCluster` resource has created the `StorageClass`, `LVMVolumeGroup`, and `LVMVolumeGroupNodeStatus` CRs.
0 commit comments