Page 1 of 1

initial drive access from windows slow but data transfer ok

Posted: 21 Jul 2014 11:23
by al2lo
hi,

basic nas4free zfs mirrored drive used for file storage.

initial drive access is always slow 5-10s to open directory. After that access is fast.

have shares cifs tested as smb and nt2 but to no avail.

system is attached on sbs domain.

any pointers welcome.

no errors noticed in log but i am a newbee to nas4free.

albert

Re: initial drive access from windows slow but data transfer

Posted: 21 Jul 2014 12:02
by raulfg3
revise siftu recomendations: http://n4f.siftusystems.com/index.php/2 ... /comments/


and read more about in tune section: viewforum.php?f=10

Re: initial drive access from windows slow but data transfer

Posted: 21 Jul 2014 12:03
by ChriZathens
Also:
Slow initial drive access could mean that drives are spinning down and need a few seconds to spin up again
In Disks|Management what is the standby time for your disks?
Additionally, slow directory browsing is often reported by having Store Dos attributes checked.
Go to Services|CIFS/SMB|Settings and in Advanced Settings section see if "Store DOS attributes" is checked or not

Re: initial drive access from windows slow but data transfer

Posted: 21 Jul 2014 12:09
by al2lo
disks are at always on.

but store dos attribute is ticked. what effect will disabling have on windows usage as drives are part of domain for mail storage and backup.

also what effect on disabling it?

albert

Re: initial drive access from windows slow but data transfer

Posted: 21 Jul 2014 12:36
by b0ssman
http://oreilly.com/openbook/samba/book/ch05_03.html

you dont need those attributes on the nas.

Re: initial drive access from windows slow but data transfer

Posted: 21 Jul 2014 12:44
by al2lo
will they affect existing shares in windows from disabling it?

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 08:59
by al2lo
tried this overnight but to no avail. still takes 5-10s to get initial data.

albert

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 10:07
by raulfg3
do you read siftu recomendations?

ZFSkerntune is really recommended to install in your system.

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 10:49
by al2lo
yes read and digested.

change to max performance.

Do not have problem with performance that I can see as backups are much faster than before from server using commercial NAS.

cpu is not powerful but rarely gets warm never mind excited. seen it at 20% once.

memory never gets to filled as not much multitasking or work.

just initial drive access when tryig to open folder for first time. Seems to take an age 10-15s - tested and counted to 15!

is there any better debug or info i can supply that would be of use.

thanks

albert

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 11:42
by al2lo
getting a few smdb errors that might be relevant:

Jul 22 09:38:45 datastore nmbd[1939]: wins_registration_timeout: WINS server 10.0.0.4 timed out registering IP 10.0.0.5
Jul 22 09:38:45 datastore nmbd[1939]: [2014/07/22 09:38:45.167131, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)

have added server name to hosts to see if helps

and error
Jul 22 09:39:03 datastore winbindd[2267]: [2014/07/22 09:39:03.250032, 1] winbindd/winbindd_ads.c:134(ads_cached_connection)
Jul 22 09:39:00 datastore winbindd[2267]: ads_connect for domain PETAL failed: No logon servers

it has connected to the domain controller as it has a list of users

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 11:44
by raulfg3
you say that disks are at always on.

But to be sure post how are your disk configured in WebGUI ( Disks|Management|Disk|Add ) :

http://wiki.nas4free.org/doku.php?id=do ... management

Please post a screen capture of both disk, and remember that disk MUST be properly config in WebGUI otherwise, can work as expected or not.

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 12:51
by al2lo
added screens of seagate disks. These are 4k disk in reality but function at much lower level as they mimic non 4k disks in software. Have read a little on this.

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 13:20
by b0ssman
you write that
"system is attached on sbs domain."
does that mean the your machine is part of the nt domain?

if so have you tried the same without beeing part of the domain?

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 13:43
by raulfg3
al2lo wrote:added screens of seagate disks. These are 4k disk in reality but function at much lower level as they mimic non 4k disks in software. Have read a little on this.
Please activate SMART box and press save.

check if notice some improvement.

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 15:55
by al2lo
hi tried smart box active and tested - still slow on server to access.

have noticed time is 1 hour out. this could be n issue

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 16:02
by al2lo
system is live in 2008 sbs domain environment so cannot turn it off

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 16:02
by al2lo
may be able to turn off domain later tonight

Re: initial drive access from windows slow but data transfer

Posted: 22 Jul 2014 16:03
by al2lo
when i built the system it was responsive but this happened when the system was deployed. there were also a lot of changes at that point

Re: initial drive access from windows slow but data transfer

Posted: 23 Jul 2014 10:13
by al2lo
did not get ad removal last night as backups were a priority.

some errors/logs from connection this morning:

Diagnostics|Log

Log
Settings


Date & Time User Event
Jul 23 08:09:59 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service CAD initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:59 datastore smbd[8288]: [2014/07/23 08:09:59.162396, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:59 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service Keith initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:59 datastore smbd[8288]: [2014/07/23 08:09:59.031450, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service Mail Archve initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.898597, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service PETALSQL Backup initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.810463, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service Pat initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.763908, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service PETALSBS Backup initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.740785, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: keysfamily-pc (10.0.0.33) connect to service Barry initially as user admin (uid=1000, gid=31) (pid 8288)
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.731989, 1] smbd/service.c:1114(make_connection_snum)
Jul 23 08:09:58 datastore smbd[8288]: Module '/usr/local/lib/samba/vfs/shadow_copy2.so' loaded
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.731840, 2] lib/module.c:64(do_smb_load_module)
Jul 23 08:09:58 datastore smbd[8288]: Module '/usr/local/lib/samba/vfs/zfsacl.so' loaded
Jul 23 08:09:58 datastore smbd[8288]: [2014/07/23 08:09:58.731776, 2] lib/module.c:64(do_smb_load_module)
Jul 23 08:09:57 datastore winbindd[2267]: ads_connect for domain PETAL failed: No logon servers
Jul 23 08:09:57 datastore winbindd[2267]: [2014/07/23 08:09:57.281934, 1] winbindd/winbindd_ads.c:134(ads_cached_connection)
Jul 23 08:09:54 datastore winbindd[2267]: ads_connect for domain PETAL failed: No logon servers
Jul 23 08:09:54 datastore winbindd[2267]: [2014/07/23 08:09:54.900931, 1] winbindd/winbindd_ads.c:134(ads_cached_connection)
Jul 23 08:09:52 datastore winbindd[2267]: ads_connect for domain PETAL failed: No logon servers
Jul 23 08:09:50 datastore smbd[8288]: check_ntlm_password: authentication for user [admin] -> [admin] -> [admin] succeeded

Re: initial drive access from windows slow but data transfer

Posted: 23 Jul 2014 10:47
by b0ssman
that is definitely a problem with the domain.

maybe this helps

viewtopic.php?f=21&t=6883

Re: initial drive access from windows slow but data transfer

Posted: 23 Jul 2014 11:02
by al2lo
been looking at the topic and its not simple. can live with password unencrypted where it is at moment.

need to simplify this as much as possible and work out whats really ahppening.

I know the winbindd connects at some point as it gets the server usernames.

albert