- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TAR cannot create file >2GB in background
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-17-2003 10:42 PM
тАО03-17-2003 10:42 PM
TAR cannot create file >2GB in background
I get the following errors with tar, cpio and pax can someone please help?
1. With TAR:
CMD: tar cvf backup.tar /backup
ERROR: Can't open /dev/tty to prompt for more media.
2. With CPIO:
CMD: find /backup -depth -print | cpio -ov >backup.cpio
ERROR: write failed: File too large
Can't open /dev/tty.
3. With PAX:
CMD: pax -w -f backup.pax /backup
ERROR: pax: write : File too large
pax: A write error has occurred.
All of these commands run if I run them normally, but if I run them in the background or from cron, I get the errors. The size of the file it creates is 2147483136.
Thanks
Leon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 10:51 PM
тАО03-17-2003 10:51 PM
Re: TAR cannot create file >2GB in background
you can use the GNU version of tar from
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25
Also make sure that your file system is largefiles enabled.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 10:52 PM
тАО03-17-2003 10:52 PM
Re: TAR cannot create file >2GB in background
/usr/bin/tar cvf ......
and tar/cpio does not support files more than 2GB.
Try fbackup instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 10:54 PM
тАО03-17-2003 10:54 PM
Re: TAR cannot create file >2GB in background
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:01 PM
тАО03-17-2003 11:01 PM
Re: TAR cannot create file >2GB in background
You can use fbackup or get hold of GNUtar.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:22 PM
тАО03-17-2003 11:22 PM
Re: TAR cannot create file >2GB in background
My largefile support is set.
Another thing it works fine if I start it from the command-line.
Leon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:26 PM
тАО03-17-2003 11:26 PM
Re: TAR cannot create file >2GB in background
I understood your question. You are saying that you can run the tar command at the foreground with files >2 GB but you can not do it at the background.
Try this:
#nohup tar cvf backup.tar /backup &
And see what's gonna happen.
I'm sure some of the guys have better answer than me!!
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:31 PM
тАО03-17-2003 11:31 PM
Re: TAR cannot create file >2GB in background
And what do you mean by " it works fine if I start it from the command-line"? Do you have problems with a cron job. Noticed you don't have a path to the 'backup.tar'. If this is a cron job you realy should. Generally speaking I would advise it too. So you are sure where you put the file.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:31 PM
тАО03-17-2003 11:31 PM
Re: TAR cannot create file >2GB in background
What other ways you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:46 PM
тАО03-17-2003 11:46 PM
Re: TAR cannot create file >2GB in background
The full command I use is:
tar cvf /data/backup/backup.tar /app/oraapps.
The way it does not work is with "at" or from cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 11:53 PM
тАО03-17-2003 11:53 PM
Re: TAR cannot create file >2GB in background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 12:05 AM
тАО03-18-2003 12:05 AM
Re: TAR cannot create file >2GB in background
(I'm not sure it it's named tar too, but you could rename it to gtar too so you are sure which one you are running.)
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 04:21 AM
тАО03-18-2003 04:21 AM
Re: TAR cannot create file >2GB in background
:
Probably the ulimit settings are different.
ulimit can be tricky because it depends on things like cron, the shell used, etc..
I advise to put these commands in a script and put a ulimit command just before each (tar/cpio/pax) command in the script and look *very precisely* at what ulimit reports in each case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 04:49 AM
тАО03-18-2003 04:49 AM
Re: TAR cannot create file >2GB in background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 05:17 AM
тАО03-18-2003 05:17 AM
Re: TAR cannot create file >2GB in background
Possible to use gzip ?
Only problem will be gunzip, but that can be
done with command :
cat filename.gz | gunzip >> filename
.
We have done this with Oracle export files
and it works.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:42 AM
тАО03-18-2003 07:42 AM
Re: TAR cannot create file >2GB in background
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:51 AM
тАО03-18-2003 07:51 AM
Re: TAR cannot create file >2GB in background
2nd: I think the problem you are running into may have to do with your 'ulimit' values. You must remember that when you run jobs via 'cron' and / or 'at' that you do NOT have the same environment that you do when you run it from your shell.
In your script put a 'ulimit -a' command in and compare the output there to the output of a 'ulimit -a' that you run from the command line. I think you will find that the "file" value is different and is not allowing you to create the 2GB file from cron / at.
To change this you can do 'ulimit unlimited' in your script to reset it for the duration of the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:59 AM
тАО03-18-2003 07:59 AM
Re: TAR cannot create file >2GB in background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 10:01 PM
тАО03-18-2003 10:01 PM
Re: TAR cannot create file >2GB in background
the problem is with ulimit(in sh "ulimit -f" and in ksh "ulimit n")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 10:49 PM
тАО03-18-2003 10:49 PM
Re: TAR cannot create file >2GB in background
Yes tar can back up more than 2Gb of fileS. But not A file larger than 2Gb.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 02:34 AM
тАО03-19-2003 02:34 AM
Re: TAR cannot create file >2GB in background
This problem is not looks like tar,pax or cpio problem.
when you are running the command in background it's throwing some messages it can be either error message or informative messages, which it's not able to display and your backup is getting fail this problem is related to kernal parameter maxpty.
just check the value of maxpty and increase it and try agin.
it should work.
Sunil