Operating System - HP-UX
1748211 Members
4531 Online
108759 Solutions
New Discussion юеВ

Re: have problem with tar -xvf

 
Tung_1
Advisor

have problem with tar -xvf

Normaly I use tar to backup and recovery, and copy in HP-UX, but sometime command tar -xvf run very slowly, yesterday I tar -xvf a directory about 1G but the tar command run in 5 hours (it is not the same in every situation). Who can explain it to me ?
Thanks.
15 REPLIES 15
Ganesan R
Honored Contributor

Re: have problem with tar -xvf

Hi,

There are certain things you need to check it.

First one is to check the drive. It might have some issue. Try to clean the drive or replace it if possible.

Second one is, media could be defective. Check with new media.

Third one is I/O bottleneck.
Best wishes,

Ganesh.
R.K. #
Honored Contributor

Re: have problem with tar -xvf

Hello Tung,

We can do some low level troubleshooting at first to check if there is no hardware issue:

* Check the media, OLD media takes much more time. So you can try taking backup on a new media to ensure this.
* Can try cleaning the tape drive through cleaning tapes.
* If this delay in backup is repeating again and again, try using different tape drive.
Thats all from my side.

Regds,
R.K.
Don't fix what ain't broke
Aneesh Mohan
Honored Contributor

Re: have problem with tar -xvf

apart from the Media and Drive checking ,please check the SCSI terminator too.

Aneesh
Tung_1
Advisor

Re: have problem with tar -xvf

Thank you for reply me, but in this situation I only tar a directory from file system (hard disk) not from tape.
sujit kumar singh
Honored Contributor

Re: have problem with tar -xvf

Hi


might be at that time some other IO processes had been having on the disk also that we can suspect to have caused that muchof delay .. assuming that the disk is OK.

can you please give whole of the tar command that you might be using.

regards
sujit
Tung_1
Advisor

Re: have problem with tar -xvf

It is very simple, only:
#tar -xvf /mydirectory.tar
Ganesan R
Honored Contributor

Re: have problem with tar -xvf

Hi,

Could you check tar patch level?. If it is old, install the latest tar patch.

# swlist -l patch |grep -i tar
Best wishes,

Ganesh.
Tung_1
Advisor

Re: have problem with tar -xvf

Hi Ganesan, this is out put:
# Auxiliary-Opt.LANG-STARTUP B.11.11.16 Family of Startup crt0.o files
# PHCO_28992 1.0 tar(1) cumulative patch

What is lastest version of tar command ?
Sani
Frequent Advisor

Re: have problem with tar -xvf

Hi,

Please provide the commands u are using

1) command to take tar backup
2) command to restore tar backup.