On 12/03/2010 06:20 AM, Arkadiusz Miskiewicz wrote:
Now more complicated. Can I blacklist specific devices? My array is limited only to 4 initiator-storage poll mappings (which are used to allow access to logical disk X only from initiator A). Unfortunately I have 5 hosts. So I have 5 logical partitions on array (X, Y, Z, Q, W) and 5 hosts (hA, hB, hC, hD, hE). hA has access to X only, hB to Y only, hC to Z only but hD and hE have access to both, Q and W. (Q meant for host hD, W meant for host hE). Totall 4 host -- storages mapping in use. I need some way to prevent host hD from accessing storage W and prevent host hE from accessing storage Q. Os level would be enough. This is only to disallow silly mistakes made by admin. Is there a way on open-iscsi level to make host hD not see (or ignore) storage device W? Some other, kernel level, way would be enough, too. Simplest what comes to my mind is simply "rm /dev/sdX" where sdX are devices to the other host storage.
The iscsi/scsi layer does not have any type of LUN masking. There is only the manual interface:
echo 1 > /sys/block/sdXYZ/device/delete -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-is...@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.