[opensuse] Tape Loader Device /dev/sgN is altering after each reboot
Dear all, we are running SLES 11 where an iscsi tape library is attached. To load the tape in a slot we are using for instance the command #mtx -f /dev/sg1 load 2 which is doing very well. But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times? THX for any solution! Rainer This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. --------------------------------------------------------- Astrium GmbH Vorsitzender des Aufsichtsrates: Thomas Mueller - Geschaeftsfuehrung: Evert Dudok (Vorsitzender), Dr. Reinhold Lutz, Guenter Stamerjohanns, Josef Stukenborg Sitz der Gesellschaft: Muenchen - Registergericht: Amtsgericht Muenchen, HRB Nr. 107 647 Weitere Informationen ueber EADS Astrium @ http://www.astrium.eads.net/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <4ABB591F.8050000@astrium.eads.net>, Rainer Blaes wrote:
But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times?
Yes. Use a udev rule to make a well-named symlink (e.g. /dev/loader) to the dynamic device. Google writing udev rules for dozens of tutorials. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
* Boyd Stephen Smith Jr. <bss@iguanasuicide.net> [09-24-09 09:15]:
In <4ABB591F.8050000@astrium.eads.net>, Rainer Blaes wrote:
But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times?
Yes. Use a udev rule to make a well-named symlink (e.g. /dev/loader) to the dynamic device. Google writing udev rules for dozens of tutorials.
Or identify the device by a lable-id. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Boyd Stephen Smith Jr. (bss@iguanasuicide.net) [20090924 15:14]:
Yes. Use a udev rule to make a well-named symlink (e.g. /dev/loader) to the dynamic device. Google writing udev rules for dozens of tutorials.
No need for that :) st/nst devices are already created by an udev rule and kept persistent. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Philipp Thomas wrote:
* Boyd Stephen Smith Jr. (bss@iguanasuicide.net) [20090924 15:14]:
Yes. Use a udev rule to make a well-named symlink (e.g. /dev/loader) to the dynamic device. Google writing udev rules for dozens of tutorials.
No need for that :) st/nst devices are already created by an udev rule and kept persistent.
But the /dev/sgx devices are presumably needed to manipulate the loader? /Per -- Per Jessen, Zürich (21.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Per Jessen (per@opensuse.org) [20090924 16:58]:
But the /dev/sgx devices are presumably needed to manipulate the loader?
Nope, you can send the device commands also to the st/nst devices. So a mtx -f /dev/st1 load 2 will work as well :) Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Philipp Thomas wrote:
* Per Jessen (per@opensuse.org) [20090924 16:58]:
But the /dev/sgx devices are presumably needed to manipulate the loader?
Nope, you can send the device commands also to the st/nst devices. So a
mtx -f /dev/st1 load 2
will work as well :)
Thanks, I learned something today too then. I have always used the sgx devices for that. /Per -- Per Jessen, Zürich (20.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Rainer Blaes (Rainer.Blaes@astrium.eads.net) [20090924 13:35]:
But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times?
Use the st/nst devices as for these the names are persistent. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2009-09-24 at 13:33 +0200, Rainer Blaes wrote:
Dear all, we are running SLES 11 where an iscsi tape library is attached. To load the tape in a slot we are using for instance the command #mtx -f /dev/sg1 load 2 which is doing very well. But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times?
THX for any solution! Rainer
You might want to look into udev, using that, and info from Google (try the Ubuntu stuff, there's a good explanation and how-to on one of the first few results pages). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Boyd Stephen Smith Jr.
-
Mike McMullin
-
Patrick Shanahan
-
Per Jessen
-
Philipp Thomas
-
Rainer Blaes