LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-14-2008, 09:40 AM   #1
jkboys
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
fstab.order alternative in RHEL 5.x


What is the alternative for specifying the order to mount file systems in RHEL 5? Previous versions worked with fstab.order but it seems to be deprecated in the newer versions of linux.

In my case multiple devices have same label for their filesystems, so need to prioritize one of them to be picked by mount command. Thanks!
 
Old 07-14-2008, 10:53 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
You can use the UUID of device instead.
A fstab using UUID looks like:
Code:
[miguel@babylon5 ~]$ cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
UUID=1adad31c-b714-4c15-99bd-5981fb54335e /boot                   ext3    defaults        1 2
....
To get the UUID of a device, you can use lshal:
Code:
udi = '/org/freedesktop/Hal/devices/volume_uuid_1adad31c_b714_4c15_99bd_5981fb54335e'
  block.device = '/dev/sdb1'  (string)
...
  volume.uuid = '1adad31c-b714-4c15-99bd-5981fb54335e'  (string)
PS: Of course you can always specify the device by its regular device name under /dev, i.e. "/dev/sdb1"...

PS2: Having a second thought about this, more than one filesystem with the same volume label it is not related to "mount order", so I'm confused now....

Last edited by marozsas; 07-14-2008 at 10:59 AM.
 
Old 07-14-2008, 11:34 AM   #3
jkboys
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply marozsas. We have a multipathing software such as PowerPath. So say /dev/sdb, /dev/sdc are multiple paths to same device, our multipathing software creates a device /dev/dpda that essentially uses any available path (sdb or sdc) to write on to the device. Now the problem is one of our customers wants to mount filesystems during boot time using labels (unfortunately they are not ready to use UUID). 'man mount' on RHEL 4 or equivalent shows the following

DUPLICATE LABELS
mount includes support for systems where same partition is shared between different devices (e.g. multipath kernel drivers). In particular case when mounting device by LABEL, mount command reports problem with duplicate labels. You can define priority of devices in file /etc/fstab.order as simple list of devices. The devices listed in this file have greater priority than odd devices. Devices in configuration file have descending priority.


fstab.order is depricated in RHEL 5 and so I can't find any. So what is equivalent to fstab.order?
 
Old 07-14-2008, 10:18 PM   #4
jkboys
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Looks like there is no other way, so got the customer convinced to use UUID based mounting. So it works fine and there is no necessity of fstab.order since unlike label, UUID is different for the multipathing device and the underlying fibre channel device(s).
 
  


Reply

Tags
fstab, mount


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs and bind-mount order in /etc/fstab mr.neil Linux - Server 6 06-16-2008 02:41 AM
fstab mounting order make *BSD 3 04-03-2007 03:18 PM
RHEL install hdd in wrong order? how change jmral23 Linux - Software 2 08-16-2005 04:28 PM
alternative updates for RHEL?? halo14 Red Hat 1 04-17-2004 02:36 PM


All times are GMT -5. The time now is 07:44 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration