LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Device major and minor numbers in Linux

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Device major and minor numbers in Linux
From: jsc3@xxxxxxxxxxxxx (John Cronin)
Date: Tue, 3 Jul 2001 15:33:41 -0400 (EDT)
Using Linux (primarily Redhat 6.X and 7.X) how does one adjust device
major and minor numbers if one wants to do something like have failover
NFS service?

For example, for Sun Solaris, one can adjust the major numbers by
editing /etc/name_to_major, and then one can adjust minor numbers
by editing /etc/path_to_inst (and then doing a "reboot -- -r").

One usually has to do some poking around in the device trees
to make it all work out, but when done, one can then have a
seamless failover from one NFS server to another in a redundant
HA cluster.  The device major and minor number fixing is required
because NFS gets the file handle from computations done using the
major and minor numbers, and thus if you don't have identical major
and minor numbers, your file handles are wrong and if the primary
NFS server fails, your NFS from the backup server won't be right
again unless you unmount the NFS file system (on the client) and
remount it again (which is not exactly ideal HA).

So, any pointers?  I tried using Google, but could not find exactly
what I was looking for.  I also went over to http://www.linux-ha.org,
but aside from discovering that both XFS and JFS 1.0 versions have
been released, I was not enlightened.  I did find /etc/sysconfig/rawdevices
on my own, but I could not find a man page or anything else useful that
told me something helpful about this file.

-- 
John Cronin
mailto: `echo NjsOc3@xxxxxxxxxxx | sed 's/[NOSPAM]//g'`


<Prev in Thread] Current Thread [Next in Thread>