System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Run command vgdisplay found error

study unix
Regular Advisor

Run command vgdisplay found error

Hi ,
Run vgdisplay found error, how to deal with it?
Thanks!

# vgdisplay -v
exec(2): data exceeds user's limits
sh: /usr/sbin/vgdisplay: There is not enough memory available to run the command.
# ll /sbin/vgdisplay
-rwxr--r-- 32 root sys 2521004 Sep 20 18:15 /sbin/vgdisplay
8 REPLIES
study unix
Regular Advisor

Re: Run command vgdisplay found error

who can give some suggestion ? thanks!
Dennis Handly
Acclaimed Contributor

Re: Run command vgdisplay found error

# vgdisplay -v
exec(2): data exceeds user's limits

What HP-UX version do you have?
What do "ulimit -a" and "kctune | grep maxdsiz" show?
Torsten.
Acclaimed Contributor

Re: Run command vgdisplay found error

You wrote

sh: /usr/sbin/vgdisplay: There is not enough memory available to run the command.
# ll /sbin/vgdisplay



These are 2 different binaries, one in /sbin, the other in /usr/sbin


Try both, same result?

Try "file" or "what" on both.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Manix
Honored Contributor

Re: Run command vgdisplay found error

Please check swap & memory usage using

swapinfo -tam ( paste the output )

& dmesg | grep -i physical ( for RAM size )

usage can be checked using TOP & GLANCE
HP-UX been always lovable - Mani Kalra
Viktor Balogh
Honored Contributor

Re: Run command vgdisplay found error

Hello,

Check your ulimit settings, I think that you are limited by ulimit.

# ulimit -a

Regards,
Viktor
****
Unix operates with beer.
study unix
Regular Advisor

Re: Run command vgdisplay found error

Hello,
Thanks for your reply,
and "ulimit" output as below, memory is unlimited, and run /usr/sbin/vgdisplay /sbin/vgdisplay is got the same error, who give some suggestiong?
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1024
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194307
nofiles(descriptors) 512

Dennis Handly
Acclaimed Contributor

Re: Run command vgdisplay found error

>"ulimit" output as below
>data(kbytes) 1024

You can't have data at 1 Mb. You need to increase it to at least 1 Gb.
Viktor Balogh
Honored Contributor

Re: Run command vgdisplay found error

Hi,

This will set the data limit to 256MByte:

# ulimit -d 262144

Regards,
Viktor
****
Unix operates with beer.