Sponsored Content
Full Discussion: Mksysb and Savevg woes
Top Forums UNIX for Dummies Questions & Answers Mksysb and Savevg woes Post 302209262 by boredazfcuk on Thursday 26th of June 2008 10:38:33 AM
Old 06-26-2008
sorted!

hi,

i would have posted this in the aix forum but i'm a unix noob. thought it would have been more appropriate to post in here as i thought i was going to be referred to the man pages lol

i did manage to find the solution for myself and it definately wasn't an a dim operator error!

apparently there is a bug with my version of (AIX 5.2.003) and this issue was fixed in 5.2.004.

basically if the block_size of the tape device is set to 512 the mksysb rewinds itself after each writing phase and overwrites what it just saved. this meant that only the final phase of the backup was effectively being saved.

changing the block size of the tape device to 1024 solved my problem. i now have bootable backup tapes with a savevg appended.

thanks for your help,

james.
 

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 on and off for about a... (1 Reply)
Discussion started by: boredazfcuk
1 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
BACKUP_RESTOREDB(8)					       AFS Command Reference					       BACKUP_RESTOREDB(8)

NAME
       backup_restoredb - Restores a saved copy of the Backup Database

SYNOPSIS
       backup restoredb [-portoffset <TC port offset>]
	   [-localauth] [-cell <cell name>] [-help]

       backup res [-p <TC port offset>]
	   [-l] [-c <cell name>] [-h]

DESCRIPTION
       The backup restoredb command restores to the Backup Server machine's local disk a version of the Backup Database previously written to tape
       by using the backup savedb command.

       (If the "FILE YES" instruction appears in the /var/lib/openafs/backup/CFG_device_name file associated with the specified port offset, then
       the backup restoredb command restores data from the backup data file listed for that port offset in the Tape Coordinator's
       /var/lib/openafs/backup/tapeconfig file, instead of from tape. For the sake of clarity, the following text refers to tapes only, but the
       Backup System handles backup data files in much the same way.)

       The most common reason to run this command is to replace a corrupted or otherwise damaged Backup Database; use the backup dbverify command
       to determine the database's status. The command can also be used to restore records that were removed from the database when the -archive
       argument was included on a previous backup savedb command.

       The command completely overwrites the existing Backup Database records for volume sets, Tape Coordinators, and the dump hierarchy with the
       corresponding information from the saved version. It does not overwrite existing dump records, but instead interleaves the records from the
       copy being restored. If both the existing database (on the Backup Server machine's disk) and the copy being restored include a record about
       the same dump, the Backup System retains the one in the existing database.

       The Tape Coordinator's default response to this command is to access the first tape it needs by invoking the "MOUNT" instruction in the
       local /var/lib/openafs/backup/CFG_device_name file, or by prompting the backup operator to insert the tape if there is no "MOUNT"
       instruction. However, if the "AUTOQUERY NO" instruction appears in the CFG_device_name file, or if the issuer of the butc command included
       the -noautoquery flag, the Tape Coordinator instead expects the tape to be in the device already. If it is not, or is the wrong tape, the
       Tape Coordinator invokes the "MOUNT" instruction or prompts the operator. It also invokes the "MOUNT" instruction or prompts for any
       additional tapes needed to complete the restore operation; the backup operator must arrange to provide them.

CAUTIONS
       If the database is corrupted, do not attempt to restore a saved database on top of it. Instead, use the instructions for repairing a
       corrupted database in the OpenAFS Administration Guide chapter about performing backup operations.

OPTIONS
       -portoffset <TC port offset>
	   Specifies the port offset number of the Tape Coordinator handling the tapes for this operation.

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following example shows the Backup Database being restored from the Tape Coordinator with port offset 0:

	  % backup restoredb

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
       onto a server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       butc(5), backup(8), backup_dbverify(8), backup_savedb(8), butc(8)

       The OpenAFS Administration Guide at <http://docs.openafs.org/AdminGuide/>.

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26						       BACKUP_RESTOREDB(8)
All times are GMT -4. The time now is 10:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy