<?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: Problem copying file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008461#M750643</link>
    <description>The other thing I thought of - why not stream multiple cp's at once?&lt;BR /&gt;&lt;BR /&gt;Or maybe use fbackup | frestore?&lt;BR /&gt;&lt;BR /&gt;fbackup -i /u77/staging&lt;BR /&gt; -f - | (cd /u04/oradata/MSSPROD; frecover -Xrf -)&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 28 May 2007 21:01:41 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2007-05-28T21:01:41Z</dc:date>
    <item>
      <title>Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008439#M750621</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have HP-UX B.11.23 U ia64 server.&lt;BR /&gt;There is an intermittent problem to copy file from one FS to another using script.&lt;BR /&gt; &lt;BR /&gt;Manual copy works OK.&lt;BR /&gt;&lt;BR /&gt;Script looks like this and suppose to copy 74 database files:&lt;BR /&gt;cp app_data06.dbf /u04/oradata/MSSPROD/app_data06.dbf&lt;BR /&gt;cp mssprod_app_data01.dbf /u04/oradata/MSSPROD/mssprod_app_data01.dbf&lt;BR /&gt;.... etc&lt;BR /&gt;&lt;BR /&gt;At one point it would exit with Permission denied error. (Permissions and space are not an issue.)&lt;BR /&gt;If I check the destination it has already some files copied and one file that looks like half copied:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 oracle     dba        1572872192 May 25 11:02 mssprod_app_data10.dbf&lt;BR /&gt;-rw-r--r--   1 oracle     dba        2097160192 May 25 11:03 mssprod_app_data11.dbf&lt;BR /&gt;-rw-r--r--   1 oracle     dba        2097160192 May 25 11:07 mssprod_app_data12.dbf&lt;BR /&gt;----------   1 oracle     dba        4718600192 May 25 11:00 mssprod_app_data13.dbf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thank you,&lt;BR /&gt;Olga</description>
      <pubDate>Mon, 28 May 2007 10:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008439#M750621</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T10:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008440#M750622</link>
      <description>Hi Olga&lt;BR /&gt;&lt;BR /&gt;My guess is that the filesystem you are copying to is NFS mounted. There is a filesize limit of 4GB for an NFS mounted filesystem.&lt;BR /&gt;&lt;BR /&gt;The filesystem copy has stopped but because of the error the permissions have not been set yet.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew Y</description>
      <pubDate>Mon, 28 May 2007 10:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008440#M750622</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2007-05-28T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008441#M750623</link>
      <description>Thank you for the reply, Andrew but I do not copy to NFS. And as I mentioned, if I re-ran the script it works. The problem is intermittent.</description>
      <pubDate>Mon, 28 May 2007 10:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008441#M750623</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008442#M750624</link>
      <description>Change script to remove destination files first:&lt;BR /&gt;&lt;BR /&gt;rm /u04/oradata/MSSPROD/*.dbf&lt;BR /&gt;&lt;BR /&gt;then run the copy.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 28 May 2007 10:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008442#M750624</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-28T10:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008443#M750625</link>
      <description>Geoff, I cleaned up the files before running the script. The destination is empty.</description>
      <pubDate>Mon, 28 May 2007 10:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008443#M750625</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008444#M750626</link>
      <description>Okay - need more input please:&lt;BR /&gt;&lt;BR /&gt;bdf /u04/oradata/MSSPROD/&lt;BR /&gt;&lt;BR /&gt;bdf /source&lt;BR /&gt;&lt;BR /&gt;(where source is the source directory)&lt;BR /&gt;&lt;BR /&gt;Is oracle id doing the copying?  (I'm assuming as you are not doing a cp -p)&lt;BR /&gt;&lt;BR /&gt;ls -ld /u04/oradata/MSSPROD/&lt;BR /&gt;&lt;BR /&gt;ls -ld /source&lt;BR /&gt;&lt;BR /&gt;Is the db down when you copy the files?  (it better be - for you can have issues trying to copy files that are busy).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 10:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008444#M750626</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-28T10:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008445#M750627</link>
      <description>Hi Olga&lt;BR /&gt;&lt;BR /&gt;OK. Sorry about that... my bad - its 4TB limit for NFS 4 in any case.&lt;BR /&gt;&lt;BR /&gt;Some question that might point us in the right direction.&lt;BR /&gt;&lt;BR /&gt;Are there any core dumps?&lt;BR /&gt;&lt;BR /&gt;What version of JFS are you running? How recently was it patched?&lt;BR /&gt;&lt;BR /&gt;Is there anything special about the disk or device that you are writing to? &lt;BR /&gt;&lt;BR /&gt;Are there any entries in the /var/adm/syslog/syslog.log?&lt;BR /&gt;&lt;BR /&gt;What user is this running as? &lt;BR /&gt;What shell is this running in?&lt;BR /&gt;What is the result of the ulimit -a command?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Andrew Y&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 10:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008445#M750627</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2007-05-28T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008446#M750628</link>
      <description>Geoff, here it is and thank you for your help.&lt;BR /&gt;&lt;BR /&gt;Destination:&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg03/u04      35848192   25869 33583435    0% /u04&lt;BR /&gt;&lt;BR /&gt;Source&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg03/u77      166920192 156575189 9698470   94% /u77&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is oracle id doing the copying? Yes &lt;BR /&gt;&lt;BR /&gt;ls -ld /u04/oradata/MSSPROD/ &lt;BR /&gt;drwxr-xr-x   2 oracle     dba           1024 May 28 11:08 /u04/oradata/MSSPROD/&lt;BR /&gt;&lt;BR /&gt;ls -ld /source&lt;BR /&gt;drwxr-xr-x   2 oracle     dba           4096 May 25 13:02 /u77/staging&lt;BR /&gt;&lt;BR /&gt;Is the db down when you copy the files? DB is down&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 10:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008446#M750628</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T10:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008447#M750629</link>
      <description>Hi Olga,&lt;BR /&gt;&lt;BR /&gt;your destination directory was last changed around the time when the file causing the "permission denied" error could have been finished. Are you absolutely sure that noone has tampered with the destination directory permissions?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 10:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008447#M750629</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2007-05-28T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008448#M750630</link>
      <description>Only thing that stands out - is the size of /u04 - 33 GB - what is the size of all the db files?&lt;BR /&gt;&lt;BR /&gt;Looks like source is approx 160 GB...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 28 May 2007 10:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008448#M750630</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-28T10:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008449#M750631</link>
      <description>Andrew, here what you asked for:&lt;BR /&gt;&lt;BR /&gt;ulimit -a&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         4194300&lt;BR /&gt;stack(kbytes)        131072&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 2048&lt;BR /&gt;&lt;BR /&gt;OnlineJFS01   4.1.008&lt;BR /&gt;&lt;BR /&gt;Disks: EVA&lt;BR /&gt;&lt;BR /&gt;User: oracle&lt;BR /&gt;&lt;BR /&gt;SHELL: ksh&lt;BR /&gt;&lt;BR /&gt;No errors in syslog.log?&lt;BR /&gt;&lt;BR /&gt;John, I am sure that nobody changed the permissions.&lt;BR /&gt;&lt;BR /&gt;Geoff,&lt;BR /&gt;&lt;BR /&gt;Files take about 31G, so space should not be an issue.&lt;BR /&gt;&lt;BR /&gt;Thank you all.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 11:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008449#M750631</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T11:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008450#M750632</link>
      <description>Hi again Olga,&lt;BR /&gt;&lt;BR /&gt;the last modification date of the file mssprod_app_data13.dbf in the destination directory seems to be before the files whose sequence number woukd date them earlier. Are you sure that mssprod_app_data13.dbf in the destination directory does not belong to a failed  earlier transfer, and you cannot overwrite it because you do not have the right to do so?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 28 May 2007 11:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008450#M750632</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2007-05-28T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008451#M750633</link>
      <description>Sorry John for the confusion, but in my initial post it is not the real look of the directory when the problem happened. Since it is hard to reproduce it I simulated how directory looked after the script failed. So do not pay attention on time stamps.</description>
      <pubDate>Mon, 28 May 2007 11:23:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008451#M750633</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008452#M750634</link>
      <description>Hi Olga,&lt;BR /&gt;&lt;BR /&gt;Have you done a full trace of the script and see what and when it fails on? Also was it consistent with a particular Ora datafile?&lt;BR /&gt;&lt;BR /&gt;set -x the start of the script and log the output to /tmp and see if you can profile the problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jov</description>
      <pubDate>Mon, 28 May 2007 12:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008452#M750634</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2007-05-28T12:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008453#M750635</link>
      <description>Hi again Olga,&lt;BR /&gt;&lt;BR /&gt;are the permissions displayed correctly? I assume that you will get a "permission denied" error if you as user=oracle tries to overwrite mssprod_app_data13.dbf as is.&lt;BR /&gt;A file without permissions is normal in situations when the destination file system ran full during copy. Although you have stated that space is not an issue, please check the syslog for a possible message of  af full destination file system.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 12:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008453#M750635</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2007-05-28T12:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008454#M750636</link>
      <description>Hi Olga.&lt;BR /&gt;&lt;BR /&gt;Please run ulimit -H -f and ulimit -S -f as the oracle user. This will give the and hard soft limits in terms of bytes being written. The figure given is in 512K blocks. &lt;BR /&gt;&lt;BR /&gt;I'm beginning to think your permission denied error may be caused a user limit or quota condition kicking in at a shell or kernel level  preventing you from writing that data. &lt;BR /&gt;&lt;BR /&gt;Because it is a hard/soft limit it is only kicking in intermittently  When you rerun the script it ignores the data already copied perhaps.&lt;BR /&gt;&lt;BR /&gt;To change these values to unlimited use the following commands: &lt;BR /&gt;&lt;BR /&gt;ulimit -H -f unlimited&lt;BR /&gt;ulimit -S -f unlimited&lt;BR /&gt;&lt;BR /&gt;Note these unlimited settings will affect some of the oracle initialisation scripts since they do not like the unlimited option (unique to the HP ksh)&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Andrew Y&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 13:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008454#M750636</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2007-05-28T13:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008455#M750637</link>
      <description>Andrew, thank you very much for not giving up.&lt;BR /&gt;&lt;BR /&gt;Both settings are set to unlimited:&lt;BR /&gt;&lt;BR /&gt;ulimit -H -f&lt;BR /&gt;unlimited&lt;BR /&gt;ulimit -S -f&lt;BR /&gt;unlimited&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 13:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008455#M750637</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2007-05-28T13:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008456#M750638</link>
      <description>Hi Olga&lt;BR /&gt;&lt;BR /&gt;That was also not correctly read by me. The file write is already set to unlimited, ignore that posting.&lt;BR /&gt;&lt;BR /&gt;However maybe an increase in the data blocks might make a difference.&lt;BR /&gt;&lt;BR /&gt;Maybe run sar -v 2 120 during the copy to see the effect during the copy. May also use Glance Plus to monitor system activity and utilization during the copy to see if any resources are getting stretched thin at the time&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew Y</description>
      <pubDate>Mon, 28 May 2007 13:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008456#M750638</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2007-05-28T13:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008457#M750639</link>
      <description>You may want to change your cp to cp -f.  That way any leftover files with no permissions won't stop things.&lt;BR /&gt;&lt;BR /&gt;Though you did say you removed the files first.</description>
      <pubDate>Mon, 28 May 2007 18:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008457#M750639</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-28T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008458#M750640</link>
      <description>Is it normal behaviour that destination file gets its permission set after the completion of the copy?&lt;BR /&gt;&lt;BR /&gt;I thought it was dependent on the user and directory settings.&lt;BR /&gt;&lt;BR /&gt;How often does this problem occur, or has it ever completed properly?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jov</description>
      <pubDate>Mon, 28 May 2007 19:31:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-copying-file/m-p/4008458#M750640</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2007-05-28T19:31:07Z</dc:date>
    </item>
  </channel>
</rss>

