RE: Trying to blacklist a USB memory stick

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I just subscribed to the list, I am an enterprise deployment engineer at Dell and do frequently work with device-mapper-multipath. A few weeks back I configured the SAN storage for 4 RHEL 5 servers that will be an Oracle RAC cluster. Now the customer plugged an USB key into 2 of the systems, and he noticed that device-mapper-multipath creates a device and adds a binding to /var/lib/multipath/bindings. 

Att: Mark Bruen
Did you ever solve your problem?

	
I was thinking of doing something like this as a solution:

blacklist {
       wwid *
	devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
	devnode "^hd[a-z]"
}
blacklist_exceptions {
	wwid <WWID>
	wwid <WWID>
	wwid <WWID>
}

E.g blacklist all wwid's as default, then specifically add an exception for each wwid that go with a "storage address space" that I want to use Multipath to manage. It is a bit more administrative overhead, but it will allow strict control of what devices dm-mp is controlling.


Another idea is to blacklist all devices, and make exceptions for the device I want Multipath to control:

blacklist {
	device {
		vendor 	"*"
		product 	"*"
	}	
	devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
	devnode "^hd[a-z]"
}
blacklist_exceptions {
	device {
		vendor		"DGC"
		product 	"*"
	}
}


Comments appreciated.

Thanks!



--
Harald Jensås
Dell EDT | NER (Sweden)





-------------------------------------------------------------------------------------
    * From: "Bruen, Mark" <mbruen trilegiant com>
    * To: device-mapper development <dm-devel redhat com>
    * Subject:  Trying to blacklist a USB memory stick
    * Date: Fri, 14 Jul 2006 10:38:33 -0400

I'm trying to blacklist a USB memory stick in /etc/multipath.conf. The output of multipath -v4:

===== path sdar =====
bus = 1
dev_t = 66:176
size = 126976

vendor = product = USB DISK 2.0 rev = 1.16

h:b:t:l = 3:0:0:0
tgt_node_name =
failed to open /dev/sdar


I've tried this with the "h:b:t:l" alone and with the "product" alone (neither work):

devnode_blacklist {
#   devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sda|sdb|hdc)[0-9]*"
   devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|hdc)[0-9]*"
   devnode "sda "
   devnode "sdb "
   wwid 350002ac0001302c6
   wwid 350002ac0002502c6
   device {
       h:b:t:l = 3:0:0:0
       product "USB DISK 2.0"
   }
}

Any ideas? Thanks.
-Mark


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux