lkml.org 
[lkml]   [2000]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Drive name slips...
    Date
    Ashok Raj writes:
    > Linux kernel names the scsi drives sda, sdb .... so in case you switch
    > slots, or move across to a different controller
    > then its possible you can have very bad effects. Worst case is removing a
    > drive and the drive device files dont have a persistant assiciation with the
    > location, or do we have a magic superblock what the configured name was.
    >
    > is there a solution to Linux for this? i was looking at raid, but the config
    > file says /dev/sda etc, and it says it does do the superblock magic to avoid
    > this. In a SAN its more important as a remote scsi disk may be detectect in
    > a different order.

    If you are using ext2 filesystems, you can use the ext2 filesystem "label"
    instead of the device in /etc/fstab, so you don't get burned by drive name
    or address changes. See mount(8) and fstab(5) for more info (a newer version
    of mount is required to support labels).

    IMHO, the Solaris/devfs method of specifying drives by
    controller/drive/partition is not much better than the current system,
    as you still have problems if the SCSI ID is changed, or if you add a
    new controller and the controller numbering changes.

    Cheers, Andreas
    --
    Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
    \ would they cancel out, leaving him still hungry?"
    http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:56    [W:4.302 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site