Volume Available vs Dataset Available

Status
Not open for further replies.

WIRLYWIRLY

Cadet
Joined
Mar 29, 2015
Messages
4
How's it going. I just setup my first FreeNas maching (Running the latest 9.1) and have been playing with it while importing some NTFS drives. I'm coming from Windows, never used Linux/FreeBSD/Anything other than windows. I know my way around windows cmd so that has helped me when trying to figure out SSH, but it still gets pretty confusing for me until I learn all the terminology. Anyways here is what i've been up to...

All my drives are pretty much full to capacity (1x2tb, 1x3tb, 1x4tb) and the only free HDD is a new one I just bought (4tb). What I am doing is importing the NTFS drives into a dataset on the new 4tb ZFS Volume, Waiting for it to finish, striping the NTFS drive I copied from, then using "Zfs Send | Receive" for copying the dataset back to the original HDD, which is the newly striped volumes. I am doing that for all 3 drives that are NTFS, which I would like to add each as a striped volumes on FreeNas.

So basically when im done I'll have 4 stripes, each one it's own HDD. I know there is no redundancy, but most of these files get deleted within a few months anyways to make room for new stuff. Not worried about losing them, just want to hang on to them until then. But I would like to avoid losing the ENTIRE pool if a HDD fails on stripe. I'd rather lose 1 Volume and all its data instead of all the data on 4 HDD's. Also, Like I said my 3 NTFS drives are full to capacity (9tb total) and all I have free is a 4tb. So I don't have the space to back all the files up while I stripe them.

So here is my question(s)...

After importing a NTFS drive, I noticed something was weird with the available space that the volume claims vs the available space that the dataset claims. I have attached a picture below...
Drives.jpg


I tried to find an answer and a user explains why pretty well with one of his posts --> https://forums.freenas.org/index.php?threads/volume-vs-dataset-used-storage.39161/#post-240536

However, unlike the OP in that thread who is using a RAIDZ2, I am using stripe for each Volume. Therefore there should not be any Parity.

Q) Why is the available space on the dataset so much less than what it says on the volume?

P.S
While im here, might as well ask this too...

I have a dataset shared via CIFS (Samba). Under permissions the group "Samba" is the owner. I have also made a user and added them to that group. Guest access is on and I have given Everyone Modify (Read/write/execute/etc) on the Windows security tab. However, when connecting to the share via Windows, I am ALWAYS asked for login credentials. For the user who is a member of the owner group it works fine. I just put in the login credentials and away we go. However, because it always asks for credentials, guest have no access. Any idea what might be causing that? I've looked all over Shares/Permissions/Samba settings and cant find anything that fixes it.
 
Last edited:

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
How's it going. I just setup my first FreeNas maching (Running the latest 9.1) and have been playing with it while importing some NTFS drives. I'm coming from Windows, never used Linux/FreeBSD/Anything other than windows. I know my way around windows cmd so that has helped me when trying to figure out SSH, but it still gets pretty confusing for me until I learn all the terminology. Anyways here is what i've been up to...

All my drives are pretty much full to capacity (1x2tb, 1x3tb, 1x4tb) and the only free HDD is a new one I just bought (4tb). What I am doing is importing the NTFS drives into a dataset on the new 4tb ZFS Volume, Waiting for it to finish, striping the NTFS drive I copied from, then using "Zfs Send | Receive" for copying the dataset back to the original HDD, which is the newly striped volumes. I am doing that for all 3 drives that are NTFS, which I would like to add each as a striped volumes on FreeNas.

So basically when im done I'll have 4 stripes, each one it's own HDD. I know there is no redundancy, but most of these files get deleted within a few months anyways to make room for new stuff. Not worried about losing them, just want to hang on to them until then. But I would like to avoid losing the ENTIRE pool if a HDD fails on stripe. I'd rather lose 1 Volume and all its data instead of all the data on 4 HDD's. Also, Like I said my 3 NTFS drives are full to capacity (9tb total) and all I have free is a 4tb. So I don't have the space to back all the files up while I stripe them.

So here is my question(s)...

After importing a NTFS drive, I noticed something was weird with the available space that the volume claims vs the available space that the dataset claims. I have attached a picture below...
View attachment 15256

