- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NFS Copy problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 09:49 AM
02-01-2008 09:49 AM
I have the following NFS mount:
172.16.20.5:/DB_Backup2 /dbbackup nfs rw,suid,vers=3,timeo=1200 0 0
Trying to copy the following file to a adaptec snap server by cp -pf (file) (destination):
-rw-r--r-- 1 root sys 2147483647 Feb 1 04:51 ghsappl24.bk
I can do it manually, but when I do it from a script it fails with the following error:
cp: bad copy to /dbbackup/hsbackup_copy/ghsappl24.bk: write: File too large
The NFS server for the share is set to:
*(rw,insecure,async)
Also, in my script I exported the ulimt and it is the same as mine when I do the command from the shell.
Any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 10:09 AM
02-01-2008 10:09 AM
Re: NFS Copy problem
Sound like a mismatch in NFS versions or largefiles has not been enabled on the BFS server.
http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01003430-1
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 10:31 AM
02-01-2008 10:31 AM
Re: NFS Copy problem
Actually, the file isnt a large one (existed on the server prior to me enabling large files), so I do not belive that would be an issue. The server is either V3 or 4, and I am forcing version 3 on the client.
If it was as you suggest, I would think that I wouldnt be able to complete the copy manually. Its only when the copy is done via the script where it fails. Ive commented everything out of the script so this is all that is left:
#!/usr/bin/ksh
log=/home/nlewers/hsbackup_copy.log
echo "HS Backup starting..." `date` > $log
ulimit >> $log
cp -pf /hsbu2/hsbu/glsappl24.bk /dbbackup/hsbackup_copy >> $log 2>&1
echo "HS Backup complete..." `date` >> $log
if I run it manually from the shell:
cp -pf /hsbu2/hsbu/glsappl24.bk /dbbackup/hsbackup_copy
I do not get the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 10:31 AM
02-01-2008 10:31 AM
Re: NFS Copy problem
Actually, the file isnt a large one (existed on the server prior to me enabling large files), so I do not belive that would be an issue. The server is either V3 or 4, and I am forcing version 3 on the client.
If it was as you suggest, I would think that I wouldnt be able to complete the copy manually. Its only when the copy is done via the script where it fails. Ive commented everything out of the script so this is all that is left:
#!/usr/bin/ksh
log=/home/nlewers/hsbackup_copy.log
echo "HS Backup starting..." `date` > $log
ulimit >> $log
cp -pf /hsbu2/hsbu/glsappl24.bk /dbbackup/hsbackup_copy >> $log 2>&1
echo "HS Backup complete..." `date` >> $log
if I run it manually from the shell:
cp -pf /hsbu2/hsbu/glsappl24.bk /dbbackup/hsbackup_copy
I do not get the error.
Thanks, Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 10:51 AM
02-01-2008 10:51 AM
Re: NFS Copy problem
the script starts / runs in ksh, which has a builtin ulimit as opposed to /usr/bin/ulimit.
Also, what shell are you running when you do the "cp" manually?
I'm betting that in the script, when it logs the output of ulimit, you are seeing something like "4194303" which is the number of 512 byte blocks that you're allowed to write. At 2,147,482,136...that would be just smaller than the file size you want.
That seems to be the most it will take. I tried "ulimit 4200000" which didn't generate an error, but didn't appear to work either.
what happens if you use a posix shell instead (/usr/bin/sh)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2008 11:35 AM
02-01-2008 11:35 AM
Re: NFS Copy problem
changed shell to sh (#!/usr/bin/sh) in the script, output of the log:
$ cat hsbackup_copy.log
HS Backup starting... Fri Feb 1 13:14:19 CST 2008
4194303 (ulimit)
Copying file /hsbu2/hsbu/ghsappl24.bk...
cp: bad copy to /dbbackup/hsbackup_copy/ghsappl24.bk: write: File too large
HS Backup complete... Fri Feb 1 13:17:21 CST 2008
From the shell:
neo(root)#echo $SHELL
/usr/bin/ksh
neo(root)#ulimit
4194303
neo(root)#cp -pf /hsbu2/hsbu/ghsappl24.bk /dbbackup/hsbackup_copy
neo(root)#
no errors. When I look at the file, it looks correct after the manual copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 10:11 AM
02-12-2008 10:11 AM
Re: NFS Copy problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 10:39 AM - last edited on 06-29-2021 05:01 AM by Ramya_Heera
02-12-2008 10:39 AM - last edited on 06-29-2021 05:01 AM by Ramya_Heera
SolutionHi Nick,
A couple thoughts...
o Is this a brand new problem or something that has never worked? If it worked at one time and suddenly stopped working, what has changed?
o Are other NFS clients able to run this script against this NFS server? Is this the only client that fails?
o Does the problem only occur writing to that specific NFS server? Can you try using a different NFS server from the same NFS client and see if the problem occurs? You could even take your 11.11 system and export a local filesystem temporarily and mount the filesystem via a loopback NFS mount and run the same test to see if the problem exists when the 11.11 box is both the NFS client and server.
o Are you running the latest patched version of ksh? I know there were problems back in the 11.0 days similar to this that were fixed in ksh patches. The latest 11.11 patch is PHCO_37283. Might be worth a try.
o Since this problem also occurs with the Posix shell, I'd be interested in checking your libc patch too. I see there is an EFBIG fix in libc that could be related to your problem. The latest libc is PHCO_36184. That might be worth a try as well.
o When you run the command in a shell, does the copy even begin and fail at the very end of the file or does the copy never even start and you get EFBIG returned immediately?
Let me know if any of this helps. If not, I'll try to think of what to check next.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 07:46 AM
02-29-2008 07:46 AM
Re: NFS Copy problem
This is something that never worked, and I actually just found a work around, to use rcp instead of cp. thanks for the replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 11:24 AM
02-29-2008 11:24 AM