How to configure PureStorage FlashArray over iSCSI in Ubuntu Linux
Linux Recommended Settings for Pure Storage FlashArray
Applying Queue Settings with udev and Maximum IO Size Settings:
1 | root@vm1:~# cat /lib/udev/rules.d/99-pure-storage.rules |
Recommended DM-Multipath Settings:
1 | root@vm1:~# cat /etc/multipath.conf |
Refer to here for more detail.
Check multipath service status:
1 | root@vm1:~# systemctl status multipathd |
Get initiator name on host
1 | root@vm1:~# cat /etc/iscsi/initiatorname.iscsi |
Create host in FlashArray
Create a host entry in FlashArray in order to connect volumes:
Configure iSCSI IQNs in FlashArray
Set the iSCSI IQNs under the host ports with the above InitiatorName:
Create volume and connect to host in FlashArray
Create multiple volumes in FlashArray:
Connect volumes to a host:
Install iscsi-initiator-utils package
1 | root@vm1:~# apt install iscsi-initiator-utils |
Discover paths and list the target ports
1 | root@vm1:~# iscsiadm -m discovery -t st -p 10.10.10.15 |
Scan the volumes on host automatically after reboot
1 | root@vm1:~# multipath -ll |
Other commands
Login to the iscsi target port manually:
1 | root@vm1:~# iscsiadm -m node --targetname iqn.2010-06.com.purestorage:flasharray.xxxxxxxx –login |
Scan the volume manually:
1 | echo 1>/sys/class/block/sda/device/rescan |