Operating System - HP-UX
1833019 Members
2106 Online
110049 Solutions
New Discussion

Re: limit of file size? Error: rcp : Bad file number

 
Carsten Cimander_2
Occasional Advisor

limit of file size? Error: rcp : Bad file number

Hi all,

rcp fails with
rcp: big: Bad file number

when trying to "remote copy" the file "big"
to the file server. Doing rcp with the file "small"
succeeds with no error /message.

ls -al smaller big
-rw-r--r-- 1 q178919 wkzm
2202087424 Mar 18 15:27 big

-rw-r--r-- 1 q178919 wkzm
1595707392 Mar 18 15:28 smaller

Is there a file size limit to files rcp can handle?
System:
# uname -sr
HP-UX B.11.11
# model
9000/800/L3000-5x

Thanks for your tips in advance.
Regards,
Carsten
12 REPLIES 12
Marco Santerre
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Is your remote file system capable of handling largefiles? Make sure it is mounted with the largefiles option.

Cooperation is doing with a smile what you have to do anyhow.
Alex Glennie
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

default limit = files upto 2GB otherwise

target filesystem MUST be config'd to handle large files.

check with fsadm /
Michael Duthie
Trusted Contributor

Re: limit of file size? Error: rcp : Bad file number

Carston,

Run mkfs -F vxfs -m /dev/vgXX/lvolX on the remote file system to see if you have largefile (over 2gb) support.

Mike
Dietmar Konermann
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Carsten,

The error "Bad file number" (EBADF) is often caused if a getservnam() or similar fails.

Check in server and client:

The inetd.conf "shell" entry /etc/inetd.conf:
shell stream tcp nowait root /usr/lbin/remshd remshd

And in /etc/services:
shell 514/tcp cmd

If NIS is used, then check that also.

# ypcat services | shell

If you changed something, restart inetd and try again.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Dietmar Konermann
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Oops... didn't see that copying small file works. :) Forget my comment.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Sanjay_6
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Hi Carsten,

Is your filesystem on the remote server set to handle largefiles (Files > 2GB).

on the remote server try,

fsadm /mount_point

If this returns largefiles, you should be able to rcp files > 2GB. If not you have to change the filesystem to handle largefiles.

Try this link on how to enable largefiles for your filesystem,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062683990

Hope this helps.

Regds
Carsten Cimander_2
Occasional Advisor

Re: limit of file size? Error: rcp : Bad file number

Hi Dietmar,

/etc/inetd.conf and /etc/services

match these requirements already...

Hi Marco, Sanjay, Mike and Alex,

good point. Going to let this check.
Carsten Cimander_2
Occasional Advisor

Re: limit of file size? Error: rcp : Bad file number

Hi all,

on target system, the filesystem is also generated and activated with "largefiles"
option.

Do you have any other suggestions how I can come along with this problem?

Thanks in advance,
regards,
Carsten
Alex Glennie
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Well I have some more questions to help try to narrow the search :

ulimit values ? shell ? both O/S 's 11.11 ? Network cards involved? network patch levels ?

Also does ftp,rdist etc work OK here ?
Carsten Cimander_2
Occasional Advisor

Re: limit of file size? Error: rcp : Bad file number

Solution:
Insalling Patch PHNE_27777 on the source system should resolve the problem.

Thanks to all for your help.

Regards,
Carsten
Jason Rondeau
New Member

Re: limit of file size? Error: rcp : Bad file number

I too noticed this, however, I also noticed that the file actually did transfer and actually transferred correctly. It transfered all bytes and no bytes changed value (I checked by using a CRC generator)

I just ignore the error.
Massimo Bianchi
Honored Contributor

Re: limit of file size? Error: rcp : Bad file number

Hi,
as far as i know, rcp is 32bit, so it won't allow for largefiles.

If you need, use nfs V3 for a while or download a utility like


rsync

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.5.6/

You must have to recompile them with the largefile support enabled, but they will work.

Massimo