mv file failed

 
ljp_1
Occasional Contributor

mv file failed

mv file between directory in one filesystem.
after mv thousands of files succeed,
mv a file failed.
error message "Resource temporarily unavailable"

ljp
5 REPLIES 5
Michael Tully
Honored Contributor

Re: mv file failed

What method are you using?

# mv file directory

You could be running out of some sort of system kernel parameter.
Are there any messages pertaining to kernel parameters either in /var/adm/syslog/syslog.log or dmesg?

WHat is the output of

# getconf ARG_MAX


Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"

Anyone for a Mutiny ?
Steven E. Protter
Exalted Contributor

Re: mv file failed

probably some other process got it.

Is this an active filessten?

fuser -cu /filesystm

It also could be a nfs filesystem or something thats unavailable due to a networking issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ljp_1
Occasional Contributor

Re: mv file failed

The program mv file one by one.
maybe i-node limits?
ljp
Michael Tully
Honored Contributor

Re: mv file failed

Please provide the full error message. The problem could one of a few. Does it appear in syslog, dmesg.

Also the indode problem will only relate to a filesystem that is not vxfs.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
Anyone for a Mutiny ?
V. V. Ravi Kumar_1
Respected Contributor

Re: mv file failed

Hi,
Is that NFS directory, by the time ur script move that file, it might have been deleted, this could be one of the reasons. Or it may be a link to some other file, which was deleted during ur script run. Give more details.

Ravi
Never Say No