Ir al contenido
 Español      
HP.com Puerto Rico principal Productos y Servicios Soporte y Controladores Soluciones Cómo Comprar
» Contactar HP
     Búsqueda avanzada en foros
HP.com Puerto Rico principal
IT Resource Center Forums > Linux > system administration

tar command on ultrium sb920c tape blade - This thread has been closed

» 

Centro de Recursos de Tecnología Informática

» Inicio de sesión
» Registro
» Mi perfil
» Búsqueda en la base de conocimientos
» Foros
» Base de datos de parches
» Descargar controladores, software y firmware
» Comprobación de la garantía
» Administrador de casos de soporte
» Administrador de actualizaciones de software
» Capacitación y educación
» Más opciones de mantenimiento y soporte
» Ayuda online
» Mapa del sitio

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Aquí empieza el contenido
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: tar command on ultrium sb920c tape blade      Add to my favorites  This thread has been closed
maurizio di salvo
Nov 6, 2009 10:48:08 GMT   

Good morning, i have installe on c3000 tape blade the installation is ok. on the blade server ( the partner server of tape is a node of cluster ) i have red hat os i want know the command for backup file or directory. how to know the tape device ?? es: /dev/rmt0? or /dev/st0? and hoe to use the tar command ??

thanks for all
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Matti Kurkela Expert in this area This member has accumulated 7500 or more points
Nov 7, 2009 18:10:00 GMT    Unassigned

If you have RHEL 5, you can use the "lsscsi" command to see a listing of all SCSI and SCSI-like devices (FibreChannel, USB, Firewire, SATA...). It's very useful.

The "lsscsi" command is not installed by default; use "yum install lsscsi" if you don't have it installed yet.

With older versions, run "dmesg | less" to look at the kernel message buffer: when the kernel detects the tape drive, it prints out a message that includes the device name.

Most likely the "base" device name is /dev/st0. There is typically also /dev/nst0, the "no-auto-rewind" version of the device.

If you use /dev/st0, the tape is automatically rewound back to the beginning after each tape-access command is completed. Depending on what you're doing, you may or may not want that.

On the use of the tar command: use the command "man tar" to read the manual. The "tar" command has a *lot* of options.

MK
Michael Steele Expert in this area This member has accumulated 7500 or more points
Nov 9, 2009 02:48:26 GMT    Unassigned

Hi

Use 'tar' in conjunction with 'mt'

'mt'

http://man.he.net/?topic=mt&section=all

'tar'

http://man.he.net/?topic=tar&section=all

All Linux Man pages

http://man.he.net/

Example:
Use /dev/nst0 - no rewind as well as /dev/st0.

cd dir
tar -cvf /dev/st0 *.*
tape finishes

Verify tape
tar -Tvf /dev/st0

Use mt like so

mt /dev/nst0 fsf 1 (* move tape one record ahead *)

mt /dev/st0 rew (* rewind *)
maurizio di salvo
Nov 9, 2009 22:34:24 GMT    N/A: Question Author

thanks now is ok. the device is st0 and i have use tar command tar -cvf /dev/st0.
maurizio di salvo
Nov 9, 2009 22:37:00 GMT   Thread closed by author  

tha
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Declaración de confidencialidad El uso de este sitio implica la aceptación de sus políticas de uso
© 2009 Hewlett-Packard Development Company, L.P.