volmgt_running(3VOLMGT) Volume Management Library Functions volmgt_running(3VOLMGT)NAME
volmgt_running - return whether or not Volume Management is running
SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ]
#include <volmgt.h>
int volmgt_running(void);
DESCRIPTION
volmgt_running() tells whether or not Volume Management is running.
RETURN VALUES
A non-zero value is returned if Volume Management is running, else 0 is returned.
ERRORS
volmgt_running() will fail, returning 0, if a stat(2) or open(2) of /dev/volctl fails, or if any of the following is true:
ENXIO Volume Management is not running.
EINTR An interrupt signal was detected while checking to see if Volume Management was running.
EXAMPLES
Example 1: Using volmgt_running()
To see if Volume Management is running:
if (volmgt_running() != 0) {
(void) printf("Volume Management is running
");
} else {
(void) printf("Volume Management is NOT running
");
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO cc(1B), vold(1M), open(2), stat(2), volmgt_check(3VOLMGT), volmgt_inuse(3VOLMGT), attributes(5), volfs(7FS)NOTES
Volume Management must be running for many of the Volume Management library routines to work.
SunOS 5.10 31 Dec 1996 volmgt_running(3VOLMGT)
Check Out this Related Man Page
volmgt_inuse(3VOLMGT) Volume Management Library Functions volmgt_inuse(3VOLMGT)NAME
volmgt_inuse - check whether or not Volume Management is managing a pathname
SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ]
#include <volmgt.h>
int volmgt_inuse(char *pathname);
DESCRIPTION
volmgt_inuse() checks whether Volume Management is managing the specified pathname.
RETURN VALUES
A non-zero value is returned if Volume Management is managing the specified pathname, otherwise 0 is returned.
ERRORS
This routine can fail, returning 0, if a stat(2) of the supplied pathname or an open(2) of /dev/volctl fails, or if any of the following is
true:
ENXIO Volume Management is not running.
EINTR An interrupt signal was detected while checking for the supplied pathname for use.
EXAMPLES
Example 1: Using volmgt_inuse()
To see if Volume Management is managing the first floppy disk:
if (volmgt_inuse("/dev/rdiskette0") != 0) {
(void) printf("volmgt is managing diskette 0
");
} else {
(void) printf("volmgt is NOT managing diskette 0
");
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO cc(1B), vold(1M), open(2), stat(2), errno(3C), volmgt_check(3VOLMGT), volmgt_running(3VOLMGT), attributes(5), volfs(7FS)NOTES
This routine requires Volume Management to be running.
Since volmgt_inuse() returns 0 for two different cases (both when a volume is not in use, and when an error occurs), it is up to the user
to to check errno to differentiate the two, and to ensure that Volume Management is running.
SunOS 5.10 31 Dec 1996 volmgt_inuse(3VOLMGT)
I was wondering if there was a command to tell what version# I am running? I know it tells you on start up I am running 5.1.
But I thought there was a command to execute this also?
Thanks (4 Replies)
I have a Volume group on one of my production box. The no of PV's within the same is 16 which I need to increase.
How can this be done ?
Can this be done online or do we need a downtime for this ?
Please provide the exact details and steps for this activity urgently, as need to do this on my... (3 Replies)
I have a file like this:
running:running since Mon Mar 3 09:46:19 2008:
running:running since Thu Mar 6 22:36:51 2008:
running:running since Tue Dec 4 00:34:15 2007:
running:running since Tue Dec 4 00:34:16 2007:
running:running since Mon Jan 21 11:15:04 2008:
running:running since... (3 Replies)
I got a linux box tha was accidentally shutdown and on boot it stop at Setting up Logical Volume Management:. BTW, it's red hat version 4.2.1.13.
Here is the detail:
Thanks. (5 Replies)
Hi, I have some question regarding the Sun Management Center. Appreciate it if someone can answer:
Conceptual:
- Does the agent store any data on its side, or the entire data is transported to the management server?
- In order to graph a data property, history logging, for that data... (2 Replies)
Hi experts,
I'm trying to find otu the list of Volume groups and LUNs. I'm not able to use the following commands in Linux.
1. lvdisplay
2. pvdisplay
3. vgdisplay.
Error: Command not found.
Your help is appreciated!
Thanks, (6 Replies)
hi guys,
would appreciate some help here. I need to append running numbers using sed onto a variable that contain a list of IP addresses. I'm basically stuck on the running number part. e.g.
1. 10.0.0.1
2. 10.0.0.2
3. 10.0.0.3 (10 Replies)
Good afternoon all,
I'll probably confuse everyone as I'm a Windows guy dealing with AIX 6.1 and can't quite figure out how to do something. I have a P520 server running 2 LPARs and we have an IVM (not HMC).Within the IVM under Virtual Storage Management, when I check the Physical Volumes, I have... (4 Replies)
Hello all,
I was wondering which way do you use to manage you IPs?
For example in our case we have excel sheets and we export them in html first and import it to a server running apache, so to be visible from all.
But i was wondering if there are any way (prefer a way running in web server)... (2 Replies)
So I was wondering what are the benefits of Unix kernel?
It does Process Management, File Management, Main Memory Management and Disk Management!
Why couldn't operating system take care of these things? why did we need another intermediate :wall: (8 Replies)
Hello all,
I have a sun server SunOS PNR1RAD01 5.10 Generic_144488-09 sun4v sparc SUNW,Netra-T5220 where i have an interface e100g0.
This was earlier in running state but now this doesnt show running state. I tried to reset the interface, checked the cable but it did not help.
Can nyone pls... (10 Replies)
Hello All,
I have File_all.txt which have content as below
Volume in drive E is Data
Volume Serial Number is 586D-6932
Directory of E:\mydi2\siudfor\TFG058
03/27/2014 09:59 PM 5,569 FX\FX01 my4_pg4_MON_20140327_C.zip
1 File(s) 5,569 bytes
... (5 Replies)
I am posting this gauge the level of interest among the community in forming an open source team to work on an automation harness I am about to make available.
I already have a working POC running at my place of work, but it is not secure enough for production environments. However, I am about... (6 Replies)