Sponsored Content
Full Discussion: Mksysb and Savevg woes
Top Forums UNIX for Dummies Questions & Answers Mksysb and Savevg woes Post 302207138 by zaxxon on Thursday 19th of June 2008 08:17:25 AM
Old 06-19-2008
There is an AIX subforum here - post AIX issues there next time please.

Some years back I had to get some special files under /dev back, which did not come back from the restore of the mksysb automatically. Here is what I did. The text and comments are in german, but I am too lazy to translate it now Smilie You will see by the commands, what I did; hope it helps Smilie

Code:
Clonen von Rechnern:
====================

Sichern:
--------

- rootvg mit mksysb sichern >>> wichtig: Create Map files?  YES <<<
- Andere VGs (im Bsp. datavg) wie folgt sichern:

   savevg -imf /dev/rmt0 datavg

Restore:
--------

- mksysb zurücksichern
- Restore von /dev:

   cd /tmp
   [tctl -f /dev/rmt0 rewind		     #Band an Anfang spulen
   [chdev -l rmt0 -a block_size=512	     #Blockgröße für Streamer auf 512bytes
   [restore -s2 -xqdvf /dev/rmt0.1 ./blksize  #Blockgröße des mksysb-Tapes ermitteln
   [cat ./blksize
   chdev -l rmt0 -a block_size=xxx	     #Blockgröße die in 'blksize' steht setzen
   tctl -f /dev/rmt0 rewind
   restore -s4 -xqdvf /dev/rmt0.1 ./dev	     #/dev in /tmp/dev zurück
   find . -print | cpio -dmpv /dev	     #Kopieren von ./dev nach /dev ohne zu über-
					     #schreiben!
					     #Allerdings sollte diese nachträgl. zurück-
					     #gesicherten Devices auf Ihre Rechte über-
					     #prüft werden. Habe das Flag zum Bewahren
					     #der ursprünglichen Rechte nich gefunden.

- Andere VGs zurücksichern (Bsp.: datavg):

   exportvg datavg			     #Alte Files/Info der datavg löschen
   restvg -qf /dev/rmt0			     #Rücksichern der datavg ins System

- Anschließend den cfgmgr starten

 

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_APROPOS(8)					       AFS Command Reference						 BACKUP_APROPOS(8)

NAME
       backup_apropos - Displays each help entry containing a keyword string

SYNOPSIS
       backup apropos -topic <help string> [-help]

       backup ap -t <help string> [-h]

DESCRIPTION
       The backup apropos command displays the first line of the online help entry for any backup command that has in its name or short
       description the string specified by the -topic argument.

       To display the syntax for a command, use the backup help command.

OPTIONS
       -topic <help string>
	   Specifies the keyword string to match, in lowercase letters only.  If the string is more than a single word, surround it with double
	   quotes (" ") or other delimiters.

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

OUTPUT
       The first line of a command's online help entry names it and briefly describes its function. This command displays the first line for any
       backup command where the string specified with the -topic argument is part of the command name or first line.

EXAMPLES
       The following example lists all backup commands that include the word "tape" in their names or short descriptions:

	  % backup apropos tape
	  labeltape: label a tape
	  readlabel: read the label on tape
	  scantape: dump information recovery from tape
	  status: get tape coordinator status

PRIVILEGE REQUIRED
       None

SEE ALSO
       backup(8), backup_help(8)

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_APROPOS(8)
All times are GMT -4. The time now is 04:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy