Sharing problems with Samba

Faunsek

Cadet
Joined
Jan 22, 2021
Messages
6
Hello team!
First at all, thanks for your help.

I have a Microserver gen 10 plus with VMware installed

1611320965345.png


And I have a Truenas virtualized on
Versión:
TrueNAS-12.0-U1.1

Truenas ip 192.168.0.115/24
WIN10 PC IP 192.168.0.112/24

I have a problem when I try to share files with samba. I try copy files from my computer to TrueNAS on path /mnt/Vol_1_HD/Peliculas. I can map the path on my windows 10 and I can enter on the folder. I can start to copy the files, but 4 or 5 seconds later, speed descrease to Kb/s and it is maddening.
I check speed transference between two machines with iperf3 and these are the results.

1611321441569.png


I try copy files with WinSCP and use sftp protocol but its happen the same (speed decreases a lot of)

If I try to copy files on windows explorer windows displays the follow error.

1611321517757.png

But I see and create new files on folder.

1611321851847.png




Can you help me?

Thanks for all.
 

c77dk

Patron
Joined
Nov 27, 2019
Messages
468
Hi,

To me it sounds like a disk issue - can you tell us more abount how you have setup the disks? is it hardware passthru? mirrrors/raidz, dedup?
 

Faunsek

Cadet
Joined
Jan 22, 2021
Messages
6
Hi @c77dk ,
Thanks for your reply.

This pool is configured as follow:
1611331642261.png


The disk not form a part of a raid or mirror, is a single disk.
1611331707080.png


And the datasheet Peliculas,

1611331813526.png


Do you think that is a bad configuration? What do you recommend me?
Thanks for your help and interest.
 
Joined
Jan 18, 2017
Messages
525
TrueNAS-12.0-U1.1 and TrueNAS-12.0-U1 have a samba bug that is causing disconnects on some clients which may be causing your issue if you can roll back to TrueNAS-12.0 and try the transfer again it will help track down the issue. You can also head over to the bug tracker and look up the bug comparing them against yours.
 

Faunsek

Cadet
Joined
Jan 22, 2021
Messages
6
Hi @cobrakiller58,
Thanks for the info.
I downgraded it to 12.0
1611369758006.png


And when I try to copy the files, its seems that works because doesnt display any error but after 4 or 5 seconds decrease the speed of the transference from 94MBs to 0KBs.

1611369931819.png


1611369937214.png


The transference keep going but too slow.

It doesnt display any error, do you know what is happen?

Thanks for your answer.
 

Hellione

Explorer
Joined
Jan 23, 2021
Messages
55
can you post a
smartctl -a /dev/ada3
pleas?
might be bad sectors on your drive.
the first few seconds are going to ram (arc) and then comes the slowdown
 

Faunsek

Cadet
Joined
Jan 22, 2021
Messages
6
Hi @Hellione ,
Thanks for your answer.
This is the output of the command:

1611401262747.png

On the second screenshot, I show the different possibilities that I have.

1611401366649.png


I saw that s.m.a.r.t service on Truenas dont lets me start it.


1611401524172.png



Thanks in advance.
 

Attachments

  • 1611401356849.png
    1611401356849.png
    29.7 KB · Views: 145

Hellione

Explorer
Joined
Jan 23, 2021
Messages
55
hm ok i cant help you, this is an virtual esxi harddrive, and i have only experience with physical hard drives which are connected directly or with passthrough controllers
 
Joined
Jan 18, 2017
Messages
525
hmmmmmm do you have any other clients you can use to do the transfer to TrueNAS?
I just tried this and got similar results to you the below screenshot is a transfer from windows 10 2004 Ryzen 9 3950X to a hyper-v VM on the same machine 4 cores 8GB ram running truenas 12.0-U1
Untitled.png
increasing the VM to 8 cores and 16Gb ram improved the transfer but it still dipped to 2MB/s

Transfer from a Ubuntu VM on another machine to the Hyper-V VM the speed was steady around 70MB/s increasing the receiving VM's cores and ram did not make a noticeable difference.

Below is a test to a new FreeNAS 11.3-U5 VM 4 cores 8GB ram on the same machine.
Untitled2.png
Honestly i have no idea what to make of this, post all the information about your setup and hopefully someone with practical experience with TrueNAS 12.0 in a VM can chime in. If that doesn't work the next option will be to file a bug report on Jira to receive advice from the dev's
 

c77dk

Patron
Joined
Nov 27, 2019
Messages
468
Having seen the info about how the disk is setup my suggestion from reading the forums would be to get a controller for hardware passthru - using virtualized disks seems to be highly unrecommended.
 
Joined
Jan 18, 2017
Messages
525
Having seen the info about how the disk is setup my suggestion from reading the forums would be to get a controller for hardware passthru - using virtualized disks seems to be highly unrecommended.

If you value your data it is frowned upon however in this case I do not believe the virtual disk is the root of the problem, in my VM to VM lan test there was a steady speed and both ends disks are virtual. The ubuntu side is on 3 mirrored pairs of 2TB Seagate ES.2 and the TrueNAS side is on a WDS100T1B0B
 

Faunsek

Cadet
Joined
Jan 22, 2021
Messages
6
And how do you recommend install the disk?

I checked with transfers from other devices with other OS (android, windows and IOS "macbook air") both over wireless comunications @cobrakiller58 . Transfering 1Gb, from mac/windows device to freenas the result is the same, speed of transfer decrease when 4 or 5 seconds but it doesnt display any error and when I tried transfer data with my mobil phone I can do it with 8~9MB on wifi of 5Ghz and its okey.

Its too weird.

Thanks for your answers.
 
Joined
Jan 18, 2017
Messages
525
Passing a controller to the FreeNAS/TrueNAS VM so that it can manage the disks connected to that controller directly is the recommended practice.
 
Top