- Tools for this module: `sudo apt install open-iscsi multipath-tools cifs-utils nfs-common`
- SCSI framework consists of three integral parts
- device driver layer (upper)
- SCSI routing layer (middle)
- host bus adapter (HBA) driver layer (lower)
- `multipathd`
- used with remote mounted block devices (ISCSI devices)
- usually used with SANs
- 2 paths associated with different NICs and subnets for redundancy to block devices or SAN
- `iscsiadm --mode discovery --type sendtargets --portal [initiator_ip-addr]` shows iscsci targets and associated IP addresses
- `iscsiadm --mode node --targetname [target_iqn] --portal [initiator_ip-addr] --login` connects to iscsi target with first NIC, repeat with second NIC
- `ls /dev/mapper` to see iscsi target
- finally, mount `/dev/mapper/mpatha` to iscsi mount point
- edit node.startup params in `/etc/iscsi/iscsid.conf` and `/etc/iscsi/nodes/iqn[xxx]/default` to auto mount iscsi targets on reboot
- NFS (network file system)
- `mount -t nfs [server_ip]:[share_name] [mount_loc]`
- can auto mount by adding an entry to /etc/fstab
- no authentication
- CIFS (common internet file system)
- dialect of SMB (server message block) aka SMBv1 which is deprecated
- now a linux tool that uses updated versions of SMB
- `mount -t cifs //[server_ip]/[share_name] [mount_loc] -o username=[name],password=[password]`
- authenticated files shares
- able to store credentials in a file and point to that instead of using the syntax above