This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS fragmentaion

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

ZFS fragmentaion

Post by sb00nk »

Hi all, i used to think there isn't a way to defrag my ZFS pool but today i notice this
Cattura.PNG
the frag field means the percentage of fragmentation on the pool? it can be defragged? if yes, how? :mrgreen:
You do not have the required permissions to view the files attached to this post.

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

slaycock
experienced User
experienced User
Posts: 93
Joined: 24 Jun 2012 17:15
Status: Offline

Re: ZFS fragmentaion

Post by slaycock »

What evidence do you have that 'fragmentation' is causing you problems?

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1058
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: ZFS fragmentaion

Post by JoseMR »

I haven't noticed any issue so far on my NAS fortunately, but my ZFS pools Frag looks worse than yours.
ZFS_FRAG.PNG
The sad part is that I recently redone my "storage" pool(shared storage) and restored from backups, and after adding data this past few months, frag reached 32%.

Even worse, the pool "system" was created few days ago(system data partition), and frag reached 5% in just few days, with only 2% of data. :?
You do not have the required permissions to view the files attached to this post.
System: FreeBSD 12 RootOnZFS Mirror, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
Resources Home Page

User avatar
dnar
Starter
Starter
Posts: 65
Joined: 27 Apr 2013 10:38
Location: Perth Australia
Status: Offline

Re: ZFS fragmentaion

Post by dnar »

Always going to happen on a copy on write fs. Does it cause issues on zfs? Not unless your capacity is near 80%.
NAS 1: NAS4Free 9.3.0.2 x64 embedded, Intel Core 2 E8400, 8GB, 6 x WD Green 1TB in RAIDZ2, Highpoint 2720 SAS x 8 card 6Gbps
NAS 2: NAS4Free 10.2.0.2 x64 embedded, Intel Core i3-3220, 8GB, 7 x WD Green 750GB in RAIDZ1, onboard SATA 3Gbps

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: ZFS fragmentaion

Post by raulfg3 »

More info about ZFS Fragmentation:

http://blog.delphix.com/uday/2013/02/19/78/
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Re: ZFS fragmentaion

Post by sb00nk »

thanks to you all for your replies but i'm not experiencing any problem. My primary question was "there is a way to defrag my pool?"

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

Post Reply

Return to “ZFS (only!)”