I am getting a lot of these in the log. Need some help to locate the problem. This is on CentOS 5.9 x86_64, running samba3-3.6.13-45.el5, ctdb-1.0.114.3-1. This is a 2 node cluster with drbd, gfs backend. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.231887, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.232201, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.232421, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.232594, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.232739, 0] rpc_client/cli_winreg_spoolss.c:917(winreg_create_printer) Apr 16 13:48:14 bdc smbd[5490]: winreg_create_printer_keys: Could not create key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP2100N: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.232895, 0] printing/nt_printing.c:1882(nt_printer_add) Apr 16 13:48:14 bdc smbd[5490]: nt_printer_add: failed to add printer HP2100N: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.233157, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.304231, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.364681, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.431233, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.503597, 0] rpc_client/cli_winreg_spoolss.c:917(winreg_create_printer) Apr 16 13:48:14 bdc smbd[5490]: winreg_create_printer_keys: Could not create key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP4050N: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.576014, 0] printing/nt_printing.c:1882(nt_printer_add) Apr 16 13:48:14 bdc smbd[5490]: nt_printer_add: failed to add printer HP4050N: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.648630, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.720832, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.793265, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:14 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.866371, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:14 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.926810, 0] rpc_client/cli_winreg_spoolss.c:917(winreg_create_printer) Apr 16 13:48:14 bdc smbd[5490]: winreg_create_printer_keys: Could not create key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP4050N at pdc: WERR_BADFILE Apr 16 13:48:14 bdc smbd[5490]: [2013/04/16 13:48:14.987225, 0] printing/nt_printing.c:1882(nt_printer_add) Apr 16 13:48:15 bdc smbd[5490]: nt_printer_add: failed to add printer HP4050N at pdc: WERR_BADFILE Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.047774, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:15 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.108066, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:15 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.168589, 0] rpc_server/rpc_handles.c:156(create_rpc_handle_internal) Apr 16 13:48:15 bdc smbd[5490]: create_policy_hnd: ERROR: too many handles (2049) on this pipe. Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.241062, 0] rpc_client/cli_winreg_spoolss.c:244(winreg_printer_openkey) Apr 16 13:48:15 bdc smbd[5490]: winreg_printer_openkey: Could not open HKLM hive: WERR_BADFILE Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.313423, 0] rpc_client/cli_winreg_spoolss.c:917(winreg_create_printer) Apr 16 13:48:15 bdc smbd[5490]: winreg_create_printer_keys: Could not create key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP2100N at pdc: WERR_BADFILE Apr 16 13:48:15 bdc smbd[5490]: [2013/04/16 13:48:15.385942, 0] printing/nt_printing.c:1882(nt_printer_add) Apr 16 13:48:15 bdc smbd[5490]: nt_printer_add: failed to add printer HP2100N at pdc: WERR_BADFILE