- 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
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
03-17-2003 10:38 PM
03-17-2003 10:38 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-18-2003 03:24 AM
03-18-2003 03:24 AM
Re: TAR cannot create file >2GB in background
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:10 AM
03-18-2003 04:10 AM
Re: TAR cannot create file >2GB in background
Can you please confirm the version of the OS you are running.
I tried:
tar -cvf backup.tar /backup &
nohup tar -cvf backup.tar /backup &
As I ran this as root, ulimit is unlimited - are you running this as root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 04:19 AM
03-18-2003 04:19 AM
Re: TAR cannot create file >2GB in background
cd /dir
fbackup -i /tmp/source -f - | frecover -x -X -f - (* between filesystems *)
Here's a link for GNU Tar:
www.gnu.org/directory/tar.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 04:24 AM
03-18-2003 04:24 AM
Re: TAR cannot create file >2GB in background
Let us close this one because the other one has the most responses:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x944c28c64656d71190080090279cd0f9,00.html