On AIX 5.3 host, the lvm_queryvg call does not work properly and results in a sudden memory rise. This is happening on one particular host and the call works fine on another host.
Thanks a lot for your valuable comment.
I need to query this call with 1 element only and I have to process the output.
So is it for sure that pstat_getdisk() always returns 0 at the end of the...
As per the man page, pstat_getdisk() call returns the number of instances, which could be 0 upon successful completion, otherwise a value of -1 is returned.