- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why there is huge gap in instance number in ioscan...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:08 AM
07-29-2002 01:08 AM
Thanks,
#ioscan -k -fn
.....
ba 1 0/1 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 2 0/2 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 3 0/3 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 4 0/4 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 5 0/5 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 6 0/8 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
fc 2 0/8/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td2
fcp 4 0/8/0/0.1 fcp CLAIMED INTERFACE FCP Domain
ext_bus 18 0/8/0/0.1.16.0.0 fcparray CLAIMED INTERFACE FCP Array Interface
target 10 0/8/0/0.1.16.0.0.0 tgt CLAIMED DEVICE
disk 677 0/8/0/0.1.16.0.0.0.0 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c18t0d0 /dev/rdsk/c18t0d0
disk 678 0/8/0/0.1.16.0.0.0.1 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c18t0d1 /dev/rdsk/c18t0d1
disk 679 0/8/0/0.1.16.0.0.0.2 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c18t0d2 /dev/rdsk/c18t0d2
disk 680 0/8/0/0.1.16.0.0.0.3 sdisk CLAIMED DEVICE HP A6189A
.....
The VA disk starting from 677 instead of 19 or 20, why?
disk 677 0/8/0/0.1.16.0.0.0.0 sdisk CLAIMED DEVICE HP A6189A
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:19 AM
07-29-2002 01:19 AM
Re: Why there is huge gap in instance number in ioscan?
The kernel instances always increase, and the only way to reinitialise is to cold install and or regen the maps using ioinit.
I'll attach a doc on this if you like.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:36 AM
07-29-2002 01:36 AM
Re: Why there is huge gap in instance number in ioscan?
Changing Instance Number (HP-UX 10.x/11.x)
==========================================
o Build yourself the "infile" from the extisting configuration.
# ioscan -kf|grep -e INTERFACE -e DEVICE|awk '{printf
"%s %s %s\n",$3,$1,$2}'>infile
o The "infile" should look something like this :-
......
0/0/2/0 ext_bus 2
0/0/2/0.2 target 3
0/0/2/0.2.0 disk 1
0/0/2/0.7 target 4
0/0/2/0.7.0 ctl 2
0/0/2/1 ext_bus 3
0/0/2/1.2 target 5
0/0/2/1.2.0 disk 2
0/0/2/1.7 target 6
0/0/2/1.7.0 ctl 3
0/4/0/0 ext_bus 4
0/4/0/0.0 target 7
0/4/0/0.0.0 disk 3
0/4/0/0.0.1 disk 6
......
o Now edit "ext_bus" line and change the instance number to the
one you wanted. Be careful not to duplicat the instance numbers
or leave anything out. Move the "infile" to root directory.
o Test the file :-
# ioinit -f infile 2>&1|more
==> Look for errors with any of the changed lines. If no diagnostic
message is displayed for that line then it is good. All other
lines that do not change will say something like ..
ioinit: Input identical to kernel, line ignored
Input line 1: 0/0/2/0 ext_bus 0
o Rename /etc/ioconfig and /stand/ioconfig with extension say ".save"
o 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.
(in ioinitrc) #
o Run this :-
(in ioinitrc) # /sbin/ioinit -f /infile -r
(in ioinitrc) # ^d
o You should get back all your instance numbers after system reboots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:38 AM
07-29-2002 01:38 AM
Re: Why there is huge gap in instance number in ioscan?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x467e107d277ad611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:42 AM
07-29-2002 01:42 AM
Re: Why there is huge gap in instance number in ioscan?
"This member has assigned points to 45 of 315 responses"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 02:01 AM
07-29-2002 02:01 AM
Re: Why there is huge gap in instance number in ioscan?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 02:07 AM
07-29-2002 02:07 AM
Re: Why there is huge gap in instance number in ioscan?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 03:52 AM
07-29-2002 03:52 AM
SolutionAs a note, this highly intrusive series of steps is only affecting a cosmetic feature of the system. It's nice to have all the instance numbers in order but for a production system, the downtime (and the risk due to spelling errors) may not be worth the effort.
Bill Hassell, sysadmin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 11:02 PM
07-29-2002 11:02 PM
Re: Why there is huge gap in instance number in ioscan?
What is an instance?
Simple answer: a device of a certain class.
Classes are eg disk, ext_bus, ...
To see the instances of a class you may use ioscan's -C option, eg
ioscan -fkCdisk
(so the instance numbers for class "ext_bus" are independent of class "disk" for example)
What is a instance number?
Each device of a class gets a number- this is just increasing with each new device in this class. This is stored in ioconfig (one copy in /stand, another in /etc). If a device is removed for whatever reason we still keep this info in ioconfig and won't assign the same instance number again (well, might be back again one day;-)
However, there is rarely the need to change sth that deep down as this- as said before- is highly intrusive and may screw up a lot.
take care, Tom.