Hi,
1) I launch mongo with the database local with
D:\mongodb-win32-x86_64-2.0.3\bin\mongod.exe --install --logpath=C:\%PATH_TO_LOG%\Mongo.log --logappend --dbpath="D:\%PATH_TO_DB%" --auth
2) I start the service
3) I reboot
=> no problem
But if I try the same with the db being on an external disk reached through a windows network (replace --dbpath="\\%NETWORK_DISK%\%PATH_TO_DB%") then when I reboot, the service fails
to start. It is blocked by the lock file.
Log:
Mon Apr 30 16:02:07 [initandlisten] MongoDB starting : pid=2776 port=27017 dbpath=\\%NETWORK_DISK%\%PATH_TO_DB% 64-bit host=
Mon Apr 30 16:02:07 [initandlisten] db version v2.0.3, pdfile version 4.5
Mon Apr 30 16:02:07 [initandlisten] git version: 05bb8aa793660af8fce7e36b510ad48c27439697
Mon Apr 30 16:02:07 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_42
Mon Apr 30 16:02:07 [initandlisten] options: { auth: true, dbpath: "\\%NETWORK_DISK%\%PATH_TO_DB%", logappend: true, logpath: "C:\%PATH_TO_LOG%\Mongo.log", service: true }
Mon Apr 30 16:02:11 shutdown: going to close listening sockets...
Mon Apr 30 16:02:11 shutdown: going to flush diaglog...
Mon Apr 30 16:02:11 shutdown: going to close sockets...
Mon Apr 30 16:02:11 shutdown: waiting for fs preallocator...
Mon Apr 30 16:02:11 shutdown: lock for final commit...
Mon Apr 30 16:02:11 shutdown: final commit...
Mon Apr 30 16:02:11 shutdown: closing all files...
Mon Apr 30 16:02:11 closeAllFiles() finished
Mon Apr 30 16:02:11 shutdown: removing fs lock...
Mon Apr 30 16:02:11 [initandlisten] journal dir=\\%NETWORK_DISK%\%PATH_TO_DB%/journal