<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tar Problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585751#M856359</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;It appears your tar command failed on the tape change and it still has the device file open - hence you cannot connect to it.&lt;BR /&gt;&lt;BR /&gt;Do a ps -ef | grep tar and pick up and kill the ps.&lt;BR /&gt;&lt;BR /&gt;An option on you backup with tar is to gzip the data first and then tar it off.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Thu, 27 Sep 2001 06:19:11 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2001-09-27T06:19:11Z</dc:date>
    <item>
      <title>Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585747#M856355</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a two fold question.&lt;BR /&gt;&lt;BR /&gt;1) Recently i gave the command &lt;BR /&gt;   # tar -cv /home&lt;BR /&gt;  as the size of data was beyond the capacity of the tape , when it came to end of tape it prompted me to insert another tape to continues , where i have pressed enter to come back to the promt ie #.&lt;BR /&gt;&lt;BR /&gt;After this i am not able to do do a tar even with the option of &lt;BR /&gt;  #tar -cvf test.tar /tmp.&lt;BR /&gt;&lt;BR /&gt;This throws an error theat /tmp/****/sdfsdf is not a file not dumped.&lt;BR /&gt;&lt;BR /&gt;and the option of backing on to the tape too gives a following error&lt;BR /&gt;   # tar -cv /home&lt;BR /&gt;    tar: cannot open /dev/rmt/0m&lt;BR /&gt;   #&lt;BR /&gt;&lt;BR /&gt;I am not able to take backup;s using SAM too after this event.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) I know my Tape drive supports compression but how do i force my tape with tar to tar usign Compression to save space on my tape and complete the operation using a single tape.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sumedha&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Sep 2001 05:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585747#M856355</guid>
      <dc:creator>sumedha_1</dc:creator>
      <dc:date>2001-09-27T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585748#M856356</link>
      <description>&lt;BR /&gt;Firstly you have a problem with your tape drive. It needs resetting. Try removing the tape and inserting it again, then try a simply test to see if its working;&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/0m of=/dev/null count=10&lt;BR /&gt;&lt;BR /&gt;Does it come back with 0+0 records in, 0+0 records out ? IF so good, this means your drive is now working. If not you may need to reset the power to your tape drive, if its internal you may need to reboot your server to get it working again.&lt;BR /&gt;&lt;BR /&gt;As for compression (hardware), by default it is on for DDS drives. If you do the command&amp;gt; lssf /dev/rmt/0m&lt;BR /&gt;and it comes back with "...best density..." then it has hardware compression already on.&lt;BR /&gt;&lt;BR /&gt;To try to fit your backup on tape try using fbackup, it blocks better and you may be able to squeeze more onto one tape, and it handles asking for a second tape aok. Or use tar and pipe it into dd before it goes to tape, this way you can use a large blocking factor and again try to squeeze more onto a single tape, eg; tar cvf - /home | dd of=/dev/rmt/0m bs=64k&lt;BR /&gt;&lt;BR /&gt;How big is your tape drive ? (what does ioscan -fknCtape show) and what size tapes are you using (60/90/120/125m) ? and how much data are you trying to fit on it ? (du -sk &lt;DIR&gt;)&lt;BR /&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 27 Sep 2001 06:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585748#M856356</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-27T06:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585749#M856357</link>
      <description>Hi,&lt;BR /&gt;when you spcify cvf you have to mention the device file /dev/rmt/0m.&lt;BR /&gt;chack the followings:&lt;BR /&gt;#ioscan -fnC tape&lt;BR /&gt;see the device file is there at /dev/rmt/0m.&lt;BR /&gt;#lssf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Animesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Sep 2001 06:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585749#M856357</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-09-27T06:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585750#M856358</link>
      <description>Hi Sumedha,&lt;BR /&gt;&lt;BR /&gt;Are you saying you have something on your system called "/tmp/*****/sdfsdf ?  If so, I would see what it is and remove it if possible.&lt;BR /&gt;The error "not a file:not dumped" normally relates to tar encountering a socket file, or some other non-standard file.&lt;BR /&gt;&lt;BR /&gt;Check if there is a tar session still running, &amp;amp; check if the tape device is in use:&lt;BR /&gt;&lt;BR /&gt;ps -elf|grep tar&lt;BR /&gt;fuser /dev/rmt/0m&lt;BR /&gt;lsof /dev/rmt/0m (if you have lsof)&lt;BR /&gt;&lt;BR /&gt;Also, check the output of:&lt;BR /&gt;&lt;BR /&gt;lssf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;this should tell you if the device file is already running at best density.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Thu, 27 Sep 2001 06:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585750#M856358</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-09-27T06:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585751#M856359</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;It appears your tar command failed on the tape change and it still has the device file open - hence you cannot connect to it.&lt;BR /&gt;&lt;BR /&gt;Do a ps -ef | grep tar and pick up and kill the ps.&lt;BR /&gt;&lt;BR /&gt;An option on you backup with tar is to gzip the data first and then tar it off.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 27 Sep 2001 06:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585751#M856359</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-09-27T06:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585752#M856360</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for the inputs.&lt;BR /&gt;&lt;BR /&gt;Let me asnwer one by one,&lt;BR /&gt;&lt;BR /&gt;Stefan;&lt;BR /&gt;   Thanks again, your inputs were valuable .these were something i did not know.&lt;BR /&gt;   Compression is already enabled.&lt;BR /&gt;   Its external device, reseting did not help and i had to reboot the workstation.&lt;BR /&gt;    When it was online again i gave tar -cvf /opt/CCCX and after some 40 mins of backup it gave this&lt;BR /&gt;&lt;BR /&gt;Tar: to continue, enter device/file name when ready or null string to quit.&lt;BR /&gt;&lt;BR /&gt;When i repolaced another tape to continues from where tar had stopped it did not contined , but dd worked.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Animesh,&lt;BR /&gt;  Thanks again for your inputs. But i think its not necessary to mention "f" with cv if i am backingup on tape as the default is /dev/rmt/0m. Correct if i am wrong.&lt;BR /&gt;&lt;BR /&gt;Robin,&lt;BR /&gt;  I do not have lsof on HPUX but fuser did not throw any outfut for the device.&lt;BR /&gt;Thanks again for your inputs.&lt;BR /&gt;&lt;BR /&gt;Paula,&lt;BR /&gt;  Actually i had tried that before posting to the group but again that did not throw any outputs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;People,&lt;BR /&gt;   I have found that restat does correct the problem , but i am sure that you will agree with  me that restart is not the solution.&lt;BR /&gt;&lt;BR /&gt;After the restart i ahve landed into the same problem.Now i cannot restart this machine twice in one day, leave alone a week/month.&lt;BR /&gt;&lt;BR /&gt;Stefan , I would like to try the option you gave me of forcing more data on the tape but now i am not able to run tar on that device.&lt;BR /&gt;&lt;BR /&gt;Can you people see an other solution.&lt;BR /&gt;&lt;BR /&gt;Waiting for a response.&lt;BR /&gt;&lt;BR /&gt;Sumedha&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Sep 2001 08:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585752#M856360</guid>
      <dc:creator>sumedha_1</dc:creator>
      <dc:date>2001-09-27T08:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585753#M856361</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;Did not mention the output of ioscan.&lt;BR /&gt;&lt;BR /&gt;# ioscan -fknCtape&lt;BR /&gt;Class     I  H/W Path    Driver      S/W State H/W Type  Description&lt;BR /&gt;=====================================================================&lt;BR /&gt;tape      0  8/16/5.3.0  stape       CLAIMED   DEVICE    HP      C1533A&lt;BR /&gt;                        /dev/rmt/0m            /dev/rmt/c1t3d0BEST&lt;BR /&gt;                        /dev/rmt/0mb           /dev/rmt/c1t3d0BESTb&lt;BR /&gt;                        /dev/rmt/0mn           /dev/rmt/c1t3d0BESTn&lt;BR /&gt;                        /dev/rmt/0mnb          /dev/rmt/c1t3d0BESTnb&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Sumedha</description>
      <pubDate>Thu, 27 Sep 2001 08:31:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585753#M856361</guid>
      <dc:creator>sumedha_1</dc:creator>
      <dc:date>2001-09-27T08:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585754#M856362</link>
      <description>&lt;BR /&gt;If youre at the point now where you cant do a rewind (mt -t /dev/rmt/0m rew) without an error, or echo &amp;gt; /dev/rmt/0m then you have to reboot again.&lt;BR /&gt;&lt;BR /&gt;Tar doesnt handle multiple tapes well, dont use it. Use fbackup instead - its much much better and handles multiple tapes.&lt;BR /&gt;&lt;BR /&gt;You have a C1533A - DDS2, which with a 120 metre tape in can handle up to 8 GB with 2:1 compression (4 GB uncompressed). How much data are you trying to backup to it?</description>
      <pubDate>Thu, 27 Sep 2001 09:09:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585754#M856362</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-27T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585755#M856363</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Its a 4/8 GB DDS2 Tapes on a HP SureStore Drive and on an average i backup arounf 3-5GB of data.&lt;BR /&gt;&lt;BR /&gt;Waiting for your inputs.&lt;BR /&gt;Sumedha</description>
      <pubDate>Thu, 27 Sep 2001 09:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/2585755#M856363</guid>
      <dc:creator>sumedha_1</dc:creator>
      <dc:date>2001-09-27T09:48:28Z</dc:date>
    </item>
  </channel>
</rss>

