AIX 7.2 MKSYSB Backup and Restore Best Practices?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 1 Week Ago
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 multi-path FC connection to a SAN and that is backed up separately. The rootvg does not boot off SAN, it has two internal NVMe disks.

In the event that rootvg is corrupt and we need to restore rootvg , the process would be to modify the bootlist and reboot into SMS via SSH/Console or using the ASMI service processor.

Are there any critical steps we need to do pre or post-rootvg restore?
  • Currently the rootvg is mirrored, once restored will it remain mirrored?
  • Will i need to mess with the bootlist at all?
  • Will the configuration of the external filesystems be preserved and mounted ready to use (if set to auto-mount at boot)?
  • Running a power system in 24x7 prodution after a MKSYSB restore is viable or should one plan for a fresh re-install of AIX from install media at some point?
  • Does one need access to AIX 7.2 install media at any point during a MKSYSB restore?

The Power9 system has a LTO tape library which is where I was going to write the MKSYSB backup to and boot off, there is no CD-ROM but there is USB - is it possible to boot MKSYSB off USB? Any cons or pros going with tape vs. USB? Most of the guides out there refer to a tape or dvd, though many of them were written years ago.

My plan is to learn from experience and create a MKSYSB via mksysb -iev /dev/rmt0, corrupt rootvg by rm -rf /etc, and reboot. I am pretty sure it will become very unhappy with a missing /etc - so proceed with another reboot (via FPO using Control Panel or ASMI) and boot to SMS for a MKSYSB restore.

Mainly looking for best practices / tips / suggestions around the process.
# 2  
Old 1 Week Ago
Hello c3rb3rus,

The AIX tool mksysb is very good and tries to do a lot for you. To answer your specific questions:-
  • Currently the rootvg is mirrored, once restored will it remain mirrored?
    The process reads a file that it is sensible to recreate before your run mksysb (or its created if it does not exist) called mkszfile The intermediate steps in building the recoverable image will include definitions for all sorts of things including the rootvg layout. Whilst you might not get it back block for block, the volume group will be restored to provide the defined capabilities. If you are mirrored, then a restore will require you to use at least two disks and it will recreate the mirror.
  • Will i need to mess with the bootlist at all?
    The bootlist should be set up for you during the restore process. It is easy to check afterwards anyway with bootlist -o normal so you can run it now to have a look and then be familiar with it after a recovery. Do you have both disks currently in the boot list? If it's just hdisk0 and you lose that, it will be awkward to get running on (for instance) hdisk1
    You might also need to consider splitting the dump logical volume. I've struggled (maybe I was doing it wrong Smilie) where a system had sysdumpdevlv (or whatever it's now called) on a failed disk, whether it was mirrored or not. I set up the dump devices as two separate LVs, one on each PV. This can be difficult to enforce though if someone later comes along and either mirrors them, extends them or moves them both to the same disk.
  • Will the configuration of the external filesystems be preserved and mounted ready to use (if set to auto-mount at boot)?
    If the non-rootvg VGs are available when the server boots, it should recognise them (the VG serial number) and bring them online. If it refuses, you should be able to use importvg to bring them on. It can be awkward if you have sub-mounted filesystems from different volume groups.
  • Running a power system in 24x7 prodution after a MKSYSB restore is viable or should one plan for a fresh re-install of AIX from install media at some point?
    The mksysb should recreate everything you need. No further re-install should be required. If you rely on a third party backup product or home grown scripts, make sure that you have a small filesystem in the rootvg that contains everything you need to get them running again so you can restore your data if you have to move to a separate (cold) site. This may not need the backup catalogs if you can read these back in from the media. You would, of course, need to know your most recent backup media, so dare I suggest paper listing are sent out with any off-site process.
  • Does one need access to AIX 7.2 install media at any point during a MKSYSB restore?
    If you are recovering to dissimilar hardware then it would be good to have the install media available, however if you are using a recovery service company, they would normally help you through this anyway. If you are recovering over the existing machine then you have already got everything you need.

Further to this, should you choose to fire up a clone of your OS for whatever reason, you need to ensure that the network cable (physical or virtual) is unplugged else you may get IP conflicts as the clone server boots because everything that you have configured should be brought back. You can get access via the console and change the settings before connecting the network up again.



