fixed drive name

Marti, Rob RJM002 at shsu.edu
Wed Jun 17 09:32:43 UTC 2009


Saying "faied" is a perfect description of the problem.  I can tell exactly what went wrong.

Wait - no I can't.  I get that it didn't keep sdb (do your disks change that often?  What are you really trying to accomplish?)
Are there any error messages?
Can you paste your udev config and the output of scsi_id /dev/blockdevice ?

As was said, udev is the right place to do this, you might just be missing a step.

Rob Marti
________________________________________
From: redhat-list-bounces at redhat.com [redhat-list-bounces at redhat.com] On Behalf Of Le Wen [wenle at lenovo.com]
Sent: Tuesday, June 16, 2009 23:45
To: General Red Hat Linux discussion list
Cc: General Red Hat Linux discussion list; redhat-list-bounces at redhat.com
Subject: RE: fixed drive name

Yes, I did the similar procedure in RHEL5 using UDEV, but failed.


Wenle
Staff Consultant
CSB Advanced Solution






"Geofrey Rainey" <Geofrey.Rainey at tvnz.co.nz>
Sent by: redhat-list-bounces at redhat.com
2009-06-17 12:08
Please respond to
General Red Hat Linux discussion list <redhat-list at redhat.com>


To
"General Red Hat Linux discussion list" <redhat-list at redhat.com>
cc

Subject
RE: fixed drive name







The procedure is similar in RHEL 5, you need to do it using "udev"
rules.

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Le Wen
Sent: Wednesday, 17 June 2009 3:44 p.m.
To: General Red Hat Linux discussion list
Subject: fixed drive name

Hi list,

 I want to give some hard drive a fixed name, say,sdb,sdc...

 In RHEL4, I can handle it using such method:
 1. edit /etc/scsi_id.conf, change options=-b to options=-g
 2. use command: scsi_id /block/sdb to get the scsi uuid of the hard
drive, assume it returns 123456
 3. create a rule file under /etc/udev/rules.d, which contains a line
like
    BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="123456", NAME="sdb%n"
 4. OK, each time I restart the server, the drive is fixed to sdb and
never changes.

However, in RHEL5, I can't do it anyway. So any clue?

Thanks



Wenle
Staff Consultant
CSB Advanced Solution
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
==========================================================
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz
==========================================================
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list