Solved [Solved] Need Help ZFS storage

Hi,

So I can normally find what I'm looking for but in this case I'm stumped and have no idea what I've done wrong but here goes. My rig is just an gutted old gaming rig, I upgraded the RAM (32 GB) and 6 HDDs.
1 HDD - for OS
1 HDD - for Jail
4 HDD - for ZFS, each is a 3 TB Seagate 7200 Barracuda

I should also add I'm a fairly big noob. I learned the basics to set it up and it just kicks ass. It took me a month to realize I had a HDD in the ZFS pool disconnect (I have since replaced the SATA cable and online'd it).
THE PROBLEM: A 1 GB file takes up 2 GB on the disk. And I can't figure out why? For the ZFS copies is set to 1 but looking through the man pages it only has options 1 2 or 3, so I'm assuming copies 1 means only original data yet I can't see anything else that would cause this? I have the drive mounted on my windows box and this is a screen shot of an example file properties:



Here are a few readouts of the setup. Hope someone can help me?
__________________________________________________
Code:
***@*******:/ % zfs list
NAME               USED  AVAIL  REFER  MOUNTPOINT
storage            6.08T  1.93T  43.4K  /storage
storage/home  6.08T  1.93T  6.08T  /bigballs
_________________________________________________
Code:
***@*******:/ % zpool list
NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
storage  10.9T  8.12T  2.75T    74%  1.00x  ONLINE  -
___________________________________________________
Code:
***@*******:/ % zfs get all storage
NAME     PROPERTY              VALUE                  SOURCE
storage  type              -    filesystem             -
storage  creation         -     Wed Apr 10 11:35 2013  -
storage  used               -   6.08T                  -
storage  available          -   1.93T                  -
storage  referenced        -    43.4K                  -
storage  compressratio    -     1.00x                  -
storage  mounted             -  yes                    -
storage  quota          -       none                   default
storage  reservation   -        none                   default
storage  recordsize      -      128K                   default
storage  mountpoint     -       /storage               default
storage  sharenfs          -    off                    default
storage  checksum         -     on                     default
storage  compression      -     off                    default
storage  atime                 - on                     default
storage  devices        -       on                     default
storage  exec             -     on                     default
storage  setuid           -     on                     default
storage  readonly        -      off                    default
storage  jailed            -    off                    default
storage  snapdir         -      hidden                 default
storage  aclmode        -       discard                default
storage  aclinherit      -      restricted             default
storage  canmount     -         on                     default
storage  xattr            -     off                    temporary
storage  copies          -      1                      default
storage  version        -       5                      -
storage  utf8only       -       off                    -
storage  normalization -        none                   -
storage  casesensitivity -      sensitive              -
storage  vscan          -       off                    default
storage  nbmand       -         off                    default
storage  sharesmb    -          off                    default
storage  refquota     -         none                   default
storage  refreservation -       none                   default
storage  primarycache    -      all                    default
storage  secondarycache  -      all                    default
storage  usedbysnapshots -      0                      -
storage  usedbydataset      -   43.4K                  -
storage  usedbychildren       - 6.08T                  -
storage  usedbyrefreservation - 0                      -
storage  logbias           -    latency                default
storage  dedup             -    off                    default
storage  mlslabel           -                          -
storage  sync             -     standard               default
storage  refcompressratio  -    1.00x                  -
storage  written        -       43.4K                  -
 

Attachments

  • Capture.JPG
    Capture.JPG
    43 KB · Views: 878
Re: Need Help ZFS storage

Did you have copies set to 2 at some point in time? If the file was written when copies was set to 2 it would take up twice the size. Setting it back to 1 doesn't change existing files, only new ones.
 
Re: Need Help ZFS storage

No, I haven't changed it. It's always been that way from first setup.
 
Re: Need Help ZFS storage

Do the files take up twice as much space on the FreeBSD machine as well, or only on the Windows box?
 
Re: Need Help ZFS storage

mix_room said:
Do the files take up twice as much space on the FreeBSD machine as well, or only on the Windows box?

They take up twice the space on the FreeBSD, but only in the ZPOOL. If the file is in the JAIL(transmission download for example) it is the normal file size, but when i copy it to the ZPOOL it takes up twice as much space.
This is the same file one in the jail( not part of ZPOOL) the other in the ZPOOL.
I feel it is the setup i've choosen. Its a RAID-Z1 setup but from what i understand that should give me 3 HDD of space and 1 HDD for redundancy.
But i feel like its also mirroring or copying the data as well
_________________________________________________________
Jail
***@*******:/jaillink/Downloads/Testing % du -ah
46M ./dickinabox.avi

_________________________________________________________
Zpool
***@*******:/bigballs/aanew/TVIn % du -ah
93M ./dickinabox.avi
 
Re: Need Help ZFS storage

Wow....

copies - 2

Thank you so much. :e
___________________________________________________
***@*******:/torrentlink/Downloads/Testing % zfs get all storage/home
NAME PROPERTY VALUE SOURCE
storage/home type filesystem -
storage/home creation Wed Apr 10 11:38 2013 -
storage/home used 6.08T -
storage/home available 1.93T -
storage/home referenced 6.08T -
storage/home compressratio 1.00x -
storage/home mounted yes -
storage/home quota none default
storage/home reservation none default
storage/home recordsize 128K default
storage/home mountpoint /bigballs local
storage/home sharenfs off default
storage/home checksum on default
storage/home compression gzip local
storage/home atime on default
storage/home devices on default
storage/home exec on default
storage/home setuid on default
storage/home readonly off default
storage/home jailed off default
storage/home snapdir hidden default
storage/home aclmode discard default
storage/home aclinherit restricted default
storage/home canmount on default
storage/home xattr off temporary
storage/home copies 2 local
storage/home version 5 -
storage/home utf8only off -
storage/home normalization none -
storage/home casesensitivity sensitive -
storage/home vscan off default
storage/home nbmand off default
storage/home sharesmb off default
storage/home refquota none default
storage/home refreservation none default
storage/home primarycache all default
storage/home secondarycache all default
storage/home usedbysnapshots 0 -
storage/home usedbydataset 6.08T -
storage/home usedbychildren 0 -
storage/home usedbyrefreservation 0 -
storage/home logbias latency default
storage/home dedup off default
storage/home mlslabel -
storage/home sync standard default
storage/home refcompressratio 1.00x -
storage/home written 6.08T -
 
Back
Top