From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Curt Steinmetz Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: malloc problem with dump/restore Date: Wed, 28 Apr 2004 12:31:17 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7926704A-9931-11D8-BD8B-000A95A939C8@cola.iges.org> References: <6D2C2124-9883-11D8-9927-000A95A939C8@cola.iges.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; format=flowed; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083169926 27660 80.91.224.253 (28 Apr 2004 16:32:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 16:32:06 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Apr 28 18:31:53 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BIryS-0007dq-00 for ; Wed, 28 Apr 2004 18:31:52 +0200 Original-Received: (qmail 7494 invoked by uid 5); 28 Apr 2004 16:31:42 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7476 invoked by uid 49501); 28 Apr 2004 16:31:41 -0000 Original-Received: from curt@cola.iges.org by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.119):SA:0(-4.9/5.0):. Processed in 1.196333 secs); 28 Apr 2004 16:31:41 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Apr 2004 16:31:40 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HWW003HW38KYC@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 28 Apr 2004 12:31:39 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0HWW0090238E9S@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 28 Apr 2004 12:31:27 -0400 (EDT) Original-Received: from cola.iges.org (cola.iges.org [192.239.84.10]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HWW006AT38DU0@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 28 Apr 2004 12:31:26 -0400 (EDT) Original-Received: from [192.239.84.224] by cola.iges.org (8.11.1/1.1.22.3/16Jan00-0454PM) id i3SGVOW0000031475; Wed, 28 Apr 2004 12:31:24 -0400 (EDT) In-reply-to: <6D2C2124-9883-11D8-9927-000A95A939C8@cola.iges.org> Original-To: tru64-unix-managers@ornl.gov X-Mailer: Apple Mail (2.613) Xref: main.gmane.org gmane.os.tru64.managers:6878 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6878 Thanks to Chris Wincentsen, Tom Blinn, Kris Smith, John Lanier, Michael Crowley and Eric Milligan. The problem was that insufficient memory was available for the restore process. This was resolved using the sysconfigdb command to change the "proc" subsystem in the file "/etc/sysconfigtab". It should be noted that there was no "proc" subsystem in sysconfigtab when I started - so it was using some kind of default values, I guess. The procedure I followed was to (1) create a "stanza" file with the new values for some kernel parameters (this was a lot easier under 4.0F!). The "stanza" file I used looks like this (do a man on "stanza" for more on this abstruse topic): proc: per_proc_stack_size = 15719912800 max_per_proc_stack_size = 4294967296 per_proc_data_size = 4294967296 max_per_proc_data_size = 137438953472 (2) then I ran the command: /sbin/sysconfigdb -rf proc followed by the command /sbin/sysconfigdb -af proc (3) Note on the above: according to my reading of the man page for sysconfigdb it is necessary to run the command first with the -r option in order to avoid having to reboot the system for the changes to take effect. (4) After running the two command in step (2) above I ran the retrieval procedure as originally described in the problem report - and it worked fine! Thanks again to all those who replied. - Curt On Apr 27, 2004, at 3:45 PM, Curt Steinmetz wrote: > I have encountered an annoying problem trying to > retrieve some files from a dump tape using restore. > The tape was created with the following script: > > mt -f /dev/ntape/tape0c rewind > /usr/sbin/dump -0uf /dev/ntape/tape0c / > /usr/sbin/dump -0uf /dev/ntape/tape0c /usr > /usr/sbin/dump -0uf /dev/ntape/tape0c /usr/local > /usr/sbin/dump -0uf /dev/ntape/tape0c /homes/cola > /usr/sbin/dump -0uf /dev/ntape/tape0c /var > /usr/sbin/dump -0uf /dev/ntape/tape0c /var/spool/mail > mt -f /dev/ntape/tape0c offline > > And now I am trying to restore a users files from > the partition /homes/cola (the fourth partition in the > dump). I use these three commands to start up an interactive > restore from the command line: > # mt -f /dev/ntape/tape0c rewind > # mt -f /dev/ntape/tape0c fsf 3 > # /usr/sbin/restore if /dev/ntape/tape0c > > And I get this error message: > Cannot malloc space for directory list, errno = 12 > > I have done many restores using exactly this scenario but > this is the first time I have tried since we upgraded from 4.0F > to 5.1b, and also from DLT to SDLT. If I go to the partition prior > to /homes/cola, ie, if I do "fsf 2" rather than "fsf 3" I can do a > restore no problem (but I don't need to restore anything from > /usr/local!!!!). > > I found a "solution" in the archives - to use vdump and vrestore, > but that won't work for a tape that's already written using just > plain old "dump" (I tried anyway). > > Any suggestions? > > Sincerely, > Curt Steinmetz > curt@cola.iges.org > www.iges.org > >