From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Goh, Pit Ong" Newsgroups: gmane.os.tru64.managers Subject: vrestore a selected file that's in 2nd volume of tape Date: Sun, 21 Oct 2007 01:37:13 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1192901887 9655 80.91.229.12 (20 Oct 2007 17:38:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 17:38:07 +0000 (UTC) To: Tru64-UNIX-Managers Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sat Oct 20 19:38:06 2007 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1IjIGy-0003As-Dd for gotm-tru64-unix-managers@gmane.org; Sat, 20 Oct 2007 19:38:04 +0200 Original-Received: (qmail 30068 invoked by uid 49509); 20 Oct 2007 17:37:43 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30059 invoked from network); 20 Oct 2007 17:37:43 -0000 Original-Received: from emroute4.ornl.gov (160.91.86.27) by sws1.ornl.gov with SMTP; 20 Oct 2007 17:37:43 -0000 Original-Received: from emroute4.ornl.gov ([127.0.0.1]) by emroute4.ornl.gov (PMDF V6.3-x11 #31501) with ESMTP id <0JQ800CCP0YUCL@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 20 Oct 2007 13:37:43 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.3-x11 #31501) id <0JQ800J010YUA4@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 20 Oct 2007 13:37:42 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.3-x11 #31501) id <0JQ800J020YJ9T@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 20 Oct 2007 13:37:42 -0400 (EDT) Original-Received: from ssgp97.commerzbank.com.sg (mail.commerzbank.com.sg [202.176.197.69]) by emroute4.ornl.gov (PMDF V6.3-x11 #31501) with ESMTP id <0JQ800IAE0YIO3@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 20 Oct 2007 13:37:31 -0400 (EDT) Original-Received: by ssgp97.commerzbank.com.sg (Commerzbank Mail-System, from userid 1001) id 8152C22B239; Sun, 21 Oct 2007 01:37:28 +0800 (SGT) Original-Received: from sv062632.sg.commerzbank.com (unknown [10.198.253.203]) by ssgp97.commerzbank.com.sg (Commerzbank Mail-System) with ESMTP id C71A722B1BF for ; Sun, 21 Oct 2007 01:37:14 +0800 (SGT) Original-Received: by sv062632.16600.sg.commerzbank.com with Internet Mail Service (5.5.2657.72) id ; Sun, 21 Oct 2007 01:37:14 +0800 X-Envelope-from: pitong_goh@commerzbank.com.sg X-Mailer: Internet Mail Service (5.5.2657.72) X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on spam3.ornl.gov X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,BOTNET_SERVERWORDS, BOTNET_SOHO autolearn=ham version=3.2.3 Xref: news.gmane.org gmane.os.tru64.managers:9241 Archived-At: Hi, Our daily vdump backup takes 2 tapes/day. I tried to vrestore a file that's on Volume 2 of the tape & ran into this : (believe we can't just load Volume 2 but has to put in Volume 1 first) ssgp09_root >>>tp=/dev/ntape/tape0c; export tp ssgp09_root >>>mt -f $tp fsf 8 ssgp09_root >>>vrestore -i $tp vrestore: Date of the vdump save-set: Thu Aug 2 01:24:06 2007 vrestore: Save-set source directory : /u05 (/) ls .: .tags dump/ home/ u05-fs users/ (/) cd dump (/dump/) ls .: cdb_bckup_me.dmp.Z cdb_postbckup.dmp.Z cdbhon_postbckup.dmp.Z cdblab_postbckup.dmp.Z cdbsha_postbckup.dmp.Z cdbtok_postbckup.dmp.Z cohk_bckup.dmp cosh_bckup.dmp cost_bckup.dmp.Z coty_bckup.dmp ffs_bckup.dmp lrpt_bckup_hon.dmp.Z lrpt_bckup_sgp.dmp.Z lrpt_bckup_sha.dmp.Z <== file to restore lrpt_bckup_tok.dmp.Z pbst_posbckup.dmp.Z pbst_prebckup.dmp.Z saf_bckup.dmp.Z wss_postbckup.dmp wss_postbckup.dmp.Z wss_prebckup.dmp wss_prebckup.dmp.Z wss_purge_year_end_pre_SGP.dmp wss_purge_year_end_pre_SGP.dmp.Z (/dump/) add lrpt_bckup_sha.dmp.Z (/dump/) extract vrestore: Change Tapes: Mount tape# 0002 vrestore: can't open device file ; not ready vrestore: can't open device file ; not ready vrestore: can't open device file ; not ready vrestore: can't open device file ; not ready vrestore: Press RETURN when tape is mounted... ***** (I then login thru another session to load 2nd tape volume : ssgp09_root >>>robot unload slot 3 drive 0 UNLOAD DRIVE 0 into SLOT 3 using ROBOT /dev/changer/mc0. ssgp09_root >>>robot load slot 2 drive 0 LOADING SLOT 2 into DRIVE 0 using ROBOT /dev/changer/mc0. ssgp09_root >>> ssgp09_root >>>mt -f /dev/tape/tape0c stat DEVIOGET ELEMENT CONTENTS ---------------- -------- category DEV_TAPE bus DEV_SCSI interface SCSI device TZ89 adpt_num 0 nexus_num 5 bus_num 1 ctlr_num 1 slave_num 1 dev_name tz unit_num 1 soft_count 0 hard_count 0 stat 0xD DEV_BOM DEV_OFFLINE DEV_WRTLCK category_stat 0x0 DEV_85700_BPI DEVGETINFO ELEMENT CONTENTS ------------------ -------- media_status 0x10009 BOM WrtProt POS_VALID unit_status 0x1a2 Offline 2_FM_Close Rewind Compacting Buffered record_size 0 density (current) 85700 BPI density (on write) 81630 BPI Filemark Cnt 0 Record Cnt 0 Class 1 - DLT (tk) MTIOCGET ELEMENT CONTENTS ---------------- -------- mt_type MT_ISSCSI mt_dsreg 0xD DEV_BOM DEV_OFFLINE DEV_WRTLCK mt_erreg 0x2 Unit is not ready. mt_resid 0 mt_fileno 0 mt_blkno 0 DEV_EEI_STATUS version 0x2 status 0x3200 Device inoperable (needs initialize) flags 0x1000007 CAM_STATUS SCSI_STATUS SCSI_SENSE CAM_DATA cam_status 0x4 CCB request completed with an err scsi_status 0x2 SCSI_STAT_CHECK_CONDITION scsi_sense_data (hex) 70 0 2 0 0 0 0 16 0 0 0 0 4 1 0 0 0 0 82 7 6c 0 0 2a 8e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ASC/ASQ = 4/1 LUN Is in process of becoming ready) ***** Then I hit ENTER on the other session to continue on the 1st session : vrestore: encountered unexpected block type; terminating BLOCK HEADER block size : 61440 flags : volume set : 1 volume sets: 1 volume num : 0 block num : 1 header CRC : 0xdb0a block CRC : 0x0000 xor blocks : 0 xor blk num: 0 id : Wed Aug 1 02:05:57 2007 version : 5.0 0 0x0000f000 0x00000001 0x00010001 0x00010000 4 0x0000db0a 0x00000000 0x46af7a05 0x00302e35 8 0x00000000 0x00000000 0x00000000 0x00000000 12 0x00000000 0x00000000 0x00000000 0x46af79cd 16 0x00072392 0x00000000 0x00000000 0x00000000 20 0x00000000 0x00000000 0x00000000 0x00000000 24 0x00000000 0x00000000 0x00000000 0x00000000 28 0x00000000 0x00000000 0x00000000 0x00000000 32 0x00000000 0x00000000 0x00000000 0x00000000 36 0x00000000 0x00000000 0x00000000 0x00000000 40 0x00000000 0x00000000 0x00000000 0x00000000 44 0x00000000 0x00000000 0x00000000 0x00000000 48 0x00000000 0x00000000 0x00000000 0x00000000 52 0x00000000 0x00000000 0x00000000 0x00000000 56 0x00000000 0x00000000 0x00000000 0x00000000 60 0x00000000 0x00000000 0x00000000 0x00000000 vrestore: rewinding tape The file to restore is in 2nd volume but I believe I have to go thru the 1st volume (which the "ls" command showed the file is there). What have I missed? Thanks, Goh