Hi,
I have been trying to figure out how to use SCSI reservations with FreeBSD recently. This is using two FreeBSD servers with shared Fibre Channel storage. Both machines can see the disks and can import a zpool which I've configured. What I would like to do is to use SCSI reservations to fence the disks so that only one machine can see the disks at a time. To reserve a disk, I use:
My problem comes when I want to release the reservation. To do the release, I do:
Does anybody know the proper procedure to do this with FreeBSD? I do a similar thing in Illumos using the mhd driver and it works as expected. Hopefully somebody can tell me what I'm doing wrong / not doing.
Thanks!
I have been trying to figure out how to use SCSI reservations with FreeBSD recently. This is using two FreeBSD servers with shared Fibre Channel storage. Both machines can see the disks and can import a zpool which I've configured. What I would like to do is to use SCSI reservations to fence the disks so that only one machine can see the disks at a time. To reserve a disk, I use:
camcontrol cmd da1 -c "16"
. This works fine, and the result is that the other machine can see da1, but can't access it and can't see any of the partitions.My problem comes when I want to release the reservation. To do the release, I do:
camcontrol cmd da1 "17"
. After I do that, the other machine still can't access the disk. If I reboot the other machine, then it can see everything fine, so the release obviously works, but the other node doesn't notice it until after a reboot.Does anybody know the proper procedure to do this with FreeBSD? I do a similar thing in Illumos using the mhd driver and it works as expected. Hopefully somebody can tell me what I'm doing wrong / not doing.
Thanks!