Community discussions

MikroTik App
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Container usb3?

Tue Aug 06, 2024 2:37 am

Hi guys and girls just a quick question is there a specific type or speed of USB3 jump drive to use?
Like make and size?
As i have been having alot of troubles with the container running pihole or adguard after a few days it stops or just drops out randomly but usually comes back on line but thus particular time i cant start it.
After reading a few posts on here sounds like the usb 3 is a bit hit and miss hope mikrotik fix these usb3 ports and make them stable.
Now it wont startup at all
I hopefull that the new beta has more adlist functions as that would be best case scenario for me.
As I have a hap ax3 and I continuously have container issues with the USB 3 jump drive on running on there keep stopping and starting now it won't start at all is it a USB 3 issue I'm currently running the latest beta 7.16.7
 
User avatar
marsbeetle
newbie
Posts: 48
Joined: Sun Feb 19, 2023 9:57 am

Re: Container usb3?

Tue Aug 06, 2024 9:20 am

I use a 128GB SanDisk Ultra Fit USB 3.2 on my ax3. I bought two because they were so cheap and they are also very small you don't even notice them. Once all my containers are configured I just duplicate the data to the 2nd flash drive I bought as a backup. I have never needed the backup and I just get into the habit of first stopping the containers before I need to reboot the router for whatever reason(after an upgrade etc.). Running stable 7.15.3
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Tue Aug 06, 2024 9:36 am

thanks for the reply i was wondering if they usb type and speed might play a part in this so i will go find the same as what you have and try it
as it works for a day or 2 then i start getting slow internet and so on
but today it wouldnt even start the adguard that was on the usb3 it is a 32gb verbatnum so mmm maybe it isnt fast enuff with the transfer speeds
so you say yours works great no issues i will buy them then i couldnt find any data to say what one woould be best
you must be overseas from me as i cant find any 3.2 only the 3.1 version
do you think it would be the same?
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Tue Aug 06, 2024 9:46 am

i just found 3.2 on amazxon and it is a lot faster 3.2 is 400mb highest and the 3.1 is only 130mb so mmm i will have to order over seas but i will get the 3.2
 
User avatar
marsbeetle
newbie
Posts: 48
Joined: Sun Feb 19, 2023 9:57 am

Re: Container usb3?

Tue Aug 06, 2024 10:24 am

The USB slot on the ax3 is only 3.0 so a 3.1 flash drive will be fine and anything faster is unlikely to make a difference unless the actual flash is quicker or more reliable - the interface specification is the bottleneck. Sandisk only produce the 3.2 flash drives now and it was the only spec available for me otherwise I would have likely just bought the cheapest option.
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Tue Aug 06, 2024 10:41 am

not sure mate as i have a 3.1 usb3 now at 100mb speed but i think it is the problem possibly so wont hurt to order a new faster ones
i think i will just use adlist for the time being and wait for the new 3.2 only a week or so away so all good
i have the adguard container running but nothing going to it to test now to see if it stays online for a few days or not
but cheers for the info iwasnt sure what usb3 drive to get i have noticed that there all not the same as in advertised speeds
so i will test the other same one i have and speed rate iton my pc to see if it does what they say
 
holvoetn
Forum Guru
Forum Guru
Posts: 6753
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Container usb3?

Tue Aug 06, 2024 10:51 am

