Stability issue with SMB/CIFS

  • Hi,


    I have OMV running under Proxmox.

    The SMB share from OMV is attached in owncloud as external storage. The owncloud is a separate virtual machine under Proxmox.

    It works as I need.

    But if I try to synchronize files stored in the OVM share connected to owncloud then the SMB/CIFS in OMV stops to work. But it is not regular.

    There is about 100 000 file in total about 300 GB to be synchronized. The owncloud has to check each file atribute before the copy starts. It is crash often during the file checking already. I mean with this number of file the check takes about 2 hours.

    Same crash I see sometimes if I copy to or from OVM samba share more files (maybe 50 000).

    I am not able to detect the problem it is not specific. It can run for 30 minut only or 5 day. It is not hardware issue machine is DELL PowerEdge T110v2 with ECC RAM and Xeon cpu. All other software Proxmox, owncloud, plex run just fine.

    Crash of samba in OMV means that no samba shares are accessible any more. It can be solved only by restart of OMV. The OMV reports no problem.


    The logs are not helpful at all.

    Sometime there is nothing in the moment of failure. The complex log is not usable at all I do not have so big storage for it.

    In some cases I have seen some not specific segmentation fault in log.


    I am not expecting a solution but do you experience similar behavior or it is just me?

    OVM is fully updated without plugins.


    Thanks

    Martin

  • The example of log at crash:

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.568347

    Oct 1 18:29:09 storage smbd[13319]: ===============================================================

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.568441

    Oct 1 18:29:09 storage smbd[13319]: INTERNAL ERROR: Signal 6 in pid 13319 (4.9.5-Debian)

    Oct 1 18:29:09 storage smbd[13319]: Please read the Trouble-Shooting section of the Samba HOWTO

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.568468

    Oct 1 18:29:09 storage smbd[13319]: ===============================================================

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.568483

    Oct 1 18:29:09 storage smbd[13319]: PANIC (pid 13319): internal error

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.599323

    Oct 1 18:29:09 storage smbd[13319]: BACKTRACE: 13 stack frames:

    Oct 1 18:29:09 storage smbd[13319]: #0 /lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x32) [0x7efce81058d2]

    Oct 1 18:29:09 storage smbd[13319]: #1 /lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7efce7d251c0]

    Oct 1 18:29:09 storage smbd[13319]: #2 /lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7efce81059df]

    Oct 1 18:29:09 storage smbd[13319]: #3 /lib/x86_64-linux-gnu/libsamba-util.so.0(+0x24c16) [0x7efce8105c16]

    Oct 1 18:29:09 storage smbd[13319]: #4 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7efce8173730]

    Oct 1 18:29:09 storage smbd[13319]: #5 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b) [0x7efce740e7bb]

    Oct 1 18:29:09 storage smbd[13319]: #6 /lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7efce73f9535]

    Oct 1 18:29:09 storage smbd[13319]: #7 /lib/x86_64-linux-gnu/libc.so.6(+0x79508) [0x7efce7450508]

    Oct 1 18:29:09 storage smbd[13319]: #8 /lib/x86_64-linux-gnu/libc.so.6(+0x7fc1a) [0x7efce7456c1a]

    Oct 1 18:29:09 storage smbd[13319]: #9 /lib/x86_64-linux-gnu/libc.so.6(+0x818a2) [0x7efce74588a2]

    Oct 1 18:29:09 storage smbd[13319]: #10 /lib/x86_64-linux-gnu/libc.so.6(+0x84af3) [0x7efce745baf3]

    Oct 1 18:29:09 storage smbd[13319]: #11 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fc9) [0x7efce8168fc9]

    Oct 1 18:29:09 storage smbd[13319]: #12 /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7efce74d04cf]

    Oct 1 18:29:09 storage smbd[13319]: [2020/10/01 18:29:09.599440

    Oct 1 18:29:09 storage smbd[13319]: smb_panic(): calling panic action [/usr/share/samba/panic-action 13319]

    Oct 1 18:29:10 storage postfix/sendmail[13329]: fatal: chdir /var/spool/postfix: Permission denied

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.644448

    Oct 1 18:29:31 storage smbd[13405]: ===============================================================

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.644533

    Oct 1 18:29:31 storage smbd[13405]: INTERNAL ERROR: Signal 6 in pid 13405 (4.9.5-Debian)

    Oct 1 18:29:31 storage smbd[13405]: Please read the Trouble-Shooting section of the Samba HOWTO

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.644559

    Oct 1 18:29:31 storage smbd[13405]: ===============================================================

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.644584

    Oct 1 18:29:31 storage smbd[13405]: PANIC (pid 13405): internal error

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.645098

    Oct 1 18:29:31 storage smbd[13405]: BACKTRACE: 13 stack frames:

    Oct 1 18:29:31 storage smbd[13405]: #0 /lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x32) [0x7efce81058d2]

    Oct 1 18:29:31 storage smbd[13405]: #1 /lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7efce7d251c0]

    Oct 1 18:29:31 storage smbd[13405]: #2 /lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7efce81059df]

    Oct 1 18:29:31 storage smbd[13405]: #3 /lib/x86_64-linux-gnu/libsamba-util.so.0(+0x24c16) [0x7efce8105c16]

    Oct 1 18:29:31 storage smbd[13405]: #4 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7efce8173730]

    Oct 1 18:29:31 storage smbd[13405]: #5 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b) [0x7efce740e7bb]

    Oct 1 18:29:31 storage smbd[13405]: #6 /lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7efce73f9535]

    Oct 1 18:29:31 storage smbd[13405]: #7 /lib/x86_64-linux-gnu/libc.so.6(+0x79508) [0x7efce7450508]

    Oct 1 18:29:31 storage smbd[13405]: #8 /lib/x86_64-linux-gnu/libc.so.6(+0x7fc1a) [0x7efce7456c1a]

    Oct 1 18:29:31 storage smbd[13405]: #9 /lib/x86_64-linux-gnu/libc.so.6(+0x818a2) [0x7efce74588a2]

    Oct 1 18:29:31 storage smbd[13405]: #10 /lib/x86_64-linux-gnu/libc.so.6(+0x84af3) [0x7efce745baf3]

    Oct 1 18:29:31 storage smbd[13405]: #11 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fc9) [0x7efce8168fc9]

    Oct 1 18:29:31 storage smbd[13405]: #12 /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7efce74d04cf]

    Oct 1 18:29:31 storage smbd[13405]: [2020/10/01 18:29:31.645234

    Oct 1 18:29:31 storage smbd[13405]: smb_panic(): calling panic action [/usr/share/samba/panic-action 13405]

    Oct 1 18:29:31 storage postfix/sendmail[13415]: fatal: chdir /var/spool/postfix: Permission denied

    Oct 1 18:30:01 storage CRON[13520]: (root) CMD (/usr/sbin/omv-mkrrdgraph >/dev/null 2>&1)

  • Hi,


    the conclusion, the Samba4.9.5 is broken.


    I have found solution:


    I was able to install Samba4.13 to OpenMediaVault version 5.5.12-1 without lost of OMV functionalities.

    I used unofficial Samba packages from https://apt.van-belle.nl/ . Fantastic work, thanks.

    I used following steps:



    apt-get install gnupg2

    wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc | apt-key add -

    echo "# AptVanBelle repo for samba." | sudo tee /etc/apt/sources.list.d/van-belle.list

    echo "deb http://apt.van-belle.nl/debian buster-samba413 main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list

    apt-get update

    apt-get upgrade

    apt-get --with-new-pkgs upgrade

    apt-get install samba



    than reboot your system.

    I was able to download about 50000 files without crash from the updated system.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!