Thanks Ramachandra,
I have followed the steps able to connect now from ort 28000 in mongo but still data is showing 0 in size DBs
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
> use admin
switched to db admin
> db.shutdownServer();
server should be down...
Got the message below in mongod
{"t":{"$date":"2021-08-21T23:49:22.214+05:30"},"s":"I", "c":"STORAGE", "id":22281, "ctx":"conn1","msg":"shutdown: removing fs lock..."}
{"t":{"$date":"2021-08-21T23:49:22.216+05:30"},"s":"I", "c":"-", "id":4784931, "ctx":"conn1","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2021-08-21T23:49:22.221+05:30"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"conn1","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2021-08-21T23:49:22.221+05:30"},"s":"I", "c":"FTDC", "id":20626, "ctx":"conn1","msg":"Shutting down full-time diagnostic data capture"}
{"t":{"$date":"2021-08-21T23:49:22.225+05:30"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"conn1","msg":"Now exiting"}
{"t":{"$date":"2021-08-21T23:49:22.226+05:30"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"conn1","msg":"Shutting down","attr":{"exitCode":0}}
Also stopped manually :
C:\Program Files\MongoDB\Server\5.0\bin>net stop MongoDB
The MongoDB Server (MongoDB) service is not started.
More help is available by typing NET HELPMSG 3521.
and started again the restore with below port command:
C:\Program Files\MongoDB\Server\5.0\bin>mongod --port 28000 --dbpath E:/restore_backup
{"t":{"$date":"2021-08-21T23:53:43.927+05:30"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"-","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-08-21T23:53:43.933+05:30"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-08-21T23:53:44.578+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-08-21T23:53:44.579+05:30"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2021-08-21T23:53:44.584+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-08-21T23:53:44.585+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}}
in one terminal and open the session in another terminal to login to mongod
am able to connect to mongo with port 28000, but again data is not stored, all dbs showing 0.0 G data
C:\Program Files\MongoDB\Server\5.0\bin>mongo --port 28000
MongoDB shell version v5.0.2
connecting to: mongodb://127.0.0.1:28000/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("2573c6ec-3eac-42c6-ad6d-b685ef500e05") }
MongoDB server version: 5.0.2
================
Warning: the "mongo" shell has been superseded by "mongosh",
which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
an upcoming release.
We recommend you begin using "mongosh".
For installation instructions, see
https://docs.mongodb.com/mongodb-shell/install/
================
---
The server generated these startup warnings when booting:
2021-08-22T00:04:18.931+05:30: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
2021-08-22T00:04:18.933+05:30: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
---
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).
The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.
To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
>
Any suggestion here, DBA team is saying that they have all the files for older data to restore in /data/db dir in standalone prod db, i copied all the files to local system in E:\restore_backup and run the above commands but data is not present it’s showing 0 there.