Community discussions

MikroTik App
 
daviddem
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

RB450G ROS 5.11 SD card not recovering from power shutdown

Mon Jan 09, 2012 9:48 am

Below same stuff I wrote to support. Anyone else has experienced this kind of issue?

I am using a 4GB Sandisk Ultra Mobile micro SD card and have my user manager store for the hotspot setup on it. Read below. See a few bugs? Looks like your disk drivers need a serious overhaul. With the details below, I am sure you can reproduce the problem. The supposedly automatic failover to backup store did not work. A reboot did not fix the problem. Had to shutdown and physically cycle the power to fix it. Also at some point, the router apparently shutdown instead of rebooting! You can't be asking your clients to have physical access to their routers every time there is a power shut down! The routers must be able to recover on their own (just like my old dd-wrt linksys faithfully does)! In the meantime, is there any workaround or script I can run at reboot against this kind of failure??

Please, prompt action is required. Any cheap home router from the department store recovers perfectly well from a power shutdown all by itself... would expect at least as much from your products... this is the kind of show stopper that is killing an otherwise good device...

1) supout1
System running normally except for wrongly reported system disk free space. This issue appeared after a proper shutdown + boot several hours later. Doing soft reboot did not fix this issue:
[admin@MikroTik] > /store disk print
Flags: S - system
 #   NAME                                    TOTAL-SPACE    FREE-SPACE STATUS   
 0 S system                                    520192KiB     898088KiB ready    
 1   micro-sd                                 3811352KiB    3735540KiB ready
Also see my "files" screenshot in Winbox and look at the reported free space on the status bar...

If you have any idea how to fix this, please let me know before it causes more problems.


2) supout2. I simulated a power shutdown by pulling the plug. Rebooted after 1min by plugging power back. As you can see, the SD disk is not present, the stores setup on the SD are invalid, and there was no automatic failover to the backup stores on the system disk. The hotspot system is unusable, users can't log in (they get a "radius server not responding" message). There are a bunch of error messages in the log, including errors about the journal of the SD disk. For some reason, the system disk also does not report its size and free space in the terminal, but it does in Winbox and the free space is correct again! (see Winbox "disk" screenshot).
[admin@MikroTik] > /store print    
Flags: X - disabled, A - active
 #   NAME                                            TYPE                     DISK                      STATUS  
 0   user-manager1                                   user-manager     system                     backup  
 1   web-proxy1                                      web-proxy           system                     backup  
 2   user-managerSD                                  user-manager    (unknown)                 invalid 
 3   web-proxySD                                     web-proxy         (unknown)                  invalid 
[admin@MikroTik] > /store disk print
Flags: S - system
 #   NAME          TOTAL-SPACE    FREE-SPACE STATUS   
 0 S system    
jan/01/2002 04:00:01 system,error,critical router was rebooted without proper shutdown (cause 1)
jan/01/2002 04:00:02 store,debug user-manager1: disk setup finished successfully
jan/01/2002 04:00:02 store,debug web-proxy1: disk setup finished successfully
jan/01/2002 04:00:02 store,debug user-managerSD: disk setup finished with failure: disk not found
jan/01/2002 04:00:02 store,debug web-proxySD: disk setup finished with failure: disk not found
jan/01/2002 04:00:02 store,debug activating store for user-managerSD
jan/01/2002 04:00:02 store,debug user-managerSD: activation finished with failure: disk not found or not mounted
jan/01/2002 04:00:02 store,debug adding new drive: micro-sd (/dev/mmcblk0)
jan/01/2002 04:00:03 store,error create journal failed: -1
jan/01/2002 04:00:03 store,error create journal failed: -1
jan/01/2002 04:00:03 store,debug create journal finished with failure
jan/01/2002 04:00:04 store,debug activating store for web-proxySD
jan/01/2002 04:00:04 store,debug web-proxySD: activation finished with failure: disk not found or not mounted
08:10:34 store,debug user-manager1: disk setup finished successfully
08:10:34 store,debug web-proxy1: disk setup finished successfully
08:10:34 store,debug user-managerSD: disk setup finished with failure: disk not found
08:10:34 store,debug web-proxySD: disk setup finished with failure: disk not found
08:11:11 store,debug user-manager1: disk setup finished successfully
08:11:11 store,debug web-proxy1: disk setup finished successfully
08:11:11 store,debug user-managerSD: disk setup finished with failure: disk not found
08:11:11 store,debug web-proxySD: disk setup finished with failure: disk not found

3) supout3. Did a soft reboot. Same problem, no SD disk or stores. After downloading the supout files to my laptop I got disconnected from Winbox and when I got back in the system disk was showing the wrong free space again in the terminal. No trace of the SD card though.
/store disk print
Flags: S - system
 #   NAME                                    TOTAL-SPACE    FREE-SPACE STATUS   
 0 S system                                    520192KiB     896676KiB ready 
jan/01/2002 04:00:01 store,debug user-manager1: disk setup finished successfully
jan/01/2002 04:00:01 store,debug web-proxy1: disk setup finished successfully
jan/01/2002 04:00:01 store,debug user-managerSD: disk setup finished with failure: disk not found
jan/01/2002 04:00:01 store,debug web-proxySD: disk setup finished with failure: disk not found
jan/01/2002 04:00:01 store,debug activating store for user-managerSD
jan/01/2002 04:00:01 store,debug user-managerSD: activation finished with failure: disk not found or not mounted
jan/01/2002 04:00:04 store,debug activating store for web-proxySD
jan/01/2002 04:00:04 store,debug web-proxySD: activation finished with failure: disk not found or not mounted
08:26:33 store,debug user-manager1: disk setup finished successfully
08:26:33 store,debug web-proxy1: disk setup finished successfully
08:26:33 store,debug user-managerSD: disk setup finished with failure: disk not found
08:26:33 store,debug web-proxySD: disk setup finished with failure: disk not found

