mksysb restoration using NIM


 
Thread Tools Search this Thread
Operating Systems AIX mksysb restoration using NIM
# 1  
Old 04-05-2010
mksysb restoration using NIM

Hi,

I just want to ask whether anyone has experience on restoring mksysb backup in NIM. We have taken the mksysb backup and the SPOT has been configured on NIM also. I just want to know the checkpoints before doing this. Is there any checkpoints we need to do? Do we need to unmirrorvg? This server is running HACMP. Thanks.
# 2  
Old 04-05-2010
Quote:
Originally Posted by depam
I just want to ask whether anyone has experience on restoring mksysb backup in NIM.
Yes, of course. It is actually hard to avoid when you work with AIX.

Quote:
Originally Posted by depam
We have taken the mksysb backup and the SPOT has been configured on NIM also. I just want to know the checkpoints before doing this. Is there any checkpoints we need to do?
I don't know what you mean by "checkpoints". If you have used the NIM methods to create the mksysb you have already established a working communication between the NIM server and the client. If you want to restore the mksysb image to the client create a NIM resource for this client, shutdown the client, start it into the SBB menu, enter the IP address of the NIM server into the appropriate menu screens and off you go. NIM relies on bootp as a protocol, therefore all the routers, switches and whatever network equipment you have between client and server have to pass through bootp.

Further, there is a common problem with exports: NIM will create a (temporary) NFS share (/etc/exports) for the client on the server. If a superdirectory of this share is already exported this may (or may not) confuse NIM. The best way to avoid this is not to export any superdirectory of the place where the NIM resources are located.

Quote:
Originally Posted by depam
Do we need to unmirrorvg? This server is running HACMP. Thanks.
If you run a server with HACMP this is indicative of the server being quite critical to some operation. In such a case not having tested backup and restore of the system before commissioning it is somehow careless, isn't it? In this case you should announce some downtime with the users to test the process. It is almost 100% foolproof and rarely fails, but in the remote case of failing you will not have to explain why you're testing on a productive system.

Anyway you don't have to unmirror anything: a mksysb image is basically a "savevg rootvg" and contains not only the data of the rootvg, but also the disk layout, the filesystem layout, etc..

I hope this helps.

bakunin
# 3  
Old 04-05-2010
Hi bakunin,

Thanks for the prompt help. I thought that the server will be rebooted automatically when you do a administration task in NIM? I have found the below link. Can you please verify that the informations and steps provided are correct:

(uN)Tech blogs: AIX 5L NIM mksysb restore

These are newly configured servers (not live yet) but the client need to test backup and restoration from NIM. Do you have any site where explains the step by step procedure? I just want to be safe. Thanks
# 4  
Old 04-05-2010
The description seems to be to the point. In case you are not familiar with the NIM concepts you might want to read this little description.

Btw., just to be sure: you can create an mksysb image into a file on the client machine too - this is NOT a valid NIM resource, even if it is more or less the same. For NIM it is NOT the same. You have to create a mksysb image through NIM means on the server (like it is described in the document you linked) to get a valid NIM resource to boot from.

I hope this helps.

bakunin
# 5  
Old 04-06-2010
Hi Bakunin,

Thanks for the help. I will try this one and let you know. Hope everything goes smooth and if not I hope I can ask again for help. Thanks a lot.

---------- Post updated 04-06-10 at 03:37 AM ---------- Previous update was 04-05-10 at 08:12 PM ----------

Hi Bakunin,

Just an update. I seek IBM engineer advice to make sure everything works fine. He told me to do the following:

1.) unmirrorvg hdisk1
2.) reducevg hdisk1
3.) bosboot -a hdisk1
4.) bootlist -m hdisk0
5.) Create mksysb via NIM
6.) Install in hdisk0

If everything fails, I can still set the boot device to hdisk1. I am going to do it tomorrow. So does it mean that if I trigger the backup in NIM the server will automatically restart and I will need to set the IPL to network?

Thanks and Regards,
Don
# 6  
Old 04-06-2010
Quote:
Originally Posted by depam
1.) unmirrorvg hdisk1
2.) reducevg hdisk1
3.) bosboot -a hdisk1
4.) bootlist -m hdisk0
5.) Create mksysb via NIM
6.) Install in hdisk0

If everything fails, I can still set the boot device to hdisk1.
This is true in a way: if you break the mirror you have two identical copies of the rootvg and if you destroy one you still have the other. The same principle is used in the alt-disk-install procedure.

I still don't think this is necessary because you said above that the server is not commissioned yet. The worst which could happen is that you will have to set up the server from scratch.

