1

I have two servers connected via point-to-point Fibre Channel (QLogic cards). The file server is running FreeBSD and has the iSCSI Target The other is running Debian and is the Initiator. The target from the fileserver shows up as /dev/sdb on the Debian server.

Everything works fine except that if I reboot the fileserver, the Debian server loses the connection.

I can force it to rescan by issuing the command echo 1 > /sys/class/fc_host/host1/issue_lip But then it shows up as /dev/sdc

Is there a better way to restore the mount?

dwilliss
  • 139
  • 5

1 Answers1

1

The solution turns out to be to mount the drive by UUID, not /dev/sdX1.

You can look in /dev/disk/by-uuid to find the UUID that is a symbolic link back to the partition you want. Then in the host file, mount it using:

UUID=whatever-the-uuid-is-here  /mountpoint  ext4  defaults 0 0
dwilliss
  • 139
  • 5