Home » Pruebas con librerías de cintas sobre servidores Linux

Pruebas con librerías de cintas sobre servidores Linux

En este post mostraré algunos comandos para operar con una librería de cintas desde el sistema operativo. Pueden ser útiles para la verificación de una correcta instalación o como herramientas de diagnóstico en caso de errores de operación observados desde la plataforma de backup. Para este ejemplo el software de backup es Netbackup , librería Dell ML4000 con drives IBM Ultrium 4 y Sistema Operativo Red Hat Linux 5. Las operaciones de prueba son las siguientes:

– Existencia del dispositivo de control de la librería en el sistema operativo despues de realizar las zonas correspondientes en los switches de fibra. Si el sistema operativo ha reconocido la lun de control de la librería debe de aparecer un nuevo dispositivo tipo /dev/stX:

mediabackup01.root./root # ls /dev/st*
/dev/st0  /dev/st0a  /dev/st0l  /dev/st0m  /dev/stderr  /dev/stdin  /dev/stdout

Para conocer modo de operación de la librería y el driver st para dispositivos de cintas con acceso secuencial ver:

http://linux.about.com/library/cmd/blcmdl4_st.htm

– Existencia de los dispositivos drives de cintas en el sistema operativo tipo /dev/nstX:

mediabackup01.root./root # ls /dev/nst*
nst0   nst0a  nst0l  nst0m  nst1   nst1a  nst1l  nst1m

Para conocer los modos de operación de cada dispositivo ver para mas referencias:

http://linux.about.com/library/cmd/blcmdl4_st.htm

http://es.tldp.org/NuLies/web/2.2/Documentation/devices.txt

        	Dispositivos de cinta SCSI
		  0 = /dev/st0		Primera cinta SCSI, modo 0
		  1 = /dev/st1		Segunda cinta SCSI, mode 0
		      ...
		 32 = /dev/st0l		Primera cinta SCSI, modo 1
		 33 = /dev/st1l		Segunda cinta SCSI, modo 1
		      ...
		 64 = /dev/st0m		Primera cinta SCSI, modo 2
		 65 = /dev/st1m		Segunda cinta SCSI, modo 2
		      ...
		 96 = /dev/st0a		Primera cinta SCSI, modo 3
		 97 = /dev/st1a		Segunda cinta SCSI, modo 3
		      ...
		128 = /dev/nst0		Primera cinta SCSI, modo 0, sin rebobinado
		129 = /dev/nst1		Segunda cinta SCSI, modo 0, sin rebobinado
		      ...
		160 = /dev/nst0l	Primera cinta SCSI, modo 1, sin rebobinado
		161 = /dev/nst1l	Segunda cinta SCSI, modo 1, sin rebobinado
		      ...
		192 = /dev/nst0m	Primera cinta SCSI, modo 2, sin rebobinado
		193 = /dev/nst1m	Segunda cinta SCSI, modo 2, sin rebobinado
		      ...
		224 = /dev/nst0a	Primera cinta SCSI, modo 3, sin rebobinado
		225 = /dev/nst1a	Segunda cinta SCSI, modo 3, sin rebobinado
		      ...

		"Sin rebobinado" se refiere a la no realización del rebobinado automático
		efectuado por defecto al cerrar el dispositivo. Las funciones
		MTREW o MTOFFL de ioctl() pueden utilizarse para rebobinar
		la cinta sin importar qué dispositivo se utiliza para acceder a él.

En el caso de que no aparezca el dispositivo st o nst, mirar en los módulos del kernel cargados si aparecen los drivers correspondientes (lsmod),  revisar el zoneado en los switches de fibra, usar herramientas de las HBAs para estudio  de dispositivos en la SAN (tipo Sansurfer para HBAs Qlogic o OneCommand para HBAs Emulex) . En ocasiones, por tipo o parametrización de HBAs puede ser necesario reiniciar el servidor con el fin que reconozca los nuevos dispositivos presentados por fibra. Hay fabricantes que aconsejan instalar drivers propietarios en vez de usar los drivers nativos del sistema operativo requiriendo una consulta a soporte para obtenerlos …

– Pruebas de operaciones sobre la librería: consultas del inventario de la librería, movimiento de cintas entre stots, montaje y desmontaje en un drive.  Pueden usarse los comando nativos de linux mt/dd y/o la herramienta propia de Netbackup robtest.

Un ejemplo con robtest puede ser:

