rsync + failed on error with Bad file descriptor

usually we not have this issue so its very rare!

but today we got the following error when we are using rsync to copy files . when files - pkg_gh are with 1-3G size

the error is like this

Warning: Permanently added '130.33.90.18' (ECDSA) to the list of known hosts.
rsync: read errors mapping "/target/home_l/repo/pkg_gh": Bad file descriptor (9)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

what is the meaning when we get - Bad file descriptor , when using rsync?

is it something that we can avoid?

for example kernel settings? or rsync rpm upgrade? etc ?

the cmd is like this

sshpass XXXXXX /usr/bin/rsync --delay-updates -F --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=..... /target/home_l/repo/pkg_gh root:$target_server:/tmp/local_folder

and the rsync is working between two rhel server from local server to target server , when server are connected VIA Cisco switch

2

1 Answer

The error message indicates a read error, not a write error

rsync: read errors mapping "/target/home_l/repo/pkg_gh": Bad file descriptor (9)

You confirmed in a comment that your source file is on an NFS filesystem, and it's here that the read write occurred. Your NFS file system momentarily failed to deliver part of the file that rsync was copying.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like