LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2008, 04:52 AM   #1
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Rep: Reputation: 0
mtx to remote autoloader


We would like to do backups to a remote DDS autoloader attached to a server on our lan.

mt -f user@host:/dev/nst0 .... works
OK
We then whould like to use mtx do load/unload DAT's.

mtx -f user@host:/dev/sg0 status ... gives /dev/sg0 no such device (sg0 is the right scsi device).

Searching and reading never says anything about mtx supporting remote
drives. Has anyone done this ?

Thanks.
 
Old 07-12-2008, 09:25 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I've done something similar on Solaris that is transferable. I choose not to allow rsh, rlogin, etc. or telnet. Everything has to be done using ssh. So, in my backup script, I may have a command like:

Code:
su - backup -c "ssh ${TAPESERVER} \"mt -f ${TAPDEV} status\"" 2>&1 | tee -a ${STATFILE};
Then I can examine the output of the remote mt command by looking at the contents of ${STATFILE}.

My dump is a bit more complex:

Code:
( /usr/lib/fs/ufs/ufsdump ${LEVEL}cnlTfuN 2h - ${RDEV} ${WHICHSNAP}; STATCODE=$?; echo ${STATCODE} > ${CODEFILE} ) | su - backup -c "ssh ${TAPESERVER} \"dd obs=64b of=${TAPDEV}\"";
STATCODE=`cat ${CODEFILE}`;
Note that the dump is inside a subprocess so that I can capture the status code, and its output is piped to the su to the user backup which ssh's to the other server. There, the data coming in through the pipe is sent through dd to the tape drive. This is for a DDS/3 tape drive. The script and the dumps run as root. The ssh to the other server is as the user backup. In order for this to work, I set up certificates for the user backup to automatically login to the other server. Root is not allowed to login from another server.

The same technique would work with mtx. You would be using the mt and the mtx on the server where the autoloader is.
 
Old 07-13-2008, 09:56 AM   #3
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks , but the question was just about mtx (not mt) supporting remote drives or not. We would like not having to modify our backup shells too much.
 
Old 07-13-2008, 04:27 PM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Unfortunately, I seriously doubt it does. There is no reference or syntax in the man pages for mtx for doing so. That was why I offered an alternative. Typically, backup software has a storage process running on the machine that has the tape library, and it is that process that receives communications and data from other machines on the network. By by running a remote command via ssh on the other machine, my backup scripts achieve the same thing.
 
Old 07-14-2008, 03:36 AM   #5
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I think you are right for mtx. Thanks for your suggestions.
 
Old 07-14-2008, 07:43 AM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I should point out that at some point the burden of developing/maintaining scripts and keeping up with your needs in terms of capabilities will become too much. Then you will want to adopt a real backup program. I reached that point about 2 years ago and adopted Amanda. I now have a tape library that uses AIT5 and I don't have to change tapes anymore. It just runs, and all my servers get backed up every day. Budget considerations for a library can, of course, be an issue. There is still one department that is running my scripts, and each of their servers (except one) has its own DDS/3 tape drive. The Jr. Admin in that department has to run around changing tapes several days a week, and the capacity is still inadequate to completely cover their servers. I developed the scripts over a period of a couple of years and spent a fair bit of time on them. The same script runs on all the servers with a config file. The server without a tape drive recognizes that the tapeserver is another machine and uses ssh to get to the remote machine. Lots of tweaking, logging, and error checking. Nevertheless, it ended up being less overall effort and far more gratification setting up Amanda.
 
Old 07-15-2008, 01:44 AM   #7
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Original Poster
Rep: Reputation: 0
We are also thinking about backup softwares (bacula , amanda ,...)
Thanks.
 
Old 07-15-2008, 05:31 AM   #8
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
You'll find plenty of links here http://www.linuxquestions.org/bookmarks/tags/backup with good information and recent updates.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCSI Autoloader Support REL 4 thadco Red Hat 8 07-31-2006 02:33 PM
Problem with Autoloader with RH psilva@av.it.pt Linux - Hardware 2 04-20-2005 03:45 AM
Redhat ES 3.0 won't see autoloader daz_75 Linux - Hardware 0 06-23-2004 05:52 AM
Autoloader klnasveschuk Linux - Hardware 0 10-24-2003 12:04 PM
Tape Autoloader BTseapig Linux - Hardware 1 05-15-2002 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration