Copying a specific directory, Windows says it is 5+ TB

Status
Not open for further replies.

NoTalent

Dabbler
Joined
Jun 24, 2013
Messages
28
I am in the process of upgrading my NAS.

I currently have 6 1TB drives in a zfs1? config. Compression is lzjb:
index.php

I have been told how this is set up is wrong, and that is why I want to start over. I am buying some 4TB drives and will have them in a cyberjock approved configuration.

The issue is copying all my data
I don't have the option (due to budget) to get a whole new computer to put the NAS in, so I need to backup the data from my NAS first, install my new disks, then copy the data from the backup drive to the new Volume.

I might be doing this all wrong so if you know of a better way please help.

Issue:
The issue I'm running into is I'm trying to copy my directory "Public Data" It shows up as having 56.5GB of data.
index.php

When I try to copy this over to my backup hard drive, or a internal 4TB drive on my main computer, it shows this:
index.php

I'm not sure why it shows such a large amount of data--has anyone else seen something like this?
 

Attachments

  • volume.JPG
    volume.JPG
    31.5 KB · Views: 320
  • windows_copy.JPG
    windows_copy.JPG
    30.7 KB · Views: 319
  • publicdata.JPG
    publicdata.JPG
    36.1 KB · Views: 317

NoTalent

Dabbler
Joined
Jun 24, 2013
Messages
28
Looking further into the directories, I have found what appears to be corrupted files/directories:

Example from my ripped CD collection:
index.php

index.php


I'm not sure how this happened other than I had rebuilt a failed drive out of my 6 drive zfs and everything seemed to have worked fine.

Are there any windows file integrity checkers? zfs shows everything is fine:

Code:
[media@freenas] ~# zpool status -v
  pool: Storage
state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on software that does not support feature
        flags.
  scan: scrub repaired 0 in 30h48m with 0 errors on Mon Sep  7 06:48:55 2015
config:

        NAME                                            STATE     READ WRITE CKSUM
        Storage                                         ONLINE       0     0     0
          raidz1-0                                      ONLINE       0     0     0
            gptid/373da778-d5b9-11e2-a4c4-00e081c59efe  ONLINE       0     0     0
            gptid/ea86ce69-570a-11e2-bbc6-00e081c59efe  ONLINE       0     0     0
            gptid/eaedef68-570a-11e2-bbc6-00e081c59efe  ONLINE       0     0     0
            gptid/eb8a8c4e-570a-11e2-bbc6-00e081c59efe  ONLINE       0     0     0
            gptid/ebfdc64e-570a-11e2-bbc6-00e081c59efe  ONLINE       0     0     0
            gptid/ecba1095-570a-11e2-bbc6-00e081c59efe  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0h0m with 0 errors on Tue Sep  8 03:45:34 2015
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors
[media@freenas] ~#


Here is the smb4.conf:
Code:
[root@freenas] /etc/local# cat smb4.conf
[global]
    server max protocol = SMB2
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    oplocks = yes
    deadtime = 15
    max log size = 51200
    max open files = 942905
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    getwd cache = yes
    guest account = media
    map to guest = Bad User
    obey pam restrictions = yes
    directory name cache size = 0
    kernel change notify = no
    dfree command = /usr/local/libexec/samba/dfree
    panic action = /usr/local/libexec/samba/samba-backtrace
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    server string = FreeNAS Server
    ea support = yes
    store dos attributes = yes
    hostname lookups = yes
    time server = yes
    null passwords = yes
    acl allow execute always = true
    acl check permissions = true
    dos filemode = yes
    multicast dns register = yes
    domain logons = no
    local master = yes
    idmap config *: backend = tdb
    idmap config *: range = 90000001-100000000
    server role = standalone
    netbios name = FREENAS
    workgroup = WORKGROUP
    security = user
    pid directory = /var/run/samba
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 3


[backup]
    path = /mnt/Storage
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    vfs objects = zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
[root@freenas] /etc/local# [root@freenas] /etc/local# cat smb4.conf
    encrypt passwords = yes
[root@freenas]: No match.
    dns proxy = no
    strict locking = no
[root@freenas] /etc/local#     oplocks = yes
[global]
    deadtime = 15
[global]: No match.
    max log size = 51200
    max open files = 942905
[root@freenas] /etc/local#     load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    getwd cache = yes
    server max protocol = SMB2

CORRECT>    sserver max protocol = SMB2 (y|n|e|a)? yes
    guest account = media
    map to guest = Bad User
    obey pam restrictions = yes
    directory name cache size = 0
    kernel change notify = no
    dfree command = /usr/local/libexec/samba/dfree
    panic action = /usr/local/libexec/samba/samba-backtrace
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    server string = FreeNAS Server
    ea support = yes
    store dos attributes = yes
    hostname lookups = yes
    time server = yes
    null passwords = yes
    acl allow execute always = true
    acl check permissions = true
    dos filemode = yes
    multicast dns register = yes
    domain logons = no
    local master = yes
    idmap config *: backend = tdb
    idmap config *: range = 90000001-100000000
    server role = standalone
    netbios name = FREENAS
    workgroup = WORKGROUP
    security = user
    pid directory = /var/run/samba
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 3


[backup]
    path = /mnt/Storage
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    vfs objects = zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
[root@freenas] /etc/local#    encrypt passwords = yes
encrypt: Command not found.
[root@freenas] /etc/local#     dns proxy = no
dns: Command not found.
[root@freenas] /etc/local#     strict locking = no
strict: Command not found.
[root@freenas] /etc/local#     oplocks = yes
oplocks: Command not found.
[root@freenas] /etc/local#     deadtime = 15
deadtime: Command not found.
[root@freenas] /etc/local#     max log size = 51200

CORRECT>    pax log size = 51200 (y|n|e|a)? yes
pax: Cannot identify format. Searching...
cls
^C
pax: Signal caught, cleaning up.
pax: unknown format, 1763 bytes skipped.
[root@freenas] /etc/local#
[root@freenas] /etc/local#
[root@freenas] /etc/local#
[root@freenas] /etc/local#
[root@freenas] /etc/local# cls

CORRECT>ls (y|n|e|a)? no
cls: Command not found.
[root@freenas] /etc/local# clear
[root@freenas] /etc/local# cat smb4.conf
[global]
    server max protocol = SMB2
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    oplocks = yes
    deadtime = 15
    max log size = 51200
    max open files = 942905
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    getwd cache = yes
    guest account = media
    map to guest = Bad User
    obey pam restrictions = yes
    directory name cache size = 0
    kernel change notify = no
    dfree command = /usr/local/libexec/samba/dfree
    panic action = /usr/local/libexec/samba/samba-backtrace
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    server string = FreeNAS Server
    ea support = yes
    store dos attributes = yes
    hostname lookups = yes
    time server = yes
    null passwords = yes
    acl allow execute always = true
    acl check permissions = true
    dos filemode = yes
    multicast dns register = yes
    domain logons = no
    local master = yes
    idmap config *: backend = tdb
    idmap config *: range = 90000001-100000000
    server role = standalone
    netbios name = FREENAS
    workgroup = WORKGROUP
    security = user
    pid directory = /var/run/samba
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 3


[backup]
    path = /mnt/Storage
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    vfs objects = zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
[root@freenas] /etc/local#
 

Attachments

  • baddir.JPG
    baddir.JPG
    19.4 KB · Views: 270
  • badfile.JPG
    badfile.JPG
    43.1 KB · Views: 280

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Also, you don't really need to get a whole new computer. The only thing you may need to get is a couple SATA cards and some cables, and just plug your drives in outside of your case.
 
Status
Not open for further replies.
Top