While the IBM engineer is right about this being the most failsafe procedure it also introduces a little uncertainty because you are not testing what you will use in production. I prefer to make my tests always as close to production as possible.

Quote:
Originally Posted by depam
So does it mean that if I trigger the backup in NIM the server will automatically restart and I will need to set the IPL to network?
Not at all! If you trigger the backup on the NIM server it will create a NIM resource of type mksysb, nothing more. You will have to allocate this (and a few secondary) resource(s) and generally the follow procedure for installing NIM clients from a server to reinstall your system using this mksysb image. You will also have to manually stop the client and initiate the reinstall in the POST-menu there.

I hope this helps.

bakunin
# 7  
Old 04-06-2010
Hi bakunin,

Thanks for the prompt reply. I just found out that I don't have the fileset
bos.alt_disk_copy.rte which is needed for cloning the disk to hdisk1
and I only have the bos.alt_disk_install.

Though the server is not live yet and the worst thing that could
happen is to reinstall everything, we really cannot afford to
reinstall since most of the vendors are from different parts of
the world who flew in here to do the configuration and installation

There are some application specific configuration in the rootvg
that we could not replicate if any damage is done on the rootvg.

Moreover, I have already have the mksysb and have the SPOT which
is of the same TL level. From the previous document I showed you
I can do the following:

1.) smitty nim_bosinst
2.) choose mksysb
3.) choose the SPOT image

If you are not that busy, can we chat so I can ask some questions?

Thanks and Regards,
Don
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Mksysb restoration

Hi, I am an newbie to AIX. Recently, I being assigned to do an mksysb restoration at our DR site. It always encounter "Out of Space" during restoration, this is even when I restored to 4x146GB HDD. Even though, on production, it only need 2x146GB HDD for the rootvg. What is the problem, I... (19 Replies)
Discussion started by: AIXBlueCat
19 Replies

2. AIX

mksysb using NIM

I am implementing mksysb backups using NIM. I am using nimsh as client communication and mksysb backup are working fine, but this requires remote logon to be enabled for root. Any thoughts on how can I implement mksysb backups using NIM without enabling remote logon for "root" ? (1 Reply)
Discussion started by: mk8570
1 Replies

3. AIX

AIX 5L nim mksysb command

Hi All, Please excuse the possibly naive question but I'm trying to clone/install a new AIX 5.3 LPAR on a p570 from a mksysb image file using nim. Has anyone done this before and if so, what would the exact command look like? Does it even remotely resemble something like nim -o... (1 Reply)
Discussion started by: combustables
1 Replies

4. AIX

mksysb restoration steps

please provide me with the steps to restore from mksysb tape. i m using AIX 5.3 TL 7 (2 Replies)
Discussion started by: debasis9
2 Replies

5. AIX

how to create a package from mksysb via nim ?

Hello, I need to install "bos.adt.libm 5.3.0.0" on a server (AIX5.3 power 5). How to install it from a nim mksysb of an another partition ? Thank you (3 Replies)
Discussion started by: astjen
3 Replies

6. AIX

nim mksysb buffer overflow error

Hi, I am trying to backup a system ("client") through a slow network using "nim mksysb" on a nim server ("master") The backup starts, but doesn't success. Thanks if you can help me to resolve this problem : Creating information file (/image.data) for rootvg... Creating list of files to... (2 Replies)
Discussion started by: astjen
2 Replies

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

8. Shell Programming and Scripting

script to automate mksysb via nim in AIX 5.3

#!/bin/ksh # # nim_mksysb # get mksysb from each client machine specified with -m. If no # machines specified, get mksysb from ALL machines. -r flag says # remove oldest existing mksysb for the machines being backed up. # use -n no_make flag with -r to remove a generation of mksysb, #... (0 Replies)
Discussion started by: barkath
0 Replies

9. UNIX for Advanced & Expert Users

NIM - mksysb of remote server

Hi, I'm trying to use my NIM server to get a mksysb of an lpar on another machine on my network. I'm trying to define a resource through smitty and i've entered the resource name, Server of resource & location of resource, they are as follows Resource Name : gmt_fail_mksysb Server of... (1 Reply)
Discussion started by: KeesH
1 Replies

10. AIX

NIM mksysb recovery

I have multiple LPARS on p650 with mix of AIX5.2 and AIX5.1 with different rml level My understanding is creating mksysb nim on NIM server is for new installation of LPARS Then; How do I do mksysb backup on existing lpars for recovery purpose or how do I do all mksysb to a NFS mounted Filesystem... (1 Reply)
Discussion started by: melindaj
1 Replies
Login or Register to Ask a Question