Remote Mount CIFS VFS Error 11 and 33

  • Hello


    I am using Remote Mount to Mount a SMB Share (there are no other connections available) which I use for backup via rdiff on console.


    During Backup sometimes I run in Errors:
    CIFS VFS: Error -11 sending data on socket to server
    CIFS VFS: Error -32 sending data on socket so server
    CIFS VFS sends on sock XXXXXXXXX stuck for 15 seconds


    Via Google I have found:

    Zitat

    Beim Versand größerer Datenmengen können auf manchen Systemen ähnliche Fehlermeldungen wie auch oben beschrieben auftreten. Durch ein Deaktivieren des sog. "Opportunistic Locking" kann dies behoben werden. Dazu muss in der Datei /proc/fs/cifs/OplockEnabled der Wert von '1' auf '0' geändert werden. Da die Datei beim Start von cifs geschrieben wird, muss sie bei jedem Systemstart geändert werden. Dies wird durch ein Einfügen folgender Zeilen
    modprobe cifsecho 0 > /proc/fs/cifs/OplockEnabled# die Zeile exit 0 ist schon vorhandenexit 0in /etc/rc.local erreicht.

    But I am not able to set this file.


    So I thought maybe it has to do with the plugin?

    • Offizieller Beitrag

    oplocks are a server side option. The plugin is the client and can't change how the server is setup.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Oh okay thanks... We are trying to solve our Problems to make the connection to the Samba Server more stable.


    In the meantime there is another problem, if the remote mount is down: the hole Server isn't reachable, also the local filesystems. A reboot helps even if the samba server is still down, then the remote mount is simple N/V.
    Screenshots added.


    dmesg:
    [15802.332205] CIFS VFS: sends on sock 00000000e1fe2a4f stuck for 15 seconds
    [15802.332344] CIFS VFS: Error -11 sending data on socket to server
    [19396.572202] CIFS VFS: sends on sock 000000005b863fb9 stuck for 15 seconds
    [19396.572395] CIFS VFS: Error -11 sending data on socket to server
    [39051.363171] CIFS VFS: Send error in write = -5
    [44605.660223] CIFS VFS: sends on sock 000000006decb5a7 stuck for 15 seconds
    [44605.660421] CIFS VFS: Error -11 sending data on socket to server
    [49420.766194] CIFS VFS: Server 10.10.0.16 has not responded in 120 seconds. Reconnecting...
    [49480.885894] CIFS VFS: Send error in SessSetup = -11
    [58999.260240] CIFS VFS: sends on sock 00000000909a994a stuck for 15 seconds
    [58999.260426] CIFS VFS: Error -11 sending data on socket to server
    [80598.240183] CIFS VFS: sends on sock 00000000a01b2191 stuck for 15 seconds
    [80598.240477] CIFS VFS: Error -11 sending data on socket to server
    [84216.796294] CIFS VFS: sends on sock 00000000a01b2191 stuck for 15 seconds
    [84216.796477] CIFS VFS: Error -11 sending data on socket to server
    [87800.796232] CIFS VFS: sends on sock 00000000e8494bb2 stuck for 15 seconds
    [87800.796427] CIFS VFS: Error -11 sending data on socket to server
    [91429.084155] CIFS VFS: sends on sock 0000000004a29b29 stuck for 15 seconds
    [91429.084362] CIFS VFS: Error -11 sending data on socket to server
    [91445.972240] Status code returned 0xc0000128 STATUS_FILE_CLOSED
    [91445.972269] CIFS VFS: Send error in read = -9
    [95002.076191] CIFS VFS: sends on sock 000000004b1cb2fc stuck for 15 seconds
    [95002.076376] CIFS VFS: Error -11 sending data on socket to server
    [98604.252148] CIFS VFS: sends on sock 00000000664afcd2 stuck for 15 seconds
    [98604.252357] CIFS VFS: Error -11 sending data on socket to server
    [99566.556520] INFO: task afpd:10393 blocked for more than 120 seconds.
    [99566.556708] Not tainted 4.18.0-0.bpo.3-amd64 #1 Debian 4.18.20-2~bpo9+1
    [99566.561807] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [99566.563117] afpdD0 10393943 0x00000004
    [99566.563126] Call Trace:
    [99566.563236] ? __schedule+0x3f5/0x880
    [99566.563260] ? default_file_splice_write+0x20/0x20
    [99566.563263] schedule+0x32/0x80
    [99566.563266] wb_wait_for_completion+0x5e/0x90
    [99566.563296] ? remove_wait_queue+0x60/0x60
    [99566.563299] sync_inodes_sb+0xa7/0x280
    [99566.563308] ? default_file_splice_write+0x20/0x20
    [99566.563317] iterate_supers+0xb5/0x100
    [99566.563325] ksys_sync+0x40/0xb0
    [99566.563332] __ia32_sys_sync+0xa/0x10
    [99566.563344] do_syscall_64+0x55/0x110
    [99566.563352] entry_SYSCALL_64_after_hwframe+0x44/0xa9
    [99566.563377] RIP: 0033:0x7f98c2f715b7
    [99566.563378] Code: Bad RIP value.
    [99566.563397] RSP: 002b:00007fff14ab7578 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
    [99566.563403] RAX: ffffffffffffffda RBX: 000000000108ee40 RCX: 00007f98c2f715b7
    [99566.563405] RDX: 0000000000000000 RSI: 0000000002000000 RDI: 0000000000000700
    [99566.563406] RBP: 00007f98bff68010 R08: 000000000107bee0 R09: 00000000000031fa
    [99566.563408] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000004e
    [99566.563409] R13: 0000000000000000 R14: 000000000106b7f0 R15: 0000000000000000
    [..................................]
    [119020.520719] INFO: task rdiff-backup:28397 blocked for more than 120 seconds.
    [119020.521581] Not tainted 4.18.0-0.bpo.3-amd64 #1 Debian 4.18.20-2~bpo9+1
    [119020.522456] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [119020.523329] rdiff-backupD0 28397 3679 0x00000000
    [119020.523332] Call Trace:
    [119020.523355] ? __schedule+0x3f5/0x880
    [119020.523357] schedule+0x32/0x80
    [119020.523358] schedule_preempt_disabled+0xa/0x10
    [119020.523360] __mutex_lock.isra.3+0x2c3/0x500
    [119020.523375] ? vring_mapping_error+0x16/0x60 [virtio_ring]
    [119020.523394] ? smb2_reconnect+0xe7/0x4b0 [cifs]
    [119020.523410] smb2_reconnect+0xe7/0x4b0 [cifs]
    [119020.523415] ? get_partial_node.isra.68+0x201/0x240
    [119020.523431] smb2_plain_req_init+0x2a/0x200 [cifs]
    [119020.523437] ? __find_get_block+0xb4/0x2f0
    [119020.523454] SMB2_open+0xdb/0xd40 [cifs]
    [119020.523457] ? __alloc_pages_nodemask+0xfa/0x250
    [119020.523473] ? smb2_open_file+0x97/0x210 [cifs]
    [119020.523489] smb2_open_file+0x97/0x210 [cifs]
    [119020.523503] cifs_reopen_file+0x257/0x940 [cifs]
    [119020.523522] cifs_write+0x119/0x720 [cifs]
    [119020.523525] ? add_to_page_cache_lru+0x74/0xe0
    [119020.523526] ? pagecache_get_page+0xf2/0x2c0
    [119020.523528] ? terminate_walk+0x8c/0x100
    [119020.523542] ? cifs_write_end+0x19b/0x420 [cifs]
    [119020.523555] cifs_write_end+0x19b/0x420 [cifs]
    [119020.523563] generic_perform_write+0x107/0x1c0
    [119020.523569] __generic_file_write_iter+0x16a/0x1b0
    [119020.523584] cifs_strict_writev+0x1b8/0x250 [cifs]
    [119020.523589] new_sync_write+0x104/0x160
    [119020.523594] vfs_write+0xb0/0x190
    [119020.523596] ksys_write+0x52/0xc0
    [119020.523599] do_syscall_64+0x55/0x110
    [119020.523601] entry_SYSCALL_64_after_hwframe+0x44/0xa9
    [119020.523603] RIP: 0033:0x7f03e25f2730
    [119020.523603] Code: Bad RIP value.
    [119020.523607] RSP: 002b:00007ffea6e31128 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
    [119020.523609] RAX: ffffffffffffffda RBX: 000000000000041f RCX: 00007f03e25f2730
    [119020.523610] RDX: 000000000000041f RSI: 000055b5fd638fc0 RDI: 0000000000000003
    [119020.523611] RBP: 000055b5fd638fc0 R08: 000055b5fd60af40 R09: 00007f03e360b700
    [119020.523611] R10: 00007f03e0fff150 R11: 0000000000000246 R12: 000000000000041f
    [119020.523612] R13: 0000000000000001 R14: 000055b5fd60ae60 R15: 000000000000041f
    [260973.022450] CIFS VFS: Server 10.10.0.16 has not responded in 120 seconds. Reconnecting...

    • Offizieller Beitrag

    if the remote mount is down: the hole Server isn't reachable, also the local filesystems. A reboot helps even if the samba server is still down, then the remote mount is simple N/V.

    Not much I can do to fix that. remotemount requires that the remote server is up. It is causing your system to segfault which also is not the fault of the plugin.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!