Sponsored Content
Full Discussion: Mksysb and Savevg woes
Top Forums UNIX for Dummies Questions & Answers Mksysb and Savevg woes Post 302207125 by boredazfcuk on Thursday 19th of June 2008 07:30:42 AM
Old 06-19-2008
Mksysb and Savevg woes

hi,

i'm having a little trouble with an AIX 5.2 script that i have written and i was wondering if anyone could please offer me some advice on how to append a savevg backup to a mksysb tape, or more importantly where i'm going wrong? i've been trying to get this to work on and off for about a month with no joy now.

here's a cut down version of my script:
Code:
MKSYSBLOG=/usr/tmp/mksysb.log
VGLOG=/usr/tmp/vg.log
MKSYSBVLOG=/usr/tmp/mksysbv.log
VGVLOG=/usr/tmp/vgv.log

tctl -f /dev/rmt0 rewind
/usr/bin/mksysb -ipX /dev/rmt0.1 2>$MKSYSBLOG
/usr/bin/savevg -ipXf /dev/rmt0 DEV_VG 2>$VGLOG
/usr/sbin/restore -s3 -Tqvf /dev/rmt0.1 2>$MKSYSBVLOG
/usr/sbin/restore -s1 -Tqvf /dev/rmt0.1 2>$VGVLOG
tctl -f /dev/rmt0 rewind

the problem that i am having is that if i run this script i get the following error from the restore commands:

restore: 0511-160 Cannot read the backup media
/dev/rmt0.1: There is an input or output error

with the tape rewound, if i run a restore -Tvqf /dev/rmt0 it lists the files in DEV_VG. this made me think that the tape was rewinding before running the savevg command for some reason.

if i change the backups to use the rmt0 device and manually do all my rewinding and fast forwarding with tctl i get the same errors as the restore command gives me.

if i run a /usr/bin/mksysb -ipX /dev/rmt0 then a restore -Tvqf /dev/rmt0 it lists the files in the rootvg. from what i've read a mksysb should put the files on the 3rd segment of the backup. is this correct?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mksysb and Savevg woes

hi, i'm having a little trouble with an AIX 5.2 script that i have written and i was wondering if anyone could please offer me some advice on how to append a savevg backup to a mksysb tape, or more importantly where i'm going wrong? i've been trying to get this to work for about a month with no... (2 Replies)
Discussion started by: boredazfcuk
2 Replies

2. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

3. AIX

savevg/tar/mksysb of server-A on remote tape drive possible ?

Every 3 months we have to do backups (smitth mksysb/lsmksysb + tar) on at least 30 workstations. We have to carry around 2 external tape drives to connect to them. It is a pain to do because it takes at least 3 days to do (evening/night shift) and users sometimes complain that there desk is not put... (1 Reply)
Discussion started by: Browser_ice
1 Replies

4. AIX

smitty savevg: online cmd with all options to use?

In the several backups we do, we do a "smitty savevg" on about 15 different servers at the same time. Typing all the options on the savg screen is kind of long. Is it possible to invoke the "smitty savevg" backups as command line (aix 4.2) but using all the options we always enter ? It would... (1 Reply)
Discussion started by: Browser_ice
1 Replies

5. AIX

aix 4.2: finding out the return code of a savevg/mksysb ?

Am I right to assume that to check the return code of a savevg/mksysb on an AIX 4.2 is with the "$?" ? (1 Reply)
Discussion started by: Browser_ice
1 Replies

6. AIX

savevg - mksysb

Hello, I use commands savevg & mksysb to do backups on an AIX server. Frequently, I have a return code 3. I would know why, but after searches, I did'nt find. If somebody know ... Tell me. Thanks. emetra (2 Replies)
Discussion started by: emetra
2 Replies

7. AIX

savevg via nim, only vgdata

Other then creating a exclude 'all' file. Is there a way to just create a nim savevg resource that contains just the minimum info to restore a vg. The vg's dirs and files are being backed up. -pete (0 Replies)
Discussion started by: petepdx
0 Replies

8. AIX

How to estimate time of mksysb & savevg ?

Hi All, I need to plan a downtime and need know how much time is required to take mksysb & rootvg on LTO4. Following are vg informations... # lsvg -l rootvg rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 64 128 2 open/syncd N/A hd8... (1 Reply)
Discussion started by: sraj142
1 Replies

9. AIX

Savevg when users online !!

Hi All, I need to take the backup of non-rootvg using savevg utility. I would like to know, if I can take the backup without shutting down the application & database. Is it possible to take the savevg backup safely when users are working on the system ? Regards. (1 Reply)
Discussion started by: sraj142
1 Replies

10. AIX

Restore from savevg

I am trying to restore files from savevg. I used to smit restore and gave the file location. Savevg is taken to a mount point from San storage and not tape back up. Can I restore just a directory from savevg? ---------- Post updated at 09:43 PM ---------- Previous update was at 09:42 PM... (1 Reply)
Discussion started by: ElizabethPJ
1 Replies
TAPELIST(5)						   File formats and conventions 					       TAPELIST(5)

NAME
tapelist - The list of Amanda volumes in use DESCRIPTION
The tapelist file contains the list of tapes in active use. This file is not ordinarily ordinarily edited or examined manually. Its format may change, or it may be removed altogether, in future versions of Amanda. It contains lines of the form: YYYYMMDD label flags [BARCODE:barcode] [META:meta] [#comment] Where YYYYMMDD is the date the tape was written, label is a label for the tape as written by amlabel and flags is one of "reuse" or "no-reuse" and tells Amanda whether the tape may be reused. A non-reusable tape will not be overwritten, even if it is older than dumpcycle dumps. See the reuse options of amadmin(8). The optional barcode is prefixed with 'BARCODE' if the volume have a barcode. The optional meta label is prefixed with 'META' if the volume is on a meta volume. The optional comment is prefixed with a '#' and continues to the end of the line. Amanda will maintain this comment until the tape is overwritten. Note that comments are not allowed on blank lines. The file is sorted such that the most-recently used tape appears on the first line, and the oldest tape appears on the last line. Amdump and amflush will by default refuse to write to an unlabeled tape, or to a labeled tape that is considered active or marked "no-reuse". There must be more tapes in active rotation (see the tapecycle option) than there are runs in the backup cycle (see the dumpcycle option) to prevent overwriting a backup image that would be needed to do a full recovery. SEE ALSO
amanda(8), amanda.conf(5) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
James da Silva <jds@amanda.org> Stefan G. Weichinger <sgw@amanda.org> Dustin J. Mitchell <dustin@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 TAPELIST(5)
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy