Hi, thanks for following up over here on mongodb-dev.
You are using strip correctly. The only risk with what you are doing is that if you have a crash in your stripped mongod binary, it will be very hard to get a symbolized backtrace, because the required debugging information has been entirely removed.
A process which does not suffer from this downside is to copy the debug information out into a different ELF file using objcopy, and then use objcopy again to strip the debug information out of the binary while adding a "debug link" to the debug file. Then you store the separate debug information somewhere so that if you have a crash, you can put it back on the affected system and use it to examine a stack trace (with addr2line) or core (with gdb).
The process for mongod would look like:
objcopy --only-keep-debug mongod mongod.debug
objcopy --strip-debug --add-gnu-debuglink mongod.debug mongod
Then you put the stripped mongod on your deployment platform, and save the associated mongod.debug for investigating crashes or debugging.
There is a supported way to have the MongoDB build system do this for you automatically, but it unfortunately introduces additional complexities, so I'm hesitant to recommend it. There is also an experimental way to do this that does not come with those complexities, but I'm hesitant to recommend it as well since it is likely to change in the future.
Hope this helps.
Thanks,
Andrew