Please consider registering

Log In

Lost password?
Advanced Search:

— Forum Scope —

— Match —

— Forum Options —

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
vmunix: WARNING: Out of character major numbers
November 13, 2014
4:07 pm
Forum Posts: 217
Member Since:
September 30, 2012




HPUX 11.31 IA, on new software installation step gives next errors:

Nov 6 11:31:20 rx26v3-2 vmunix: WARNING: Out of character major numbers
Nov 6 11:31:20 rx26v3-2 vmunix: Couldn't install driver test_driver
Nov 6 11:31:20 rx26v3-2 vmunix: gio_mod_drv_reg: io_allocate_majors failed
Nov 6 11:31:20 rx26v3-2 vmunix: WARNING: mod_reg: call typespecific reg function failed


lsdev output prints that really all major device numbers in use:

      249          -1         test_driver5 unknown
      250          -1         test_driver9 unknown
      251          -1         test_driver0 unknown
      252          -1         test_driver7 unknown
      253          -1         test_driver8 unknown
      254          -1         test_driver3 unknown
       -1           1         fake            pseudo



1. HPUX store all device drivers information in files: /etc/ioconfig and /stand/ioconfig (both files are the same). Need to reindex those files with presented devices to free up all numbers busy by uninstalled drivers.


2. ioscan -kf | grep -e INTERFACE -e DEVICE | grep -v target | awk '{printf "%s %s %sn",$3,$1,$2}' > /stand/infile

3. Save ioconfig files :

mv /stand/ioconfig /stand/ioconfig.old
mv /etc/ioconfig /etc/ioconfig.old

shutdown -ry 0

4. From the console, stop boot process and boot in single mode :

hpux -is (PA-RISC)
boot vmunix -is (Itanium)

6. The system starts witn an "ioinitrc" prompt. Create ioconfig file (file will be filled up with current config from kernel):

cd /stand
/sbin/ioinit -c

7. update it with infile (This command will also reboot the system) :

/sbin/ioinit -f infile -r



8. Also if you have hpux support you can ask them for utility ioconfig_dump and do the next:


Create a new "cleaned" ioconfig file called ioconfig.new.
 ioconfig_dump -w -o /tmp/ioconfig.new 
NOTE: The -w flag will remove entries no longer in use, based on a local 
ioscan -f.   All devices that exist and are in use should not change
instance numbers.  
 Verify the instance mappings of the newly created ioconfig file 
ioconfig_dump -r -f /tmp/ioconfig.new > /tmp/io.new
ioconfig_dump -r > /tmp/io.old
NOTE: The -r flag will read the print the contents of the give ioconfig file.
When comparing old to new verify that any instances that are no longer in use
get removed and any hardware still attached remains at the same instance

cp /stand/ioconfig /stand/ioconfig.old

mv /etc/ioconfig /etc/ioconfig.old 
cp /tmp/ioconfig.new /stand/ioconfig 
cp /tmp/ioconfig.new /etc/ioconfig 



Thank you.


Forum Timezone: UTC 0

Most Users Ever Online: 31

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 0

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 20

Topics: 214

Posts: 214

Newest Members: Lo0oM

Administrators: Lo0oM (217)