Sponsored Content
Full Discussion: Mksysb restore problem
Top Forums UNIX for Beginners Questions & Answers Mksysb restore problem Post 303040891 by Necronomic on Friday 8th of November 2019 08:05:45 AM
Old 11-08-2019
For creating mksysb backup I use this command:

Code:
root@asrv11lpar3:/ # nim -o define -t mksysb -a mk_image=yes -a mksysb_flags=-i -a source=asrv11lpar11 -a location=/nim/mksysb/mksysb--asrv11lpar11 -a server=master mksysb--asrv11lpar11

+---------------------------------------------------------------------+
                System Backup Image Space Information
              (Sizes are displayed in 1024-byte blocks.)
+---------------------------------------------------------------------+

Required = 7909413 (7725 MB)    Available = 210739520 (205801 MB)



Creating information file (/image.data) for rootvg.

Creating list of files to back up.
.
Backing up 123070 files..............................
51920 of 123070 files (42%)...............

123070 of 123070 files (100%)
0512-038 savevg: Backup Completed Successfully.
0042-008 NIMkid: Request denied - Method_req

root@asrv11lpar3:/ # echo $?
0

Nim resources and restore I do by smit.

Mksysb resource:
Code:
mkres -N 'asrv11lpar11_mksysb' -t 'mksysb' -s 'master' -l '/nim/mksysb/mksysb--asrv11lpar11'  '-T' '-A'

Code:
                                                                                                     Define a Resource

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* Resource Name                                      [asrv11lpar11_mksysb]
* Resource Type                                       mksysb
* Server of Resource                                 [master]                                                                                                                                                           +
* Location of Resource                               [/nim/mksysb/mksysb--asrv11lpar11]                                                                                                                                  /
  NFS Client Security Method                         []                                                                                                                                                                 +
  NFS Version Access                                 []                                                                                                                                                                 +
  Comments                                           []

  Source for Replication                             []                                                                                                                                                                 +
                  -OR-
  System Backup Image Creation Options:
    CREATE system backup image?                       no                                                                                                                                                                +
    NIM CLIENT to backup                             []                                                                                                                                                                 +
    PREVIEW only?                                     no                                                                                                                                                                +
    IGNORE space requirements?                        no                                                                                                                                                                +
    EXPAND /tmp if needed?                            no                                                                                                                                                                +
    Create MAP files?                                 no                                                                                                                                                                +
    Backup extended attributes?                       yes                                                                                                                                                               +
    Number of BLOCKS to write in a single output     []                                                                                                                                                                  #
     (leave blank to use system default)
    Use local EXCLUDE file?                           no                                                                                                                                                                +
     (specify no to include all files in backup)
                  -OR-
    EXCLUDE_FILES resource                           []                                                                                                                                                                 +
     (leave blank to include all files in backup)
    Create backup using snapshots?                    yes                                                                                                                                                               +
    Backup encrypted files?                           yes                                                                                                                                                               +
    Backup DMAPI filesystem files?                    yes                                                                                                                                                               +
  Disable software packing of backup?                 no                                                                                                                                                                +
  Use exclude_packing.rootvg file?                    no                                                                                                                                                                +

F1=Help                                               F2=Refresh                                             F3=Cancel                                              F4=List
F5=Reset                                              F6=Command                                             F7=Edit                                                F8=Image
F9=Shell                                              F10=Exit                                               Enter=Do


SPOT resource:
Code:
mkres -N 'asrv11lpar11_spot' -t 'spot' -s 'master' -S 'asrv11lpar11_mksysb' -l '/nim/spot/' '-x' -f '' -f '' -f '' -f 'g' -f '' -f ''

Code:
                                                                                                     Define a Resource

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* Resource Name                                      [asrv11lpar11_spot]
* Resource Type                                       spot
* Server of Resource                                 [master]                                                                                                                                                           +
  Source of Install Images                           [asrv11lpar11_mksysb]                                                                                                                                              +
* Location of Resource                               [/nim/spot/]                                                                                                                                                        /
  NFS Client Security Method                         []                                                                                                                                                                 +
  NFS Version Access                                 []                                                                                                                                                                 +
  Expand file systems if space needed?                yes                                                                                                                                                               +
  Comments                                           []

  installp Flags
  PREVIEW only? (install operation will NOT occur)    no                                                                                                                                                                +
  COMMIT software updates?                            no                                                                                                                                                                +
  SAVE replaced files?                                yes                                                                                                                                                               +
  AUTOMATICALLY install requisite software?           yes                                                                                                                                                               +
  OVERWRITE same or newer versions?                   no                                                                                                                                                                +
  VERIFY install and check file sizes?                no                                                                                                                                                                +

F1=Help                                               F2=Refresh                                             F3=Cancel                                              F4=List
F5=Reset                                              F6=Command                                             F7=Edit                                                F8=Image
F9=Shell                                              F10=Exit                                               Enter=Do


Restore:
Code:
bosinst -t 'asrv12lpar12' -r 'mksysb' -p 'asrv11lpar11_spot' -m 'asrv11lpar11_mksysb' '-L'  '-j' -f 'c' -f 'N' -f 'g' -f 'X' -f '' -f '' -f'' -f ''

