Slow listing of LTo5 tape contents | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Slow listing of LTo5 tape contents

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-07-2013
m_raheelahmed m_raheelahmed is offline
Registered User
 
Join Date: Apr 2009
Last Activity: 16 October 2014, 7:45 AM EDT
Posts: 50
Thanks: 5
Thanked 2 Times in 1 Post
IBM Slow listing of LTo5 tape contents

Hi,

We are taking our filesystem backup having size of 1.3 TB on LTO5 catridges using the following command

find * -print|backup -ivf '/dev/rmt0' '-U'

i.e backup byname and it took about 6.5 Hours to complete When we are listing same tape contents using the following command

restore -lTf '/dev/rmt0'

then it took almost the same time to list the contents in which backup was completed. Is there any way to fasten the tape content listing? Any help any idea would be highly appreciated.

Thanks
Sponsored Links
    #2  
Old 05-12-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 22 October 2014, 8:10 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,286
Thanks: 45
Thanked 824 Times in 651 Posts
The problem is that "restore"/"backup" file format has no "table of contents", so basically "restore" has to read the whole file to generate it. The limiting factor is the speed of the tape (this is probably the case with the "backup" too).

What you can do is: instead of piping the file list directly into "backup" create a file first. Then write this file first at the rmt-device, only then use the same list as input to "backup". Write to the "/dev/rmtN.1" instead of "/dev/rmtN", this is the drive without "rewind on exit", so your "table of contents" will be the first entry on the cartridge. You can restore this single file to get/search a list of files backed up in this session.

Backup (schematic)

Code:
find .... -print > /tmp/filestobackup
tctl -f /dev/rmtN.1 rewind
tar cf /dev/rmtN.1 /tmp/filestobackup
backup -ivf /dev/rmtN.1 < /tmp/filestobackup
tctl -f /dev/rmtN rewoffl

Search (=restore toc only)

Code:
tar xf /dev/rmtN

Restore (schematic, skip first entry, then restore normally)

Code:
tctl fsf 1 -f /dev/rmtN.1
restore -lTf /dev/rmtN.1

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
m_raheelahmed (05-16-2013)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to initialize LTO5 Tape Drive? Mack1982 Solaris 0 01-09-2013 01:11 PM
mksysb to tape too slow... ppchu99 AIX 3 03-09-2012 06:12 PM
Listing Contents of tar.gz file Zaib Solaris 1 11-25-2010 12:05 PM
Listing contents mraghunandanan UNIX for Dummies Questions & Answers 2 05-21-2009 02:42 PM
Very slow Tar extraction from tape citrowske UNIX for Dummies Questions & Answers 0 10-20-2005 12:34 PM



All times are GMT -4. The time now is 07:01 AM.