- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Problem with UDEV for Serviceguard
Operating System - Linux
1752660
Members
5787
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2009 12:12 AM
тАО08-24-2009 12:12 AM
Problem with UDEV for Serviceguard
Hi all,
We use UDEV rules to secures the Locklun in Serviceguard.
The OS version is: Red Hat Linux 4 Update 4.
I found the LUN ID with the command:
# scsi_id -g -u -s /block/sdX
All work great, previously I changed /etc/scsi_id.config and put options=-g so I could reescan the LUN ID of my MSA1000 attached to my hosts.
Then I've created this rule:
BUS="scsi", KERNEL="sd*", PROGRAM="/sbin/scsi_id", RESULT="", NAME="%k", SYMLINK="locklun%n"
But nothing append when I tried #udevtest /block/sda
I noticed this message in /var/log/messages:
scsi_id[20631]: DEVPATH is not set
Another UDEV rules had this lines:
KERNEL="sd*[0-9]", PROGRAM="/sbin/scsi_id", SYMLINK="disk/by-id/scsi-%c-part%n"
KERNEL="sd*", PROGRAM="/sbin/path_id", SYMLINK="disk/by-path/%c"
Only second rule works well, and create something like /dev/disk/by-path/....
Anybody knows the problem? Our UDEV rule works great over another few customers; nothing has changed but here didnтАЩt work.
We use UDEV rules to secures the Locklun in Serviceguard.
The OS version is: Red Hat Linux 4 Update 4.
I found the LUN ID with the command:
# scsi_id -g -u -s /block/sdX
All work great, previously I changed /etc/scsi_id.config and put options=-g so I could reescan the LUN ID of my MSA1000 attached to my hosts.
Then I've created this rule:
BUS="scsi", KERNEL="sd*", PROGRAM="/sbin/scsi_id", RESULT="
But nothing append when I tried #udevtest /block/sda
I noticed this message in /var/log/messages:
scsi_id[20631]: DEVPATH is not set
Another UDEV rules had this lines:
KERNEL="sd*[0-9]", PROGRAM="/sbin/scsi_id", SYMLINK="disk/by-id/scsi-%c-part%n"
KERNEL="sd*", PROGRAM="/sbin/path_id", SYMLINK="disk/by-path/%c"
Only second rule works well, and create something like /dev/disk/by-path/....
Anybody knows the problem? Our UDEV rule works great over another few customers; nothing has changed but here didnтАЩt work.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2009 08:59 PM
тАО09-12-2009 08:59 PM
Re: Problem with UDEV for Serviceguard
>> Anybody knows the problem? Our UDEV rule works great over another
What is the kernel version? Check whether MAKEDEV is installed, create the /dev node for the scsi device manually.
What is the kernel version? Check whether MAKEDEV is installed, create the /dev node for the scsi device manually.
Debian GNU/Linux for the Enterprise! Ask HP ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2009 11:34 PM
тАО09-13-2009 11:34 PM
Re: Problem with UDEV for Serviceguard
Finally we hade to create an script to call in the PROGRAM,something like this.
scsi_id_hp script:
#!/bin/bash
SCSI_ID="/sbin/scsi_id -g -u -s"
DEV=`echo $1 | sed -e 's/[0-9]//g'`
CMD="${SCSI_ID} /block/${DEV}"
#echo $CMD
RESULT=`${CMD}`
echo $RESULT
In the udev rule (PROGRAM parameter):
PROGRAM="/etc/udev/rules.d/scsi_id_hp %k",
We couldn't update the udev RPM and we couldn't do anything more, nothing works for this udev rule without the script.
This was the kernel:
2.6.9-42.ELsmp (x86_64)
scsi_id_hp script:
#!/bin/bash
SCSI_ID="/sbin/scsi_id -g -u -s"
DEV=`echo $1 | sed -e 's/[0-9]//g'`
CMD="${SCSI_ID} /block/${DEV}"
#echo $CMD
RESULT=`${CMD}`
echo $RESULT
In the udev rule (PROGRAM parameter):
PROGRAM="/etc/udev/rules.d/scsi_id_hp %k",
We couldn't update the udev RPM and we couldn't do anything more, nothing works for this udev rule without the script.
This was the kernel:
2.6.9-42.ELsmp (x86_64)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP