CIFS share stopped working after canceled transfer

Status
Not open for further replies.

r3dh3adkid

Cadet
Joined
Aug 11, 2016
Messages
3
I was transferring a few TB of data between folders in Windows 10 using TeraCopy. I had another copy queued after the first one. I was copying data and running a CRC check on 1.6TB of data. I canceled the second after the first one finished. The second transfer made it a few hundred MB in before I canceled. After I canceled, TeraCopy hung and would not close. I waited around 30m before I forced the task to end. Right after, my CIFS shares stopped working. I received an error about broken disc from windows, but did not screen shot the message. I could not open the share folder or access the share from the Network menu. I have a ubuntu server that has the same dataset mounted via NFS and is working fine. The web panel loads fine and the server is pingable from Windows.

I have tried: restarting my pc, restarting the FreeNAS server, deleting and remaking the CIFS share, restarting CIFS service, deleting and remapping the network share, turning on guest access.

I'm not sure what to try next and looking for any suggestions on where to start.

Environment:
Windows 10
FreeNAS 9.10.1 (d989edd)
SMB2.0 share (I think)

FreeNAS Server:
ASRock C2750 board
Intel Avoton(Atom) C2750
8x3TB WD Red
32GB DDR3 ECC
 

r3dh3adkid

Cadet
Joined
Aug 11, 2016
Messages
3
Here is the output from some commands being asked to run in other threads:

smbstatus
Code:
                                                                                                                                 
Samba version 4.3.11-GIT-UNKNOWN                                                                                                 
PID     Username      Group         Machine            Protocol Version                                                           
------------------------------------------------------------------------------                                                   
7018      nobody        nobody        thor         (ipv4:MYIP:50120) NT1                                                 
7018      -1            -1            thor         (ipv4:MYIP:50120) NT1                                                 
                                                                                                                                 
Service      pid     machine       Connected at                                                                                   
-------------------------------------------------------                                                                           
IPC$         7018   thor          Thu Aug 11 20:46:55 2016                                                                       
                                                                                                                                 
No locked files                                                                                                                   

Not sure why this is showing that PC. I'm positive it's mounted through NFS

testparm
Code:
Load smb config files from /usr/local/etc/smb4.conf                                                                                
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)                                                          
Processing section "[yggdrasil]"                                                                                                  
Loaded services file OK.                                                                                                          
Server role: ROLE_STANDALONE                                                                                                      
                                                                                                                                  
Press enter to see a dump of your service definitions

# Global parameters
       dos charset = CP437
       server string = FreeNAS Server
       server role = standalone server
        security = USER                                                                                                            
        map to guest = Bad User                                                                                                    
        obey pam restrictions = Yes                                                                                                
        logging = file                                                                                                            
        max log size = 51200                                                                                                      
        max protocol = SMB3                                                                                                        
        protocol = SMB3                                                                                                            
        time server = Yes                                                                                                          
        deadtime = 15                                                                                                              
        kernel change notify = No                                                                                                  
        max open files = 942086                                                                                                    
        hostname lookups = Yes                                                                                                    
        load printers = No                                                                                                        
        printcap name = /dev/null                                                                                                  
        disable spoolss = Yes                                                                                                      
        lm announce = Yes                                                                                                          
        dns proxy = No                                                                                                            
        pid directory = /var/run/samba                                                                                            
        panic action = /usr/local/libexec/samba/samba-backtrace                                                                    
        nsupdate command = /usr/local/bin/samba-nsupdate -g                                                                        
        idmap config *: range = 90000001-100000000                                                                                
        idmap config * : backend = tdb                                                                                            
        acl allow execute always = Yes                                                                                            
        create mask = 0666                                                                                                        
        directory mask = 0777                                                                                                      
        directory mode = 0777                                                                                                      
        ea support = Yes                                                                                                          
        directory name cache size = 0                                                                                              
        store dos attributes = Yes                                                                                                
        strict locking = No                                                                                                        
        dos filemode = Yes                                                                                                        
                                                                                                                                  
                                                                                                                                  
