Re: blacklisting some paths in multipath environment

2010-12-03 Thread Arkadiusz Miskiewicz
On Tue, Nov 30, 2010 at 12:35 AM, Mike Christie micha...@cs.wisc.edu wrote:
 On 11/27/2010 06:23 PM, Arkadiusz Miskiewicz wrote:

 How I can blacklist some paths and still use automatic node.startup?


 You can set specific paths to not get logged into automatically by doing

 iscsiadm -m node -T target -p ip -o update -n node.startup -v manual


Thanks!

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.

-- 
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.



blacklisting some paths in multipath environment

2010-11-29 Thread Arkadiusz Miskiewicz

Hello,

I'm trying to use open-iscsi with DS3300 array. DS has two controllers, each 2 
ethernet ports.

Unfortunately I use some SATA disk that aren't capable to be connected into 
two controllers (only one path on the SATA connector). This causes disks to be 
accessible only through one controller. My Linux system unfortunately still 
sees all 4 paths (two controllers x 2 eth ports each; target has 4 IPs then).

How I can blacklist some paths and still use automatic node.startup?

Thanks,
-- 
Arkadiusz MiƛkiewiczPLD/Linux Team
arekm / maven.plhttp://ftp.pld-linux.org/

-- 
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.



Re: blacklisting some paths in multipath environment

2010-11-29 Thread Mike Christie

On 11/27/2010 06:23 PM, Arkadiusz Miskiewicz wrote:


Hello,

I'm trying to use open-iscsi with DS3300 array. DS has two controllers, each 2
ethernet ports.

Unfortunately I use some SATA disk that aren't capable to be connected into
two controllers (only one path on the SATA connector). This causes disks to be
accessible only through one controller. My Linux system unfortunately still
sees all 4 paths (two controllers x 2 eth ports each; target has 4 IPs then).

How I can blacklist some paths and still use automatic node.startup?



You can set specific paths to not get logged into automatically by doing

iscsiadm -m node -T target -p ip -o update -n node.startup -v manual

--
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.