- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- What command to use for retrieving File System
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
Forums
Discussions
Discussions
Discussions
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
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
09-23-2008 11:17 PM
09-23-2008 11:17 PM
What command to use for retrieving File System
What does that mean. How can I retrieve information of only Filesystem on Node1.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 11:42 PM
09-23-2008 11:42 PM
Re: What command to use for retrieving File System
To get JUST THE node1 DISKS, YOU CAN USE:
$ SHOW DEV D /SEARCH=NODE1/PAGE
(/PAGE is required with /SEARCH, at least on VMS 7.2)
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 12:11 AM
09-24-2008 12:11 AM
Re: What command to use for retrieving File System
> will show up on all nodes. [...]
Well, any disk which is served to the cluster
will "show up on all nodes", but it will be
mounted cluster-wide only if the MOUNT
command included /CLUSTER.
If you really want someone to interpret your
SHOW DEVICE report for you, you might
consider exhibiting it. The real thing
almost always beats a description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 12:23 AM
09-24-2008 12:23 AM
Re: What command to use for retrieving File System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 12:38 AM
09-24-2008 12:38 AM
Re: What command to use for retrieving File System
If a disk is mounted in the cluster, it will be available on all systems so there is no real distiction between the nodes - a VMS cluster is ONE management unit and (except explicitly specified otherwise) ALL devices are shared between the nodes.
It might be that adding the parentheses
in tyhe search argument may do the trick:
$ PIPE SHO DEV D/SEARCH="(node1)" /PAGE
otherwise, you'll have to process the output and retrieve only those lines that haev the nodename in parentheses directly following the device. But again: no cluster at hand so just an idea.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 12:57 AM
09-24-2008 12:57 AM
Re: What command to use for retrieving File System
When I fire SHOW DEV /FULL, for file systems which are from this node, it shows as "served to cluster via MSCP "
For Filesystem of another node it does not give description as via MSCP Server.
What does this mean. Is it correct way to check which filesystem belongs to current node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:05 AM
09-24-2008 01:05 AM
Re: What command to use for retrieving File System
PIPE SHOW DEV D |SEAR SYS$INPUT NODE1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:11 AM
09-24-2008 01:11 AM
Re: What command to use for retrieving File System
I think we are closing to what I require. Here what command gives output is that it shows Filesystem of
$1$DKA0: (MODE2 NAME)
But for FileSystem of Node1 (actual system where I am running command), it does not give any name against FileSystem. So I need something opposite to what this commands does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:21 AM
09-24-2008 01:21 AM
Re: What command to use for retrieving File System
I am not able to understand your objective. Could you please explain what you are trying to achieve.
Regards
Sanjay Kumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:26 AM
09-24-2008 01:26 AM
Re: What command to use for retrieving File System
I want to have output with the Device with(AIN) not a part of output. Attaching Expe
I hope it will be much clear now.
Thanks Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:40 AM
09-24-2008 01:40 AM
Re: What command to use for retrieving File System
SHOW DEVICE D/MOUNTED/SERVED
seems to come near what You want.
But it probably will not list disks which are not served to the cluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 01:49 AM
09-24-2008 01:49 AM
Re: What command to use for retrieving File System
SHOW DEVICE /SERVED
If You want to see only locally mounted disks, then I think You have to write a command-file doing a device-scan into variable DISK, then looking for each device at
f$getdvi(DISK,"REMOTE_DEVICE") or
F$GETDVI(DISK,"DFS_ACCESS") or
to exclude them from the display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 02:01 AM
09-24-2008 02:01 AM
Re: What command to use for retrieving File System
Let me begin with a
Warm welcome to the VMS forum!
Your specific question:
$ pipe show device d | search sys$input "AIN" /match=nor
will exclude any lines containing "AIN" from the output of SHOW DEVICE D
If I understood correctly, that was what you asked for.
But have a second look at the output: it has a column headed: "Mount count"
If that number is more than 1, tou are really looking at something that simply DOES NOT EXIST in any OS except VMS or Tru64: That drive is DIRECTLY adreesable from ALL nodes (physically not always entirely true, but logically it is LOCALLY mounted SIMULTANUOUS on ALL nodes.
hth.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 02:03 AM
09-24-2008 02:03 AM
Re: What command to use for retrieving File System
$ ON WARNING THEN GOSUB ERROR_HANDLER
$ ON CONTROL_Y THEN GOTO EXIT_PROCEDURE
$ !
$ ! Loop through the disks
$ !
$ NEXT_DISK:
$ DISK = F$DEVICE("*","DISK")
$ IF DISK .EQS. "" THEN GOTO NO_MORE_DISKS
$ IF .NOT. F$GETDVI(DISK,"MNT") THEN GOTO NEXT_DISK ! Not mounted
$! check the disk is LOCAL/served by this node
$ IF f$getdvi(DISK,"REMOTE_DEVICE") THEN GOTO NEXT_DISK ! remote served
$ IF F$GETDVI(DISK,"DFS_ACCESS") THEN GOTO NEXT_DISK ! e.g. DNFS
$ IF F$GETDVI(DISK,"SHDW_MEMBER") THEN GOTO NEXT_DISK ! Shadow member
$ IF F$GETDVI(DISK,"VOLNUMBER") .GT. 1 THEN GOTO NEXT_DISK ! Vol. set
$ SHOW DEVICE 'DISK'
$ GOTO NEXT_DISK
$ !
$ EXIT_PROCEDURE:
$ WRITE SYS$OUTPUT "... Procedure cancelled "
$ !
$ NO_MORE_DISKS:
$ SET NOON
$ EXIT
$ !
$ ERROR_HANDLER:
$ SET NOON
$ write sys$output " error on disk ",DISK
$ RETURN
$! DCL procedure written by Joseph Huber
To have a more compact display, replace the simple "SHOW DEVICE 'disk'" command by a write statement extracted from each disk using f$getdvi(disk,...).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 02:07 AM
09-24-2008 02:07 AM
Re: What command to use for retrieving File System
To again refrain..
I have to use DCL statemement to parse as XML statement to system and then retrieve output.
Now show device /served thus this but problem is it removes VOLUME LABEL!!!!!!! Phewwww
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:04 AM
09-24-2008 03:04 AM
Re: What command to use for retrieving File System
f$getdvi(disk,"VOLNAM") etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:12 AM
09-24-2008 03:12 AM
Re: What command to use for retrieving File System
As Joseph has already noted, if you are in a command file already, then the F$GETDVI lexical function in DCL is the best vehicle for extracting information about a device and the volume on it.
IMHO, parsing the output of a SHOW command is a risky business. Most of the information available using SHOW DEVICE is available using the lexical function.
This is a somewhat different structure than is common in the *IX world, where using pipes is the standard solution.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:14 AM
09-24-2008 03:14 AM
Re: What command to use for retrieving File System
Maybe You are intersted in looking at my disk_space command-file
http://wwwvms.mppmu.mpg.de/disk$www/com/disk_space.com
( @disk_space "" LOCAL )
to see how to get all needed info using f$getdvi.
Then replace the screen output with formatting the XML output as needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:51 AM
09-24-2008 03:51 AM
Re: What command to use for retrieving File System
PIPE SHO DEV D | sea sys$pipe "CPQMEG$D"
would give exactly what you expect.
Which may, or may not, be the exact representation of your environment. Further more, it will cause problems where alloclass set set, or disks are served to the cluster. The suggestion by Joseph and Rob to use F$GETDVI is far more reliable and portable over VMS systems.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 05:56 AM
09-24-2008 05:56 AM
Re: What command to use for retrieving File System
And there are all manner of wrinkles here, as you can have any of various storage configurations; stuff that's not local, but often served from the local host. (DSSI, for instance.)
You're really headed into a murky area, and the shared-write nature of the file system and the storage-only and cluster communications interconnects can really make for a complex view of the storage environment. Yes, a DCL solution could almost certainly be implemented, but you'll be chasing corner cases if you're not very careful. I'd go with the system services here.
And for clarity: parsing DCL output is going to lead to support issues. Don't do that. It's common and often preferred on Unix, though it's not the best solution and most stable on OpenVMS.