coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 22 guests online

Newest Member

beyondimagem

Hit Counter
9133552 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

ipcrm - how to clear a shared memory segment which ipcrm says does not exist
Description

If you run the following command to remove a shared memory segment and you get this error:

# ipcrm -m 65537
ipcrm: 0515-020 shmid(65537) was not found.

However, if you run the ipcs command, you still see the segment there:

# ipcs | grep 65537
m 65537 0x00000000 DCrw------- root system

If you look carefully, you will notice the "D" in the forth column. The "D" means:

D If the associated shared memory segment has been removed. It disappears when the last process attached to the segment detaches it.

So, to clear the shared memory segment, find the process which is still associated with the segment:

# ps -ef | grep process_owner

where process_owner is the name of the owner using the shared segment

Now kill the process found from the ps command above

# kill -9 pid

Running another ipcs command will show the shared memory segment no longer exists:

# ipcs | grep 65537
Example

ipcrm -m 65537

Return to search results

Random coolcommands

coolcommand: unset - how to delete a variable from your shell environment
Example: unset MYVAR
[show me the details]
coolcommand: chgroup - how to change attributes for groups in IBM AIX
Example: chgroup users=sam,carol,frank finance
[show me the details]
coolcommand: runmqchi - how to run a channel initiator process in Websphere MQ
Example: runmqchi
[show me the details]
coolcommand: how to determine which application created the OS core file in AIX
Example: /usr/sbin/lquerypv -h /tmp/core 6b0 64
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum