Tarred files not being put on tape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Tarred files not being put on tape
# 1  
Old 06-14-2010
Tarred files not being put on tape

Hi
I normally backup to tape using the following command in Solaris 9 on SUN Enterprise 3500 server:

Code:
tar cvf /dev/rmt/0n data

but after a power cut, the server went down without being shutdown since the UPS failed. Now when I issue the tar command I get the root (/) being full looks like it can't see the tape drive.
How can I get the tarred files being put on the tape?
Thanks

Moderator's Comments:
Mod Comment Use code tags please, ty.

Last edited by zaxxon; 06-14-2010 at 08:06 AM.. Reason: code tags
# 2  
Old 06-14-2010
Quote:
Now when I issue the tar command I get the root (/) being full looks like it can't see the tape drive.
Can you post your error messages? If your / is full, which you can see with the command
Code:
df /

see if you can enlarge it (LVM?) or delete some rubbish files in /.

What OS are you using?
# 3  
Old 06-14-2010
Please post a directory listing of your output device file name and any similar ones:

Code:
ls -la /dev/rmt/0*

If there is any connection between the filesystem full and the tar this should show what is wrong.
# 4  
Old 06-15-2010
Hi
This is the message I see when I do

Code:
ls -la /dev/rmt/0*

lrwxrwxrwx   1 root     root          49 Nov 13  2006 /dev/rmt/0 -> ../../device
s/sbus@3,0/SUNW,fas@3,8800000/st@5,0:
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0b -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:b
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0bn -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:bn
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0c -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:c
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0cb -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:cb
lrwxrwxrwx   1 root     root          52 Nov 13  2006 /dev/rmt/0cbn -> ../../dev
ices/sbus@3,0/SUNW,fas@3,8800000/st@5,0:cbn
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0cn -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:cn
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0h -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:h
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0hb -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:hb
lrwxrwxrwx   1 root     root          52 Nov 13  2006 /dev/rmt/0hbn -> ../../dev
ices/sbus@3,0/SUNW,fas@3,8800000/st@5,0:hbn
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0hn -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:hn
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0l -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:l
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0lb -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:lb
lrwxrwxrwx   1 root     root          52 Nov 13  2006 /dev/rmt/0lbn -> ../../dev
ices/sbus@3,0/SUNW,fas@3,8800000/st@5,0:lbn
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0ln -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:ln
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0m -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:m
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0mb -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:mb
lrwxrwxrwx   1 root     root          52 Nov 13  2006 /dev/rmt/0mbn -> ../../dev
ices/sbus@3,0/SUNW,fas@3,8800000/st@5,0:mbn
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0mn -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:mn
lrwxrwxrwx   1 root     root          50 Nov 13  2006 /dev/rmt/0u -> ../../devic
es/sbus@3,0/SUNW,fas@3,8800000/st@5,0:u
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0ub -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:ub
lrwxrwxrwx   1 root     root          52 Nov 13  2006 /dev/rmt/0ubn -> ../../dev
ices/sbus@3,0/SUNW,fas@3,8800000/st@5,0:ubn
lrwxrwxrwx   1 root     root          51 Nov 13  2006 /dev/rmt/0un -> ../../devi
ces/sbus@3,0/SUNW,fas@3,8800000/st@5,0:un

My OS is Solaris 9 on sun 3500 server.

I also realised that a file named 0n which is very huge is created in the location /dev/rmt any time I issue the tar command. I have been using this command for years without any problem.

Moderator's Comments:
Mod Comment Use code tags!

Last edited by zaxxon; 06-15-2010 at 10:28 AM.. Reason: code tags
# 5  
Old 06-16-2010
Is it possible that you have been using the same command on this computer for years and that it has never written to the tape drive because it has always written a file to disc?

I guess that the first thing is to find out whether you have a tape drive fitted, the type of tape drive, what the device name should be, and whether the tape drive works.

A device name ending in "n" normally means "no rewind". Are you attempting to append to a tape or trying to do something else?
# 6  
Old 06-16-2010
What is the output of
Code:
mt status

# 7  
Old 06-22-2010
Hi All
I was able to resolve the problem by typing tapes at the /dev/rmt directory.
Thanks very much for your responses and efforts.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to get all the files inside a folder then put the value in a variable?