Be aware there is a bug on RB5009 (I see it frequently on my device but haven't seen it yet on AX3) where after reboot USB starts up as USB2, not USB3.
Again reboot or performing USB reset fixes that.

But if this happens, then your speed will drop dramatically.
It will also result in drive to be renamed to usb2-part1 i.s.o. usb1-part1 (or similar) so can be a major headache when e.g. working with containers or doing logging to external USB.
 
manigk
just joined
Posts: 2
Joined: Wed Jul 12, 2023 10:36 am

Re: Container usb3?

Tue Aug 06, 2024 1:38 pm

I have had the same bug as holvoetn on AX3, where the USB drive was renamed between reboots and it prevented a container (AdGuard) from starting.

A reboot fixed it, but it certainly was annoying and took me a while to find the issue.
 
mike7
just joined
Posts: 15
Joined: Sun Oct 28, 2018 12:20 am

Re: Container usb3?

Tue Aug 06, 2024 1:49 pm

I have had the same bug as holvoetn on AX3, where the USB drive was renamed between reboots and it prevented a container (AdGuard) from starting.

A reboot fixed it, but it certainly was annoying and took me a while to find the issue.

I wrote the small script for fixing, you can use it as an example:
# Fix SanSanDisk Ultra Fit bug
# On reboot monunted as usb1 instead usb2
#
# First check mount point
# Reset usb power if required
# Recheck mount point
# Start containers if required

:while (([/disk get [find slot=usb1] mounted] || [/disk get [find slot=usb2] mounted]) != true) do={
    :log info "No disks mounted";
    :delay delay-time=3s
}

:if ([/disk get [find slot=usb1] mounted]) do={
    :log info "usb1 mounted ... unmounting...";
    :system routerboard usb power-reset duration=1s
    :delay delay-time=3s
}

:while ([/disk get [find slot=usb2] mounted] != true) do={
    :log info "usb2 not mounted";
    :system routerboard usb power-reset duration=1s
    :delay delay-time=3s
}

:log info "usb2 mounted";

:local iAdguardProxyContainer [/container/find start-on-boot=yes && interface=veth11-adguardProxy];

:if ([/container/get $iAdguardProxyContainer status] = "stopped") do={
    :log info "Starting container (veth = $[/container/get $iAdguardProxyContainer value-name=interface]) ...";
    :container/start $iAdguardProxyContainer
    :delay delay-time=1s
}

:foreach iContainer in=[/container/find start-on-boot=yes] do={
    :if ([/container/get $iContainer value-name=status] = "stopped") do={
        :log info "Starting container (veth = $[/container/get $iContainer value-name=interface]) ...";
        :container/start $iContainer
        :delay delay-time=1s
    }
}
 
optio
Forum Veteran
Forum Veteran
Posts: 945
Joined: Mon Dec 26, 2022 2:57 pm

Re: Container usb3?

Tue Aug 06, 2024 7:00 pm

Also create 2 supout.rif files when disk is connected, 1st create when is not mounted and 2nd when it is, send them both in support ticket to MT. Maybe they will prioritize to fix this if this is common issue on USB3 controllers.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6753
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Container usb3?

Tue Aug 06, 2024 7:20 pm

I already created a sup ticket in the past.
It was acknowledged and supposed to be fixed in a new version but no ETA.
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Thu Aug 08, 2024 12:27 pm

is it normal to start the container(adguard in my case) and it eats up 400mb of ram?was 630 drops to 180ish never noticed before i only have about 180mb left is this ok for the routeros to perform as needed?? and not go laggy or shut down or anything
as im chasing a internet problem as i think it has been the usb3/jump drive or maybe full memory?
im running adlist now on the routeros and (not as much block lists tho) but it still has 520mb left in memory
how much can i use for cache and adlist??

I like the aguard or pihole idea as i can control the adlist and block and unblock as i need but im still wondering if it was my problems or not
i have ordered the new sandick 3.2 as other member has suggested so time will tell i spose when they turn up i will try adguard again on them
 
User avatar
marsbeetle
newbie
Posts: 48
Joined: Sun Feb 19, 2023 9:57 am

Re: Container usb3?

Thu Aug 08, 2024 3:25 pm

is it normal to start the container(adguard in my case) and it eats up 400mb of ram?was 630 drops to 180ish never noticed before i only have about 180mb left is this ok for the routeros to perform as needed?? and not go laggy or shut down or anything
I use the following formula: <total router memory> - <total memory usage without containers> + 128MB buffer = <max ram allocated to containers>

e.g. 1024M - 256M + 128M = 640MB max ram for containers
/container/config/set ram-high=640M
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Sun Aug 11, 2024 10:44 am

cheers m8 i just tried that terminal command that you posted and no good for me the ram dropped to 35mb left so i stopped it
dont no whats going on there but i
still havent got the usb 3.2 yet so i will try when it gets here again
the cpu usage was higher at 40% so not sure
i just put is back to 500M instead of 640M and it seems to be stable at 300ish mb so i will let it run in the back ground i dont have anything dns threw it so might do nothing but i wonted to see if it runs ok
until the new 3.2 turns up
 
User avatar
Coughy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Apr 23, 2024 2:53 am
Location: Brisbane Au

Re: Container usb3?

Sun Aug 11, 2024 11:10 am

i did read some where that aguard is a bit hungry on resources ?? and was a routeros issue but i think that was earlier routeros?
maybe pihole is the one i should be using as it uses less but i like the adguard features more tho
testing testing testing i think is needed
 
User avatar
tangent
Forum Guru
Forum Guru
Posts: 1656
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Container usb3?

Sun Aug 11, 2024 1:06 pm

1024M - 256M + 128M = 640MB

🤦‍♂️

1024M - 256M + 128M = 896M
1024M - (256M + 128M) = 640M
1024M - 256M - 128M = 640M

Who is online

Users browsing this forum: No registered users and 3 guests