LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-24-2006, 01:22 PM   #1
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
How to span multiple 2x sided Magneto-Optical disks for backup?


Does anyone have any idea how to span media with tar when using two sided media such as the MO discs? I've used -M to span media on a DLT drive with tar, but that only prompts for new media. As far as I know tar is not intelligent enought to flip MO discs. I'm hoping I can figure something out by specifying the size of the MO disc and then flip it, but I'm not sure how I'd resume backing up from where I left off?

I've already verified I can use the medium via a direct tar backup (tar -cvf /dev/sda /etc) and by making a partition and ext3 fs on one side of one of the MO cartridges as well.
 
Old 03-25-2006, 05:54 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Just because I am curious...

How do you flip an MO disk? I mean, do you have to tell /dev/sda to flip (and how do you tell that) Or do you have multiple devices, say /dev/sda1 for side 0 and /dev/sda2 for side 1?

jlinkels
 
Old 03-25-2006, 11:33 AM   #3
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
/dev/sda and /dev/sdb are just the optical drives as block devices, and are unrelated to the actual medium changer. The medium changer is just another scsi device on the internal chain. If you wanted to rotate the medium you add 'invert' into your command.. For example
Code:
mtx -f /dev/sg1 invert load 6 1
would load medium slot 6, rotate it, and insert it into drive 1. (/dev/sg1 being the medium changer/robot)

But the man pages work best, since that's where I learned it from anyways.
 
Old 03-25-2006, 05:55 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Ok, is it correct that your problem is that tar does not know how to flip the disk?

In that case, use "star". That is a more or less upward compatible "tar". You can get it here

Star offers you an option where you can specify a script name (new-volume-script=script)when the media has to be changed. Since you know what command (mtx etc) you have to issue for changing the disc, you can specify that.

I also wrote this post about star in this forum.

BTW, are you sure that you want to make multi volume backups? If one media fails, you loose everything! On my system, I made all my disk partitions equal to the size of my backup media. So a partition is guaranteed to fit on my media. Restore and verify is MUCH easier and more reliable that way.

Let me know if this was your problem and whether you could solve it.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Magneto-optical drives olaf77 Linux - Hardware 1 01-28-2005 09:33 PM
Magneto-Optical Disk Media judge_neo Linux - Hardware 1 10-30-2004 12:55 PM
automagically mount Magneto-Optical Drive? wytiger Fedora 0 07-27-2004 10:56 PM
mounting magneto-optical disks, external scsi drive freerangehuman Linux - Hardware 0 05-26-2004 01:11 PM
Span Backup Tapes ghight Linux - Software 1 07-22-2003 06:10 PM

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

All times are GMT -5. The time now is 06:26 AM.

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