Hi here is my code for i in `ls *.cmd` do msg aaa imp -U$AAAUSER -P$AAAUSERPWD <$i>>$curdir/import_tap.out -Jutf8 done I can only get all files with .cmd extension. what i need to get are all the files inside the specific folder Thanks (2 Replies)
Discussion started by: cmarzan
2 Replies

2. Shell Programming and Scripting

How to concatene files and put each line of files on a specific position ?

Hi, I have some files that i want to concatene and put each of lines of this files on a specific position : File1 AAAAAAA BBBBBBB CCCCCCC File2 DDDDDDD EEEEEEE FFFFFFF File3 GGGGGG HHHHHH IIIIII New file (6 Replies)
Discussion started by: apippo70
6 Replies

3. UNIX for Dummies Questions & Answers

Help with untarring multiple files from tarred directories and subdirectories

Hi, I want to untar all log files from following tarred directory hierarchy Log_files.tar.gz/subject*.tar.gz/project*/*.log It means there are subject1.tar.gz to subject9.tar.gz and in those tarred subect directories there are project1 - project5 directories and in those directories there... (2 Replies)
Discussion started by: rv_trojan
2 Replies

4. Shell Programming and Scripting

how to put subject and body to mail from two files

Hi all, My sample file is something like this, ORA-00206: Message 206 not found; product=RDBMS; facility=ORA ORA-00202: Message 202 not found; product=RDBMS; facility=ORA ORA-27063: Message 27063 not found; product=RDBMS; facility=ORA ORA-00206: Message 206 not found; ... (1 Reply)
Discussion started by: sri1977
1 Replies

5. UNIX for Dummies Questions & Answers

massive tarred grib files totally unacceptable

Hi, I have 7 terabytes of tar files, one for every single day since 1980. Inside these tar files are GRIB files, each with 100+ variables. There's 8 GRIBs in each tar, corresponding to different times of the day. I need 6 friggin variables..., and it takes TWO WEEKS TO EXTRACT ALL THE TAR FILES... (3 Replies)
Discussion started by: sammysoil
3 Replies

6. Shell Programming and Scripting

Combine two files and put it in .csv file

Hi Freinds I have two .txt file gem1.txt and gem2.txt, Sample gem1.txt abstract (1.0.0) actionmailer (2.3.5, 2.2.2) actionpack (2.3.5, 2.2.2) activerecord (2.3.5, 2.2.2) activerecord-oracle_enhanced-adapter (1.1.9) activerecord-sqlserver-adapter (2.3.4) activeresource (2.3.5, 2.2.2)... (3 Replies)
Discussion started by: ankit_view24
3 Replies

7. Shell Programming and Scripting

Put the difference of two files in out file

Hello, I have two files file1 & file2 containing both lines (1 word per line). I need to extract the lines that are in file1 and not present in file2 and have the result in output file. i.e : user>cat file1 line1 line2 line3 line4 line5 user>cat file2 line1 line3 line5 The... (2 Replies)
Discussion started by: newpromo
2 Replies

8. UNIX and Linux Applications

sftp -> put : How to uplaod only newer files

I have tried winscp, filezilla to copy data from windows xp SP2 machine to the sun sparc unix machine. However speed is around 120 to 130 kb/sec. I do have lot of files & with large size. So I switched to windows command prompt & transfered few files using sftp command. Its very fast as compared... (0 Replies)
Discussion started by: _prasad
0 Replies

9. UNIX for Dummies Questions & Answers

How can I put same message in two different log files?

echo "$(date +'%m/%d/%Y %X')" >> LOGFILE1 echo "$(date +'%m/%d/%Y %X')" >> LOGFILE2 How can I put same message in two different log file? (2 Replies)
Discussion started by: JPalt
2 Replies

10. UNIX for Dummies Questions & Answers

Take a file from the system and put on tape and reset the file to 0 bytes

:mad: I did this the other day but one of my support personnel removed my history so i could call it back up to remeber the exact command since i am air-headed at times. I am trying to take a 30 MEG file off the system and drop it to tape then i want to make the file go back to being 0 bytes so... (1 Reply)
Discussion started by: JackieRyan26
1 Replies
Login or Register to Ask a Question