1748347 Members
5097 Online
108762 Solutions
New Discussion юеВ

problem about tar

 
chuanpeng.wang
Frequent Advisor

problem about tar

I have two servers with DDS4 tape drive.
I backup some files to DDS3 tape by tar.
The command is tar cvfp /dev/rmt/0m /sc_var /sc_opt /sc_etc.
On server1, three tapes are used, but on server2, only one tape is used.
The file type is the same on two server.


Files On Server1:
/sc_etc (/dev/vg01/lvol2 ) : 968311 total allocated Kb
959172 free allocated Kb
9139 used allocated Kb
0 % allocation used
/sc_opt (/dev/vg01/lvol1 ) : 982578 total allocated Kb
744712 free allocated Kb
237866 used allocated Kb
24 % allocation used
/sc_var (/dev/vg01/lvol3 ) : 244029392 total allocated Kb
219795544 free allocated Kb
24233848 used allocated Kb
9 % allocation used

Files On server2:
/sc_etc (/dev/vg01/lvol2 ) : 968077 total allocated Kb
961867 free allocated Kb
6210 used allocated Kb
0 % allocation used
/sc_opt (/dev/vg01/lvol1 ) : 980288 total allocated Kb
779267 free allocated Kb
201021 used allocated Kb
20 % allocation used
/sc_var (/dev/vg01/lvol3 ) : 244019824 total allocated Kb
221010696 free allocated Kb
23009128 used allocated Kb
9 % allocation used

What's the problem?
4 REPLIES 4
Ninad_1
Honored Contributor

Re: problem about tar

It is a strange problem indeed. But to start with, it seems the command you have written needs to be rearranged as
tar cvf /dev/rmt/0m .....
p is required for restoration to preserve the permissions and ownership, and also after the option f you should have specified the name of device onto which you want to tar so p should not have followed f.

If what you have written is just a typo, and you have followed the above suggestion, then the next step would be infact check on the tapes if it has really backed up everything from both the servers by
tar tvf /dev/rmt/0m | wc -l
on both servers

Regards,
Ninad
V. Nyga
Honored Contributor

Re: problem about tar

Hi,

are the two server identically in hardware and software?

Seems like one server is compressing the files. Newer configurations do this.
So check /dev/rmt if '0m' is identical to DDS or to BEST.

Can you give us the listing of /dev/rmt of both servers?

Volkmar
*** Say 'Thanks' with Kudos ***
chuanpeng.wang
Frequent Advisor

Re: problem about tar

Thanks.

Yes, the two servers are identical in hardware and software.

server 1:/dev/rmt $ ll
total 0
crw-rw-rw- 2 bin bin 205 0x051000 Jul 4 16:38 0m
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2006 0mb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:05 0mn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2006 0mnb
crw-rw-rw- 2 bin bin 205 0x051000 Jul 4 16:38 c5t1d0BEST
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2006 c5t1d0BESTb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:05 c5t1d0BESTn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2006 c5t1d0BESTnb
crw-rw-rw- 1 bin bin 205 0x051001 Dec 21 2006 c5t1d0DDS
crw-rw-rw- 1 bin bin 205 0x051081 Dec 21 2006 c5t1d0DDSb
crw-rw-rw- 1 bin bin 205 0x051041 Dec 21 2006 c5t1d0DDSn
crw-rw-rw- 1 bin bin 205 0x0510c1 Dec 21 2006 c5t1d0DDSnb
crw-r--r-- 1 bin bin 205 0xfffffe Dec 21 2006 stape_config

server 2:/dev/rmt $ ll
total 0
crw-rw-rw- 2 bin bin 205 0x051000 May 30 12:15 0m
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2005 0mb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:06 0mn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2005 0mnb
crw-rw-rw- 2 bin bin 205 0x051000 May 30 12:15 c5t1d0BEST
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2005 c5t1d0BESTb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:06 c5t1d0BESTn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2005 c5t1d0BESTnb
crw-rw-rw- 1 bin bin 205 0x051001 Dec 21 2005 c5t1d0DDS
crw-rw-rw- 1 bin bin 205 0x051081 Dec 21 2005 c5t1d0DDSb
crw-rw-rw- 1 bin bin 205 0x051041 Dec 21 2005 c5t1d0DDSn
crw-rw-rw- 1 bin bin 205 0x0510c1 Dec 21 2005 c5t1d0DDSnb
crw-r--r-- 1 bin bin 205 0xfffffe Dec 21 2005 stape_config
V. Nyga
Honored Contributor

Re: problem about tar

ok, so both should use compression.

DDS-3 has a capability of 12 GB (or 24 GB if files are uncompressed).

At server1 you have to backup >24 GB, so you have to use more than one tape.
At server2 it's <24 GB.

First it seems like the directories are not equal - can this be? Are there different files?
Are the files at server1 already compressed?

You're sure you're using DDS-3 for both servers? :-)

I think the next step would be like Ninad said - check the content of the tapes - either like he said with wc - or create a listing with 'tar tvf ... > server?.txt'.
I would add a line for every tape change you have to do ('echo tape.change>>server?.txt') and look what's different between 1 and 2.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***