Code:
                                                                                  Install the Base Operating System on Standalone Clients

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[TOP]                                                   [Entry Fields]
* Installation Target                                 asrv12lpar12
* Installation TYPE                                   mksysb
* SPOT                                                asrv11lpar11_spot
  LPP_SOURCE                                         []                                                                                                                                                                 +
  MKSYSB                                              asrv11lpar11_mksysb

  BOSINST_DATA to use during installation            []                                                                                                                                                                 +
  IMAGE_DATA to use during installation              []                                                                                                                                                                 +
  RESOLV_CONF to use for network configuration       []                                                                                                                                                                 +
  Customization SCRIPT to run after installation     []                                                                                                                                                                 +
  Customization FB Script to run at first reboot     []                                                                                                                                                                 +
    ACCEPT new license agreements?                   [yes]                                                                                                                                                              +
  Remain NIM client after install?                   [yes]                                                                                                                                                              +
  PRESERVE NIM definitions for resources on          [yes]                                                                                                                                                              +
    this target?

  FORCE PUSH the installation?                       [no]                                                                                                                                                               +

  Initiate reboot and installation now?              [yes]                                                                                                                                                              +
    -OR-
  Set bootlist for installation at the               [no]                                                                                                                                                               +
     next reboot?

  Additional BUNDLES to install                      []                                                                                                                                                                 +
    -OR-
  Additional FILESETS to install                     []                                                                                                                                                                 +
    (bundles will be ignored)

  installp Flags
    COMMIT software updates?                         [yes]                                                                                                                                                              +
    SAVE replaced files?                             [no]                                                                                                                                                               +
    AUTOMATICALLY install requisite software?        [yes]                                                                                                                                                              +
    EXTEND filesystems if space needed?              [yes]                                                                                                                                                              +
    OVERWRITE same or newer versions?                [no]                                                                                                                                                               +
    VERIFY install and check file sizes?             [no]                                                                                                                                                               +
    ACCEPT new license agreements?                   [no]                                                                                                                                                               +
      (AIX V5 and higher machines and resources)
    Preview new LICENSE agreements?                  [no]                                                                                                                                                               +

  Group controls (only valid for group targets):
    Number of concurrent operations                  []                                                                                                                                                                  #
    Time limit (hours)                               []                                                                                                                                                                  #

  Schedule a Job                                     [no]                                                                                                                                                               +
  YEAR                                               []                                                                                                                                                                  #
  MONTH                                              []                                                                                                                                                                 +#
  DAY (1-31)                                         []                                                                                                                                                                 +#
  HOUR (0-23)                                        []                                                                                                                                                                 +#
  MINUTES (0-59)                                     []                                                                                                                                                                 +#

  Open a console window?                             [no]                                                                                                                                                               +
  Set the DISPLAY environment variable               []
[BOTTOM]

F1=Help                                               F2=Refresh                                             F3=Cancel                                              F4=List
F5=Reset                                              F6=Command                                             F7=Edit                                                F8=Image
F9=Shell                                              F10=Exit                                               Enter=Do

All smit jobs ends with OK state.
This User Gave Thanks to Necronomic For This Post:
 

10 More Discussions You Might Find Interesting

1. AIX

mksysb restore errors

goodafternoon people. here are a couple of error messages I get during restore of mksysb from a AIX F80 to a F50. I have verified blocksize and have set them to 1024 which matches both the systems. backup system is F80 and restore system is F50. Both are 4.3.3 ML10 level Upon executing via... (1 Reply)
Discussion started by: Student37
1 Replies

2. AIX

mksysb restore ( vgs on SAN disks)

I have my application vendor looking at this but I want to do my own investigation. I restored from mksysb and I see my vgs that contain my internal disks. But I do not see my vgs that contain disks from the SAN. This scares me .. {{ Ha, ha!! My AIX expert boss just told me I have nothing... (0 Replies)
Discussion started by: Skyybugg
0 Replies

3. AIX

NIM client mksysb restore

Can a NIM client mksysb restore be performed via NIM (smitty nim) without the NIM client machine having the NIM server's IP and hostname in its /etc/hosts file? (10 Replies)
Discussion started by: kah00na
10 Replies

4. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

5. AIX

How to restore from mksysb backup

system is not booting ... i want to restore from mksysb backup. (2 Replies)
Discussion started by: AIXlearner
2 Replies

6. AIX

Profile environment variables lost after mksysb restore

Hello. I restore an mksysb image (AIX 5.3 TL 11) from one model to another model of Power (power 5 to power 7). Everything seems good, but I lost environment variables of at least one of a user profile. The result of the "env" command show me great differences between two servers, first of them... (2 Replies)
Discussion started by: stephnane
2 Replies

7. AIX

Restore mksysb image on cloned LPAR

Hi Folks, How to restore mksysb image on LPAR which is already having cloned AIX OS installed on hdisk0 (nothing configured, only full partition image is sitting on hdisk0) Let me know. Thank a lot. (1 Reply)
Discussion started by: snchaudhari2
1 Replies

8. AIX

"Please mount volume 2 on /dev/rmt0.1" message during mksysb restore

Dear all First of all, my English not so good. We have p52a (production server) and p52a (test server). Tape drives are VXA2. When both servers were AIX 5.3, mksysb on production server and restoring to test server was OK. The production server was AIX 5.3 and recently upgraded to... (3 Replies)
Discussion started by: fifa15pc
3 Replies

9. AIX

Restore file from mksysb file

Hello, I have a mksysb backup OS image. I can restore the file from there, but the issue is the restored file include the whole path :confused: listvgbackup -f /backup/xxx/mksysb.xxx.20190316 -r -s -d /home/aaa/ ./home/bbb/nohup.out I plan to restore nohup.out from /home/bbb/nohup.out to... (5 Replies)
Discussion started by: Phat
5 Replies

10. AIX

AIX 7.2 MKSYSB Backup and Restore Best Practices?

Hello, Running AIX 7.2 on Power9 bare-metal (no LPAR and no NIM server), in the process of creating a guide on MKSYSB process. I understand that MKSYSB is a backup of the rootvg and we can exclude stuff via exclude.rootvg file, the rest of the data volumes are mapped to the system as LUNs via... (7 Replies)
Discussion started by: c3rb3rus
7 Replies
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy