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
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Local volumes cannot be created by dynamic provisioning. Instead, persistent vol
25
25
Do not use different storage class names for the same device. Doing so will create multiple persistent volumes (PVs).
26
26
====
27
27
+
28
+
--
28
29
.Example: Filesystem
29
30
[source,yaml]
30
31
----
@@ -54,14 +55,20 @@ spec:
54
55
<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.
55
56
<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.
56
57
<4> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
58
+
+
59
+
[NOTE]
60
+
====
61
+
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
+
====
57
63
<5> The file system that is created when the local volume is mounted for the first time.
58
64
<6> The path containing a list of local storage devices to choose from.
59
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.
60
66
+
61
67
[NOTE]
62
68
====
63
-
A raw block volume (`volumeMode: block`) is not formatted with a file system. You should use this mode only if any application running on the pod can use raw block devices.
69
+
If you are running {product-title} on {ibmzProductName} with {op-system-base} KVM, you must assign a serial number to your VM disk. Otherwise, the VM disk can not be identified after reboot. You can use the `virsh edit <VM>` command to add the `<serial>mydisk</serial>` definition.
64
70
====
71
+
--
65
72
+
66
73
.Example: Block
67
74
[source,yaml]
@@ -83,7 +90,7 @@ spec:
83
90
- ip-10-0-144-180
84
91
storageClassDevices:
85
92
- storageClassName: "localblock-sc" <3>
86
-
volumeMode: Block <4>
93
+
volumeMode: Block <4>
87
94
devicePaths: <5>
88
95
- /path/to/device <6>
89
96
----
@@ -93,7 +100,11 @@ spec:
93
100
<4> The volume mode, either `Filesystem` or `Block`, that defines the type of local volumes.
94
101
<5> The path containing a list of local storage devices to choose from.
95
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.
96
-
103
+
+
104
+
[NOTE]
105
+
====
106
+
If you are running {product-title} on {ibmzProductName} with {op-system-base} KVM, you must assign a serial number to your VM disk. Otherwise, the VM disk can not be identified after reboot. You can use the `virsh edit <VM>` command to add the `<serial>mydisk</serial>` definition.
107
+
====
97
108
98
109
. Create the local volume resource in your {product-title} cluster. Specify the file you just created:
0 commit comments