Skip to content

Commit 08da8fc

Browse files
authored
Merge pull request #69929 from sr1kar99/lvms-unsupported-devices
OCPBUGS#24512: Added info on devices not supported for LVM Storage operations
2 parents 3c5c14d + 5ebcaef commit 08da8fc

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

modules/lvms-creating-logical-volume-manager-cluster.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ When configuring multiple device classes, you must specify the device path for e
7575
<2> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
7676
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
7777
If you are upgrading the `LVMCluster` resource from a previous version, you must specify a single default device class.
78-
<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, it will add all unused devices on the node.
78+
<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.
7979
<5> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
8080
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.
8181

modules/lvms-unsupported-devices.adoc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="lvms-unsupported-devices_{context}"]
7+
= Devices not supported by {lvms}
8+
9+
When you are adding the paths to the devices in the `deviceSelector` section of the `LVMCluster` YAML, ensure that the devices are supported by {lvms}. If you add paths to the unsupported devices, then {lvms} excludes the devices to avoid complexity in managing logical volumes.
10+
11+
If you do not specify any device path in the `deviceSelector`, then {lvms} adds only the unused devices that it supports.
12+
13+
[NOTE]
14+
====
15+
To get information about the devices, run the following command:
16+
[source,terminal]
17+
----
18+
$ lsblk --paths --json -o \
19+
NAME,ROTA,TYPE,SIZE,MODEL,VENDOR,RO,STATE,KNAME,SERIAL,PARTLABEL,FSTYPE
20+
----
21+
====
22+
23+
{lvms} does not support the following devices:
24+
25+
Read-only devices:: Devices with the `ro` parameter set to `true`.
26+
27+
Suspended devices:: Devices with the `state` parameter set to `suspended`.
28+
29+
ROM devices:: Devices with the `type` parameter set to `rom`.
30+
31+
LVM partition devices:: Devices with the `type` parameter set to `lvm`.
32+
33+
Devices with invalid partition labels:: Devices with the `partlabel` parameter set to `bios`, `boot`, or `reserved`.
34+
35+
Devices with an invalid filesystem:: Devices with the `fstype` parameter set to any value other than `null` or `LVM2_member`.
36+
+
37+
[IMPORTANT]
38+
====
39+
{lvms} supports devices with `fstype` parameter set to `LVM2_member` only if the devices do not contain children devices.
40+
====
41+
42+
Devices that are part of another volume group:: To get the information about the volume groups of the device, run the following command:
43+
+
44+
[source, terminal]
45+
----
46+
$ pvs <device-name> <1>
47+
----
48+
<1> Replace `<device-name>` with the device name.
49+
50+
Devices with bind mounts:: To get the mount points of a device, run the following command:
51+
+
52+
[source, terminal]
53+
----
54+
$ cat /proc/1/mountinfo | grep <device-name> <1>
55+
----
56+
<1> Replace `<device-name>` with the device name.
57+
58+
Devices that contain children devices::
59+
60+
[NOTE]
61+
====
62+
It is recommended to wipe the device before using it in {lvms} to prevent unexpected behavior.
63+
====

storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ include::modules/lvms-uninstalling-logical-volume-manager-operator-using-rhacm.a
6060
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-reference-file_logical-volume-manager-storage[{lvms} reference YAML file]
6161
6262
include::modules/lvms-creating-logical-volume-manager-cluster.adoc[leveloffset=+1]
63+
include::modules/lvms-unsupported-devices.adoc[leveloffset=+2]
6364

6465
[role="_additional-resources"]
6566
.Additional resources

0 commit comments

Comments
 (0)