Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

volmgt_running(3volmgt) [sunos man page]

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)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what version # I am running

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)
Discussion started by: rocker40
4 Replies

2. UNIX for Advanced & Expert Users

How to prevent job1 from running while job2 is running..

Hi, Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies

3. UNIX for Advanced & Expert Users

How to increase PV's in a Volume group ?

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)
Discussion started by: kpatel786
3 Replies

4. Shell Programming and Scripting

AWK with allow me to add spaces

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)
Discussion started by: rbulus
3 Replies

5. Linux

boot stop at Setting up Logical Volume Management

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)
Discussion started by: etcpasswd
5 Replies

6. Solaris

Sun Management Center Database

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)
Discussion started by: Mack1982
2 Replies

7. Red Hat

Volume group Command in LInux

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)
Discussion started by: Afi_Linux
6 Replies

8. UNIX for Dummies Questions & Answers

appending running numbers on a variable

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)
Discussion started by: jazzaddict
10 Replies

9. AIX

Create new Volume Group

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)
Discussion started by: Spellbound
4 Replies

10. IP Networking

IP Management

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)
Discussion started by: @dagio
2 Replies

11. UNIX for Dummies Questions & Answers

Benefit of Kernel

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)
Discussion started by: mahinkhan22
8 Replies

12. Solaris

Interface e1000g0 not showing in running state

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)
Discussion started by: rajjat2
10 Replies

13. UNIX for Dummies Questions & Answers

Format txt file in UNIX

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)
Discussion started by: kumar30213
5 Replies

14. UNIX for Advanced & Expert Users

Recruiting for an open source project

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)
Discussion started by: steadyonabix
6 Replies