Operating System - HP-UX
1833847 Members
1839 Online
110063 Solutions
New Discussion

Can not unmount cd-rom during installation of Oracle 9i

 
SOLVED
Go to solution
Chris2005
Regular Advisor

Can not unmount cd-rom during installation of Oracle 9i

I’m trying to install Oracle 9i using multiple installation cd-roms, but when I try to unmount the first cd-rom to remove it and to insert the second cd-rom, the cd-rom can not be unmounted.

I can’t complete the installation this way.

---

$ cd /
$ su root

# /usr/sbin/pfs_umount /SD_CDROM
nfs umount: nfs_unmount: /SD_CDROM: is busy
nfs umount: nfs_unmount: /SD_CDROM: is busy
umount: /SD_CDROM: Device busy

---

Pls help.

Regards,
Chris
31 REPLIES 31
Patrick Wallek
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Did you cd into the /SD_CDROM directory and then invoke the orainst program? If so, that is your problem.

When doing installs like this you need to be outside of the /SD_CDROM directory and then use the fully qualified path to start the installation.

For example:

# cd /
# /SD_CDROM/orainst

Now when you need to umount the CD so you can insert the next one, you won't have the problem with /SD_CDROM being busy.

As it stands now, there isn't much you can do. You will have to interrupt the installation and start again using the method above.
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Actually I did start the installation while I was in the root of the filesystem. I started the installation by giving the absolute path of the installation file on the CD-ROM. I even started the installation once more just to be sure. The same problem occurs unfortunately. : (
A. Clay Stephenson
Acclaimed Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

the pfs utilities are rather notorious for this behavior. Try to not use the pfs mount utilities and instead use the rock ridge extension for a cd mount. You may need to install a patch to get these rock ridge mount options. Do a man mount_cdfs and see if the rr option is listed; if so, use it and permanently forget pfs_mount. Is is possible that another process is cd'ed into the filesystem or using it? Lsof is a good tool to have. Sadly, whenever there is a pfs problem about the only fix is a reboot.
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Chris,

Try pfs_mount , it will work,

To mount the oracle CDROM:
# mkdir /cdrom
# pfs_mount /dev/rdsk/c0t6d0 /cdrom


Enjoy,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

-Download lsof from http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/
- install using swintall a quick program
- /usr/local/bin/lsof /SD_CDROM
it will list which program or pid is keeping the cd drive busy.

Else, Check after a reboot,



hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Chris,

Still if you have prblem mpunting the cdrom , check for the below patch,


# /usr/sbin/swlist -l product | egrep '(25760| 34153)'

(It's S700_800 11.11 CDFS cumulative patch , could resove this issue.)

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

I have installed lsof using swinstall. When I test this tool I get:

# ./lsof /tmp
sh: ./lsof: Execute permission denied.
#

Did I forget something?
Raj D.
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Chris,

Good day!,

# chmod +x lsof

and try..
cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Chris,
Any update ?


Also make sure you assign points to all the replies , and all who tried to help you.




PS: 0 pts pls.
" If u think u can , If u think u cannot , - You are always Right . "
V. Nyga
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Hi,

do you have a second ws with cdrom?
You could try to mount the next cd at another ws, 'exportfs' and mount at the first ws.
This works for me for other installations.

Volkmar
*** Say 'Thanks' with Kudos ***
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Hi Raj,

I tried the CDFS patch but it did not solve the problem.

I think I have to check the rock ridge mount options then as Clay mentioned.

I'm kind of new to unix and so I was wondering how all these mount programs (mount, pfs_mount, mount_cdfs, rock ridge options) compare to eachother? Any info on this?



Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

lsof still not working:


# chmod +x lsof
# ./lsof /tmp
sh: ./lsof: Execute permission denied.
# ll
total 240
-rwxr-xr-x 1 root bin 122880 Dec 11 17:28 lsof
#
James R. Ferguson
Acclaimed Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Hi CHris:

Please post:

# uname -a
# file `whence lsof`

Regards!

...JRF...
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

I already tried: chmod a+x ./lsof

I guess that's the sam as: chmod +x ./lsof?
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

# uname -a
HP-UX unknown B.11.11 U 9000/811 2008755245 unlimited-user license
# file `whence lsof`
usage: file [-c] [-f ffile] [-m mfile] [-h] file...

--

# file ./lsof
./lsof: PA-RISC2.0 shared executable dynamically linked
#

A. Clay Stephenson
Acclaimed Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

I think that your problem with lsof is that your code is 32-bit and you are running on a 64-bit version of HP-UX 11.11. For the overwhelming majority of executables this would be fine but kernel intrusive programs such as lsof are the exception. The first time I downloaded lsof for HP-UX 11.11, I had this very problem. The .depot version worked fine on 32-bit OS versions but failed on 64-bit versions. The "fix" is to download the source and build it yourself. It's a very easy build.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

You wrote:

> I was wondering how all these mount programs (mount, pfs_mount, mount_cdfs, rock ridge options) compare to each other?

If you are new to HP-UX, the history of CDROM support is colorful at best. For more than a decade, HP-UX had no support to display CDROM file and directory names correctly. Well, correctly is a bit misleading. HP-UX always displays CDROM names correctly in ISO 9660 format, which is all UPPERCASE, 8.3 characters and a version number such as ;1. CDROMs are unique in that they have several directories on the disc at the same time.

RockRidge format is a 'use extension' and incorporates lowercase names, eliminates the version number and allows long names (aka, ECMA 168 or POSIX CDROM names). A kludge patch was created in the mid 90's with the option -ocdcase which simply remove the ;1 version and translated the ISO 9660 name to lowercase. But the full name was left at the 8.3 limit because the patch did not read the alternate directory.

The primary push to fix this problem was from customers who could not install Oracle products without 'borrowing' a Sun or Linux system and using NFS to export the RockRidge filenames to HP-UX. So HP-UX adopted a product from Young Minds, Inc called PFS, aptly named "a user level driver". What it does is to read the raw CD, interpret the RockRidge directory and then export the file into HP-UX using NFS. PFS is somewhat unstable and WILL lockup your system under several circumstances. PFS is deprecated for use on HP-UX 11.00 and higher. There is no patch (and never will be) for 10.20 or earlier.

So about 2001-2002 a rewrite of the cdfs subsystem added the -orr option thereby obsoleting -ocdcase and PFS. Now all of this is not "Unix" but an idiosyncrasy for HP-UX only. What makes this very confusing is that Oracle publishes the pfs_mount instructions.

So the answer (unique to HP-UX) is to use mount -orr when mounting your CD's, and ignore the Oracle docs when they refer to PFS.


Bill Hassell, sysadmin
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Ok thanx a lot.

But what is the diffference between the command mount and mount_cdfs then?

Regards,
Chris
A. Clay Stephenson
Acclaimed Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

The generic mount command is translated to the more filesystem specific (_cdfs, _hfs, _vxfs, _NFS, ...) by the -F fstype flag so that
"mount -F cdfs" becomes "mount_cdfs" (more or less).

The more specific man pages are designed by the _fstype appellations.

If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

As Clay mentioned, these are man page references and not real commands. The mount options are so different depending on the type of file system (NFS, VxFS, HFS, CDFS, etc) that a single man page was too difficult to navigate. The generic man page for mount (actually, man 1m mount) describes the different documents at the bottom.


Bill Hassell, sysadmin
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Thanx to you all. This makes it clear to me.

I'm going to install the rock ridge extension. I guess I need PHKL_25760 patch?
James R. Ferguson
Acclaimed Contributor

Re: Can not unmount cd-rom during installation of Oracle 9i

Hi Chris:

To enable the native mount to handle RockRidge extensions on 11.11, you need:

# PHKL_34153 ( supersedes PHKL_25760 )
# PHKL_26269

Regards!

...JRF...
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Ah no, this must be: PHCO_25841

Right?
Chris2005
Regular Advisor

Re: Can not unmount cd-rom during installation of Oracle 9i

Ok thanx.