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/persistent-storage-local-create-cr.adoc
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,23 +46,25 @@ spec:
46
46
- ip-10-0-164-33
47
47
storageClassDevices:
48
48
- 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>
53
54
----
54
55
<1> The namespace where the Local Storage Operator is installed.
55
56
<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.
56
57
<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.
58
60
+
59
61
[NOTE]
60
62
====
61
63
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.
62
64
====
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.
66
68
+
67
69
[NOTE]
68
70
====
@@ -90,16 +92,18 @@ spec:
90
92
- ip-10-0-144-180
91
93
storageClassDevices:
92
94
- 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>
96
99
----
97
100
<1> The namespace where the Local Storage Operator is installed.
98
101
<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.
99
102
<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.
0 commit comments