Operating System - OpenVMS
1832235 Members
2909 Online
110041 Solutions
New Discussion

Disk hung in "mounted dismount" state OPENVMS

 
SOLVED
Go to solution
Karen Lee_3
Frequent Advisor

Disk hung in "mounted dismount" state OPENVMS

I have an openvms 7.3-2 system - I was trying to dismount a disk to make a change. there was an file open on that disk when I tried to dismount it. Now is says the state of the disk is "mounted dismount"...I cannot dismount it or remount it. Is there anything I can do other than reboot?
6 REPLIES 6
Bill Hall
Honored Contributor
Solution

Re: Disk hung in "mounted dismount" state OPENVMS

Karen,

The dismount should complete if/when you "close" the open file. What type(s) of file was open when you issued the dismount? If it was a user file, track down the "user" and have them close the file or $stop/id ;-). Page and swap files can be deinstalled. Installed images can be removed.

Bill
Bill Hall
Wim Van den Wyngaert
Honored Contributor

Re: Disk hung in "mounted dismount" state OPENVMS

Karen,

You have to do show dev/files on all nodes to find the users of the disk.
And even when there is nothing, there might be other invisible things like spool files.

Wim
Wim
Petr Spisek
Regular Advisor

Re: Disk hung in "mounted dismount" state OPENVMS

Did you try to DISMOUNT/ABORT ? This command cancels any outstanding IO.
Better is stop all processes which have some open files on the disk.
Petr
Karen Lee_3
Frequent Advisor

Re: Disk hung in "mounted dismount" state OPENVMS

Users finally tracked down and files closed. Disk unmounted and remounted now

Thanks for all your help
Karl Rohwedder
Honored Contributor

Re: Disk hung in "mounted dismount" state OPENVMS

Karen,

attached is a small DCL Routine, that when called with a diskname as P1 creates 3 DCL routines in SYS$LOGIN:

- UD_node_disk.INSFILES
deinstalles all installed images
- UD_node_disk.PROCESSES
stops all processes, which have files open on disk
- UD_node_disk.USER
does a reply to all users, which have open files

(messages are in german, but easy to change)

regards Kalle
David Rabahy 1
Advisor

Re: Disk hung in "mounted dismount" state OPENVMS

$ loop:
$ device = f$device( "*" )
$ if device .eqs. "" then $ exit
$ spldevnam = f$getdvi( device, "spldevnam" )
$ if spldevnam .nes. "" then $ write sys$output device, " ", spldevnam
$ goto loop