NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

debumitra's avatar
Mar 08, 2020

fvbackup crashes, stalling further backup, disables graceful shutdown

ReadyNAS 314 with Firmware 6.9.5 Hotfix 1

 

I have a problem with backup jobs crashing and freezing ReadyNas from time to time. These jobs back up various ReadyNas shares to a portable USB drive.

Once in a while, the jobs will get stuck. The timing of the problem seems completely random.

I have periodically run DEFRAG and BALANCE without any issue.

Please help me get some insight in this issue. How do I resolve this?

Thank you.

 

This is how it goes:

 

(a) The first backup job will start
(b) "/frontview/bin/fvbackup" will crash (segmentation fault) - see log below
(c) The log will have a stack trace
(d) In the stack trace, the RIP will have this string "ufsdapi_file_flush+0x253/0x2a0 [ufsd]"
(e) The small status display screen will also display "ufsdapi_file_flush+0x253/0x2a0 [ufsd]"

 

At this point, all future backups will stop.

 

(a) The ReadyNas shares will remain accessible from my Windows PC, but
(b) the admin web page will be inaccessible from a browser.
(c) I shall be able to ssh into the ReadyNas and check logs etc.
(d) Most significantly, once this happens, there is no way of gracefully shutting down the Nas
(e) The only possibility is a forced shutdown by "Press and hold the Power button for 5 seconds"
(f) Issuing a "shutdown -P" command after ssh'ing to the Nas does not shut it down.
(g) The force shutdown makes the attached portable USB drive read-only.
(h) It's probably not good for the file system either.

 

******************** LOG SECTION - START ************************

Mar 03 01:05:11 MITRANAS fvbackup-q[3515]: cmd=/frontview/bin/fvbackup -e 27
Mar 03 01:05:11 MITRANAS fvbackup-q[3515]: Create a readonly snapshot of '/data/Documents' in '/data/._share/Documents/.snapsho
t/b_1583215511_21184'
Mar 03 01:10:56 MITRANAS dbus[2832]: [system] Activating service name='org.opensuse.Snapper' (using servicehelper)
Mar 03 01:10:58 MITRANAS dbus[2832]: [system] Successfully activated service 'org.opensuse.Snapper'
Mar 03 01:14:25 MITRANAS clamd[32081]: SelfCheck: Database status OK.
Mar 03 01:14:25 MITRANAS clamd[32081]: SelfCheck: Database status OK.
Mar 03 01:17:03 MITRANAS CRON[21799]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 03 01:17:03 MITRANAS CRON[21803]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 03 01:17:03 MITRANAS CRON[21799]: pam_unix(cron:session): session closed for user root
Mar 03 01:17:28 MITRANAS connmand[2999]: ntp: adjust (slew): -0.192048 sec
Mar 03 01:24:25 MITRANAS clamd[32081]: SelfCheck: Database status OK.
Mar 03 01:24:25 MITRANAS clamd[32081]: SelfCheck: Database status OK.
Mar 03 01:28:58 MITRANAS kernel: general protection fault: 0000 [#1] SMP
Mar 03 01:28:58 MITRANAS kernel: Modules linked in: ufsd(PO) jnl(O) vpd(PO)
Mar 03 01:28:58 MITRANAS kernel: CPU: 1 PID: 21184 Comm: fvbackup Tainted: P O 4.4.157.x86_64.1 #1
Mar 03 01:28:58 MITRANAS kernel: Hardware name: NETGEAR ReadyNAS 314/ReadyNAS 314 , BIOS 4.6.5 01/07/2013
Mar 03 01:28:58 MITRANAS kernel: task: ffff88007e665400 ti: ffff8800783ec000 task.ti: ffff8800783ec000
Mar 03 01:28:58 MITRANAS kernel: RIP: 0010:[<ffffffffa001e953>] [<ffffffffa001e953>] ufsdapi_file_flush+0x253/0x2a0 [ufsd]
Mar 03 01:28:58 MITRANAS kernel: RSP: 0018:ffff8800783efb80 EFLAGS: 00010202
Mar 03 01:28:58 MITRANAS kernel: RAX: 0000000000000234 RBX: ffff88003a5fd618 RCX: ffff88003a5fd708
Mar 03 01:28:58 MITRANAS kernel: RDX: 0000000000000234 RSI: ffff880063cee094 RDI: ffff88003a5fd618
Mar 03 01:28:58 MITRANAS kernel: RBP: ffff8800783efbf0 R08: ffff880063cee094 R09: 0000000000000634
Mar 03 01:28:58 MITRANAS kernel: R10: 0000000000000234 R11: 0000000000000634 R12: 0000000000000634
Mar 03 01:28:58 MITRANAS kernel: R13: 0000000000000434 R14: 0000000000000014 R15: 0000000000000034
Mar 03 01:28:58 MITRANAS kernel: FS: 00007f121bcb8a00(0000) GS:ffff88007ea80000(0000) knlGS:0000000000000000
Mar 03 01:28:58 MITRANAS kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 03 01:28:58 MITRANAS kernel: CR2: 00007f64e00be000 CR3: 000000007ba6e000 CR4: 00000000000006f0
Mar 03 01:28:58 MITRANAS kernel: Stack:
Mar 03 01:28:58 MITRANAS kernel: 0000000000000000 0000000000000000 ffff880063cee000 0000000000000614
Mar 03 01:28:58 MITRANAS kernel: 0000000000000214 0000000000000434 0000000000000634 0000000000000234
Mar 03 01:28:58 MITRANAS kernel: dead000000000100 ffff88006a711000 ffff880010c7dc00 ffff88006a711220
Mar 03 01:28:58 MITRANAS kernel: Call Trace:
Mar 03 01:28:58 MITRANAS kernel: [<ffffffffa0011329>] do_delayed_tasks+0xdc/0x149 [ufsd]
Mar 03 01:28:58 MITRANAS kernel: [<ffffffffa001141f>] _lock_ufsd+0x89/0x94 [ufsd]
Mar 03 01:28:58 MITRANAS kernel: [<ffffffffa00181d6>] ufsd_file_open+0x10c/0x26e [ufsd]
Mar 03 01:28:58 MITRANAS kernel: [<ffffffffa00180ca>] ? ufsd_open_by_id.isra.8+0xfd/0xfd [ufsd]
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff881106ed>] do_dentry_open+0x20f/0x2a8
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff88111583>] vfs_open+0x5e/0x65
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff8811d6aa>] path_openat+0xa20/0xcb4
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff8811e82b>] do_filp_open+0x39/0x7e
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff88128633>] ? __alloc_fd+0xaa/0x167
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff88111892>] do_sys_open+0x14b/0x1db
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff8811193b>] SyS_open+0x19/0x1b
Mar 03 01:28:58 MITRANAS kernel: [<ffffffff888cb38a>] entry_SYSCALL_64_fastpath+0x1e/0x8e
Mar 03 01:28:58 MITRANAS kernel: Code: 7d c8 4c 89 f0 eb 93 90 83 e1 08 74 b5 4c 89 c8 48 8b 4d 98 48 8b 55 a0 4c 89 c6
48 89 df 48 89 8a 94 00 00 00 48 8b 0b 48 89 c2 <ff> 51 10 85 c0 75 95 48 83 7d 90 00 74 8e 48 8b 75 a0 4c 8b 75
Mar 03 01:28:58 MITRANAS kernel: RIP [<ffffffffa001e953>] ufsdapi_file_flush+0x253/0x2a0 [ufsd]
Mar 03 01:28:58 MITRANAS kernel: RSP <ffff8800783efb80>
Mar 03 01:28:59 MITRANAS kernel: ---[ end trace c5f07c4159df64c5 ]---
Mar 03 01:28:58 MITRANAS fvbackup-q[3515]: Error executing backup job (job_id=27). rc=35584 errorno=2

