Re: [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-16 Thread Mikael Pettersson
Andreas Dilger writes: > Andries writes: > > > I've implemented a patch for util-linux-2.11a > > > which adds LABEL support to mkswap(8) and swapon/swapoff(8). > > > > But I would prefer a somewhat more ambitious approach. > > > > My first thought was: why label individual swap partitions

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-16 Thread Stephen C. Tweedie
Hi, On Wed, Mar 14, 2001 at 02:11:57PM -0500, Lars Kellogg-Stedman wrote: > > Put LABEL= in you fstab in place of the device name. > > Which is great, for filesystems that support labels. Unfortunately, > this isn't universally available -- for instance, you cannot mount > a swap partition by l

Re: [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-15 Thread Michail Brzitwa
In article <[EMAIL PROTECTED]> you wrote: > The real problem is that our disks usually do not have a volume label. > Outside of all file systems. > The "signatures" that we rely on today are located in different places, > so that a filesystem can have several valid signatures at the same time. > A

Re: [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-15 Thread Andreas Dilger
Andries writes: > > I've implemented a patch for util-linux-2.11a > > which adds LABEL support to mkswap(8) and swapon/swapoff(8). > > But I would prefer a somewhat more ambitious approach. > > My first thought was: why label individual swap partitions? > I almost never want to distinguish swap

Re: [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-15 Thread Andries . Brouwer
> I've implemented a patch for util-linux-2.11a > which adds LABEL support to mkswap(8) and swapon/swapoff(8). Yes, maybe a reasonable idea. But I would prefer a somewhat more ambitious approach. My first thought was: why label individual swap partitions? I almost never want to distinguish swap

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-15 Thread Mikael Pettersson
On Wed, 14 Mar 2001 12:34:06 -0700 (MST), Andreas Dilger wrote in LKML: >Lars writes: >> > Put LABEL= in you fstab in place of the device name. >> >> Which is great, for filesystems that support labels. Unfortunately, >> this isn't universally available -- for instance, you cannot mount >> a sw

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-15 Thread John Jasen
On Wed, 14 Mar 2001, Richard B. Johnson wrote: > This used to even be the way disks were located by the kernel > drivers. Now, these are found in some "random" order. > > If whatever is causing the "random" order was fixed, put back like > it used to be, etc., we wouldn't have these problems. An

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Stephen Degler
Hi, The solution is not to go down the path2inst road, that is full of its own traps. You want volume labels via a volume manager (do lvm and raid already do this?) and/or filesystem labels (see e2fslabel). This won't solve all of the ills associated with device instance changes, but it will c

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Greg KH
On Wed, Mar 14, 2001 at 05:53:16PM -0800, Tim Wright wrote: > Well, if it sounds useful, I can look into putting up the design documentation > (yes, shock, horror, there is some :-). It's pretty thorough and covers most > of the issues involved, and hence might be a good talking point, even if we

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Tim Wright
On Wed, Mar 14, 2001 at 10:15:26AM -0800, Greg KH wrote: [My ramblings on device naming database deleted] > This comes up a lot with regards to USB devices too. One of the > usb-serial drivers (the edgeport driver) did something like this by > looking at the topology of the USB bus and where a sp

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread John Jasen
On Wed, 14 Mar 2001, Christoph Hellwig wrote: > In article <[EMAIL PROTECTED]> you >wrote: > > > The problem: > > > drivers change their detection schemes; and changes in the kernel can > > change the order in which devices are assigned names. > > > > For example, the DAC960(?) drivers changed t

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Christoph Hellwig
On Wed, Mar 14, 2001 at 02:11:57PM -0500, Lars Kellogg-Stedman wrote: > > Put LABEL= in you fstab in place of the device name. > > Which is great, for filesystems that support labels. Unfortunately, > this isn't universally available -- for instance, you cannot mount > a swap partition by label

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Richard B. Johnson
On Wed, 14 Mar 2001, Lars Kellogg-Stedman wrote: > > Put LABEL= in you fstab in place of the device name. > > Which is great, for filesystems that support labels. Unfortunately, > this isn't universally available -- for instance, you cannot mount > a swap partition by label or uuid, so it is no

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Andreas Dilger
Lars writes: > > Put LABEL= in you fstab in place of the device name. > > Which is great, for filesystems that support labels. Unfortunately, > this isn't universally available -- for instance, you cannot mount > a swap partition by label or uuid, so it is not possible to completely > isolate yo

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Andreas Dilger
Christoph writes: > In article <[EMAIL PROTECTED]> you >wrote: > > drivers change their detection schemes; and changes in the kernel can > > change the order in which devices are assigned names. > > > > For example, the DAC960(?) drivers changed their order of > > detecting controllers, and I did

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Lars Kellogg-Stedman
> Put LABEL= in you fstab in place of the device name. Which is great, for filesystems that support labels. Unfortunately, this isn't universally available -- for instance, you cannot mount a swap partition by label or uuid, so it is not possible to completely isolate yourself from the problems

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Peter Svensson
On Wed, 14 Mar 2001, Christoph Hellwig wrote: > Put LABEL= in you fstab in place of the device name. > > Christoph > > P.S. UUID= work, too - but I prefer a human-readable label... There are a lot of different devices besides disks, e.g. tape drives etc. I seem to remember from the last ro

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Christoph Hellwig
In article <[EMAIL PROTECTED]> you wrote: > The problem: > drivers change their detection schemes; and changes in the kernel can > change the order in which devices are assigned names. > > For example, the DAC960(?) drivers changed their order of > detecting controllers, and I did _not_ have fun

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Greg KH
On Wed, Mar 14, 2001 at 08:27:10AM -0800, Tim Wright wrote: > This would currently be massive overkill for Linux, but DYNIX/ptx avoids this > problem entirely by keeping a device naming database. This became necessary > when we added support for multi-path fibre-channel connected disks. Most > dev

Re: magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread Tim Wright
On Wed, Mar 14, 2001 at 10:36:40AM -0500, John Jasen wrote: > > The problem: > [ Device name slippage ] > > Possible solutions(?): > > Solaris uses an /etc/path_to_inst file, to keep track of device ordering, > et al. > > Maybe we should consider something similar, where a physical device to

magic device renumbering was -- Re: Linux 2.4.2ac20

2001-03-14 Thread John Jasen
The problem: drivers change their detection schemes; and changes in the kernel can change the order in which devices are assigned names. For example, the DAC960(?) drivers changed their order of detecting controllers, and I did _not_ have fun, given that the machine in question had about 40 dis