1833873 Members
1636 Online
110063 Solutions
New Discussion

ioinit a machine

 
SOLVED
Go to solution
hpuxrox
Respected Contributor

ioinit a machine

I want to ioinit a machine so it is identical to anther machine and I need a peer review of my procedure.

So my search has lead me to,

1. Move PCI cards on machine2 to match machine1

2. machine1# make_tape_recovery ???A

3. Restore ignite to machine2

4. machine1# ioscan -kf|grep -e INTERFACE -e DEVICE| \
awk '{printf "%s %s %s\n",$3,$1,$2}'> /tmp/infile

5. machine1# rcp /tmp/infile machine2:/tmp/infile

6. machine2# ioinit -f /tmp/infile

7. machine2# shutdown ???h ???r

Am I missing something? Or are there unneeded steps?

Thanks,

-Yates
7 REPLIES 7
Sanjay_6
Honored Contributor

Re: ioinit a machine

Hi Yates,

If you have two identical system with identical hardware on both the systems, configure the drivers as required on both the system and then to make the ioscan output identical from both the systems, try this,

# mv /stand/ioconfig /stand/ioconfig.sav
# mv /etc/ioconfig /etc/ioconfig.sav
# shutdown -ry 0

Due to the missing ioconfig files the system will come to an ioinitrc prompt. Now recreate new ioconfig files from scratch. This prevents you from running into possible assignment conflicts.

(in ioinitrc)# /sbin/ioinit -c

Hope this helps.

Regds
S.K. Chan
Honored Contributor
Solution

Re: ioinit a machine

6. machine2# ioinit -f /tmp/infile

7. machine2# shutdown ???h ???r

I'll try to complete it for you ..after step 6 (the checking of "infile") you need to rename existing "ioconfig" file so that if anything goes wrong you can go back to its original state.

# mv /etc/ioconfig /etc/ioconfig.save
# mv /stand/ioconfig /stand/ioconfig.save

Reboot the system. It will come up to ioinitrc and give this message:-

/sbin/ioinitrc /etc/ioconfig missing. Restore it from backup or invoke /sbin/ioinit -c to recreate it from kernel. You would then run this ..

(in ioinitrc) # /sbin/ioinit -f /tmp/infile -r
(in ioinitrc) # ^d

All set !! A few things I would recommend ..
1) Put infile in / instead of /tmp
2) Double check instance number of the PVs in your root VG remains the same.

hpuxrox
Respected Contributor

Re: ioinit a machine

Thanks Sanjay,

I like that answer and will add to my notes. For now,I can't reboot machine1 and if I could I do not wait to risk making a medium risk change to it like you explained. Now, machine2 doesnt matter. I can blow the OS up 100 times and it doesnt matter. I will just re-ignite.

-Yates
Helen French
Honored Contributor

Re: ioinit a machine

Hi Yates:

I think the steps you provided will just work, if both systems are same and with same I/O devices. Remember that for a full (vg00) backup, invoke make_tape_recovery with -x inc_entire=vg00 instead of -A.

Also I would add one more step, before doing the ioinit command, check the system with ioscan -fk and see if anything different from the original system.

HTH,
Shiju
Life is a promise, fulfill it!
hpuxrox
Respected Contributor

Re: ioinit a machine

Shiju,

Whats wrong with make_recovery -A?

I have always used it in the past.

-Yates
Helen French
Honored Contributor

Re: ioinit a machine

Hi Yates:

No problem with *make_recovery* and -A. But when using *make_tape_recovery*, you can use the -x inc_entire option for including the entire vg00 to the recovery tape. -A for make_recovery and make_tape_recovery differs. See man pages for more details.

I just pointed that, because I saw make_tape_recovery in your original post.

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: ioinit a machine

Hi Yates,

Just that you should know,"-x" option is not available with make_recovery. It is available with make_tape_recovery which is basically the same command that is available with the newer versions of ignite.

Hope this helps.

Regds