4) supout4. Did a soft shutdown, then rebooted by cycling the power. Log shows successful SD card mounting and SD stores activation. The hotspot system is functional again. However, disks and stores are blank in Winbox. In the terminal, the /store print and /store disk print commands hang, and when recovering with ctrl^C they are blank:
[admin@MikroTik] > /log print
jan/01/2002 04:00:02 store,debug user-manager1: disk setup finished successfully
jan/01/2002 04:00:02 store,debug web-proxy1: disk setup finished successfully
jan/01/2002 04:00:02 store,debug user-managerSD: disk setup finished with failure: disk not found
jan/01/2002 04:00:02 store,debug web-proxySD: disk setup finished with failure: disk not found
jan/01/2002 04:00:02 store,debug activating store for user-managerSD
jan/01/2002 04:00:02 store,debug user-managerSD: activation finished with failure: disk not found or not mounted
jan/01/2002 04:00:02 store,debug adding new drive: micro-sd (/dev/mmcblk0)
08:35:19 store,debug user-managerSD: disk setup finished successfully
08:35:19 store,debug activating store for user-managerSD
08:35:19 store,debug user-managerSD: activation finished successfully
08:35:19 store,debug web-proxySD: disk setup finished successfully
08:35:19 store,debug activating store for web-proxySD
08:35:19 store,debug web-proxySD: activation finished successfully
[admin@MikroTik] > /store disk print
Flags: S - system
 #   NAME                                                                                                                        TOTAL-SPACE    FREE-SPACE STATUS   
5) Did a soft reboot. Router apparently shutdown instead of rebooting (all leds off except for blue power led)

6) supout6. Rebooted by cycling the power. All systems up again, and also can see disks and stores in Winbox and command line. But system disk still reporting wrong free space.
[admin@MikroTik] > /store disk print
Flags: S - system
 #   NAME                                    TOTAL-SPACE    FREE-SPACE STATUS   
 0 S system                                    520192KiB     896672KiB ready    
 1   micro-sd                                 3811352KiB    3734808KiB ready 
 
MarcusW
just joined
Posts: 17
Joined: Tue Dec 20, 2011 11:02 am

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Wed Jan 11, 2012 9:03 am

I have, yesterday, the only difference is that I have a RB493G board. Not good at all.. :(
I have wrote a mail to the support department at Mikrotik.
 
daviddem
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Tue Jan 17, 2012 4:30 am

What kind of SD card are you using?
 
MarcusW
just joined
Posts: 17
Joined: Tue Dec 20, 2011 11:02 am

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Fri Jan 20, 2012 4:53 pm

What kind of SD card are you using?
The same brand as yours but a 2 GB card. It has been running without problems for months before it failed. Tried to reboot multiple times but I only lost it totally and when I found your post I went to the router and power cycled it and now everything is back to normal. I have a 493G ROS 5.11.
 
lucianog
just joined
Posts: 14
Joined: Mon Apr 30, 2012 8:43 pm

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Thu Jul 19, 2012 5:38 am

I have the same problem with version 5.7 on RB751U-2HnD
I tested with a Pen and a USB external drive and get the same result.
To "fix" it I have to disable the WebProxy, RB off, wait a minute, enceder RB and only at that moment I see again the storage unit for the webcache.

Has anyone found a solution to this problem?
I would appreciate being told if I have to upgrade RouterOS to solve this problem.

thanks
 
daviddem
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Mon Jul 30, 2012 6:31 am

This is supposed to have been fixed in v5.17 according to the change log:
What's new in 5.17 (2012-May-28 12:34):

*) files - fixed problem when directories disappeared after reboot on usb or sd flash;
...
-> upgrade to latest version

I haven't tried it myself though. If you do, please report back here.
 
solelunauno
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jul 16, 2012 7:00 pm
Location: Roseto Capo Spulico CS Italy
Contact:

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Wed Sep 04, 2013 11:44 am

I have RB493G with RouterOS 6.2 installed; I have a 4GB microSDHC on it for user manager. It works well for 3-4 days. later the microSD make some kind of strange error and I begin to have a lot of user manager logs "unable to open database". If I reboot the RB493G the problem persist: I can see it trying to delete something from microSD; I can't delete anything, it says error "failed (6)".
To solve I have to phisically unplug the router's power.
After phisical reboot all things returns to work well, I can create and delete files from microSD and user-manager works correctly.
If I look in /store when microSD doesn't work, I see it well and with the correct informations (available space, user-manager active); so I only know that it doesn't work because of user-manager error logs and impossibility to write/delete on microSD.
Before using microSD I used usb drive for two months without problems, but one day it decided to not work; I restored it only phisically unplugging the router, so I decided to switch to microSD thinking it would work better.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: RB450G ROS 5.11 SD card not recovering from power shutdo

Mon Oct 07, 2013 9:49 pm

I have the opposite problem - on Omnitiks (I use two and both do the same) with RoS v 5.25 the flash disk disappear after power cycle, but appears when soft restarted. Everytime. I do not understand it, only the colder weather could make the flash disk start slower than it is expected by RB? I have no other idea.

I use the 4GB Pretec i-disk Poco in both Omnitiks.

Is there any technical reason for such behavior?

Problem is that the flashdisks are used for logging but when there is no access after power cycle to the flashdisk, the logs are not stored until soft reboot.

Who is online

Users browsing this forum: lurker888, sindy, Techsystem and 40 guests