LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 11-09-2009, 06:26 AM   #1
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Rep: Reputation: 15
How to get persistent drive names for iscsi drives in el5


Hi
I have a server running rhel5-update3 (2.6.18-128.el5). I have mapped a few iscsi drives of different sizes to this server. Now they are detected as /dev/sdb through /dev/sdr , but every time I restart the iscsi service they dirves get mapped to different drive names than before. I am using
iscsi-initiator-utils-6.2.0.871-0.10.el5
I want the drives to be mapped persistently to certain drive names.

-Thanks
 
Old 11-09-2009, 09:07 AM   #2
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
use e2label command and give them labels, then edit the fstab to replace the partition number to LABEL=Set-Label-Here

# man e2label

That way fstab wont look for drive letters (sdb, sdc, sdd..) it'l look for the partitions label instead, fixing your problem.

Last edited by JamesChamberlain; 11-09-2009 at 09:09 AM.
 
Old 05-17-2010, 12:20 PM   #3
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Can I use the labeling method even if I am using LVM

Can I use the labeling method even if I am using LVM ?
 
Old 06-01-2010, 07:43 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
You need not use the labels if you are using LVM since the disks will come up in the actual order. This is because of the LVM label put in the 2nd 512 bytes of the partition/disk while creating the physical volume.
 
Old 06-02-2010, 12:38 PM   #5
JD50
Member
 
Registered: Nov 2007
Location: Virginia
Distribution: Fedora, RHEL, CentOS
Posts: 67

Rep: Reputation: 17
You might want to look into using udev rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resize iscsi drive online aclhkaclhk Linux - Enterprise 1 09-12-2009 08:03 PM
EL5 hard drive dm-0 problem funnyvoice Linux - Hardware 2 06-02-2009 11:27 PM
Slackware on Persistent USB drive? SiegeX Slackware 1 01-09-2009 12:16 PM
Using wine with fat32 shared drives (mounting/write problems - not persistent) Rexx Magnus Debian 4 10-13-2008 08:37 AM
LXer: Persistent names for devices LXer Syndicated Linux News 0 04-19-2008 06:51 AM


All times are GMT -5. The time now is 03:55 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration