我在 Ubuntu 20.04 LTS 和 Ubuntu 22.04 LTS 上遇到了一种奇怪的奇怪行为(没有足够的形容词来形容)。
这是 IBM Db2 测试服务器。该服务器在 db2inst1 用户 ID(UID 1002)下运行 Db2 服务。服务器名称为 srv-db2-teste。
每次我使用 db2inst1 用户 ID 从远程计算机运行 ascp
或 arsync
到 srv-db2-teste 服务器时,在成功复制文件后,在该用户 ID 下运行的所有服务(我说的是所有服务)都会被终止!无论正在运行什么进程,在 db2inst1 用户下运行的所有进程都会停止。
Db2 在端口 50000 上运行,但我已经测试了其他端口,它仍然会终止进程。
例如:进入远程机器,我执行此复制命令:
dba@workstation1:~$ scp /db2/files/* db2inst1@srv-db2-teste:/db2/files/
我已经用其他用户 ID 进行了测试,其行为是一样的:除用户 root 之外的所有进程都关闭(不明白为什么 root 完好无损)。
当进入 db2top(Db2 应用程序)进行远程 scp 后崩溃时,出现以下错误:
SQL1224N The database manager is not able to accept new requests, has
terminated all requests in progress, or has terminated the specified request
because of an error or a forced interrupt. SQLSTATE=55032
(semctl (*id,0,IPC_RMID, (union semun) x)): Invalid argument
db2inst1@srv-db2-teste:~$
测试服务器的日志显示:
Nov 14 11:09:21 srv-db2-teste sshd[5247]: Accepted password for db2inst1 from 192.168.172.10 port 33032 ssh2
Nov 14 11:09:21 srv-db2-teste sshd[5247]: pam_unix(sshd:session): session opened for user db2inst1(uid=1002) by (uid=0)
Nov 14 11:09:21 srv-db2-teste systemd[1]: Created slice User Slice of UID 1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Starting User Runtime Directory /run/user/1002...
Nov 14 11:09:21 srv-db2-teste systemd-logind[1110]: New session 15 of user db2inst1.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Finished User Runtime Directory /run/user/1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Starting User Manager for UID 1002...
Nov 14 11:09:21 srv-db2-teste systemd[5254]: pam_unix(systemd-user:session): session opened for user db2inst1(uid=1002) by (uid=0)
Nov 14 11:09:21 srv-db2-teste ntpd[1141]: Soliciting pool server 137.184.81.69
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Queued start job for default target Main User Target.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Created slice User Application Slice.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Paths.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Timers.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Starting D-Bus User Message Bus Socket...
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG network certificate management daemon.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on debconf communication socket.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on REST API socket for snapd user session agent.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on D-Bus User Message Bus Socket.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Sockets.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Basic System.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Main User Target.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Startup finished in 87ms.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Started User Manager for UID 1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Started Session 15 of User db2inst1.
Nov 14 11:09:22 srv-db2-teste sshd[5333]: Received disconnect from 192.168.172.10 port 33032:11: disconnected by user
Nov 14 11:09:22 srv-db2-teste sshd[5333]: Disconnected from user db2inst1 192.168.172.10 port 33032
Nov 14 11:09:22 srv-db2-teste sshd[5247]: pam_unix(sshd:session): session closed for user db2inst1
Nov 14 11:09:22 srv-db2-teste systemd[1]: session-15.scope: Deactivated successfully.
Nov 14 11:09:22 srv-db2-teste systemd-logind[1110]: Session 15 logged out. Waiting for processes to exit.
Nov 14 11:09:22 srv-db2-teste systemd-logind[1110]: Removed session 15.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopping User Manager for UID 1002...
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Main User Target.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Basic System.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Paths.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Sockets.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Timers.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed D-Bus User Message Bus Socket.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG network certificate management daemon.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed debconf communication socket.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed REST API socket for snapd user session agent.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Removed slice User Application Slice.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Reached target Shutdown.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Finished Exit the Session.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Reached target Exit the Session.
Nov 14 11:09:32 srv-db2-teste systemd[5255]: pam_unix(systemd-user:session): session closed for user db2inst1
Nov 14 11:09:32 srv-db2-teste systemd[1]: [email protected]: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopped User Manager for UID 1002.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopping User Runtime Directory /run/user/1002...
Nov 14 11:09:32 srv-db2-teste systemd[1]: run-user-1002.mount: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: [email protected]: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopped User Runtime Directory /run/user/1002.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Removed slice User Slice of UID 1002.
我从来没有见过这样的事情......非常感谢任何帮助!