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: content/docs/deployment/csmoperator/drivers/powerstore.md
+153-23
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,47 @@ To deploy the Operator, follow the instructions available [here](../../#installa
13
13
Note that the deployment of the driver using the operator does not use any Helm charts and the installation and configuration parameters will be slightly different from the one specified via the Helm installer.
14
14
15
15
### Check existing ContainerStorageModule CRD
16
+
16
17
User can query for all Dell CSI drivers using the following command:
18
+
17
19
```bash
18
20
kubectl get csm --all-namespaces
19
21
```
20
22
21
-
22
23
### Prerequisites
23
24
25
+
The following are requirements to be met before installing the CSI Driver for Dell PowerStore:
26
+
- A Kubernetes or OpenShift cluster (see [supported versions](../../../../csidriver/#features-and-capabilities))
27
+
- If you plan to use either the Fibre Channel, iSCSI, NVMe/TCP, or NVMe/FC protocols, refer to either _Fibre Channel requirements_ or _Set up the iSCSI Initiator_ or _Set up the NVMe Initiator_ sections below. You can use NFS volumes without FC, iSCSI, NVMe/TCP, or NVMe/FC configurations.
28
+
> You can use either the Fibre Channel (FC), iSCSI, NVMe/TCP, or NVMe/FC protocol, but you do not need all four to be enabled.
29
+
30
+
> For NVMe support the preferred multipath solution is NVMe native multipathing. The [Dell Host Connectivity Guide](https://elabnavigator.dell.com/vault/pdf/Linux.pdf?key=1725374107988) describes the details of each configuration option.
31
+
32
+
> If you want to use pre-configured iSCSI/FC hosts be sure to check that they are not part of any host group.
33
+
34
+
- Linux native multipathing requirements
35
+
- Mount propagation is enabled on container runtime that is being used
36
+
- If using Snapshot feature, satisfy all Volume Snapshot requirements
37
+
- Insecure registries are defined in Docker or other container runtimes, for CSI drivers that are hosted in a non-secure location.
38
+
- Ensure that your nodes support mounting NFS volumes if using NFS
39
+
40
+
24
41
#### Fibre Channel requirements
25
42
26
43
Dell PowerStore supports Fibre Channel communication. If you use the Fibre Channel protocol, ensure that the
27
44
following requirement is met before you install the CSI Driver for Dell PowerStore:
28
-
- Zoning of the Host Bus Adapters (HBAs) to the Fibre Channel port must be done.
29
45
46
+
- Zoning of the Host Bus Adapters (HBAs) to the Fibre Channel port must be done.
30
47
31
48
#### Set up the iSCSI Initiator
49
+
32
50
The CSI Driver for Dell PowerStore v1.4 and higher supports iSCSI connectivity.
33
51
34
52
If you use the iSCSI protocol, set up the iSCSI initiators as follows:
53
+
35
54
- Ensure that the iSCSI initiators are available on both Controller and Worker nodes.
36
-
- Kubernetes nodes must have access (network connectivity) to an iSCSI port on the Dell PowerStore array that
55
+
56
+
- Kubernetes nodes must have network connectivity to an iSCSI port on the Dell PowerStore array that
37
57
has IP interfaces. Manually create IP routes for each node that connects to the Dell PowerStore.
38
58
- All Kubernetes nodes must have the _iscsi-initiator-utils_ package for CentOS/RHEL or _open-iscsi_ package for Ubuntu installed, and the _iscsid_ service must be enabled and running.
39
59
To do this, run the `systemctl enable --now iscsid` command.
@@ -42,15 +62,110 @@ To do this, run the `systemctl enable --now iscsid` command.
42
62
For information about configuring iSCSI, see _Dell PowerStore documentation_ on Dell Support.
43
63
44
64
45
-
#### Set up the NVMe Initiator
65
+
### Set up the NVMe Initiator
66
+
67
+
The following requirements must be fulfilled in order to successfully use the NVMe protocols with the CSI PowerStore driver:
68
+
69
+
- All OpenShift or Kubernetes nodes connecting to Dell storage arrays must use unique NQNs.
70
+
- The driver requires the NVMe command-line interface (nvme-cli) to manage the NVMe client and target. The nvme-cli utility provides a command-line and interactive shell option. The NVMe CLI tool is installed in the host using the below command on RPM oriented Linux distributions.
71
+
72
+
```bash
73
+
sudo dnf -y install nvme-cli
74
+
```
75
+
76
+
- Support for NVMe requires native NVMe multipathing to be configured on each worker node in the cluster. Please refer to the [Dell Host Connectivity Guide](https://elabnavigator.dell.com/vault/pdf/Linux.pdf?key=1725374107988) for more details on NVMe connectivity requirements. To determine if the worker nodes are configured for native NVMe multipathing run the following command on each worker node:
77
+
78
+
```bash
79
+
cat /sys/module/nvme_core/parameters/multipath
80
+
```
81
+
82
+
>If the result of the command displays Y then NVMe native multipathing is enabled in the kernel. If the output is N then native NVMe multipating is disabled. Consult the [Dell Host Connectivity Guide](https://elabnavigator.dell.com/vault/pdf/Linux.pdf?key=1725374107988) for Linux to enable native NVMe multipathing.
83
+
84
+
- The default NVMeTCP native multipathing policy is "numa". The preferred IO policy for NVMe devices used for PowerStore is round-robin. You can use udev rules to enable the round robin policy on all worker nodes. To view the IO policy you can use the following command:
85
+
86
+
```bash
87
+
nvme list-subsys
88
+
```
89
+
90
+
**Configure the IO policy**
91
+
92
+
To change the IO policy to round-robin you can add a udev rule on each worker node. Place a config file in /etc/udev/rules.d with the name 71-nvme-io-policy.rules with the following contents:
To reduce the impact of PowerStore non disruptive software upgrades you must set the control loss timeout. This can be done using udev rules on each worker node. More information can be found in the [Dell Host Connectivity Guide](https://elabnavigator.dell.com/vault/pdf/Linux.pdf?key=1725374107988). The configure the control loss timeout place a config file in /etc/udev/rules.d with the name 72-nvmf-ctrl_loss_tmo.rules with the following contents:
In order to change the rules on a running kernel you can run the following commands:
46
136
47
-
If you want to use the protocol, set up the NVMe initiators as follows:
48
-
- The driver requires NVMe management command-line interface (nvme-cli) to use configure, edit, view or start the NVMe client and target. The nvme-cli utility provides a command-line and interactive shell option. The NVMe CLI tool is installed in the host using the below command.
> Starting with OCP 4.14 NVMe/TCP is enabled by default on RCOS nodes.
168
+
54
169
- Modules including the nvme, nvme_core, nvme_fabrics, and nvme_tcp are required for using NVMe over Fabrics using TCP. Load the NVMe and NVMe-OF Modules using the below commands:
55
170
```bash
56
171
modprobe nvme
@@ -64,8 +179,11 @@ modprobe nvme_tcp
64
179
*NOTE:*
65
180
- Do not load the nvme_tcp module for NVMeFC
66
181
67
-
#### Linux multipathing requirements
68
-
Dell PowerStore supports Linux multipathing. Configure Linux multipathing before installing the CSI Driver for Dell
182
+
### Linux multipathing requirements
183
+
184
+
> For NVMe connectivity native NVMe multipathing is used. The following sections apply only for iSCSI and Fiber Channel connectivity.
185
+
186
+
Dell PowerStore supports Linux multipathing and NVMe native multipathing. Configure Linux multipathing before installing the CSI Driver for Dell
69
187
PowerStore.
70
188
71
189
Set up Linux multipathing as follows:
@@ -75,21 +193,38 @@ Set up Linux multipathing as follows:
75
193
- Enable `user_friendly_names` and `find_multipaths` in the `multipath.conf` file.
76
194
- Ensure that the multipath command for `multipath.conf` is available on all Kubernetes nodes.
77
195
78
-
##### multipathd `MachineConfig`
196
+
The following is a sample multipath.conf file:
197
+
198
+
```text
199
+
defaults {
200
+
user_friendly_names yes
201
+
find_multipaths yes
202
+
}
203
+
blacklist {
204
+
}
205
+
```
206
+
207
+
If the above command is not successful, ensure that the /etc/multipath.conf file is present and configured properly. Once the file has been configured correctly, enable the multipath service by running the following command:
208
+
`sudo systemctl enable multipathd`
209
+
210
+
Finally, you have to restart the service by providing the command
211
+
`sudo systemctl restart multipathd`
79
212
80
-
If you are installing a CSI Driver which requires the installation of the Linux native Multipath software - _multipathd_, please follow the below instructions
213
+
On OCP clusters you can add a MachineConfig to configure multipathing on the worker nodes.
81
214
82
-
To enable multipathd on RedHat CoreOS nodes you need to prepare a working configuration encoded in base64.
215
+
You will need to first base64 encode the multipath.conf and add it to the MachineConfig definition.
83
216
84
-
```bash echo 'defaults {
217
+
```bash
218
+
echo'defaults {
85
219
user_friendly_names yes
86
220
find_multipaths yes
87
221
}
88
-
blacklist {
222
+
blacklist {
89
223
}'| base64 -w0
90
224
```
91
225
92
226
Use the base64 encoded string output in the following `MachineConfig` yaml file (under source section)
227
+
93
228
```yaml
94
229
apiVersion: machineconfiguration.openshift.io/v1
95
230
kind: MachineConfig
@@ -110,17 +245,12 @@ spec:
110
245
mode: 400
111
246
path: /etc/multipath.conf
112
247
```
113
-
After deploying this`MachineConfig` object, CoreOS will start multipath service automatically.
248
+
249
+
After deploying this`MachineConfig` object, CoreOS will start the multipath service automatically.
114
250
Alternatively, you can check the status of the multipath service by entering the following command in each worker nodes.
115
251
`sudo multipath -ll`
116
252
117
-
If the above command is not successful, ensure that the /etc/multipath.conf file is present and configured properly. Once the file has been configured correctly, enable the multipath service by running the following command:
0 commit comments