AFP548 Changing the world one server at a time.

how to setup a clone netinfo domain

Home › Forums › OS X Server and Client Discussion › Questions and Answers › how to setup a clone netinfo domain

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #355198
    biozal
    Participant

    Hello,

    I’m attempting to clone a netinfo domain from a XServe running Mac OS 10.2.3 to a PowerMac G4 800 Mhz also running 10.2.3. What I want to do is make it so I have a backup server incase the XServer ever goes down I have a backup server. So far the documentation that comes with Mac OS X Server is less than perfect for doing this. Everytime I try to do this I reboot my server and can’t log into it then (just hangs at startup screen). 😕

    I’m not sure how to tackle this if I should try and “clone” my root network domain to my backup srever or if I should make a new domain and try to clone that domain from one server to the other. Either way I sure do with there was some better documentation on how to do this than the stuff Apple includes.

    If anyone has some ideas please feel free to e-mail me at noc@up.net.

    Thanks

    #355207
    biozal
    Participant

    Joel,

    Here is what I’ve done so far:

    1. Read pdf on Understanding and Using NetInfo
    2. Read Administration Manual (Chapter 2 on domains)

    Ok my main server is a XServe named bigmac. My backup server is called backup. I tried first to make a new domain called btc. Here is what I’ve done on the XServe:

    nidomain -m btc

    niutil -createprop -t bigmac/btc /machines/bigmac serves ./btc

    niutil -createprop -t bigmac/network machines/bigmac serves bigmac/local ./network ../btc

    Now the domain is setup. I can use nidomain -l and I see my newly created domain. 😀

    Next I create objects for basic stuff:

    niutil -create -t bigmac/btc /users

    niutil -create -t bigmac/btc /groups

    niutil -create -t bigmac/btc /aliases

    niutil -create -t bigmac/btc /mounts

    niutil -create -t bigmac/btc /printers

    niutil -create -t bigmac/btc /contacts

    Next I create a user called root into the btc domain using niutil and setup a propery for password. I leave this blank. I copied all the properies from the root domain user root to my new user root on my btc domain. Next I reboot the box and that’s when I get hte login screen but can’t log in. If I attempt to login using ssh it just hangs after I put my password in.

    I was thinking about nuking the box and using the root domain to attempt to clone on my backup server, but was looking for some advice before nuking the server.

    Thanks,

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.