Date: Nov 2008
Product & Version: NVBU 8.x
OS Version: MAC OSX 10.4
Module & Version: N/A
Application version:N/A
Symptoms:
Netvault services will not start on a MAC, trace on nvpmgr shows:
3 SHM :4463 6 0 164525 ShmAllocate(0x13584, 16384000)
3 SHM :4463 7 0 164525 failed to get 16384000 byes of shared memory: (22) Invalid argument
3 SHM :4463 10 0 164525 FALSE = ShmAllocate(0x0x13584, 16384000)
0 PMGR :4463 27 0 164525 failed to get shared memory for process manager
2 PMGR :4463 35 0 164525 PmgrInitSharedMem return FALSE
0 PMGR :4463 158 0 164525 Failed to initialize shared memory
1 PMGR :4463 146 0 164525 FALSE = PmgrInitialize()
0 PMGR :4463 2 1 164525 Failed to initialize giveup
Check the value of shmmax:
sysctl -a |grep shmmax
Make sure that this is:
1) not -1
2) a valid number which does not exceed the size of the physical memory
3) equal to shmmin * 4096 (default block size)
If all the above are true, increase the value of shmmax to approximately 50% of the physical memory, note that this is a guideline and the exact value would depend on what is running on the system and how much physical memory there is.
Explanation:
NetVault requires a minimum amount of shared memory to run, and requires further shared memory depending on configuration of physical devices. If there is insufficient shared memory, or the shared memory is configured to a non-valid value, Netvault will fail to start.