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
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,23 +52,23 @@ metadata:
52
52
spec:
53
53
storage:
54
54
deviceClasses: <1>
55
-
- name: vg1
56
-
fstype: ext4 <2>
57
-
default: true <3>
58
-
deviceSelector: <4>
55
+
- name: vg1 <2>
56
+
fstype: ext4 <3>
57
+
default: true <4>
58
+
deviceSelector: <5>
59
59
paths:
60
60
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
61
61
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
62
62
- /dev/md/md-var
63
63
optionalPaths:
64
64
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
65
65
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
66
-
forceWipeDevicesAndDestroyAllData: true <5>
66
+
forceWipeDevicesAndDestroyAllData: true <6>
67
67
thinPoolConfig:
68
68
name: thin-pool-1
69
69
sizePercent: 90
70
70
overprovisionRatio: 10
71
-
nodeSelector: <6>
71
+
nodeSelector: <7>
72
72
nodeSelectorTerms:
73
73
- matchExpressions:
74
74
- key: app
@@ -80,12 +80,14 @@ spec:
80
80
If you add or remove a `deviceClass`, then the update reflects in the cluster only after deleting and recreating the `TopoLVM-Node` pod.
81
81
Configure the local device paths of the disks as an array of values in the `deviceSelector` field.
82
82
When configuring multiple device classes, you must specify the device path for each device.
83
-
<2> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
84
-
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
83
+
<2> Specify a name for the LVM volume group (VG). To recover VGs from the previous {lvms} installation, you must set this field to the name of the VG that you want to recover.
84
+
You can only recover the VGs but not the logical volume associated with the VG.
85
+
<3> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
86
+
<4> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
85
87
If you are updating the `LVMCluster` resource from a previous version, you must specify a single default device class.
86
-
<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. You can also add the path to the RAID arrays to integrate the RAID arrays with {lvms}. After a device is added to the `LVMCluster`, it cannot be removed.
87
-
<5> Optional: To force wipe the selected disks, set `forceWipeDevicesAndDestroyAllData` to true. This parameter is set to `false` by default.
88
-
<6> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
88
+
<5> 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. After a device is added to the `LVMCluster`, it cannot be removed.
89
+
<6> Optional: To force wipe the selected disks, set `forceWipeDevicesAndDestroyAllData` to `true`. This parameter is set to `false` by default.
90
+
<7> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
89
91
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.
90
92
91
93
.. Create the `LVMCluster` CR:
@@ -106,6 +108,11 @@ The `LVMCluster` resource creates the following system-managed CRs:
106
108
`LVMVolumeGroup`:: Tracks individual volume groups across multiple nodes.
107
109
`LVMVolumeGroupNodeStatus`:: Tracks the status of the volume groups on a node.
108
110
111
+
To recover VGs from the previous {lvms} installation, ensure that the following conditions are met:
112
+
113
+
* VGs must not be corrupted.
114
+
* 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].
115
+
109
116
[NOTE]
110
117
====
111
118
Wiping the disk can lead to inconsistencies in data integrity if any of the following conditions is met:
0 commit comments