Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
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 4 partitions on NAS (iomega store centre ix2 200) which is mounted on 3 systems and being used to ORACLE 10GR2 RAC. But the devices names are getting changed at the time of reboot, so tried to implemet udev using the following procedure for disk device naming consistency. But this doesn't work for me.
[root@tst9 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
[root@tst9 ~]# uname -a
Linux tst9 2.6.9-89.0.0.0.1.ELhugemem #1 SMP Tue May 19 04:38:38 EDT 2009 i686 i686 i386 GNU/Linux
[root@tst9 ~]#
In /etc/scsi_id.config
#options=-b -- Commented
options=-g -- Removed #
The above ids are queried using
[root@tst9 rules.d]# scsi_id -g -s /block/sda
35000144f61462284
[root@tst9 rules.d]# udevinfo -V
udevinfo, version 039
But still I dont see naming consistency, and I think files are not even being used from /etc/udev/rules.d/ as the /tmp/mynames.out is not being generated.
NAS = Network attached storage - This is typically NFS (UNIX/Linux) or CIFS (Windows) shares.
Are you saying the Iomega is doing iSCSI rather than shares?
Are you using OCFS (or OCFS2) or ASM? If ASM aren't you using raw devices? If so you don't need to worry about actual names of the underlying /dev/sd* devices after you do the assignments. If you're doing filesystems you should be able to do the mounts using UUID rather than names so again it seems the names shouldn't be important.
RHEL4 by the way went end of life at the end of February. You really should think about upgrading to something more recent. RHEL5 has been out for more than 5 years and RHEL6 has been out for more than a year. RHEL4 being really old I wonder how much support it truly had for udev and iSCSI.
The following rule worked after a lot of research (related to syntax).
[root@tst9 rules.d]# cat 75-names.rules
KERNEL="sd[a-z]", BUS="scsi", SYSFS{size}="56623104", SYSFS{model}="LIFELINE-DISK", SYSFS{vendor}="EMC", SYMLINK="racfs"
[root@tst9 rules.d]# ls -ltr /dev/racfs
lrwxrwxrwx 1 root root 3 May 18 10:34 /dev/racfs -> sdd
[root@tst9 rules.d]#
But still I have a problem. How can I get the slices like /dev/racfs1, 2, 3,.... which point to the actual disk to configure as following.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.