I tried to find an answer and a user explains why pretty well with one of his posts --> https://forums.freenas.org/index.php?threads/volume-vs-dataset-used-storage.39161/#post-240536

However, unlike the OP in that thread who is using a RAIDZ2, I am using stripe for each Volume. Therefore there should not be any Parity.

Q) Why is the available space on the dataset so much less than what it says on the volume?

P.S
While im here, might as well ask this too...

I have a dataset shared via CIFS (Samba). Under permissions the group "Samba" is the owner. I have also made a user and added them to that group. Guest access is on and I have given Everyone Modify (Read/write/execute/etc) on the Windows security tab. However, when connecting to the share via Windows, I am ALWAYS asked for login credentials. For the user who is a member of the owner group it works fine. I just put in the login credentials and away we go. However, because it always asks for credentials, guest have no access. Any idea what might be causing that? I've looked all over Shares/Permissions/Samba settings and cant find anything that fixes it.
Welcome to the forums!

FreeNAS stores metadata on any type of volume - single disks like you're using, mirrors, or RAID-Z'n' arrays. Think of this as 'overhead'. Anyway, this metadata probably accounts for the difference between what you see given for the volume and dataset. Single disk and mirror vdevs don't have parity data consuming space like the RAID-Z'n' arrays do, but the trade-off is redundancy (single-drive volumes don't have it!) and improved space efficiency (comparing RAIDZ'n' to mirrors).

Just a little warning: ZFS (the filesystem used by FreeNAS) is a copy-on-write filesystem which works best if volumes have plenty of free space. Once you fill a volume above ~80%, performance will slow markedly...

I know it can be tough shuffling data around when you don't have multiple systems with spare capacity... :) Still, to get the most out of FreeNAS, you'll probably want to purchase more drives, with the goal of creating a large-capacity redundant pool for any data you actually care about.

Here are some threads you can read to get up to speed on ZFS and FreeNAS:

https://forums.freenas.org/index.php?threads/zfs-primer.38927/
https://forums.freenas.org/index.ph...ning-vdev-zpool-zil-and-l2arc-for-noobs.7775/
https://forums.freenas.org/index.php?threads/hardware-recommendations-read-this-first.23069/

Good luck!
 

WIRLYWIRLY

Cadet
Joined
Mar 29, 2015
Messages
4
Welcome to the forums!

FreeNAS stores metadata on any type of volume - single disks like you're using, mirrors, or RAID-Z'n' arrays. Think of this as 'overhead'. Anyway, this metadata probably accounts for the difference between what you see given for the volume and dataset. Single disk and mirror vdevs don't have parity data consuming space like the RAID-Z'n' arrays do, but the trade-off is redundancy (single-drive volumes don't have it!) and improved space efficiency (comparing RAIDZ'n' to mirrors).

Just a little warning: ZFS (the filesystem used by FreeNAS) is a copy-on-write filesystem which works best if volumes have plenty of free space. Once you fill a volume above ~80%, performance will slow markedly...

I know it can be tough shuffling data around when you don't have multiple systems with spare capacity... :) Still, to get the most out of FreeNAS, you'll probably want to purchase more drives, with the goal of creating a large-capacity redundant pool for any data you actually care about.

Here are some threads you can read to get up to speed on ZFS and FreeNAS:

https://forums.freenas.org/index.php?threads/zfs-primer.38927/
https://forums.freenas.org/index.ph...ning-vdev-zpool-zil-and-l2arc-for-noobs.7775/
https://forums.freenas.org/index.php?threads/hardware-recommendations-read-this-first.23069/

Good luck!

Thanks for the reply! I've been looking forwards to this build for a while now. Only a few days in and already I'm in love with the Volume/Dataset, Group/User, permissions, and shares. Can't wait to figure out what all these other buttons do :)

Know if there is anyway I can clear unused/old metadata, or does it take care of itself? For all the configuration offered to me by FreeNas, I am willing to give up available space, but since I will be constantly moving data around, I am hoping it will rid itself of stuff it no longer needs.

Also, thanks for the heads-up on the COW filesystem. I looked more into it and I'll keep it in mind. After I finish prepping all my drives, I am going to split the data up to lower the usage on each volume. The bank is busted (Broke college kid :oops:) so until it gets patched up I wont be able to get a RAID going.
 
Status
Not open for further replies.
Top