Skip to content

Commit 13efac9

Browse files
authored
Merge pull request #68130 from lpettyjo/OSDOCS-7674
OSDOCS#7674:LSO option to wipe LVs
2 parents 8bda193 + afcff2c commit 13efac9

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

modules/persistent-storage-local-create-cr.adoc

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,25 @@ spec:
4646
- ip-10-0-164-33
4747
storageClassDevices:
4848
- storageClassName: "local-sc" <3>
49-
volumeMode: Filesystem <4>
50-
fsType: xfs <5>
51-
devicePaths: <6>
52-
- /path/to/device <7>
49+
forceWipeDevicesAndDestroyAllData: false <4>
50+
volumeMode: Filesystem <5>
51+
fsType: xfs <6>
52+
devicePaths: <7>
53+
- /path/to/device <8>
5354
----
5455
<1> The namespace where the Local Storage Operator is installed.
5556
<2> Optional: A node selector containing a list of nodes where the local storage volumes are attached. This example uses the node hostnames, obtained from `oc get node`. If a value is not defined, then the Local Storage Operator will attempt to find matching disks on all available nodes.
5657
<3> The name of the storage class to use when creating persistent volume objects. The Local Storage Operator automatically creates the storage class if it does not exist. Be sure to use a storage class that uniquely identifies this set of local volumes.
57-
<4> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
58+
<4> This setting defines whether or not to call `wipefs`, which removes partition table signatures (magic strings) making the disk ready to use for Local Storage Operator (LSO) provisioning. No other data besides signatures is erased. The default is "false" (`wipefs` is not invoked). Setting `forceWipeDevicesAndDestroyAllData` to "true" can be useful in scenarios where previous data can remain on disks that need to be re-used. In these scenarios, setting this field to true eliminates the need for administrators to erase the disks manually. Such cases can include single-node OpenShift (SNO) cluster environments where a node can be redeployed multiple times or when using OpenShift Data Foundation (ODF), where previous data can remain on the disks planned to be consumed as object storage devices (OSDs).
59+
<5> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
5860
+
5961
[NOTE]
6062
====
6163
A raw block volume (`volumeMode: Block`) is not formatted with a file system. Use this mode only if any application running on the pod can use raw block devices.
6264
====
63-
<5> The file system that is created when the local volume is mounted for the first time.
64-
<6> The path containing a list of local storage devices to choose from.
65-
<7> Replace this value with your actual local disks filepath to the `LocalVolume` resource `by-id`, such as `/dev/disk/by-id/wwn`. PVs are created for these local disks when the provisioner is deployed successfully.
65+
<6> The file system that is created when the local volume is mounted for the first time.
66+
<7> The path containing a list of local storage devices to choose from.
67+
<8> Replace this value with your actual local disks filepath to the `LocalVolume` resource `by-id`, such as `/dev/disk/by-id/wwn`. PVs are created for these local disks when the provisioner is deployed successfully.
6668
+
6769
[NOTE]
6870
====
@@ -90,16 +92,18 @@ spec:
9092
- ip-10-0-144-180
9193
storageClassDevices:
9294
- storageClassName: "localblock-sc" <3>
93-
volumeMode: Block <4>
94-
devicePaths: <5>
95-
- /path/to/device <6>
95+
forceWipeDevicesAndDestroyAllData: false <4>
96+
volumeMode: Block <5>
97+
devicePaths: <6>
98+
- /path/to/device <7>
9699
----
97100
<1> The namespace where the Local Storage Operator is installed.
98101
<2> Optional: A node selector containing a list of nodes where the local storage volumes are attached. This example uses the node hostnames, obtained from `oc get node`. If a value is not defined, then the Local Storage Operator will attempt to find matching disks on all available nodes.
99102
<3> The name of the storage class to use when creating persistent volume objects.
100-
<4> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
101-
<5> The path containing a list of local storage devices to choose from.
102-
<6> Replace this value with your actual local disks filepath to the `LocalVolume` resource `by-id`, such as `dev/disk/by-id/wwn`. PVs are created for these local disks when the provisioner is deployed successfully.
103+
<4> This setting defines whether or not to call `wipefs`, which removes partition table signatures (magic strings) making the disk ready to use for Local Storage Operator (LSO) provisioning. No other data besides signatures is erased. The default is "false" (`wipefs` is not invoked). Setting `forceWipeDevicesAndDestroyAllData` to "true" can be useful in scenarios where previous data can remain on disks that need to be re-used. In these scenarios, setting this field to true eliminates the need for administrators to erase the disks manually. Such cases can include single-node OpenShift (SNO) cluster environments where a node can be redeployed multiple times or when using OpenShift Data Foundation (ODF), where previous data can remain on the disks planned to be consumed as object storage devices (OSDs).
104+
<5> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
105+
<6> The path containing a list of local storage devices to choose from.
106+
<7> Replace this value with your actual local disks filepath to the `LocalVolume` resource `by-id`, such as `dev/disk/by-id/wwn`. PVs are created for these local disks when the provisioner is deployed successfully.
103107
+
104108
[NOTE]
105109
====

0 commit comments

Comments
 (0)