[ILUG] How do I map fibre channel to absolute /dev/sgxx
Patrick Tuite
Patrick.tuite at ucd.ie
Tue Nov 14 10:35:12 GMT 2006
On Monday 13 November 2006 18:28, Jeroen Massar wrote:
> Patrick Tuite wrote:
> > Hi all
> >
> > I had a bit of a problem with a fibre channel tape library. We recently
> > moved a bunch of systems, some connected to a fibre channel switch with
> > the tape library & storage arrays and discovered when running scripts for
> > Amanda that the tape library media changer, previous mapped to /dev/sg6,
> > had changed to /dev/sg1. All the cabling was marked and reassembled
> > identically.
> >
> > I was wondering if anyone knew a quick way to map the SCSI ID for a
> > device to a particular block device id when the system boots to avoid
> > having to edit the scripts each time it may change if the systems are
> > ever restarted?
>
> On anything with udev support you should be able to find them inside:
> /dev/disk/by-id/
> /dev/disk/by-path/
> /dev/disk/by-uuid/
>
Doesn't appear to be installed with this version of RHEL3, but I can see how
it would help.
Thank anyway.
> Depending what is the most convenient labeling mechanism for your needs.
> by-path is most likely the one you want in this case.
>
> Gives you for instance:
>
> /dev/disk/by-path$ ls -la
> lrwxrwxrwx 1 root root 9 Jul 27 16:05 pci-0000:02:04.0-scsi-0:0:1:0 ->
> ../../sda
>
> Greets,
> Jeroen
>
>
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
--
Patrick Tuite
Research IT Support
UCD IT Services
Ext: 2037
More information about the ILUG
mailing list