AIX 7.2 MKSYSB Backup and Restore Best Practices?


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems AIX AIX 7.2 MKSYSB Backup and Restore Best Practices?
# 1  
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  
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:
# 3  
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  
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  
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  
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  
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:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #300
Difficulty: Easy
The basis for the first versions of the Slackware Linux distributions was Debian Linux.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies

2. AIX

[Tip] Backup and restore on AIX

Pretty penny's. Just remember that mksysb and savevg are just front-ends for backup. In other words, backups on AIX are organized by volume groups. mksysb is specialized for rootvg and savevg is used for other volume groups. Ignoring that rootvg also creates files needed to boot a system... (1 Reply)
Discussion started by: MichaelFelt
1 Replies

3. 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

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 list files in AIX 3.2 mksysb backup tape

Hi, Can anyone tell how to list files in a AIX 3.2 mksysb backup tape. Thanks! Victor Cheung (4 Replies)
Discussion started by: victorcheung
4 Replies

6. AIX

AIX 5.2 Maksysb Image backup/restore

Hello, I am new to AIX, as I was primarily working on HP-UX servers. We have some production servers and a couple of lab servers. We have upgraded over 40 servers from 5.2 to 5.3 running a particular application(1) using the golden 5.3 upgraded servers copy of makesysb. We have only two... (3 Replies)
Discussion started by: dayinthelife
3 Replies

7. AIX

AIX backup and restore

Hello, Some background so you can see what I'm trying to do on AIX: In Windows its possible to partition a single hard drive into 2 separate logical paritions which may appear as a C and a D drive. It is then possible to to use 3rd party software such as Power Quest Drive Image to create a... (3 Replies)
Discussion started by: quickfirststep
3 Replies

8. AIX

AIX backup --> Linux Restore

Hi all, I have a large number of backup tapes which were originally written with the AIX "backup" command. I now need to convert these to "tar" format, but unfortunately I no longer have access to an AIX machine. I have been able to connect the old tape drive (3590) to a Linux box and it works... (2 Replies)
Discussion started by: jauru
2 Replies

9. 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

10. UNIX for Dummies Questions & Answers

AIX + backup or mksysb (yes i did a search)

Whats up guys. I dont ask many questions but this time i need a quick one answerd. NOS: AIX 4.3.3 and 4.3.2 BOX: RS/6000 F50 i have 12 pv's (mirrored) and 2 vg's and i want them both backed up @ once on one tape drive so i can do it via cron. I have looked at mksysb and backup. my main... (5 Replies)
Discussion started by: Optimus_P
5 Replies

Featured Tech Videos