mediabackup01.root./etc # robtest
Configured robots with local control supporting test utilities:
  TLD(0)     robotic path = /dev/sg14
Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice:
Enter choice: 1
Robot selected: TLD(0)   robotic path = /dev/sg14
Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg14
Opening /dev/sg14
MODE_SENSE complete
Enter tld commands (? returns help information)
m d2 s11 "-- mueve cinta de drive 2 a slot 11"
Initiating MOVE_MEDIUM from address 257 to 4106
s d "-- muestra dispositivos drives de cintas en la librería"
MOVE_MEDIUM complete
drive 1 (addr 256) access = 1 Contains Cartridge = no
drive 2 (addr 257) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
s s "-- muestra un inventario de cintas de la librería"
slot 1 (addr 4096) contains Cartridge = yes
Source address = 4096
Barcode = A00113L4
slot 2 (addr 4097) contains Cartridge = no
slot 3 (addr 4098) contains Cartridge = yes
Source address = 4098
Barcode = 000415L4
slot 4 (addr 4099) contains Cartridge = yes
Source address = 4099
Barcode = A00128L4
slot 5 (addr 4100) contains Cartridge = yes
Source address = 4100
Barcode = 000425L4
slot 6 (addr 4101) contains Cartridge = yes
Source address = 4101
Barcode = A00099L4
slot 7 (addr 4102) contains Cartridge = yes
Source address = 4102
Barcode = A00014L4
slot 8 (addr 4103) contains Cartridge = yes
Source address = 4103
Barcode = 000394L4
<< Press return to continue, or q and return to stop >>
m s1 d2 "-- Mueve cinta del slot 1 al drive 2."
Initiating MOVE_MEDIUM from address 4096 to 257
MOVE_MEDIUM complete

-Prueba de escritura en drive: Un ejemplo de escritura en drive con la herramienta dd del sistema operativo después de montar una cinta en el drive  /dev/nst0 :

mediabackup01.root./etc # tar cvf etc.tar /etc
mediabackup01.root./etc # dd if=/etc/etc.tar of=/dev/nst0
533700+0 records in
533700+0 records out
273254400 bytes (273 MB) copied, 54.2875 seconds, 5.0 MB/s

Nota: Se puede usar la utilidad mtx al igual que robtest. Hay un ejemplo del uso de mtx en entorno Windows al final del siguiente post:

http://www.almacenamientoabierto.com/2010/07/vtl-4-creando-una-vtl-open-source-sobre-fcp-fibra-optica/

 

No Responses to “Pruebas con librerías de cintas sobre servidores Linux”

  1. MatthewSkacy dice:

    Hello! wart treatment blister

  2. essay dice:

    essay

    Pruebas con librerías de cintas sobre servidores Linux | Almacenamiento Abierto

  3. Woah! I’m really enjoying the template/theme of this blog.

    It’s simple, yet effective. A lot of times it’s difficult to get that «perfect balance» between superb usability and visual
    appeal. I must say you have done a fantastic job
    with this. Additionally, the blog loads extremely quick for me on Opera.

    Exceptional Blog!

  4. black mass dice:

    Very nice post. I just stumbled upon your blog and wished to say that I’ve
    truly enjoyed surfing around your blog posts.
    After all I’ll be subscribing to your feed and
    I hope you write again very soon!

  5. black mass dice:

    My brother recommended I might like this website.
    He was totally right. This post truly made my day. You cann’t imagine simply how
    much time I had spent for this info! Thanks!

  6. Your way of telling the whole thing in this post is in fact nice, every one can effortlessly
    be aware of it, Thanks a lot.

  7. Very great post. I just stumbled upon your blog
    and wanted to say that I’ve really enjoyed surfing around your blog posts.
    In any case I’ll be subscribing for your feed and I am
    hoping you write again very soon!

  8. Great delivery. Outstanding arguments. Keep up the amazing work.

  9. WOW just what I was searching for. Came here by searching
    for web hosting

  10. Hey there! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly? My blog
    looks weird when viewing from my iphone4. I’m trying to find
    a theme or plugin that might be able to resolve this
    issue. If you have any suggestions, please share. Thank you!

  11. Good day very cool website!! Man .. Excellent .. Amazing ..

    I’ll bookmark your blog and take the feeds also?
    I’m glad to seek out so many useful info here within the post, we’d like develop extra strategies on this regard, thanks
    for sharing. . . . . .

  12. For newest information you have to visit internet and on the web I found this website as
    a best web site for latest updates.

  13. g dice:

    What a material of un-ambiguity and preserveness of precious familiarity concerning unpredicted feelings.

  14. download dice:

    Hi there friends, its great article concerning tutoringand fully defined,
    keep it up all the time.

  15. I know this if off topic but I’m looking into starting
    my own weblog and was curious what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% certain. Any recommendations or advice would be greatly appreciated.
    Kudos

  16. Definitely believe that which you said. Your favorite reason appeared to
    be on the internet the easiest thing to be aware
    of. I say to you, I definitely get irked while people think about worries that they plainly don’t know about.

    You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a
    signal. Will likely be back to get more. Thanks

  17. download dice:

    Its like you learn my mind! You seem to know a lot about this, like
    you wrote the guide in it or something. I believe that you just could do with a few
    % to drive the message house a bit, but other than that, this is fantastic blog.

    A fantastic read. I’ll certainly be back.

  18. Hey there! I’m at work surfing around your blog from my new
    iphone 4! Just wanted to say I love reading your blog and look forward to all your posts!
    Carry on the great work!

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *