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
PERLOS400(1)						 Perl Programmers Reference Guide					      PERLOS400(1)

NAME
README.os400 - Perl version 5 on OS/400 DESCRIPTION
This document describes various features of IBM's OS/400 operating system that will affect how Perl version 5 (hereafter just Perl) is compiled and/or runs. By far the easiest way to build Perl for OS/400 is to use the PASE (Portable Application Solutions Environment), for more information see <http://www.iseries.ibm.com/developer/factory/pase/index.html> This environment allows one to use AIX APIs while programming, and it provides a runtime that allows AIX binaries to execute directly on the PowerPC iSeries. Compiling Perl for OS/400 PASE The recommended way to build Perl for the OS/400 PASE is to build the Perl 5 source code (release 5.8.1 or later) under AIX. The trick is to give a special parameter to the Configure shell script when running it on AIX: sh Configure -DPASE ... The default installation directory of Perl under PASE is /QOpenSys/perl. This can be modified if needed with Configure parameter -Dprefix=/some/dir. Starting from OS/400 V5R2 the IBM Visual Age compiler is supported on OS/400 PASE, so it is possible to build Perl natively on OS/400. The easier way, however, is to compile in AIX, as just described. If you don't want to install the compiled Perl in AIX into /QOpenSys (for packaging it before copying it to PASE), you can use a Configure parameter: -Dinstallprefix=/tmp/QOpenSys/perl. This will cause the "make install" to install everything into that directory, while the installed files still think they are (will be) in /QOpenSys/perl. If building natively on PASE, please do the build under the /QOpenSys directory, since Perl is happier when built on a case sensitive filesystem. Installing Perl in OS/400 PASE If you are compiling on AIX, simply do a "make install" on the AIX box. Once the install finishes, tar up the /QOpenSys/perl directory. Transfer the tarball to the OS/400 using FTP with the following commands: > binary > site namefmt 1 > put perl.tar /QOpenSys Once you have it on, simply bring up a PASE shell and extract the tarball. If you are compiling in PASE, then "make install" is the only thing you will need to do. The default path for perl binary is /QOpenSys/perl/bin/perl. You'll want to symlink /QOpenSys/usr/bin/perl to this file so you don't have to modify your path. Using Perl in OS/400 PASE Perl in PASE may be used in the same manner as you would use Perl on AIX. Scripts starting with #!/usr/bin/perl should work if you have /QOpenSys/usr/bin/perl symlinked to your perl binary. This will not work if you've done a setuid/setgid or have environment variable PASE_EXEC_QOPENSYS="N". If you have V5R1, you'll need to get the latest PTFs to have this feature. Scripts starting with #!/QOpenSys/perl/bin/perl should always work. Known Problems When compiling in PASE, there is no "oslevel" command. Therefore, you may want to create a script called "oslevel" that echoes the level of AIX that your version of PASE runtime supports. If you're unsure, consult your documentation or use "4.3.3.0". If you have test cases that fail, check for the existence of spool files. The test case may be trying to use a syscall that is not implemented in PASE. To avoid the SIGILL, try setting the PASE_SYSCALL_NOSIGILL environment variable or have a handler for the SIGILL. If you can compile programs for PASE, run the config script and edit config.sh when it gives you the option. If you want to remove fchdir(), which isn't implement in V5R1, simply change the line that says: d_fchdir='define' to d_fchdir='undef' and then compile Perl. The places where fchdir() is used have alternatives for systems that do not have fchdir() available. Perl on ILE There exists a port of Perl to the ILE environment. This port, however, is based quite an old release of Perl, Perl 5.00502 (August 1998). (As of July 2002 the latest release of Perl is 5.8.0, and even 5.6.1 has been out since April 2001.) If you need to run Perl on ILE, though, you may need this older port: <http://www.cpan.org/ports/#os400> Note that any Perl release later than 5.00502 has not been ported to ILE. If you need to use Perl in the ILE environment, you may want to consider using Qp2RunPase() to call the PASE version of Perl. AUTHORS
Jarkko Hietaniemi <jhi@iki.fi> Bryan Logan <bryanlog@us.ibm.com> David Larson <larson1@us.ibm.com> perl v5.14.2 2011-09-26 PERLOS400(1)
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy