Operating System - HP-UX
1848649 Members
5549 Online
104034 Solutions
New Discussion

Re: Help on changing disk/tape instance number

 
SOLVED
Go to solution
raver_1
Frequent Advisor

Help on changing disk/tape instance number

Hi all,

I have two L1000 servers that are booting up from the EMC Symmetrix. The primary boot disk is in turn mirrored to a local disk (alternate disk).

My intention is to make all the BCV disk devicename the same on both servers.

I had tried the steps (in the attached file) but is hitting an error when I issue the command:

/sbin/ioinit -f /stand/infile -r

"ioinit: libIO erorr. Entry not found in ioconfig file.
Input line 3: 0/0/1/0.7 target 0

After this, I rebooted the server, but when the server come up, all the instances was not what I wanted. In fact, it is different from those before the change!!

Pls kindly advice what is wrong.

Thanks in advance.

Regards,
Jayce
11 REPLIES 11
harry d brown jr
Honored Contributor

Re: Help on changing disk/tape instance number

Jayce,

Try this advice:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0aba119c3420d411b66300108302854d,00.html

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Help on changing disk/tape instance number

raver_1
Frequent Advisor

Re: Help on changing disk/tape instance number

Hi Harry,

I'm pasting the content of the attached file.

My approach is alomost similar to your suggestion. But it hit the error in my earlier mail. Note that the server did not even reboot by itself after the ioinit -f infile -r.

Thanks.

1) Existing ouput (extracted) of
ioscan -kf | grep -e INTERFACE -e DEVICE | awk '{printf "%s %s %s\n",$3,$1,$2}' > /tmp/infile

0/3/0/0.1.28.0.0 ext_bus 8
0/3/0/0.1.28.0.1 ext_bus 13
0/6/0/0.2.23.255.0 ext_bus 14
0/6/0/0.3.23.255.0 ext_bus 15

2) Edit file and change the following

0/3/0/0.1.28.0.0 ext_bus 8
0/3/0/0.1.28.0.1 ext_bus 11
0/6/0/0.2.23.255.0 ext_bus 5
0/6/0/0.3.23.255.0 ext_bus 6

3) Backup ioconfig file

cp /stand/ioconfig /stand/ioconfig.sav
cp /etc/ioconfig /etc/ioconfig.sav

4) Test out the infile

ioinit -f /tmp/infile

5) Move it to /stand folder

mv /tmp/infile /stand/infile

6) Remove ioconfig file

rm /etc/ioconfig
rm /stand/ioconfig

7) Reboot server

shutdown -ry 0

8) Interrupt boot process, boot primary and go to single user mode

bo pri
ISL > hpux -is

9) Prompted by system that ioconfig file is missing, recreate

/sbin/ioinit -c
Ctrl-D

10) Boot to single user mode

init s

11) Read from infile

/sbin/ioinit -f /stand/infile -r

Hit error:

"ioinit: libIO erorr. Entry not found in ioconfig file.
Input line 3: 0/0/1/0.7 target 0
harry d brown jr
Honored Contributor

Re: Help on changing disk/tape instance number

Jayce

From the link:

6) Remove ioconfig file

You should have "cp"'ed them:
mv /etc/ioconfig /etc/ioconfig.old
mv /stand/ioconfig /stand/ioconfig.old

Renaming these files allows you to boot into single-user mode
and recover from your original files.



11) Read from infile

Did you run "ioscan"?? before the /sbin/ioinit -f /stand/infile -r??

You will receive several messages, all of which you can ignore.


live free or die
harry
Live Free or Die
raver_1
Frequent Advisor

Re: Help on changing disk/tape instance number

Hi Harry,

I did a copy in step(3) and remove in step(6)

You mentioned about the ioscan. Where should I insert that?
Before ioinit -f in single user mode???
harry d brown jr
Honored Contributor

Re: Help on changing disk/tape instance number

According to Alex's instructions it would be in your step 11.

live free or die
harry
Live Free or Die
Shahul
Esteemed Contributor

Re: Help on changing disk/tape instance number

Hi

Will this do for U?

Step 1. #ioscan -fk|grep ext_bus |awk '{print $3, $1, $2}'>/tmp/intancefile

step 2. Edit the /tmp/instance file and do the required modification

Step 3. #cp /etc/ioconfig /etc/ioconfig.old

#cp /stand/ioconfig /stand/ioconfig.old

Step 4. ioinit -f /tmp/instancefile -r

Best of luck
Shahul
raver_1
Frequent Advisor

Re: Help on changing disk/tape instance number

Hi Shahul,

Tried your suggestion, but to no avail.

I was prompted:
"ioinit: Instance number 11 already exists for class ext_bus.
line 35. 0/3/0/0.1.28.0.1 ext_bus 11"

I had double checked that instance 11 is not in-use from the ioscan -fnC ext_bus.

Pls note that currently the above-mentioned ext_bus is tied to instance 13.

Pls advice.


Thanks
Solution

Re: Help on changing disk/tape instance number

 

I am an HPE Employee
Accept or Kudo
raver_1
Frequent Advisor

Re: Help on changing disk/tape instance number

Hi Duncan,

Thanks for the informative post.
Will try that out.

BTW, your suggestion reference to my error of existing ext_bus instance 11.

If you read my initial post, I actually hit problem when I issue the ioinit -f infile -r after ioinit -c in the single-user mode.

Pls advice. Thanks.

raver_1
Frequent Advisor

Re: Help on changing disk/tape instance number

Hi Duncan,

I'm going you a perfect 10 as you solved my problem completely.

BTW, the parse_ioconfig file is indeed very useful.

Thanks.


Cheers...