MongoDB - Resore
MongoDB - Resore
- =======================
1980772 1e3964 10/30 14:03:07 4333 DistributedIDA::CMaster::InitializeEvEvent(343)
- STARTING DistributedIDA
1980772 1e3964 10/30 14:03:07 4333 DistributedIDA::CMaster::InitializeEvEvent(344)
- -----------------------
1980772 1e3964 10/30 14:03:07 4333 ::GetSubclientDir() - The subclient directory is
[/opt/commvault/iDataAgent/jobResults/2/0].
1980772 1e3964 10/30 14:03:07 4333 CvUCS::init_static() - Native charset="UTF-8".
1980772 1e3964 10/30 14:03:07 4333 CvUCS::init_static() - Great! This system is
using ISO/IEC 10646 character set for wchar_t. We will not be using iconv() API and
will be converting between MBE and UTF/UCS using C MBR functions.
1980772 1e3964 10/30 14:03:07 4333 CvUCS::init_static() - MBE happens to be UTF-8.
Will use strcpy for MBE<=>UTF-8 conversion.
1980772 1e3964 10/30 14:03:07 4333 DistributedIDA::CMaster::registerWithJM(911) -
Use jm control role [1]
1980772 1e3966 10/30 14:03:07 4333 SetupEventConnection() - Connection to EvMgrs is
successfull
1980772 1e3964 10/30 14:03:07 4333 DistributedIDA::CMaster::initialize(459) -
Threshold for stream failures per node is [3]
1980772 1e3964 10/30 14:03:07 4333
DistributedIDA::ICoordinator::UpdateSubclientDirectory(666) - Subclient directory
distribution is not enabled.
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(236) -
Destination Instance ID = [32]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(244) -
Discovering destination cluster
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbConnection::Impl::CheckAndInitializeSSLParams(221) - Additional
setting [bEnableMongoSSL] is not found to enable TLS/SSL parameters
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::LoadSslParamsFromCM(357) - Loading SSL params from
Credential Manager for associationId [-1] CredentialId [0]
1980772 1e3964 10/30 14:03:07 4333
CCredentialMgrHelper::getCredentialsFromAssocIdForEntity() - Error in getting
credetials from assocId [-1]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::LoadSslParamsFromCM(362) - Failed to load SSL params from
credential manager for association id [-1], CredId [0]. Return code: [100]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitializeMongoDbConnection(308) - Initializing
MongoDbConnetion with pseudoClient [mongo_rs0_TAA_Restore] instance [mongo_rs0]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbConnection::Impl::CheckAndInitializeSSLParams(221) - Additional
setting [bEnableMongoSSL] is not found to enable TLS/SSL parameters
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitFromInstanceProp(238) - Using authentication with
dbuser [commv]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitFromInstanceProp(246) - Using mongo install path
[/usr/bin]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitFromInstanceProp(248) - Using OS user [root]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitFromInstanceProp(254) - This is a single node replica
set instance
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::InitializeForDiscovery(419) - Found local client host name
[DestinationClient.domain] for client name [DestinationClient], client ID [135]
1980772 1e3964 10/30 14:03:07 4333 MongoDbIDA::MongoDbUtil::Discover(2521) -
Starting discover using hostname [DestinationClient.domain] port [27017] user
[commv]
1980772 1e3964 10/30 14:03:07 4333 MongoDbIDA::MongoDbUtil::RunMongoCmd(1719) -
Running cmd [mongod --version]
1980772 1e3964 10/30 14:03:07 4333 CvProcess::system() - "/usr/bin/mongod" --
version 2>&1
1980772 1e3964 10/30 14:03:07 4333 CvProcess::system() - Command completed with
rc=0
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::GetMongoDBServerVersion(2408) - Found MongoDB server
version [6.0.17]
1980772 1e3964 10/30 14:03:07 4333
MongoDbIDA::MongoDbUtil::IsMongodVersionSameAsOrAbove(929) - Found mongod version
6.0+
1980772 1e3964 10/30 14:03:07 4333 MongoDbIDA::MongoDbUtil::GetMongoShellExe(888) -
Using [mongosh] to run commands
1980772 1e3964 10/30 14:03:07 4333 MongoDbIDA::MongoDbUtil::RunMongoCmd(1719) -
Running cmd [mongosh --port 27017 --host DestinationClient.domain --eval
"EJSON.stringify(db.runCommand({ ping:1 }))"]
1980772 1e3964 10/30 14:03:07 4333 CvProcess::system() - "/usr/bin/mongosh" --port
27017 --DestinationClient.domain --eval
"EJSON.stringify(db.runCommand({ ping:1 }))" 2>&1
1980772 1e3964 10/30 14:03:08 4333 CvProcess::system() - Command completed with
rc=0
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(783) -
Connected to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{"isdbgrid" : 1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbConnection::Impl::RunCommand(386) - [Run admin command failed,
error message: [no such command: 'isdbgrid']]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::_RunMongoAdminCmd(9238)
- Failed to execute command [{"isdbgrid" : 1}]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::_RunMongoAdminCmd(9239)
- Error: [Run admin command failed, error message: [no such command: 'isdbgrid']]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{"isMaster" : 1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{ "replSetGetStatus": 1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{ "replSetGetConfig" : 1 }], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 CVClient() - File[Client.cpp], Line[132]
netHostName[DestinationClient.domain]: Warning, deprecated call to lookup client
using net hostname. Please use shortname instead
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::setServerProp(1267) -
Fetch server props for hostName [DestinationClient.domain] portNum[27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{"buildInfo" : 1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{"getCmdLineOpts" : 1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::setServerProp(1354) -
journal enabled: [1]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::setServerProp(1367) -
config file [/etc/mongod.conf]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::Connect(795) -
Reusing existing connection to [DestinationClient.domain:27017]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbConnection::RunCommand(853) -
database:[admin], command:[{"serverStatus":1}], slaveOK:[true]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::setServerProp(1506) -
storage engine name: [wiredTiger]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::setServerProp(1525) -
dbPath: [/mongodb/data]
1980772 1e3964 10/30 14:03:08 4333 MongoDbIDA::MongoDbUtil::Discover(2583) - Single
node replica set configuration found
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbUtil::GetCVclientsForIPs(4337) - GetClientsForIPAddressRequest
response: [<?xml version='1.0' encoding='utf-8' ?
><App_GetClientsForIPAddressResponse><clients clientName="DestinationClient"
clientId="135" hostName="10.X.X.X"/><clients clientName="LDestinationClient"
clientId="135"
hostName="DestinationClient.domain"/></App_GetClientsForIPAddressResponse>]
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbConnection::Impl::CheckAndInitializeSSLParams(221) - Additional
setting [bEnableMongoSSL] is not found to enable TLS/SSL parameters
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::CreateJobResultsDirectory(1803) -
Create job results directory: [/opt/commvault/iDataAgent/jobResults/2/256/4333]
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(274) - Source
Instance ID = [30]
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(283) - Fetching
default MA details
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(332) - Found
Linux/Windows MA
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Create3dfsNetworkShare(862) - TRACE
1980772 1e3964 10/30 14:03:08 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Create3dfsNetworkShare(889) -
Subclient level restore for backupset:[240], subclient:[256]
1980772 1e3964 10/30 14:03:08 4333 Tdfs::TdfsConfigClient::Check3dfsStatus(1447) -
3dfs Service status [8: TDFS_STARTED].
1980772 1e3964 10/30 14:03:08 4333
Tdfs::TdfsConfigClient::Create3dfsNetworkShare(2285) - SET 3dfs Share prop request
XML [<?xml version="1.0" encoding="UTF-8" standalone="no" ?
><App_Set3DFSSharePropsReq opType="4"><shareInfo acl="0" copyPrecedence="0"
fsmSubtype="1" fsmType="5" isForeverShare="0" isReadOnly="0" protocol="1"
shareName="share4333" showDeleted="0"><tdfsServer _type_="11" mediaAgentId="6"
mediaAgentName="MediAgentServer"/><subclient _type_="7" backupsetId="240"
subclientId="256"/><indexingServer _type_="11" mediaAgentId="6"
mediaAgentName="MediAgentServer"/><toTime _type_="55" time="1730105026"/><fromTime
_type_="55" time="0"/><nfsClients val="10.X.X.X.X"/><nfsClients
val="127.0.0.1"/></shareInfo></App_Set3DFSSharePropsReq>]
1980772 1e3964 10/30 14:03:08 4333
Tdfs::TdfsConfigClient::Create3dfsNetworkShare(2291) - SET 3dfs Share response xml
[<?xml version='1.0' encoding='utf-8' ?><App_Set3DFSSharePropsResp
shareId="3"><errorResp errorCode="0"/></App_Set3DFSSharePropsResp>]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Create3dfsNetworkShare(974) -
Created 3dfs network share with share id : [3]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Get3dfsMountDir(1391) - Creating
3dfs mount directory:
[/opt/commvault/iDataAgent/jobResults/2/256/4333/MongoDb3dfsMount/share3]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(817) - Mount Command:
[mount -t nfs "MediaAgentServer.domain:/share4333"
"/opt/commvault/iDataAgent/jobResults/2/256/4333/MongoDb3dfsMount/share3" -o
nolock,noatime,bg]
1980772 1e3964 10/30 14:03:09 4333 CvProcess::system() - mount -t nfs
"MediaAgentServer.Domain:/share4333"
"/opt/commvault/iDataAgent/jobResults/2/256/4333/MongoDb3dfsMount/share3" -o
nolock,noatime,bg
1980772 1e3964 10/30 14:03:09 4333 CvProcess::system() - Command completed with
rc=32
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(820) - Mount command
return code: [32], output: [], error: [mount:
/opt/commvault/iDataAgent64/jobResults/2/256/4333/MongoDb3dfsMount/share3: bad
option; for several filesystems (e.g. nfs, cifs) you might need a
/sbin/mount.<type> helper program.
]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(823) - Mount command
failed, returning error
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(357) - An
internal error occurred. (ERROR_INTERNAL_ERROR.1359), Mount command failed,
returning error (W32.1359): 0x8007054F:
{MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(357)/Failed to
mount 3dfs share} +
{MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(824)/W32.1359.(An
internal error occurred. (ERROR_INTERNAL_ERROR.1359))-Mount command failed,
returning error}
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::initialize(156) - Error occurred
while initializing granular recovery
1980772 1e3964 10/30 14:03:09 4333 DistributedIDA::CMaster::handleEventError(1143)
- 0x8007054F:{DistributedIDA::CMaster::initialize(487)} +
{MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(357)/Failed to
mount 3dfs share} +
{MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(824)/W32.1359.(An
internal error occurred. (ERROR_INTERNAL_ERROR.1359))-Mount command failed,
returning error}
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Delete3dfsNetworkShare(994) - Failed
to unmount [/opt/commvault/iDataAgent/jobResults/2/256/4333/MongoDb3dfsMount/
share3]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Delete3dfsNetworkShare(995) - umount
rc = [-1], errno = [22], Error: [Invalid argument]
1980772 1e3964 10/30 14:03:09 4333
MongoDbIDA::MongoDbGranularRestoreCoordinator::Delete3dfsNetworkShare(1023) -
Successfully deleted 3dfs share [3]
1980772 1e3964 10/30 14:03:09 4333 DistributedIDA::CMaster::endPhaseTasks(4127) -
m_jsStatus:2 m_jsStatusFor:2 m_jsPendingCause:4
1980772 1e3964 10/30 14:03:09 4333 Sending FAILED complete message to JM, 4333
1980772 1e3964 10/30 14:03:09 4333 main(164) - 0x8007054F:
{DistributedIDA::CMaster::initialize(487)} +
{MongoDbIDA::MongoDbGranularRestoreCoordinator::InitializeInternal(357)/Failed to
mount 3dfs share} +
{MongoDbIDA::MongoDbGranularRestoreCoordinator::Mount3dfsShare(824)/W32.1359.(An
internal error occurred. (ERROR_INTERNAL_ERROR.1359))-Mount command failed,
returning error}
1980772 1e3964 10/30 14:03:09 4333 main(172) - ---------------------
1980772 1e3964 10/30 14:03:09 4333 main(173) - ENDING DistributedIDA
1980772 1e3964 10/30 14:03:09 4333 main(174) - =====================
[root@Dest_Client Log_Files]#