- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Open files on a disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:32 PM
тАО07-20-2004 10:32 PM
What I am trying to do is to check for opened files before dismounting disks.
The reason for this is that we have a 'spare' set of disks that are mounted cluster wide for testing/training purposes. At night these disks are dismounted and added to live mirror sets. once the 'cloning' is completed they are taken out of mirrsets and mounted locally to take tape backsups. these disks are then mounted cluster wide as separate data disks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:35 PM
тАО07-20-2004 10:35 PM
Re: Open files on a disk
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:44 PM
тАО07-20-2004 10:44 PM
Re: Open files on a disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:46 PM
тАО07-20-2004 10:46 PM
Re: Open files on a disk
$DEFIN/USER SYS$OUTPUT A.OUT
$MC SYSMAN SET E/C
DO SHO DEV/FILE
EXIT
$
HTH,
Thanks & regards,
Lokesh Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:49 PM
тАО07-20-2004 10:49 PM
SolutionIn a cluster, you would need to issue this command on ALL nodes, which have the disk mounted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:49 PM
тАО07-20-2004 10:49 PM
Re: Open files on a disk
Best regards,
Lokesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 10:53 PM
тАО07-20-2004 10:53 PM
Re: Open files on a disk
Lokesh - I don't its a good idea going around killing users even though they are a pain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 12:25 AM
тАО07-21-2004 12:25 AM
Re: Open files on a disk
Lokesh suggested to stop the user's process(es), not the human beings ;-)
Watch out for any 00000000 PIDs if you are going over the list of:
$ SHOW DEVICE/FILES
Remember that '$ STOP/IDENTIFICATION=0' is a different spelling for LOGOUT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 02:12 PM
тАО07-21-2004 02:12 PM
Re: Open files on a disk
one way to skip over the 00000000 PID files is to either test for this particular PID or take advantage of the fact that they are not associated with a process name. Also
dismount/override=checks and parsing the output of that command might be worth a thought. This should prevent race conditions, that are possible if you do a
show dev/files
kill proc with open files
dismount
since between the show dev/files and the dismount new files can potentially be opened.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 06:34 PM
тАО07-21-2004 06:34 PM
Re: Open files on a disk
The 00000000 can be skipped by adding /NOSYS.
I also noticed that after stopping a process with stop/id you need to to wait until the process is gone. Otherwise some files might still be open at the moment of the dismount.
To make the shutdown lighter, I stop all interactive and batch jobs at the beginning of the shutdown. All application servers that are running detached are stopped later by application shutdown procedures.
Wim