Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have some logical disks assigned to my server(RHEL 5.5) from the iSCSI storage for which I have multiple paths. But I am not able to see the correct subpath count as in the file /dev/disk/by-path/ip-192.168.x.x-iscsi-iqn-xxxx
However, when I add the udevtrigger command in /etc/rc.local, I am able to see the correct paths. Can someone please let me know, what udevtrigger exactly does to correct the paths count in /dev/disk/by-path/
udevtrigger: Request device events from the kernel. Primarily used to replay events at system coldplug time.
In other words triggers setup of devices based on kernel events, meaning it adds/removes/changes devices nodes (rights, ownership, acl) and links in /dev, based on some pre-existing rules, usually found in /lib/udev/rules.d and /etc/udev/rules.d
udevtrigger: Request device events from the kernel. Primarily used to replay events at system coldplug time.
In other words triggers setup of devices based on kernel events, meaning it adds/removes/changes devices nodes (rights, ownership, acl) and links in /dev, based on some pre-existing rules, usually found in /lib/udev/rules.d and /etc/udev/rules.d
Does this mean the devices get refreshed when I type the udevtrigger command. Before running udevtrigger, I get wrong number of devices and after running this command, the number of devices is corrected. Is this some sort of bug on RHEL with iSCSI connections?
Does this mean the devices get refreshed when I type the udevtrigger command. Before running udevtrigger, I get wrong number of devices and after running this command, the number of devices is corrected. Is this some sort of bug on RHEL with iSCSI connections?
Again, the best people to ask about bugs with Red Hat would be Red Hat Support...which you don't have, since you're using 5.5. The last supported version of RHEL 5 is 5.9, and that's only under the extended-support option. There have been NUMEROUS bugs fixed between 5.5 and 6.5, which is why people pay for support/updates of RHEL, or they don't use it.
ISCSI devices aren't handled the same way as other devices are.
Again, the best people to ask about bugs with Red Hat would be Red Hat Support...which you don't have, since you're using 5.5. The last supported version of RHEL 5 is 5.9, and that's only under the extended-support option. There have been NUMEROUS bugs fixed between 5.5 and 6.5, which is why people pay for support/updates of RHEL, or they don't use it.
ISCSI devices aren't handled the same way as other devices are.
Hi TBone,
Thanks for ur help. I do not have RHEL support.
My question is why do I need to run udevtrigger when I have not made any changes in /etc/lib/rules.d/****.rules to make the entries correct in /dev/disk/by-path/...
Then most probably there is a bug which presents itself as not getting ADD/CHANGE kernel events or somehow a broken rule or broken udev. Usually when you run udevtrigger manually is (or should be) based on CHANGE kernel events (by default). This is not 100% sure, as you do have a old version of RH and of course udev.
Trigger can be use for all types of actions, but usually if the ACTION is not mentioned, there is a default, which should be CHANGE, but I'm not 100% sure on this.
Hi TBone,
Thanks for ur help. I do not have RHEL support.
Spell out your words, please. And go back and re-read my last post. RHEL 5.5 is not even AVAILABLE for support...you are MANY versions behind, and any bugs in software like this (and there have been SEVERAL reported), have been fixed. If you don't pay for RHEL, then YOU SHOULD NOT BE USING IT in a production environment. You PAY FOR support/updates/bugfixes...if you don't get them, all you're doing is setting yourself up for dealing with problems like this, that have probably ALREADY BEEN FIXED.
Quote:
My question is why do I need to run udevtrigger when I have not made any changes in /etc/lib/rules.d/****.rules to make the entries correct in /dev/disk/by-path/...
And your question was answered. ISCSI devices aren't typical 'devices', and rescanning manually is often the quickest way to pick them up, just like with a SAN device. The LUN may be presented, but not be VISIBLE until the SAN driver is reloaded/refreshed. And AGAIN, this may also be a bug that has been fixed, and available to you if you PAY FOR RHEL.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.