Community discussions

MikroTik App
 
massinia
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Thu Jun 09, 2022 7:20 pm

SMB and ROSE-storage

Thu Feb 16, 2023 6:50 pm

Hi, I've been going crazy with smb sharing for days...

hAP ax3 with usb3 mechanical hdd (FS ext4) and this is the smb write speed with Windows:
smb performance.png
The problem is that macOS is very slow and unstable, so I thought to install the ROSE package but after "/disk set usb1 smb-export=yes" can't login anymore with smb...

It does not recognize any user!

Where am I doing wrong?
You do not have the required permissions to view the files attached to this post.
Last edited by massinia on Fri Feb 17, 2023 7:06 pm, edited 2 times in total.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: SMB and ROSE-storage

Fri Feb 17, 2023 2:10 am

I'm not sure you can use the IP>SMB with the ROSE smb-export=yes, I believe they are different and mutually exclusive. The ROSE docs are still a WIP, so unclear.

So if you disable IP>SMB, and then use guest/anonymous with smb-export, it should work. Speeds may be different, dunno...
 
massinia
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Thu Jun 09, 2022 7:20 pm

Re: SMB and ROSE-storage

Fri Feb 17, 2023 8:58 am

Thanks for the reply :)
So if you disable IP>SMB, and then use guest/anonymous with smb-export, it should work.
Done but I always have a problem with login, same thing with Windows 10 and macOS.
Speeds may be different, dunno...
I believe so too, but now with IP>SMB it's too slow and unstable with macOS
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: SMB and ROSE-storage

Fri Feb 17, 2023 1:02 pm

See this thread, which say they are working on SMB and Mac, but NFS mounts do work with ROSE and Mac today:
viewtopic.php?t=192888
 
holvoetn
Forum Guru
Forum Guru
Posts: 5317
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: SMB and ROSE-storage

Fri Feb 17, 2023 6:06 pm

Just for giggles ...

Put a 32Gb USB3 thumb drive into AX3 and then tried to map the drive from Win11 laptop or Linux box.
Tried ROSE-NFS -> nada. No connection possible (even tried a Linux box, not possible)
Tried ROSE-SMB -> nada (same with Linux box).
Tried IP/SMB -> connection using Win11 but slow as hell writing, a bit faster when reading (makes sense). But still not fast at all (around 63MB/s).

It should be simple. But apparently it isn't.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: SMB and ROSE-storage

Fri Feb 17, 2023 6:33 pm

I think initial support focus on Mikrotik to Mikrotik – although should just say that & save trouble trying desktop case when there still working on it, I think....

NFS is only thing that seems work in the current rc to desktops (at least Mac and Linux, and likely WSL on windows).

I've had it running since it came out – since it does solve a general problem of where to store a container images remotely for small disk devices. ROSE (as a server) on an RB1100Ahx4-Dude (replacing the stock 60GB disk with two cheap SATA-III [in this case] 1 TB drives) in the SSD slots. An RB5009 uses ROSE to the RB1100 it to run some test containers I've been working. My Mac connects to the RB1100 via NFS.

I haven't notice ANY issue with setup, all the containers work fine (or rather ROSE hasn't caused any problems). The only thing I've noticed is the "boot-at-start" for container should be a little more sophisticated since the remote disk image may not be available and/or go away/come back while container is running. I didn't stress this part since yes "boot-at-start" checks once, at, well startup, & that's it, never again. This isn't good for resilience of containers, which ROSE offer some hopes for...

Basically I didn't have much luck with SMB yet, so I moved on NFS.
Last edited by Amm0 on Fri Feb 17, 2023 6:37 pm, edited 1 time in total.
 
massinia
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Thu Jun 09, 2022 7:20 pm

Re: SMB and ROSE-storage

Fri Feb 17, 2023 6:36 pm

Tried ROSE-NFS -> nada. No connection possible (even tried a Linux box, not possible)
With macOS I can mount but it's in read only mode.
Tried ROSE-SMB -> nada (same with Linux box).
Same thing for me too... error: wrong username and password
Tried IP/SMB -> connection using Win11 but slow as hell writing, a bit faster when reading (makes sense). But still not fast at all (around 63MB/s).
For me it's fast 100 MB/s read and 70/80 MB/s write, I formatted the hdd in ext4.
Don't use pendrives they are much slower.

