LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-18-2009, 03:52 PM   #1
wazzu62
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
tar backup to LTO-4 tape drive


I have a Dell R900 running RHEL 5.1 and have a Quantum LTO-4 tape drive connected to a SAS1068E SAS card.It has quad 2.93 dual-core processors and 16GB of memory. The files I am backing up are connected to a SAN (2gb fabric)

I am using standard tar commands to write to the tape and am trying to improve performance. The drive is rated at 120MB/sec.

Using the following command I can see about 112-114 MB/sec throughput.

dd if=/dev/zero of=/dev/nst0 bs=1024k count=10240

but with tar I can only see about 8-14 MB/sec

tar -cvpf /dev/nst0 -b 512 /path/to/files --totals

I am backing up lots of small files, several directories each containing about 150,000 files. If I run a test and backup a single file (10GB) using the tar command I get about 100+ MB/sec throughput.

Are there other options I can look at with tar or settings I can set via the mt command? I suspect part of the problem is the sheer number of files in each directory.

Any help would be appreciated.
 
Old 08-19-2009, 09:26 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by wazzu62 View Post
I have a Dell R900 running RHEL 5.1 and have a Quantum LTO-4 tape drive connected to a SAS1068E SAS card.It has quad 2.93 dual-core processors and 16GB of memory. The files I am backing up are connected to a SAN (2gb fabric)

I am using standard tar commands to write to the tape and am trying to improve performance. The drive is rated at 120MB/sec.

Using the following command I can see about 112-114 MB/sec throughput.

dd if=/dev/zero of=/dev/nst0 bs=1024k count=10240

but with tar I can only see about 8-14 MB/sec

tar -cvpf /dev/nst0 -b 512 /path/to/files --totals

I am backing up lots of small files, several directories each containing about 150,000 files. If I run a test and backup a single file (10GB) using the tar command I get about 100+ MB/sec throughput.

Are there other options I can look at with tar or settings I can set via the mt command? I suspect part of the problem is the sheer number of files in each directory.

Any help would be appreciated.
My guess would be that the 'dd' command is just shoveling raw data to the drive, where 'tar' is creating a single file from many, processing each one, adding it to the archive, verifying what's been written, etc. That's where your overhead is coming in.

I'd try to create the file to a temp directory on your hard drive, then copy that file to tape, and see what happens...
 
Old 08-19-2009, 10:07 AM   #3
wazzu62
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
did some testing and I have determined that performance decreases when the number of files being written to tape increases.

Does anyone know of another backup application that performs better than tar, maybe one that can handle lots of small files? I chose tar because I am basically archiving these files to tape for long term storage and then removing them from disk once they are on tape. Tar seemed like an obvious simple choice for this.
 
  


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
Problem: tar Backup to Remote Tape Drive HaroldWho Linux - Software 8 07-30-2008 12:05 PM
help me to take backup to tape drive using tar binuveranal Linux - Server 1 02-26-2008 03:33 AM
LTO compressed backup using tar in RH Linux ppanyam Red Hat 1 12-07-2007 03:14 AM
Tar not able to perform backup on tape drive livetoday Red Hat 2 09-29-2007 03:16 AM
Slow speeds while dumping backup files to LTO-3 tape device dafart Linux - Hardware 3 09-04-2007 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:58 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