1753631 Members
5781 Online
108798 Solutions
New Discussion юеВ

Cannot execute tar

 
marshal_4
Advisor

Cannot execute tar

Hi HP World,

I doing a backup on my 5th drive using tar /dev/rmt/5m /etc i was able to backup but when i issue the same command to drive four it returned an error CANNOT EXECUTE TAR. For isolation i used the same cartridge that i used in drive 5 any help is highly appreciated. Thanks
want some guts learn HPUX
7 REPLIES 7
yogesh_4
Regular Advisor

Re: Cannot execute tar

pls check whether #ioscan -f shows you your forth drive.
Massimo Bianchi
Honored Contributor

Re: Cannot execute tar

Hi,
the sintax should be

tar -cvf /dev/rmt/5m /etc

or

tar -cvf /dev/rmt/4m /etc


if not specifying anything, tar uses /dev/rmt/0m , that is the first drive.

to specify another drive, you must use the -f followed by the tape

refer to a "man tar" for a full explanation of all the options.


HTH,
Massimo
twang
Honored Contributor

Re: Cannot execute tar

i suggest you may find out the 5th tape drive first,
1. use "ioscan -fnC tape" to find out all your tape drive
2. use a blank tape to test your 5th drive, use "dd if=/dev/null of=/dev/rmt/5m bs=10240" and check the tape drive is working.

hope above steps can help you.
marshal_4
Advisor

Re: Cannot execute tar

Hi Yogesh,

Thanks for the reply. I was able to list the device file of drive 4. What could be the problem?
want some guts learn HPUX
Massimo Bianchi
Honored Contributor

Re: Cannot execute tar

Hi,
besides seeing the device file, is there any NO_HW ?

After you issue the command, which is the ret code ? It may help us in helling you.

Is the 4th an external drive? Mat be there is a conflict with one of the device in the same bus.


Using the stm are you able to see the device correctly ?

Massimo

Animesh Chakraborty
Honored Contributor

Re: Cannot execute tar

Hi,
Can you post the out put of
#lssf /dev/rmt/4m and 5m ?
#which tar
Did you take a backup?
marshal_4
Advisor

Re: Cannot execute tar

Hi Massimo,

thanks for the reply i tried to reboot the server and everything works fine.

want some guts learn HPUX