LVOware
PRATTICO Consulting
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:
AIX
AIX Hardware Components
AIX Logical Volume Manager (LVM)
apache
Application
ASM
awk
Backup/Restore
bash
Checkpoint Firewall-1
coolscripts
CPU
DB2
Disk
DST
EMC
Environment
Epoch Time
File
Filesystem
Firmware
FTP
General UNIX
HACMP
Hitachi
HMC
HP/UX
HTTP
IBM
Infoprint Manager
IRIX
Java
Kerberos
Kernel
KSH
Linux
LPAR
Mail
Memory
MySQL
nawk
Network
NFS
NIM
Open Source Tools
Oracle
Performance Testing
Perl
PHP
postfix
Print
Process
Python
RDAC
Relational Databases
robot
RS/6000
Samba
Security
sed
Sendmail
Service Update Management Assistant
Shell
Software Packaging
Solaris
Solaris Volume Manager (SVM)
Solstice Disksuite
SPARC Storage Array (SSA)
SSH
Storage SAN
Sun Cluster
Sybase
TSM
TWS
Veritas Volume Manager (VXVM)
VI
VIO Server
VMware
WebMethods
WebSM
Websphere Application Server (WAS)
Websphere MQ
XWindows
Submitted by: lvo  
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
myPMS
Password
Management
System
by
Top 5 Submitters
lvo
1152
audet
37
kah00na
32
Mariom
24
lebjf000
14
Top 5 Searches
Category Solaris
49379
Category AIX
46267
Category General UNIX
43933
solaris
22927
aix
22116
Terms of Use
Privacy
Contact
coolcommands.com © 2012. All Right Reserved.
Programming by
PRATTICO Consulting
.
Hosting by
Apricusum