12-06-2007
cd
Small update:
I changed tape to the new one, once probe more:
hades# tar -cvf /dev/nsa0 restore/ test1/ test/
a restore
a restore/.cshrc
a restore/.mail_aliases
a restore/.login
a restore/.rhosts
a restore/.login_conf
a restore/.mailrc
a restore/.profile
a restore/.shrc
a restore/myharddisk.img
a restore/test
a restore/tarlist
a restore/test1
a restore/terlist
a restore/tapefilelist
a restore/test1/level1
a restore/test1/myharddisk.img
a restore/test1/test.img
a restore/test/level1
a restore/test/myharddisk.img
a test1
a test1/level1
a test1/myharddisk.img
a test1/test.img
a test
a test/level1
a test/myharddisk.img
As I understand all directories above have been added to tape:
hades# mt -f /dev/nsa0 status
Mode Density Blocksize bpi Compression
Current: 0x44 variable 0 0x1
---------available modes---------
0: 0x44 variable 0 0x1
1: 0x44 variable 0 0x1
2: 0x44 variable 0 0x1
3: 0x44 variable 0 0x1
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 1 Record Number: 0 Residual Count 0
hades# tar -tvf /dev/nsa0
tar: Error opening archive: Empty input file: Inappropriate file type or format
hades# mt -f /dev/nsa0 rewind
hades# mt -f /dev/nsa0 status
Mode Density Blocksize bpi Compression
Current: 0x44 variable 0 0x1
---------available modes---------
0: 0x44 variable 0 0x1
1: 0x44 variable 0 0x1
2: 0x44 variable 0 0x1
3: 0x44 variable 0 0x1
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 0 Residual Count 0
Here I have as last time the same situation, only first directory I am able to see. hmmm...strange...
hades# tar -tvf /dev/nsa0
drwxr-xr-x 0 root peter 0 Dec 5 19:49 restore
-rw-r--r-- 0 peter peter 767 Dec 3 21:51 restore/.cshrc
-rw------- 0 peter peter 373 Dec 3 21:51 restore/.mail_aliases
-rw-r--r-- 0 peter peter 248 Dec 3 21:51 restore/.login
-rw------- 0 peter peter 276 Dec 3 21:51 restore/.rhosts
-rw-r--r-- 0 peter peter 158 Dec 3 21:51 restore/.login_conf
-rw-r--r-- 0 peter peter 331 Dec 3 21:51 restore/.mailrc
-rw-r--r-- 0 peter peter 797 Dec 3 21:51 restore/.profile
-rw-r--r-- 0 peter peter 975 Dec 3 21:51 restore/.shrc
-rw-r--r-- 0 root peter 100000 Dec 5 18:02 restore/myharddisk.img
hades# mkdir new
hades# cd new/
Let try to restore tape...
hades# tar -xvf /dev/nsa0
hades# ls -l
total 0
hades# mt -f /dev/nsa0 status
Mode Density Blocksize bpi Compression
Current: 0x44 variable 0 0x1
---------available modes---------
0: 0x44 variable 0 0x1
1: 0x44 variable 0 0x1
2: 0x44 variable 0 0x1
3: 0x44 variable 0 0x1
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 11 Residual Count 0
hades# mt -f /dev/nsa0 rewind
hades# mt -f /dev/nsa0 status
Mode Density Blocksize bpi Compression
Current: 0x44 variable 0 0x1
---------available modes---------
0: 0x44 variable 0 0x1
1: 0x44 variable 0 0x1
2: 0x44 variable 0 0x1
3: 0x44 variable 0 0x1
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 0 Residual Count 0
And this is really interested:
hades# tar -xvf /dev/nsa0
x restore
x restore/.cshrc
x restore/.mail_aliases
x restore/.login
x restore/.rhosts
x restore/.login_conf
x restore/.mailrc
x restore/.profile
x restore/.shrc
x restore/myharddisk.img
x restore/test
x restore/tarlist
x restore/test1
x restore/terlist
x restore/tapefilelist
x restore/test1/level1
x restore/test1/myharddisk.img
x restore/test1/test.img
x restore/test/level1
x restore/test/myharddisk.img
x test1
x test1/level1
x test1/myharddisk.img
x test1/test.img
x test
x test/level1
x test/myharddisk.img
hades# ls -l
total 6
drwxr-xr-x 4 root peter 512 Dec 5 19:49 restore
drwxr-xr-x 3 root peter 512 Dec 5 18:05 test
drwxr-xr-x 3 root peter 512 Dec 5 19:43 test1
hades#
So it means that in reality I had on the tape all my directories, maybe on the first I had problem as I make a lot of tests on one tape drive.
So question now is: how to check using tar the all structure of tape drive if we know that it files has been recorded via tar?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I find if a server contains a DDS3 or a DDS2 drive remotely ?
I checked in SMIT and I noticed the description field according to tape drives, but is there another more thorough way?
Thanks,
Luke (0 Replies)
Discussion started by: Skywlkr235
0 Replies
2. UNIX for Advanced & Expert Users
Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies
3. UNIX for Advanced & Expert Users
We have a new i500 and have 4 TLO4 drives which are connected directly to 2 FC cards on the host. The host can communicate with the autochanger through whichever drive that is set as control path.
When I run inquire, all 4 drives are listed but auto changer doesn't show up. Does anyone know... (1 Reply)
Discussion started by: tecky
1 Replies
4. Filesystems, Disks and Memory
Hi,
I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
Discussion started by: forumsrahul
1 Replies
5. UNIX for Dummies Questions & Answers
TIA,
I'm using FreeBSD 6
I have a series of Directories (A,B,C,...Z). Each directory has files and other directories within it.
I want to compress the contents of each top directory into a single file so that I get an archive of each directory (for example, A.gzip) AND and want to move... (5 Replies)
Discussion started by: jccbin
5 Replies
6. Solaris
I have a server/domain on a m5000 running Solaris 10. It is part of a cluster.
The other cluster member sees tape drives, but this one does not.
It is zoned correctly, and I can see the drives are binded in lputil.
The st.conf, and devlink.tab are identical.
ST.CONF: -
#
# Copyright... (1 Reply)
Discussion started by: pfwhufc
1 Replies
7. Solaris
hi,
i am using Solaris 8 on a sparc box and already have 4 tape drives in a backup libaray attached to my unix server. we have recently added 2 new tape drives to the libaray and now want to get unix to see them. have it working in windows.
how do i scan for new hardware and add theses new... (5 Replies)
Discussion started by: dshakey
5 Replies
8. Shell Programming and Scripting
#cat a
BAC064DAL
BAC063DAL
BAC056PHX
BAC066DAL
BAC062PHX
BAC062DAL
BAC060DAL
BAC058PHX
BAC054PHX
BAC051PHX
# for i in `cat a`
> do
> tar xvf $a/$a*.tar*
> done
tar: /*.tar*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: /*.tar*: Cannot... (3 Replies)
Discussion started by: kenshinhimura
3 Replies
9. Shell Programming and Scripting
i extract it through script, is there any way to script or automate to tar extract a tarfiles in multiple directories at once?
Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
for dir in `ls -d /tarfiles/*/ | sed 's/.$//'`
do
rm -f $dir/*.tar
mv -f... (1 Reply)
Discussion started by: kenshinhimura
1 Replies