[yggdrasil]                                                                                                                        
        path = /mnt/yggdrasil                                                                                                      
        read only = No                                                                                                            
        hosts allow = MY IPs/HOSTS                                                                        
        veto files = /.snapshot/.windows/.mac/.zfs/                                                                                
        vfs objects = zfs_space zfsacl aio_pthread streams_xattr recycle                                                          
        zfsacl:acesort = dontcare                                                                                                  
        nfs4:chown = true                                                                                                          
        nfs4:acedup = merge                                                                                                        
        nfs4:mode = special                                                                                                        
        recycle:subdir_mode = 0700                                                                                                
        recycle:directory_mode = 0777                                                                                              
        recycle:touch = yes                                                                                                        
        recycle:versions = yes                                                                                                    
        recycle:keeptree = yes                                                                                                    
        recycle:repository = .recycle/%U
[global]


zpool
Code:
  pool: freenas-boot                                                                                                              
state: ONLINE                                                                                                                    
  scan: scrub repaired 0 in 0h0m with 0 errors on Mon Jul 25 03:45:54 2016                                                        
config:                                                                                                                            
                                                                                                                                  
        NAME        STATE     READ WRITE CKSUM                                                                                    
        freenas-boot  ONLINE       0     0     0                                                                                  
          da0p2     ONLINE       0     0     0                                                                                    
                                                                                                                                  
errors: No known data errors                                                                                                      
                                                                                                                                  
  pool: yggdrasil                                                                                                                  
state: ONLINE                                                                                                                    
  scan: scrub repaired 0 in 97h9m with 0 errors on Thu Aug 11 01:09:36 2016                                                        
config:                                                                                                                            
                                                                                                                                  
        NAME                                            STATE     READ WRITE CKSUM                                                
        yggdrasil                                       ONLINE       0     0     0                                                
          raidz2-0                                      ONLINE       0     0     0                                                
            gptid/edc0f2cf-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/ee83956f-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/ef4496e8-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/f00a9da6-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/c2d857c7-098f-11e5-9d31-d05099504268  ONLINE       0     0     0                                                
            gptid/f19ba402-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/f262a85f-07e7-11e5-8218-d05099504268  ONLINE       0     0     0                                                
            gptid/63230214-1ec8-11e5-b1b6-d05099504268  ONLINE       0     0     0                                                
                                                                                                                                  
errors: No known data errors
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Mounting the same mountpoint in both NFS and CIFS? As stated in the manual, this is not a good idea, and can lead to pernicious locks, etc. In fact, I bet something like that happened here.

Troubleshooting steps I'd recommend:

First method:
1) Go in the services menu of FreeNAS. Turn off *ALL* file sharing methods, so BOTH the CIFS and the NFS.
2) Remove ALL mounts of that dataset
3) From your Windows box, just mount something else entirely via CIFS, from another box entirely. Rule out a problem with Windows.
4) Re-establish your shares and re-enable the services.
5) See if you have a problem.

Second method:

1) Go to ANOTHER Windows computer. Attempt to mount the same mountpoint via CIFS, raw, not with whatever copy software you were using.
2) If this does not work, clearly the problem is on the FreeNAS side, or PEBKAC.
3) If this DOES work, then clearly the problem is on the other Windows computer's side, or PEBKAC.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Mounting the same mountpoint in both NFS and CIFS? As stated in the manual, this is not a good idea, and can lead to pernicious locks, etc. In fact, I bet something like that happened here.

Troubleshooting steps I'd recommend:

First method:
1) Go in the services menu of FreeNAS. Turn off *ALL* file sharing methods, so BOTH the CIFS and the NFS.
2) Remove ALL mounts of that dataset
3) From your Windows box, just mount something else entirely via CIFS, from another box entirely. Rule out a problem with Windows.
4) Re-establish your shares and re-enable the services.
5) See if you have a problem.

Second method:

1) Go to ANOTHER Windows computer. Attempt to mount the same mountpoint via CIFS, raw, not with whatever copy software you were using.
2) If this does not work, clearly the problem is on the FreeNAS side, or PEBKAC.
3) If this DOES work, then clearly the problem is on the other Windows computer's side, or PEBKAC.

Based on your nickname, and the fact that you are mounting the same datasets using different conflicting file sharing methods, and so on, I think PEBKAC is a likely causative element. :) But good luck sir.
 

r3dh3adkid

Cadet
Joined
Aug 11, 2016
Messages
3
First, thank you for your help!

It's Windows. I can mount the volume from another PC.

Also the nickname I came up with when I was like 13 and it just kind of stuck. I'm 27 now, guess I should change that.
 
Last edited:

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Status
Not open for further replies.
Top