******************** LOG SECTION - END ************************

 

7 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    I believe the hightlighed error is linked to the USB drive.

     

    I'd test the USB drive in a PC.  You can use vendor tools (seatools or lifeguard) and/or just try to copy files to and from the drive.  Personally I'd do the full erase test in addition to the extended non-destructive test.

     

     

    • debumitra's avatar
      debumitra
      Tutor

      Thank you for your response. That was my first hunch too. I might have forgotten to note in my original posting that I have been getting this for more than a error, sporadically.

       

      So during a year of troubleshooting, I have tried out the following already, on the USB disk:

      (1) As ReadyNAS renders the USB disk readonly, I would connect it to a windows PC and simply clear the code, reconnect it back to ReadyNAS. After that it will work fine for a while.

      (2) Completely erase and reformat the USB disk using a Windows PC and then connect it back to ReadyNAS. After that it will work fine for a while.

      (3) Replace the USB disk with a brand new one of a different brand. After that it will work fine for a while.

       

      As I get the same symptoms back irrespective of what I do, I tend to think that it is not related to the USB disk.

      Moreover, I have been running the same backup's for several years now on the same kind of USB disks. I started getting it only about a year back; after one ReadyNAS OS update. I am not sure which one.

       

      If I may ask what exactly makes you think that the error is related to the USB drive? Is it because of the reference to ufsd?

       

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        debumitra wrote:

         

        If I may ask what exactly makes you think that the error is related to the USB drive? Is it because of the reference to ufsd?

         


        Yes. Paragon's driver set is called "Universal File System Drivers", and they use ufsd in a variety of places. https://download.paragon-software.com/doc/Paragon_NTFS-HFS_for_Linux_9.5_User_Manual.pdf

         


        debumitra wrote:

         

        (1) As ReadyNAS renders the USB disk readonly, I would connect it to a windows PC and simply clear the code, reconnect it back to ReadyNAS. After that it will work fine for a while.

         


        This might be a result of an improper ejection (which of course is a given if the NAS crashes with the drive mounted).

         


        debumitra wrote:

        (2) Completely erase and reformat the USB disk using a Windows PC and then connect it back to ReadyNAS. After that it will work fine for a while.

         


        I would definitely test it then.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More