Discussion:
Disabling device
Štefan Sakalík
2013-04-11 16:16:08 UTC
Permalink
Hello,
I want to tell udev in RHEL6 _not_ to create a hard drive device in
/dev/ identified by (for example) serial number. I see two problems:
1. AFAIK it is not possible to disable device creation in udev/rules.d/
2. It is not possible to identify device by serial number in udev. When
I run: udevadm info -a -p $(udevadm info -q path -n /dev/sdak)
, it does not show me serial or other identifying information.

I need to get rid of this device because I'm sharing one disk array
between two servers and both of them see all devices in the array.
I want to make sure the two servers are not accessing the drives
simultaneously.

-Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2013-04-11 16:46:25 UTC
Permalink
On Thu, Apr 11, 2013 at 06:16:08PM +0200, =C5=A0tefan Sakal=C3=ADk wrot=
Post by Štefan Sakalík
Hello,
I want to tell udev in RHEL6 _not_ to create a hard drive device in
1. AFAIK it is not possible to disable device creation in udev/rules.=
d/
Post by Štefan Sakalík
2. It is not possible to identify device by serial number in udev.
When I run: udevadm info -a -p $(udevadm info -q path -n /dev/sdak)
, it does not show me serial or other identifying information.
As you are using RHEL6, why not ask for support for this type of
situation from Red Hat? You are paying for the support, might as well
use it :)

Good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...