ThisTruenasUser
Dabbler
- Joined
- Apr 19, 2023
- Messages
- 44
Hi all.
I have been testing out dedup on an old machine.
The spec is 24GB 16GB optane for dedup and 1TB for pool.
I bought two old 16GB optane for this purpose. They were not exactly expensive.
I used to have freenas on an old machine (now the one I am testing with) , now as a virtual machine in my server, which is proxmox. I am looking to use another option for storage, maybe truenas scale as hypervisor, or just a turnkey solution in proxmox.
In there are 5x4TB in raidz 1 for about 16TB storage.
When setting up a pool, it says you need X GB dedup storage for every X TB of storage.
This is exactly what I have , which is the problem.
So initially setup two identicel 600GB zvols, with dedup turned on, with no compression.
Then two iscsi shares, both the same with standard values & the 4k modern os setup.
A windows 10 virtual machine copied over some data four times, two to each attached iscsi drive.
here is the output of:
sudo zpool list -v
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
OneTB 941G 85.2G 856G - - 0% 9% 3.47x ONLINE /mnt
b9f1db3c-e1bc-11ed-8ada-3d25fb7fec7d 930G 80.9G 847G - - 0% 8.71% - ONLINE
dedup - - - - - - - - -
b8a9af54-e1bc-11ed-8ada-3d25fb7fec7d 13.4G 4.32G 8.68G - - 0% 33.2% - ONLINE
boot-pool 31G 2.65G 28.4G - - 0% 8% 1.00x ONLINE -
sdb3 31.5G 2.65G 28.4G - - 0% 8.54% - ONLINE
The dedup works well (3.47) , but the dedup data usage s way too high (4.32GB if I reed correctly)
It is with about 4 x 80GB copied over.
I then had a different idea.
I recreated destroyed & recreated the pool & zvols, with 128 block sizes.
In windows 11, formatted in ntfs with 128k block size.
New iscsi shares were created also.
I copied data over again, 196GB unique data to each disk.
The new output of: sudo zpool list -v:
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
OneTBVthree 941G 195G 746G - - 0% 20% 2.03x ONLINE /mnt
02f4f10b-2b2c-4ff3-8d02-cbb044779692 930G 194G 734G - - 0% 20.9% - ONLINE
dedup - - - - - - - - -
47ce25eb-de6e-47a4-b8ef-ed921f5d64b6 13.4G 1.15G 11.8G - - 0% 8.88% - ONLINE
boot-pool 31G 2.65G 28.3G - - 0% 8% 1.00x ONLINE -
sda3 31.5G 2.65G 28.3G - - 0% 8.54% - ONLINE
So it seems the block size increase has helped the situation quite a bit. The 2.03x ratio is better than expected
Dedup use is much less (1.15GB) if I read correctly.
It is certainly an improvement, but still not good enough.
The purpose of all this is to have multiple ISCSI devices for games storage. All will be pretty much the same data. I want to have maybe 8-12 TB. This will be on my main server. It will hopefully be
When formatiing in windows, the maximum allowed is 2MB block size.
I want to create multiple dedup zvols of 2MB block size, share then trhough ISCSI and format with 2MB block sizes in ntfs. I expect turning on verify with deduplication would be a good idea there.
The maximum allowed in the GUI is 128k. This is a big problem.
How is this remedied?
I wish to create them, copy data over again & test the deduplication.
I expect the dedup data would be vastly reduced.
Is there some tweak in truenas scale allowing me to do this.
Another option could be to create the zvol though the cli with root access. it is probably not recommended
I could speculation with something like: zfs create mypool/newzvol -b 2M ........
Deduplication is the only reason I am looking to contirue to use truenas.
If it works with the hardware I have, plan to replace proxmox as a hypervisor.
There are lots of posts about how people dislike it. I wish to use it with the sutiable configuration if I can
So iscsi & deduplication are what I need to work with the hardware I have. If not, have no reason to use truenas at all.
If it means having to buy more storage for game storage, would not be using it with truenas obviously.
To sum up what I need is a way of forcing 2MB block sizes in a zvol.
Useful info is appreciated.
Thanks
I have been testing out dedup on an old machine.
The spec is 24GB 16GB optane for dedup and 1TB for pool.
I bought two old 16GB optane for this purpose. They were not exactly expensive.
I used to have freenas on an old machine (now the one I am testing with) , now as a virtual machine in my server, which is proxmox. I am looking to use another option for storage, maybe truenas scale as hypervisor, or just a turnkey solution in proxmox.
In there are 5x4TB in raidz 1 for about 16TB storage.
When setting up a pool, it says you need X GB dedup storage for every X TB of storage.
This is exactly what I have , which is the problem.
So initially setup two identicel 600GB zvols, with dedup turned on, with no compression.
Then two iscsi shares, both the same with standard values & the 4k modern os setup.
A windows 10 virtual machine copied over some data four times, two to each attached iscsi drive.
here is the output of:
sudo zpool list -v
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
OneTB 941G 85.2G 856G - - 0% 9% 3.47x ONLINE /mnt
b9f1db3c-e1bc-11ed-8ada-3d25fb7fec7d 930G 80.9G 847G - - 0% 8.71% - ONLINE
dedup - - - - - - - - -
b8a9af54-e1bc-11ed-8ada-3d25fb7fec7d 13.4G 4.32G 8.68G - - 0% 33.2% - ONLINE
boot-pool 31G 2.65G 28.4G - - 0% 8% 1.00x ONLINE -
sdb3 31.5G 2.65G 28.4G - - 0% 8.54% - ONLINE
The dedup works well (3.47) , but the dedup data usage s way too high (4.32GB if I reed correctly)
It is with about 4 x 80GB copied over.
I then had a different idea.
I recreated destroyed & recreated the pool & zvols, with 128 block sizes.
In windows 11, formatted in ntfs with 128k block size.
New iscsi shares were created also.
I copied data over again, 196GB unique data to each disk.
The new output of: sudo zpool list -v:
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
OneTBVthree 941G 195G 746G - - 0% 20% 2.03x ONLINE /mnt
02f4f10b-2b2c-4ff3-8d02-cbb044779692 930G 194G 734G - - 0% 20.9% - ONLINE
dedup - - - - - - - - -
47ce25eb-de6e-47a4-b8ef-ed921f5d64b6 13.4G 1.15G 11.8G - - 0% 8.88% - ONLINE
boot-pool 31G 2.65G 28.3G - - 0% 8% 1.00x ONLINE -
sda3 31.5G 2.65G 28.3G - - 0% 8.54% - ONLINE
So it seems the block size increase has helped the situation quite a bit. The 2.03x ratio is better than expected
Dedup use is much less (1.15GB) if I read correctly.
It is certainly an improvement, but still not good enough.
The purpose of all this is to have multiple ISCSI devices for games storage. All will be pretty much the same data. I want to have maybe 8-12 TB. This will be on my main server. It will hopefully be
When formatiing in windows, the maximum allowed is 2MB block size.
I want to create multiple dedup zvols of 2MB block size, share then trhough ISCSI and format with 2MB block sizes in ntfs. I expect turning on verify with deduplication would be a good idea there.
The maximum allowed in the GUI is 128k. This is a big problem.
How is this remedied?
I wish to create them, copy data over again & test the deduplication.
I expect the dedup data would be vastly reduced.
Is there some tweak in truenas scale allowing me to do this.
Another option could be to create the zvol though the cli with root access. it is probably not recommended
I could speculation with something like: zfs create mypool/newzvol -b 2M ........
Deduplication is the only reason I am looking to contirue to use truenas.
If it works with the hardware I have, plan to replace proxmox as a hypervisor.
There are lots of posts about how people dislike it. I wish to use it with the sutiable configuration if I can
So iscsi & deduplication are what I need to work with the hardware I have. If not, have no reason to use truenas at all.
If it means having to buy more storage for game storage, would not be using it with truenas obviously.
To sum up what I need is a way of forcing 2MB block sizes in a zvol.
Useful info is appreciated.
Thanks