Hi all,
One more question. When I restore physical backupset, the pbm reports “too many files” error and fails. The error looks like this:
Sep 19 13:13:23 stb-mongob-140 pbm-agent: 2022-09-19T13:13:23.000+0800 E [restore/2022-09-18T08:39:39Z] mark restore as failed `copy files: create destination file </usr/local/mongodb/collection-1626--4342777260254070919.wt>: open /usr/local/mongodb/collection-1626--4342777260254070919.wt: too many open files`: set backup state: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: 192.168.11.40:27019, Type: Unknown, Last error: connection() error occured during connection handshake: dial tcp 192.168.11.40:27019: connect: connection refused }, { Addr: 192.168.11.41:27019, Type: Unknown, Last error: connection() error occured during connection handshake: dial tcp 192.168.11.41:27019: connect: connection refused }, { Addr: 192.168.1.40:27019, Type: Unknown, Last error: connection() error occured during connection handshake: dial tcp 192.168.1.40:27019: connect: connection refused }, ] }
Sep 19 13:13:23 stb-mongob-140 pbm-agent: 2022-09-19T13:13:23.000+0800 I [restore/2022-09-18T08:39:39Z] restore finished copy files: create destination file </usr/local/mongodb/collection-1626--4342777260254070919.wt>: open /usr/local/mongodb/collection-1626--4342777260254070919.wt: too many open files
Sep 19 13:13:23 stb-mongob-140 pbm-agent: 2022-09-19T13:13:23.000+0800 E [restore/2022-09-18T08:39:39Z] copy files: create destination file </usr/local/mongodb/collection-1626--4342777260254070919.wt>: open /usr/local/mongodb/collection-1626--4342777260254070919.wt: too many open files
Sep 19 13:13:23 stb-mongob-140 pbm-agent: 2022-09-19T13:13:23.000+0800 I change stream was closed
Sep 19 13:13:23 stb-mongob-140 pbm-agent: 2022/09/19 13:13:23 Exit: <nil>
My mongodb environment:
server1: mongod port 27018, config server port 27019, mongos port 27020
server2: mongod port 27018, config server port 27019, mongos port 27020
server3: mongod port 27018, config server port 27019, mongos port 27020
All three mongod instances are PSS called stb1. I created a NFS service by Linux server. The backupset was saved to NFS mount point, /backup.
I’m not sure what’s the “too many files” error comes from. Does the NFS server return the error or PBM?
Could you please advise?
Thanks,
Dillon