Cpio Read Error Cannot Locate Memory
Contents |
Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time linux cpio read error cannot allocate memory Job Ways to Get Help Expand Search Submit Close Search Login Join Today
Error Cannot Allocate Memory - Connect(2)
Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > cpio: read error: mount error cannot allocate memory Cannot allocate memory Want to Advertise Here? Solved cpio: read error: Cannot allocate memory Posted on 2003-02-09 Linux 1 Verified Solution 4 Comments 2,197 Views Last Modified: 2013-12-15 I'm trying to use a failed error cannot allocate memory SCSI tape to restore information taken from machine A, onto machine B. Machine A and B are somewhat dissimilar physically, but both have Linux 7.2 Red Hat installed. They're both Dell Intel PCs. When I used the command on machine C, which is physically identical to machine A, that same restore command worked. On machine B, it fails. Machine C has since been used elsewhere so
Error Cannot Allocate Memory Errno 12
I can't play with it to verify this for the particular tape in question, but that's how I recall the situation, anyway, from a few months ago. The syntax I use is: /cpio -iuvdmBc --no-absolute-filenames -I /dev/st0 It fails almost immediately with: /cpio: read error: Cannot allocate memory I have played with the block size parameter. My efforts included omitting it, replacing it with C and feeding various values as a block size, including very small values (1, 4, 16 and so on). I'm not a Linux guru but an NT / Windows systems administrator. I'm trying to not so much just fix the problem, though that would be nice -- I'd like to understand why this comand is failing, in terms of fundamental reasons. If anyone can translate the problem and its cause to a NT / Windows or MS-DOS concept, that would help me a lot. When I use the mt command, I can talk to the tape drive, e.g. make it roll forward, so I don't think it's a basic problem in talking to the tape drive. This is a fresh installation of Linux Red Hat 7.2. The cpio command was used t
Message-id: <3CADB1FF.50106@xxxxxxxxx> Hi, I am trying to do a backup over the network with this command: ssh staging "cd /tmp; ls | grep log | tar -c | gzip" | gzip -d https://www.experts-exchange.com/questions/20506527/cpio-read-error-Cannot-allocate-memory.html > /dev/tape ==> cpio the files on the source server, gzip it for transport over the network, unzip them on the backupserver and send to the tape) IT WORKS WHEN: I unzip it to https://lists.opensuse.org/opensuse/2002-04/msg00565.html a file(...| gzip -d > log.cpio) on the backupserver. I can do a cpio -i < log.cpio IT DOES NOT WORK: if I unzip it directly to the tape (...| gzip -d > /dev/tape(this works OK)) and then want to do cpio -i < /dev/tape. It gives the following error: "cpio: read error: Cannot allocate memory" Does somebody know what the reason is? Thanks in advance. Filip < Previous Next > Thread Index Author Index Date Index All Messages Search this list List Navigation Overview Next Thread Previous Thread Top of the Page Feedback This Thread No further messages
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword http://www.tek-tips.com/viewthread.cfm?qid=1326531 Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, http://www.unix.com/unix-for-beginners-questions-and-answers/268030-cpio-restore.html It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking error cannot To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Linux (server) Forum at Tek-Tips HomeForumsMIS/ITOperating Systems - UNIX basedLinux (server) Forum read issues!! thread54-1326531 Forum Search FAQs Links MVPs read issues!! read issues!! robert030975 (MIS) (OP) 25 Jan 07 03:43 Need a bit of advice on what to do? Bit of history error cannot allocate behind this as although the backup log says its writing to the tape, I wanted to be able to read everything thats written to it. As in the past I needed a file which I couldn't restore as it seemed only read part of that tape!!hence tape drive has been cleaned and a new tape has been used.if I rundd if=/dev/st0 of=/dev/nulldd: reading `/dev/st0': Cannot allocate memory0+0 records in0+0 records outIs there a reason why this is happening??Also if I do cpio –itcv –C32768 < /dev/st0I get a cpio: read error: Input/output errorhalf way through the tape??? RE: read issues!! Ogzilal (MIS) 25 Jan 07 04:47 Hi,Look at your system if it's not running out of memory or out of paging space (too much processes running or some memory leak problems!).If possible, try the same command just after a rebootAli RE: read issues!! robert030975 (MIS) (OP) 25 Jan 07 05:11 already looked at that top10:09:27up 69 days, 21:57, 35 users,load average: 1.27, 1.46, 1.34241 processes: 238 sleeping, 2 running, 1 zombie, 0 stoppedits pretty quietdf -k /dev/cciss/c0d0p33289077624442176677784079% //dev/cciss/c0d0p198747153117833717% /boot/dev/cciss/c0d1p1630135744 325204452 27292218455% /datanone1541228015412280% /dev/shmseems plenty of spacehow would check for memory leakage? not
Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum! Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... learn unix and linux commands CPIO Restore UNIX for Beginners Questions & Answers Page 1 of 2 1 2 > Thread Tools Search this Thread Display Modes #1 08-26-2016 isoabv Registered User Join Date: Aug 2016 Last Activity: 5 September 2016, 2:19 AM EDT Posts: 6 Thanks: 1 Thanked 0 Times in 0 Posts CPIO Restore Please note that using the command cpio to back up to tape was successful. Used the below command: Code: time find /accts -print | cpio -oa --block-size=512 --format=newc --verbose -O /dev/nst0 I'm trying to restore from tape of a particular file and having issues. Below is the command to restore from tape: Code: cpio -iv "/accts/bank/2day" "/accts/bank/lastyear" --block-size=2048 < /dev/nst0 Please assist if the above command to restore is correct. I tried using it but it does not restore. I was in the /bkp directory to do the restore. Last edited by vbe; 08-26-2016 at 08:16 AM.. Reason: code tags Remove advertisements Sponsored Links isoabv View Public Profile Find all posts by isoabv #2 08-26-2016 Don Cragun Moderator Join Date: Jul 2012 Last Activity: 2 October 2016, 10:34 AM EDT Location: San Jose, CA, USA Posts: 9,413 Thanks: 434 Thanked 3,172 Times in 2,722 Posts Quote: Originally Posted by isoabv Please note that using the command cpio to back up to tape was successful. Used the below command: Code: time find /accts -print | cpio -oa --block-size=512 --format=newc --verbose -O /dev/nst0 I'm trying to restore from tape of a particular file and having issues. Below is the command to restore from tape: Code: cpio -iv "/accts/bank/2day" "/accts/bank/lastyear" --block-size=2048 < /dev/nst0 Please assist if the above command to restore is correct. I tried using it but it does not restore. I was in the /bkp directory to do the restore. Using different block sizes when creating a cpio archive and when reading that cpio archive is almost always going to fail. Remove advertisements Sponsored Links Don Cra