1829141 Members
7084 Online
109986 Solutions
New Discussion

Re: Unmount Oracle CDROM

 
SOLVED
Go to solution
Joseph Bague
Frequent Advisor

Unmount Oracle CDROM

Hi to all,

I mounted an oracle CDROM using this command

#pfs_mountd &
#pfsd &
#mount -o xlat=unix /dev/rdsk/c2t1d0 /cdrom

after a while I accidentally close my telnet session. When I try to access it again this error appear:

pfs_mount: pfs_mountd at erpdev:/dev/rdsk/c2t1d0 not responding: : RPC: Timed out
pfs_mount: retrying /cdrom
pfs_mount: giving up on /cdrom

How can I unmount the cdrom w/out restarting the server

Tnxs in advance
Joseph
Expect nothing but ready for everything
16 REPLIES 16
V.Tamilvanan
Honored Contributor

Re: Unmount Oracle CDROM

Hi,
When u r using pfsd, u r suppose to use pfs_mount to mount the CDROM but u have used mount. Moreover u cannot mount a raw device which is /dev/rdsk/c2t1d0 in your case.It suppose to be /dev/dsk/c2t1d0.
So try by
# umount /cdrom.

# fuser -k -u /cdrom
# fuser -k -u /dev/dsk/c2t1d0
Stop pfsd and pfs_mountd daemon.

twang
Honored Contributor

Re: Unmount Oracle CDROM

Try to "pfs_umount /cdrom", if fail you should examine which UNIX processes are using the CD-ROM. Kill off any that are using it - and you will be able to unmount the CD.

E.G. If your cd is mounted cd /CDROM then
# fuser /CDROM

will display the pid of the processes that are holding the resource up.
Enrico P.
Honored Contributor

Re: Unmount Oracle CDROM

Hi,
try this:

kill -9
kill -9
pfs_umount /cdrom

Good Luck
Massimo Bianchi
Honored Contributor

Re: Unmount Oracle CDROM

Hi,
is these are the command you typed, you can simply issue

umount /cdrom ,
since you didn't use the pfs_mount/pfs_umount.

Honestly i don't know any trick,
you may try with
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop

and afterwards restert them

/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start

and see if they help.

Pay attention that every NFS mount will be broken.

For the future: issue the command with a nohup, or better with nohup (see man nohup) and from a "screen" session (free downloadable utility).

A good reboot, if you can afford, it's the best, quicker and cleaner solution.

HTH,
Massimo



twang
Honored Contributor

Re: Unmount Oracle CDROM

Suggestions from oracle:
Mounting the CD-ROM:
===================

NOTE: These instructions for mounting the CD-ROM are for HP-UX 10.20 and 11.0.

1. Use a system editor to add the following line to the "/etc/pfs_fstab"
file. If the "pfs_fstab" file does not exist in the "/etc" you will
need to create it and add the line to it.

Syntax:



The first entry is the CD-ROM device file; the second is the mount point. The
third indicates that the CD-ROM to be mounted is in IS09660 format with a
Rockridge extension.

Example:

/dev/dsk/c5t2d0 /SD_CDROM pfs-rrip xlat=unix 0 0


Attention: Perform steps 2-5 as the root user.

2. Run the following file.

# nohup /usr/sbin/pfs_mountd &

3. Run the following file.

# nohup /usr/sbin/pfsd &

4. Insert the CD-ROM into the tray and run the following to mount the
CD-ROM:

# /usr/sbin/pfs_mount /SD_CDROM

5. Exit the superuser account.

# exit

Change directories to "/SD_CDROM" where you can see a lowercase listing of the
directories and files on the CD-ROM. The mounted CD-ROM should appear as
another read-only file system.

Con O'Kelly
Honored Contributor

Re: Unmount Oracle CDROM

Hi

I had a similar problem a while ago & I used a pfs_umount -c option (I think).
I don't have access to man pages but if you check this might help you, as I can't remember the exact syntax.

Cheers
Con
Joseph Bague
Frequent Advisor

Re: Unmount Oracle CDROM

Tamil

Yes I use pfs_mount,I already try to kill the pfs process and pfs_umount /cdrom. The session always hang.

Twang, Enrico

I already did it but the session hang on pfs_umount /cdrom
Expect nothing but ready for everything
David_246
Trusted Contributor
Solution

Re: Unmount Oracle CDROM

Hi Joseph,

This is a so common problem in pfs. Please try to do the fuser -cu /SD_CDROM and kill the process. Ones you done it the wrong way, you will (almost) not be able to get rid of it anymore.
If you need to have the system up and cannot afford a reboot. Note down you have done something awfull in the /etc/mnttab and then remove the /SD_CDROM entry from the /etc/mnttab.
First thing then, you have to do is to install the latest nfs_patches.
Please read the following docs carefully !!

KBRC00010147
2200219195
rcfaxpfs001


Regs David
@yourservice
Robert-Jan Goossens
Honored Contributor

Re: Unmount Oracle CDROM

Hi Joseph,

Go for the reboot option if it is possible,

It is faster then trying to umount the cdrom AT THIS point.

Robert-Jan.
Yogeeraj_1
Honored Contributor

Re: Unmount Oracle CDROM

hi,

I am used the script i am attaching. It allows me to both mount and unmount my Oracle CDs.

uses pfs_mount

Does your /etc/pfs_fstab contain:
/dev/dsk/c2t1d0 /SD_CDROM pfs-rrip xlat=unix 0 0


hope this helps

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: Unmount Oracle CDROM

hi,

I am used to the script i am attaching. It allows me to both mount and unmount my Oracle CDs.

uses pfs_mount

Does your /etc/pfs_fstab contain:
/dev/dsk/c2t1d0 /SD_CDROM pfs-rrip xlat=unix 0 0


hope this helps

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: Unmount Oracle CDROM

hi,

I am used to the script i am attaching. It allows me to both mount and unmount my Oracle CDs.

uses pfs_mount

Does your /etc/pfs_fstab contain:
/dev/dsk/c2t1d0 /SD_CDROM pfs-rrip xlat=unix 0 0


hope this helps

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Con O'Kelly
Honored Contributor

Re: Unmount Oracle CDROM

Hi Joseph

Following on from my earlier post, the man page for pfs_umount states:

-c "Close. Instruct the PFS daemons to close the given file system, but do not attempt to umount the file system. This is useful when the file system has already been unmounted, but the PFS daemons still have the source character device open."


HTH
Cheers
Con
Alexander M. Ermes
Honored Contributor

Re: Unmount Oracle CDROM

Hi there.
I know that there is a patch for this problem,
but i do not remember, which one.
Ask your local HP support for help.
Maybe somebody in the forum can help.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Alexander M. Ermes
Honored Contributor

Re: Unmount Oracle CDROM

Hi there.
Found the patch :

For HP-UX 11.00 PHCO_26449

for other versions of HP-UX pls compare
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Joseph Bague
Frequent Advisor

Re: Unmount Oracle CDROM

Alexander

I already apply the patch I read at KBRC00010147 documents given by david. Its alright now. Tnxs everyone.

Joseph
Expect nothing but ready for everything