Networker

[Networker] How to query for whether a volume is mounted?

2008-05-06 11:55:54
Subject: [Networker] How to query for whether a volume is mounted?
From: MIchael Leone <Michael.Leone AT PHA.PHILA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 6 May 2008 11:52:00 -0400
I have a script that deleted cloned savesets, and frees up disk space, on 
adv_file devices (I only have enough disk space for one days's backup, so 
every day, we run scripts to delete data off the adv-file disk device, 
that has been cloned to tape [i.e., copies=2]). Problem is, some of my 
clients are virtual servers, on a cluster (Win2003). 

So sometimes the disk device is mounted on NODE1, and the volume is 
NWSERVER.001.RO, and sometimes the disk device is mounted on NODE2, and so 
the volume is NWSERVER.002.RO, depending on which node is hosting the 
virtual server. And only 1 volume is mounted at a time, of course.

So I'd like to query NW, and ask which one of those 2 volumes are mounted, 
and issue a "nsrstage -v -C -V %tapevol%" accordingly.

Thoughts? I can't seem to figure out how to do this. this isn't a mminfo 
query, but I don't know what type of query it is.

Thanks


-- 
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
2500 Jackson St
Philadelphia, PA 19145
Tel:  215-684-4180
Cell: 215-252-0143
<mailto:michael.leone AT pha.phila DOT gov>

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER