I am trying to automate mounting/unmounting of iSCSI mounts on Ubuntu 16.04.
1) How do I list all the iSCSI mounts present on the Linux system? For example, NFS mounts can be listed using 'df -h -t nfs'.
2) Once I connect to the iSCSI server(target), on the iSCSI client(initiator) how do I identify if the filesystem is sda, sdb or sdc? dmsg would give this info but I am looking for a command to fetch this.