1832234 Members
2606 Online
110041 Solutions
New Discussion

Linux backup

 
Duffs
Regular Advisor

Linux backup

Hi,

I have got a RH Linux server sitting at a remote location with a tape inserted locally in its tape drive.

I am connecting via ssh and I am attempting to perform a remote backup to its local tape drive.

I am assuming that the default path for the tape is /dev/st0 however I get the following feedback:

# mt -f /dev/st0 rewind
/dev/st0: No such device
# tar -cvf /dev/st0 /tmp
tar: /dev/st0: Cannot open: No such device
tar: Error is not recoverable: exiting now
#

Apparently there is definately a tape in the drive as I asked someone who was on-site. Does anybody know if there a way of checking the correct path of the tape device remotely??

Rgds,
D


4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Linux backup

I would log in remotely via ssh and check the devide files

cd /dev

ls | grep st

the list probably won't be that long.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
mirco_1
Valued Contributor

Re: Linux backup

hy,

can you try with

# dmesg | grep st
or
# dmesg |grep mt

DM.
Simon Hargrave
Honored Contributor

Re: Linux backup

"cat /proc/scsi/scsi" to see if the device is actually visible to the SCSI subsystem.

If it is then run "kudzu -p", which will show you all hardware and associated device files. You should find your tape drive and its correct device name there.
Nobody's Hero
Valued Contributor

Re: Linux backup

I just had this sort of problem. Turned out that the SCSI bus on the system board was bad. So I moved the cable to an alternate SCSI bus that was available on the disk controler card and I could then see my tape drive. Try an alternate SCSI bus.
UNIX IS GOOD