DR using a mksysb image on disk.


 
Thread Tools Search this Thread
Operating Systems AIX DR using a mksysb image on disk.
# 1  
Old 07-07-2015
DR using a mksysb image on disk.

This may be a dumb question and the more I think about it the worst it seems!!

I have inherited some standalone systems where they are using the mksysb command to create a disk file image; this image is then backed up to Networker.

My dumb question is how would we go about restoring this image should the server need to be replaced (i.e. internal disks as well)?

The estate doesn't have a NIM and the servers are old enough that we have no HMC or Virtualisation.

Any ideas would be gratefully received.

Cheers
Bryan
Bryan Hardwick
# 2  
Old 07-07-2015
Quote:
Originally Posted by gz3xzf
This may be a dumb question and the more I think about it the worst it seems!!
As a matter of fact, there are no dumb questions - just dumb answers.

Quote:
Originally Posted by gz3xzf
I have inherited some standalone systems where they are using the mksysb command to create a disk file image; this image is then backed up to Networker.

My dumb question is how would we go about restoring this image should the server need to be replaced (i.e. internal disks as well)?

In fact this is a very good question! Backups are a worthless waste of space if they can't be restored so it is prudent to make sure they indeed can be.

I suppose you are not very proficient with AIX so i will start with some basics:

An mksysb image is a (bootable) backup of the systems default volume group - rootvg, where all the relevant filesystems - "/", "/usr", "/var", etc... are located. Do a

Code:
lsvg -l rootvg

to find out what exactly is in your rootvg. All this is backed up in such an image. There is a command "savevg", which does similar backups for any (non-rootvg) volume group which you may want to read up about.

Still, there is more to an mksysb: it also contains boot code and all the means to restore it to an empty hardware. In principle you can boot from an mkysb image and have the complete system (minus application data in VGs other than the rootvg) restored completely, including network interfaces, users, groups, print queues and whatever you have configured on your system.

So, to answer your question: from a working mksysb image you are able to restore the complete system with every customisation. Alas, there is a catch: You can direct the image to every device or a file like you do, but if you do not take the mksysb either from NIM or to a tape as destination the boot code will not be included. You will need to boot from a generic boot device (system CD-ROM, etc.) and then use the mksysb image to restore the system.

You may want to try this out on spare hardware to understand the process, before you really need to restore a system in the wake of some catastrophe.

I hope this helps.

bakunin
# 3  
Old 07-08-2015
mksysb output is only 'bootable' when written to a bootable device (e.g., a tape).

mkcd is a command that can be used to create ISO files (or write directly to a cd/dvd if one is available) that can later be burned to a cd/dvd.

When mksysb is written to a file (e.g., to a NIM server) the NIM server can create a special SPOT that can be used to boot from and then restore the complete mksysb image.

Last edited by rbatte1; 07-08-2015 at 01:20 PM.. Reason: Corrected spelling
# 4  
Old 07-08-2015
you can try to install a new AIX system, restore old mksysb with alt_disk_mksysb to another disk in the system and boot from it. But I'm not sure if you will be able to do it, if the new and old AIX versions are different. I did it only once, but both AIX versions were the same. And in my case the mksysb backup was made from NIM. As bakunin write, you might have mksysb image without boot code.
# 5  
Old 07-08-2015
I suppose it goes back to "When you try to boot what will you see?" If you are using a partitioned server or a whole physical server it should not matter either way. If you can get the console opened and then power on/activate you would (if there are no usable boot devices) drop into the SMS menus. You can then probe to see what devices are visible. You can force this by pressing the appropriate key at the right time during the start-up. Do you know how to do that?

I suppose one question to ask is "Do you have a mirrored pair of disks for your root volume group?" which should give you some resilience. If you don't know, then the output from the following would be useful:-
Code:
lsvg -p rootvg
lsvg -l rootvg
lscfg -vl hdisk0
bootlist -om normal

As has been commented, you really need to force the mksysb off the server you may need to recover such that you can boot from it, so tape, DVD or NIM server (yes, I know you haven't got NIM) because then you can select that device from the SMS menus to boot from and (hopefully) it will all recover.


If you have other volume groups, then we can work on how to save the structure and/or contents. If you have Networker backing up data over the network Smilie, then you will probably just want the structure so you can recover that then restore your data.

The output from:-
Code:
lsvg
lsvg | grep -v rootvg | while read vg
do
  lsvg -p $vg
  lsvg -l $vg
done

.... will help us plan. The best place to store the structure information is somewhere in the root volume group so that it is recovered from a mksysb when you really need it.

if you can elaborate on what you have then I'm sure we can help. It would also be useful to know if the recovery would be to the same/similar server or if there are going to be differences, e.g. do you have LVM mirrored disks and the recovery server has hardware mirrors so you only have half the storage etc.

Don't worry if you don't have all the answers yet. We can work on them later.


Kind regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Installation through mksysb image backup

Hi Experts, I am very new to AIX, I have a mksysb image in one of my aix server (V6), I would like to install this mksysb image on newly lpar. Is it possible without tape and NIM? Advice would be appreciated. Regards, Rockie (11 Replies)
Discussion started by: aix.rockie
11 Replies

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

3. AIX

bootable mksysb image on

i have been given a bootable cd/dvd, that i install a ibm aix 185 workstation with, i want to make a nim mksysb resource from that, the following is a listing for the root file structure of the cd/dvd, seems someone took a mksysb of a built ibm aix machine and did mkcd -L -S -I and setup the... (2 Replies)
Discussion started by: asyed123
2 Replies

4. AIX

check whether a mksysb image is bootable or not?

Hi, Can any one please tell me the method to check whether a mksysb image which is in the server is bootable or not. :confused: Thanks in advance, Anoop (1 Reply)
Discussion started by: anoopraok
1 Replies

5. AIX

mksysb file image

Hello, I have an mksysb image in my disk, created like: # mksysb -i /mnt/backup/lpar2.image I want to know if this image could be copied to a tape and make it a boot image. Thanks Enzote (3 Replies)
Discussion started by: enzote
3 Replies

6. Linux

disk image

when i made image of my fedora9 disk it had 18 GB. my new drive has 60GB. How can i expand the installed image to fit the entire new disk?. (2 Replies)
Discussion started by: ZG9
2 Replies

7. AIX

How do I create a bootable mksysb image file

I have several systems which require software maintenance several times a year. After the software maintenance, it is required that we make two system tapes for DR purposes. The creation of these system tapes takes anywhere from 1-1.5 hours because of the performance of the tape drives. What I... (7 Replies)
Discussion started by: acascianelli
7 Replies

8. Solaris

How to create a disk image

I have a whole bunch of solaris machines. How do i create an image so i dont have to keep doing a reload and. In the pC world we have ghost what about the solaris world? (3 Replies)
Discussion started by: frankkahle
3 Replies

9. Filesystems, Disks and Memory

Disk image !!

Hi all, I have a SCSI hard disk drive (2GB) I'm installing on it solaris 5 and some other applications on a sun sparc workstation, I made an image file of this H.D using Norton Ghost 6, then I restored this image file on another H.D.D (4GB), I tried to boot the sun sparc workstation with this new... (0 Replies)
Discussion started by: wesweshahaha
0 Replies

10. AIX

mksysb and boot.image

hello i saved my system this morning, mksysb tape, and i have the message: "boot.image exceeded the size....." i have not the end because the message is disappeared. where can i find the mksysb message in a log ? the message is scary ? thank you (6 Replies)
Discussion started by: pascalbout
6 Replies
Login or Register to Ask a Question