- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- how do I read a file that is flagged as locked
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
тАО08-04-2004 06:27 AM
тАО08-04-2004 06:27 AM
2-node cluster on ES40 hardware.
Can anyone tell me how I can read a file that is locked?? For instance:
I want to examine the following pathworks log file:
pwrk$logs:PWRK$MASTER_OSIJX2.LOG
If I do a:
set proc/priv=all
OSIJX2> edit /read PWRK$MASTER_OSIJX2.LOG
%EDT-F-OPENIN, error opening PWRK$COMMONROOT:[LOGS]PWRK$MASTER_OSIJX2.LOG; as input
-RMS-E-FLK, file currently locked by another user
OSIJX2> type PWRK$MASTER_OSIJX2.LOG
%TYPE-W-OPENIN, error opening PWRK$COMMONROOT:[LOGS]PWRK$MASTER_OSIJX2.LOG;166 as input
-RMS-E-FLK, file currently locked by another user
OSIJX2>
I'd just like to read it, not edit it.
Thanks
Kirk
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 07:15 AM
тАО08-04-2004 07:15 AM
Re: how do I read a file that is flagged as locked
Your best bet: BACKU/IGNORE=INTERLOCK
Please note that the writer did NOT expect sharing, even prohibitied it. So the RMS function in the writer process is just filling buffers (8KB or 16KB or whatever SHOW RMS tells you) and NOT flushing out to disk. Even if it flushes the data as buffers get filled and re-used it will NOT update the exact EOF and it will heppily write a partial record. The next write will write the end of that partial.
So you may need an set file/end on the output from backup/ignore=inter and you may well end up with junk at some arbretrary multple of 8192 bytes.
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 08:45 PM
тАО08-04-2004 08:45 PM
Re: how do I read a file that is flagged as locked
you're using the EDT editor. Try using TPU:
$ EDIT/TPU/READ PWRK$MASTER_OSIJX2.LOG
If you prefer the EDT keypad in TPU - as I do - add DEFINE/JOB EVE$KEYPAD EDT to your LOGIN.COM.
TPU is better regarding the reading of files opened for write by another user (best example is OPERATOR.LOG)
If TPU can't open the file, then try the BACK/IGN=INTERLOCK method described by Hein.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 09:21 PM
тАО08-04-2004 09:21 PM
Re: how do I read a file that is flagged as locked
hth,
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 12:01 AM
тАО08-05-2004 12:01 AM
Re: how do I read a file that is flagged as locked
As many have mentioned here use the tpu editor. I have tried this with another file that was locked and it works
Try this....
OSIJX2> ed/tpu/read PWRK$MASTER_OSIJX2.LOG;
rgds
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 12:59 AM
тАО08-05-2004 12:59 AM
Re: how do I read a file that is flagged as locked
If the file is open in shared mode allowing readers, edt no longer works. TPU does.
If the file is exclusively open, all tools including tpu stop working except backup/ign=int.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 03:42 AM
тАО08-05-2004 03:42 AM
Re: how do I read a file that is flagged as locked
Kirk showed TYPE also failing, so I assume(d) that TPU woudl also fail.
On other tool well worth a try is: CONVERT/SHARE.
That will work nicely for cases where the original opener allows readers but not writers. Best I recall it uses the UPI open option though and may not see the right EOF.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 09:48 AM
тАО08-05-2004 09:48 AM
SolutionTracing the usage of this file, looking through old versions, I don't see why it is even open. It logs the PWRK$MASTER process startup and I've never seen anything in it from after that time. Pathworks does some strange things and the dozens of files it keeps open exclusive is a real PITA.
Here's what I see every version of the file:
$type pwrk$logs:PWRK$MASTER_TRULIN.LOG;-1
4-JUN-2004 10:46:25.22 00000229:002D7DC8 [eventlogger]
4-JUN-2004 10:46:25.44 00000229:002D7DC8 event_log_path = PWRK$COMMON:EVTLOGT
4-JUN-2004 10:46:25.44 00000229:002D7DC8 LIB_CSStartup: CS startup initiated f9
4-JUN-2004 10:46:25.53 00000229:002D7DC8 LIBMEM_init: intialised 16 lookaside l
4-JUN-2004 10:46:25.53 00000229:002D7DC8 [servers]
4-JUN-2004 10:46:25.53 00000229:002D7DC8 lanmanager = yes
4-JUN-2004 10:46:25.56 00000229:002D7DC8 PCM_init: initializing distributed da0
4-JUN-2004 10:46:25.56 00000229:002D7DC8 PFS_configure: loaded data cache
4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS library, version 17.1 configured,0
4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: check ODS2 File System,5
4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf
4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf
4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 07:03 PM
тАО08-05-2004 07:03 PM
Re: how do I read a file that is flagged as locked
what's your detailed trouble?
Reading PWRK$MASTER doesn't give you useful information; same for PWRK$MONITOR.
You can obtain some info from
$ ADMIN SHOW EVENT /SINCE=YESTERDAY
or else
$ ADMIN /ANALYZE /SINCE=YESTERDAY
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2004 02:34 AM
тАО08-06-2004 02:34 AM
Re: how do I read a file that is flagged as locked
Sometimes I think I screw up when I issue points, please don't be offended.
I think it will make most sense if I open a new post with the Pathworks issue I'm having.
Thanks again, I did learn about how OVMS handles file locking.
Rgds,
Kirk