The problem is that macOS is damn slow with IP>SMB !

user@MacBook-Pro ~ % smbutil statshares -a
==================================================================================================
SHARE                         ATTRIBUTE TYPE                VALUE
==================================================================================================
Router                        
                              SERVER_NAME                   192.168.10.1
                              USER_ID                       501
                              SMB_NEGOTIATE                 SMBV_NEG_SMB1_ENABLED
                              SMB_NEGOTIATE                 SMBV_NEG_SMB2_ENABLED
                              SMB_NEGOTIATE                 SMBV_NEG_SMB3_ENABLED
                              SMB_VERSION                   SMB_2.002
                              SMB_ENCRYPT_ALGORITHMS        AES_128_CCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_128_GCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_256_CCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_256_GCM_ENABLED
                              SMB_CURR_ENCRYPT_ALGORITHM    OFF
                              SMB_SHARE_TYPE                DISK
                              SIGNING_SUPPORTED             TRUE
                              EXTENDED_SECURITY_SUPPORTED   TRUE
                              LARGE_FILE_SUPPORTED          TRUE
                              FILE_IDS_SUPPORTED            TRUE

--------------------------------------------------------------------------------------------------
Last edited by massinia on Fri Feb 17, 2023 6:58 pm, edited 1 time in total.
 
User avatar
sirbryan
Member Candidate
Member Candidate
Posts: 298
Joined: Fri May 29, 2020 6:40 pm
Location: Utah
Contact:

Re: SMB and ROSE-storage

Fri Feb 17, 2023 6:57 pm

For NFS, you have to be root to read/write on the shares, or as root change the permissions so that non-root users can read/write to the share.

We also (in the referenced thread) detailed the specific mounting parameters to get it to work on macOS.

To get SMB to work (before ROSE was released), I used a container based on Alpine Linux with Samba installed, and get wirespeed data transfers to the CCR2116's NVMe disk. (See posts 106 and 111: viewtopic.php?p=972827#p972754) Your hAP AX3 will easily run that SMB container without issue, and you can create your own config file for permissions, shares, etc.
 
massinia
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Thu Jun 09, 2022 7:20 pm

Re: SMB and ROSE-storage

Fri Feb 17, 2023 7:10 pm

Thanks sirbryan, I hadn't thought about containers for smb.
I will try in a few days.

I put rose-storage aside for now :lol:
 
massinia
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Thu Jun 09, 2022 7:20 pm

Re: SMB and ROSE-storage

Tue Mar 28, 2023 12:51 pm

ROSE package 7.9beta4 works perfectly with Windows and macOS, transfer speed is great.

Do you know how to share only one folder, maybe with username and password...
In the guide there are
https://help.mikrotik.com/docs/display/ ... properties

smb-password
smb-share
smb-user


But it is not explained how to use them 😅
 
aanistratenko
just joined
Posts: 8
Joined: Fri Mar 10, 2023 10:27 pm

Re: SMB and ROSE-storage

Wed May 31, 2023 11:52 pm

ROSE package 7.9beta4 works perfectly with Windows and macOS, transfer speed is great.

Do you know how to share only one folder, maybe with username and password...
In the guide there are
https://help.mikrotik.com/docs/display/ ... properties

smb-password
smb-share
smb-user


But it is not explained how to use them 😅
I have a same issue and interesting for it!
 
vinalopo
just joined
Posts: 2
Joined: Tue Jun 06, 2023 5:56 pm

Re: SMB and ROSE-storage

Tue Jun 06, 2023 6:00 pm

Good afternoon
the changelog of routeros 7.10rc3 contain the following addition "*) rose-storage - added support for multiple smb users and smb shares;" nevertheless the ROSE-storage documentation is still lacking information on how to use it
is there anyone that figure out how to add smb users and shares with ROSE-storage?

thank you

Who is online

Users browsing this forum: Bing [Bot], h1ghrise and 30 guests