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
The `deviceSelector` field in the `LVMCluster` CR contains the configuration to specify the paths to the devices that you want to add to the LVM volume group.
10
+
11
+
You can specify the device paths in the `deviceSelector.paths` field, the `deviceSelector.optionalPaths` field, or both. If you do not specify the device paths in both the `deviceSelector.paths` field and the `deviceSelector.optionalPaths` field, {lvms} adds the supported unused devices to the LVM volume group.
12
+
13
+
The devices that you want to add to the volume group must be supported by {lvms}. For information about unsupported devices, see "Devices not supported by {lvms}" in the "Additional resources" section.
14
+
15
+
If you do not add the `deviceSelector` field in the `LVMCluster` CR, {lvms} automatically adds the new devices when the devices are available.
16
+
17
+
{lvms} adds the devices to the LVM volume group only if the following conditions are met:
18
+
19
+
* The device path exists.
20
+
* The device is supported by {lvms}.
21
+
22
+
You can also add the path to the RAID arrays to integrate the RAID arrays with {lvms}. For more information, see "Integrating RAID arrays with {lvms}" in the "Additional resources" section.
23
+
24
+
[IMPORTANT]
25
+
====
26
+
After a device is added to the LVM volume group, it cannot be removed.
You can create an `LVMCluster` custom resource (CR) by using the OpenShift CLI (`oc`) or the {product-title} web console. If you have installed {lvms} by using {rh-rhacm-first}, you can also create an `LVMCluster` CR by using {rh-rhacm}.
10
+
11
+
Upon creating the `LVMCluster` CR, {lvms} creates the following system-managed CRs:
12
+
13
+
* A `storageClass` and `volumeSnapshotClass` for each device class.
14
+
+
15
+
[NOTE]
16
+
====
17
+
{lvms} configures the name of the storage class and volume snapshot class in the format `lvms-<device_class_name>`, where, `<device_class_name>` is the value of the `deviceClasses.name` field in the `LVMCluster` CR. For example, if the `deviceClasses.name` field is set to vg1, the name of the storage class and volume snapshot class is `lvms-vg1`.
18
+
====
19
+
20
+
* `LVMVolumeGroup`: This CR is a specific type of persistent volume (PV) that is backed by an LVM volume group. It tracks the individual volume groups across multiple nodes.
21
+
* `LVMVolumeGroupNodeStatus`: This CR tracks the status of the volume groups on a node.
You can delete an `LVMCluster` custom resource (CR) by using the OpenShift CLI (`oc`) or the {product-title} web console. If you have installed {lvms} by using {rh-rhacm-first}, you can also delete an `LVMCluster` CR by using {rh-rhacm}.
10
+
11
+
Upon deleting the `LVMCluster` CR, {lvms} deletes the following CRs:
You can install Logical Volume Manager (LVM) Storage on a bare metal or user-provisioned infrastructure cluster and configure it to dynamically provision storage for your workloads.
10
10
@@ -29,4 +29,4 @@ The prerequisites to install {lvms} are as follows:
29
29
You cannot wipe the disks that are in use.
30
30
====
31
31
32
-
* If you want to install {lvms} by using {rh-rhacm-first}, ensure that you have installed {rh-rhacm} on an {product-title} cluster. See the _Installing LVM Storage using RHACM_ section.
32
+
* If you want to install {lvms} by using {rh-rhacm-first}, ensure that you have installed {rh-rhacm} on an {product-title} cluster. See the "Installing LVM Storage using RHACM" section.
Copy file name to clipboardExpand all lines: modules/lvms-about-lvmcluster-cr.adoc
+12-65Lines changed: 12 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,19 @@
6
6
[id="about-lvmcluster_{context}"]
7
7
= About the LVMCluster custom resource
8
8
9
-
After you have installed {lvms}, you must create an `LVMCluster` custom resource (CR) on a worker node.
10
-
11
9
You can configure the `LVMCluster` CR to perform the following actions:
12
10
13
11
* Create LVM volume groups that you can use to provision persistent volume claims (PVCs).
14
12
* Configure a list of devices that you want to add to the LVM volume groups.
15
13
* Configure the requirements to select the nodes on which you want to create an LVM volume group, and the thin pool configuration for the volume group.
16
14
* Force wipe the selected devices.
17
15
18
-
You can create an `LVMCluster` CR using the OpenShift CLI (`oc`) or the {product-title} web console.
16
+
After you have installed {lvms}, you must create an `LVMCluster` custom resource (CR).
19
17
20
18
include::snippets/lvms-creating-lvmcluster.adoc[]
21
19
22
20
[discrete]
23
-
== LVMCluster custom resource configuration
21
+
== Explanation of fields in the LVMCluster CR
24
22
25
23
The `LVMCluster` CR fields are described in the following table:
26
24
@@ -34,23 +32,13 @@ The `LVMCluster` CR fields are described in the following table:
34
32
|`array`
35
33
|Contains the configuration to assign the local storage devices to the LVM volume groups.
36
34
37
-
To create multiple device storage classes, create a device class for each storage class.
35
+
LVM Storage creates a storage class and volume snapshot class for each device class that you create.
38
36
39
37
|`deviceClasses.name`
40
38
|`string`
41
39
|Specify a name for the LVM volume group (VG).
42
40
43
-
If this field is set to the name of a VG from the previous {lvms} installation, {lvms} recreates the resources related to that volume group in the current {lvms} installation.
44
-
45
-
You can only recover the VGs but not the logical volume associated with the VG.
46
-
47
-
[IMPORTANT]
48
-
====
49
-
Before recovering the VGs from the previous {lvms} installation, ensure that the following conditions are met:
50
-
51
-
* VGs must not be corrupted.
52
-
* VGs must have the `lvms` tag. For more information on adding tags to LVMS objects, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/grouping-lvm-objects-with-tags_configuring-and-managing-logical-volumes#doc-wrapper[Grouping LVM objects with tags].
53
-
====
41
+
You can also configure this field to reuse a volume group that you created in the previous installation. For more information, see "Reusing a volume group from the previous LVM Storage installation" in the "Additional resources" section.
54
42
55
43
|`deviceClasses.fstype`
56
44
|`string`
@@ -64,38 +52,20 @@ Before recovering the VGs from the previous {lvms} installation, ensure that the
64
52
|`object`
65
53
|Contains the configuration to choose the nodes on which you want to create the LVM volume group. If this field is empty, all nodes without no-schedule taints are considered.
66
54
67
-
[NOTE]
68
-
====
69
55
On the control-plane node, {lvms} detects and uses the additional worker nodes when the new nodes become active in the cluster.
70
-
====
71
56
72
57
|`nodeSelector.nodeSelectorTerms`
73
58
|`array`
74
59
|Configure the requirements that are used to select the node.
75
60
76
61
|`deviceClasses.deviceSelector`
77
62
|`object`
78
-
|Contains the configuration to specify the paths to the devices that you want to add to the LVM volume group, and force wipe the devices that are added to the LVM volume group.
79
-
80
-
You can specify the device paths in the `paths` field, the `optionalPaths` field, or both. If you do not specify the device paths in both `paths` and `optionalPaths`, {lvms} adds the supported unused devices to the LVM volume group.
81
-
82
-
[IMPORTANT]
83
-
====
84
-
After a device is added to the LVM volume group, it cannot be removed.
85
-
====
86
-
87
-
{lvms} adds the devices to the LVM volume group only if the following conditions are met:
88
-
89
-
* The device path exists.
90
-
91
-
* The device is supported by {lvms}.
63
+
|Contains the configuration to perform the following actions:
92
64
93
-
[NOTE]
94
-
====
95
-
The devices that you want to add to the volume group must be supported by {lvms}. For information about unsupported devices, see _Devices not supported by {lvms}_ in _Additional resources_.
96
-
====
65
+
* Specify the paths to the devices that you want to add to the LVM volume group.
66
+
* Force wipe the devices that are added to the LVM volume group.
97
67
98
-
You can also add the path to the RAID arrays to integrate the RAID arrays with {lvms}. For more information, see _Integrating RAID arrays with {lvms}_ in _Additional resources_.
68
+
For more information, see "About adding devices to a volume group" in the "Additional resources" section.
|To force wipe the selected devices, set this field to `true`. By default, this field is set to `false`.
116
86
117
-
[IMPORTANT]
87
+
[WARNING]
118
88
====
89
+
If this field is set to `true`, {lvms} wipes all previous data on the devices. Use this feature with caution.
90
+
====
91
+
119
92
Wiping the device can lead to inconsistencies in data integrity if any of the following conditions are met:
120
93
121
94
* The device is being used as swap space.
122
95
* The device is part of a RAID array.
123
96
* The device is mounted.
124
97
125
98
If any of these conditions are true, do not force wipe the disk. Instead, you must manually wipe the disk.
126
-
====
127
-
128
-
[WARNING]
129
-
====
130
-
If this field is set to `true`, {lvms} wipes all previous data on the devices. Use this feature with caution.
131
-
====
132
99
133
100
|`deviceClasses.thinPoolConfig`
134
101
|`object`
@@ -154,26 +121,6 @@ To disable over-provisioning, set this field to 1.
154
121
155
122
|====
156
123
157
-
Upon creating the `LVMCluster` CR, {lvms} creates a storage class and volume snapshot class for each device class.
158
124
159
-
[NOTE]
160
-
====
161
-
{lvms} configures the name of the storage class and volume snapshot class in the format `lvms-<device-class-name>`. Where, `<device-class-name>` is the value of the `deviceClasses.name` field in the `LVMCluster` CR. For example, if the `deviceClasses.name` field is set to vg1, the name of the storage class and volume snapshot class is `lvms-vg1`.
162
-
163
-
To get the list of storage classes, run the following command:
164
-
[source,terminal]
165
-
----
166
-
$ oc get storageclass
167
-
----
168
-
169
-
To get the list of volume snapshot classes, run the following command:
170
-
[source,terminal]
171
-
----
172
-
$ oc get volumesnapshotclass
173
-
----
174
-
====
175
125
176
-
Upon creating the `LVMCluster` CR, {lvms} creates the following system-managed CRs:
177
126
178
-
* `LVMVolumeGroup`: This CR is a specific type of persistent volume (PV) that is backed by an LVM volume group. It tracks the individual volume groups across multiple nodes.
179
-
* `LVMVolumeGroupNodeStatus`: This CR tracks the status of the volume groups on a node.
{product-title} supports additional worker nodes for clusters on bare metal user-provisioned infrastructure. You can scale up the storage of clusters either by adding new worker nodes with available storage or by adding new devices to the existing worker nodes.
Copy file name to clipboardExpand all lines: modules/lvms-about-volume-snapshots.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ You can perform the following actions using the volume snapshots:
14
14
+
15
15
[IMPORTANT]
16
16
====
17
-
Volume snapshots are located on the same devices as the original data. To use the volume snapshots as backups, you must move the snapshots to a secure location. You can use OpenShift API for Data Protection (OADP) backup and restore solutions. For information about OADP, see _OADP features_ in the _Additional resources_ section.
17
+
Volume snapshots are located on the same devices as the original data. To use the volume snapshots as backups, you must move the snapshots to a secure location. You can use OpenShift API for Data Protection (OADP) backup and restore solutions. For information about OADP, see "OADP features" in the "Additional resources" section.
18
18
====
19
19
20
20
* Revert to a state at which the volume snapshot was taken.
You can delete the `LVMCluster` custom resource (CR) using the OpenShift CLI (`oc`).
10
+
11
+
.Prerequisites
12
+
13
+
* You have access to {product-title} as a user with `cluster-admin` permissions.
14
+
* You have deleted the persistent volume claims (PVCs), volume snapshots, and volume clones provisioned by {lvms}. You have also deleted the applications that are using these resources.
15
+
16
+
.Procedure
17
+
18
+
. Log in to the OpenShift CLI (`oc`).
19
+
. Delete the `LVMCluster` CR by running the following command:
0 commit comments