NIM Questions


 
Thread Tools Search this Thread
Operating Systems AIX NIM Questions
# 1  
Old 08-08-2007
NIM Questions

I'm trying to find a simple solution for imaging/restore of systems, and it seems like NIM should be able to do what I need. I am having some issues though.

I set up a NIM server using 'eznim', added a client, and was able to perform a sysb backup via NIM over the network.

My first question is, for restores, does NIM require that all clients be on the same subnet? It appears to try and do a bootp, which would lead me to believe this is the case, which would be unfortunate.

Second question, if you had a full-on disk failure and didn't have an OS to boot to, how do you go about doing a sysb restore via NIM, assuming the client was set up as a standalone?

Thanks for any help.
# 2  
Old 08-08-2007
I'll give you the quick answers to your questions. Detailed answers would fill a whole book. Which, luckily, is already written! Smilie

IBM Redbooks | NIM from A to Z in AIX 5L


NIM does not require all to be on the same subnet. We use one nim master for hundreds of AIX boxes on many subnets. Exactly how I'm not sure, but it definately can be done.

You can definately use NIM to do a bare-metal install of a new server. If you had a hard drive crash you'd replace the drive and install the OS using the same procedures. Then once you have an OS on there you could restore your mksysb to get all the details the same as previously. I'm not sure if you can go directly from the mksysb skipping the initial OS load step or not, but I'm sure the redbook would have that info.
# 3  
Old 08-09-2007
Quote:
Originally Posted by rhfrommn
I'll give you the quick answers to your questions. Detailed answers would fill a whole book. Which, luckily, is already written! Smilie

IBM Redbooks | NIM from A to Z in AIX 5L


NIM does not require all to be on the same subnet. We use one nim master for hundreds of AIX boxes on many subnets. Exactly how I'm not sure, but it definately can be done.

You can definately use NIM to do a bare-metal install of a new server. If you had a hard drive crash you'd replace the drive and install the OS using the same procedures. Then once you have an OS on there you could restore your mksysb to get all the details the same as previously. I'm not sure if you can go directly from the mksysb skipping the initial OS load step or not, but I'm sure the redbook would have that info.
In answer to both of you as follows:

You take the MKSYSB on the client storing the result on the NIM server in for example /export/backup.

You then define the MKSYSB as a NIM resource.

You then allocate the resource to the NIM client to be re-built.

When the crash happens rootvg is replaced on the client and a boot to SMS will occur as there is no O/S. Setup the bootp section of SMS; declare the IP address of the client and the IP address of the NIM server as the server; also declare any gateway address to get round subnet differences. You could try a ping test just to make sure. If all is correct set the client in bootp mode and the system restore will start.

Hope that helps.
# 4  
Old 08-09-2007
Quote:
Originally Posted by johnf
In answer to both of you as follows:

You take the MKSYSB on the client storing the result on the NIM server in for example /export/backup.

You then define the MKSYSB as a NIM resource.

You then allocate the resource to the NIM client to be re-built.

When the crash happens rootvg is replaced on the client and a boot to SMS will occur as there is no O/S. Setup the bootp section of SMS; declare the IP address of the client and the IP address of the NIM server as the server; also declare any gateway address to get round subnet differences. You could try a ping test just to make sure. If all is correct set the client in bootp mode and the system restore will start.

Hope that helps.
I've done all this and had a successful ping test. But when the system goes to boot off the net, it just keeps trying and trying until it fails. I think the routers on my network restrict bootp requests.
# 5  
Old 08-13-2007
Ok so I gave up on NIM altogether due to network restrictions and decided just to go the manual mksysb route, but now I'm having issues with that as well.

I did an mksysb of a machine and hoped to test restoring it to another. I installed a base os on the test machine, did a "restore from image file" through smit, mounted the image via nfs, and smit just hangs saying "running command....". I let it go the whole weekend and still nothing.

I've also tried copying the sysb image locally, and still smit hangs at "running command".

I'm really starting to get frustrated - I just want to be able to restore an image Smilie What am I doing wrong???


EDIT: Nevermind. This is why you need to take sanity breaks Smilie I was typing in the nfs path rather than the local path.

Last edited by tb0ne; 08-13-2007 at 12:40 PM..
# 6  
Old 08-16-2007
One thing I forgot to mention is if the host machine is known to NIM then it will need deleting out of the NIM datatbase and re-defining with the MKSYSB image as its resource and a matching SPOT. I never specify the BOSINST.DATA as there might be conflict in where the MKSYSB will be installed. If the BOOTP is not happening you might try this. I have not known a router stop BOOTP yet. Firewall maybe.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to know NIM name from NIM client?

Friend's, I was playing around with NIM in my environment & had a quick question in mind which I didn't/couldn't find answer to, which is -- how to find the name of the NIM server sitting on the NIM client? All leads to the answer would be much appreciated, many thanks! -- Souvik (2 Replies)
Discussion started by: thisissouvik
2 Replies

2. AIX

Problem in communication nim client with nim master

Hello, I have an AIX6.1 machine which is a nim client to my nim master which is also AIX6.1 machine. I had some problem to perform an installation on my client using smit nim . i removed /etc/niminfo file in order to do the initialization again but when i run the command niminit -a name=client... (0 Replies)
Discussion started by: omonoiatis9
0 Replies

3. AIX

NIM : remove nim client info from the client

Hi. I change my client's IP and hostname but I forgot to change anything on the master. How can I redefine or modify my client's resource from my master, or with using smit niminit from my client ? Tks (2 Replies)
Discussion started by: stephnane
2 Replies

4. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

5. AIX

Nim

Hello I would like to hear your opinions about shell and nimsh I install the nim master on a server and and client nim on others servers. I backup this clients with the NIM master. When Im trying to install the clients with the option nimsh (communication protocol) send me an error ... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

6. AIX

Back up a client NIM from nim master

Hello everyone Im trying to backup a nim client from nim master but I got this message COMMAND STATUS Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. 0042-001 nim:... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

7. AIX

Nim

Hello everyone I have two questions. 1.-The NIM and EZNIM are the same. 2.-If I have in one partition NIM installed I need to install EZNIM or I need to unistall NIM and then install EZNIM. Thanks for your comments. (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

8. AIX

NIM Questions

I have been trying to increase the NIM usage in my AIX environment especially for patching, got few questions 1. If I have a service pack available in the nim server, how do I define that particular directory as an LPP source, without again copying it somewhere else ie I want to define that... (5 Replies)
Discussion started by: balaji_prk
5 Replies

9. AIX

Nim

Hello guys, what is a sure-shot single command to find out if the NIM environment is working properly from both master as well as client side? (2 Replies)
Discussion started by: solaix14
2 Replies

10. AIX

migrate NIM server through NIM installation

I try to migrate a NIM server from one server to another. I try to do a mksysb on NIM server restore the NIM server's mksysb to a client through NIM installation shutdown NIM server start newly installed client as NIM server Does anyone do this before? who can give me some suggestion? (1 Reply)
Discussion started by: yanzhang
1 Replies
Login or Register to Ask a Question