Problem
At some point I did an in-place upgrade from SCO OpenServer 5.0.4 to OpenServer 5.0.5. Now when I do an in-place upgrade to SCO OpenServer 5.0.6 on the same machine, it fails. First I see these error messages during the 5.0.6 upgrade:
idmaster: there are no free major device numbers available idinstall: Cannot add driver Master entry. No such device
I continued with the installation and tried to relink the kernel when he machine came back up, and that also failed.
Cause
When the machine has previously been upgraded from 5.0.4 to
5.0.5, the 5.0.6 upgrade adds excessive socket entries to
kernel files. Additionally, if NFS is installed before the
5.0.6 upgrade, the nfsd line in /etc/conf/cf.d/mdevice gets
corrupted. Solution
You must do the following before you perform the 5.0.6 upgrade:
1. Remove all networking interfaces from your 5.0.5 system
except for the Loopback interface. To do this, run
"netconfig" from the command line, highlight any network cards
or PPP and go to "Hardware -> Remove network device". Relink
the kernel and reboot.2. Try to relink the kernel with the following command:
/etc/conf/cf.d/link_unixIf this fails, you will need to find the cause of the failure and fix it before trying to upgrade to 5.0.6.
3. Perform a full "cocktail", with instructions given in
ta105411, "Filesystem Repair Utilities for SCO OpenServer
5.0.0, 5.0.2, 5.0.4, 5.0.5, 5.0.6."4. Perform a full system backup.During the 5.0.6 upgrade, do the following:
If the kernel relink fails, be sure to "continue". At no
point should you choose to "abort".After the 5.0.6 upgrade, you must correct the kernel errors and relink by hand by doing the following:
1. Boot into single-user mode.2. Try to relink the kernel with command:
/etc/conf/cf.d/link_unixIf it fails with an error message relating to nfsd, such as:
LINE: nfsd oci icbM nfsd 353 353 0 -1 FATAL ERROR: mdevice: Wrong number of fields
proceed to step 3. If there are no errors about nfs or nfsd, skip to step 5.
3. Run the following command:TERM=ansi; export TERM4. Run "netconfig" from the command line and remove NFS.
a. Use the <Tab> and arrow keys to highlight "SCO NFS Runtime System" under the Loopback driver.
b. Go to "Protocol -> Remove Protocol".
c. Exit netconfig.d. Do not relink the kernel when it asks you if you want to.
5. Edit the file /etc/conf/cf.d/mdevice. At the end of this file, you will find many lines starting with "socket". Delete all of the "socket" lines from the end of this file. This will probably be about 200 lines.
6. Run the following command and record the number it returns:
grep socket /etc/conf/cf.d/mdevice | wc -l7. Run the following command and record the number it returns:
grep socket /etc/conf/sdevice.d/socket | wc -l8. Subtract the number you found in step 6 from the number you found in step 7, and delete that many lines starting with "socket" from the file /etc/conf/sdevice.d/socket.
For example, if the command in step 6 returns "64" and step 7 returns "256", then you would delete 192 lines from this file.
9. Repeat steps 6 and 7. They should now return the same
number. If they do not, add or delete lines starting with
"socket" from the /etc/conf/sdevice.d/socket file.10. Relink the kernel with the command:
/etc/conf/cf.d/link_unixIf the kernel relink succeeds, proceed to step 11.
The relink could fail for several different reasons, such as:
- You chose to "abort" during the upgrade, preventing certain portions of the upgrade from being performed
- This procedure may not address other reasons the upgrade could fail, such as third party drivers or specific hardware or software that is installed.
11. Reboot into multi-user mode.12. Perform a full "cocktail", with instructions given in
ta105411, "Filesystem Repair Utilities for SCO OpenServer
5.0.0, 5.0.2, 5.0.4, 5.0.5, 5.0.6." See also
ta105411, "Filesystem Repair Utilities for SCO OpenServer
5.0.0, 5.0.2, 5.0.4, 5.0.5, 5.0.6."