SOLVED Defect 36508 - Windows report cluster size of 1MB used for small file in a SMB share, ZFS says 128kb

Status
Not open for further replies.

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Are you talking about the ZFS record size? That's variable.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
I think I see what you mean, I have a 90,832 byte file (as reported by windows on a SMB share) and Windows is reporting a size on disk of 3,145,728 bytes. I'm not sure but this may take into account parity, mirrors, and all metadata and once you factor record size...
Mehh that's still WAY off.
 

MrToddsFriends

Documentation Browser
Joined
Jan 12, 2015
Messages
1,338

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Yeah I just checked via ssh and the file is no larger than expected on disk.
 

Mark Holtz

Contributor
Joined
Feb 3, 2015
Messages
124
Aha... I knew it was something in the interconnectivity between SaMBa and FreeBSD. I've updated the defect with the following workaround:

  1. Log into Administration Console
  2. Go to Services
  3. Under SMB, click Stop Now (this will stop Windows shares)
  4. Under SMB, click on the Wrench icon for Settings
  5. Under Auxiliary parameters:, type
    Code:
    allocation roundup size = 131072
    . This will set the allocation units for all shares to be 128KB (128KB=131072)
  6. Clock OK to close out of settings.
  7. In the Services menu, under SMB, click on Start Now (this will start Windows shares)
Here is a screen shot of the steps:
vaultron_-_FreeNAS-11.1-U5_(8e2a858a1)_-_Google_Ch 2018-07-16 19-54-39.png
 
Status
Not open for further replies.
Top