I hope that this helps.

Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
c3rb3rus (1 Week Ago)
# 3  
Old 1 Week Ago
Thanks for the very detailed response Robin, this relieves some of my "unknown pain points" around the process. The P9 is in pre-production so I wanted to take the time to blow away rootvg and restore it (for documentation purposes), better now than when the system is live and something goes sideways resulting in needing to restore rootvg for which I have no proven guide to rely on.

My plan is to restore MKSYSB to the same hardware and document, so should not have any IP conflicts and such.

Into the unknown I go Smilie
# 4  
Old 1 Week Ago
I cannot seem to boot off tape in SMS.

I created a MKSYSB backup to tape using: mksysb -iev /dev/rmt0
Verified it using: lsmksysb -l -f /dev/rmt0

Booted to SMS menu, selected Tape as the boot device and set Media Type to SCSI, it throws an error: The selected devices were not detected in the system.

I then try using the "List All Devices" for Media Type, it does a scan and comes back with the tape drive....

Code:
PowerPC Firmware
 Version FW910.20 (VL910_122)
 SMS (c) Copyright IBM Corp. 2000,2017 All rights reserved.
-------------------------------------------------------------------------------
 Select Device
 Device  Current  Device
 Number  Position  Name
 1.        -      FC Tape drive
 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key: 1

This seems to work in that the next screen I get a select task option where I choose the Service Media Boot, this fails with: No Operating System Found

I am stuck, seems that I cannot boot off the newly created MKSYSB tape.

Any ideas what I can try? I have since escaped from here and booted back to AIX normally.
# 5  
Old 6 Days Ago
Opened a ticket with IBM, according to the ATAPE readme it states that:
  • Booting from a SAS attached tape drive is not supported on Power servers.
  • Booting from a Fibre attached tape drive is not supported on Power servers.

So there goes being able to do a MKSYSB restore from a tape backup. yikes.
# 6  
Old 5 Days Ago
Do you have a DVD-RAM drive? That's an option (if I can remember the syntax and process)

Alternately, you can back up over the network to a NIM server, then recover form that.




Do either of these give you an option?
Robin
# 7  
Old 5 Days Ago
I don't have a cd-rom, but i do have a a few USB 3.0 inputs and after a call to IBM the route I went with was to create a USB MKSYSB (mksysb -iev /dev/usbms0), was able to restore the rootvg using this method.
This User Gave Thanks to c3rb3rus For This Post:
rbatte1 (4 Days Ago)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Cloning a system via mksysb backup from one system and restore to new system gull05 AIX 4 03-13-2016 03:02 PM
Restore mksysb image on cloned LPAR snchaudhari2 AIX 1 06-04-2013 02:40 AM
[Tip] Backup and restore on AIX MichaelFelt AIX 1 02-26-2013 08:19 AM
Profile environment variables lost after mksysb restore stephnane AIX 2 05-31-2012 11:30 AM
MKSYSB backup dwiravi AIX 4 05-18-2010 02:37 PM
How to restore from mksysb backup AIXlearner AIX 2 05-30-2009 03:57 AM
mksysb restore - Wrong OS level for restore pobman AIX 0 12-10-2008 10:36 PM
NIM client mksysb restore kah00na AIX 10 08-29-2008 10:58 AM
How to list files in AIX 3.2 mksysb backup tape victorcheung AIX 4 07-11-2008 05:53 AM
AIX 5.2 Maksysb Image backup/restore dayinthelife AIX 3 06-16-2008 11:13 AM
mksysb restore ( vgs on SAN disks) Skyybugg AIX 0 04-18-2007 06:07 PM
AIX backup and restore quickfirststep AIX 3 09-07-2006 06:59 PM
AIX backup --> Linux Restore jauru AIX 2 07-11-2006 04:40 AM
mksysb restore errors Student37 AIX 1 01-05-2005 11:33 AM
AIX + backup or mksysb (yes i did a search) Optimus_P UNIX for Dummies Questions & Answers 5 08-08-2001 06:16 PM