Thursday, February 17, 2011

cp : 0653-447 Requested a write of 4096 bytes, but wrote only 3584.

As user oracle I was trying to copy the Oracle binaries which I had downloaded and were under /home/root on an AIX7.1 machine.

$ cp -p /home/root/aix.ppc64_11gR2_database_1of2.zip .
cp : 0653-447 Requested a write of 4096 bytes, but wrote only 3584.
$ ulimit -a
time(seconds)        unlimited
file(blocks)         2097151
data(kbytes)         131072
stack(kbytes)        32768
memory(kbytes)       32768
coredump(blocks)     2097151
nofiles(descriptors) 2000
threads(per process) unlimited
processes(per user)  unlimited

$ ulimit -f unlimited
ksh: ulimit: 0403-045 The specified value is outside the user's allowable range.
Edited the /etc/security/limits file and added fsize = -197151 for oracle user as shown below.
isvp18> vi /etc/security/limits

pconsole:
stack_hard = 131072
data = 1280000
data_hard = 1280000

oracle:
fsize = -197151


isvp18> su - oracle
$ ulimit -f unlimited
$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         131072
stack(kbytes)        32768
memory(kbytes)       32768
coredump(blocks)     2097151
nofiles(descriptors) 2000
threads(per process) unlimited
processes(per user)  unlimited

$ cp /home/root/aix.ppc64_11gR2_database_1of2.zip .
$ cp /home/root/aix.ppc64_11gR2_database_2of2.zip .
$ cksum /home/root/aix.ppc64_11gR2_database_1of2.zip
1915658395 1564425851 /home/root/aix.ppc64_11gR2_database_1of2.zip
$ cksum aix.ppc64_11gR2_database_2of2.zip
1152318705 1007010341 aix.ppc64_11gR2_database_2of2.zip

Copy went through fine at the end :-)

6 comments:

Anonymous said...

You didn't mention that the server needs to be rebooted before the change will take effect.

Mayur said...

Don't remember having had to reboot the server for it to take effect. I'll double check the next time I get a chance.

Anonymous said...

You dont have to reboot, just login again with the user for the changes to take affect

Mayur said...

Thanks for confirming that a reboot is not required.

Annyarun said...

Thanks Buddy.. It helped me...

Mayur said...

I'm glad it helped Anamika. Thanks for letting me know.