Register for the iXsystems Community to get an ad-free experience

Visualizing disk fragmentation

ByteMan

Dabbler
Joined
Nov 10, 2021
Messages
32
Is there a way / tool to visualize how data is laid out on disks in use, similar to how some Windows tools shows filesystem fragmentation (see picture for reference)?
Alternatively, are there other ways to assess the current level of fragmentation on a disk or pool?
It is understood that data fragmentation itself cannot be easily determined, so I guess I am looking for the fragmentation of free space (ideally in a 'visual' form).
 

Attachments

  • 1644445074700.png
    1644445074700.png
    132 KB · Views: 85
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
7,421
Alternatively, are there other ways to assess the current level of fragmentation on a disk or pool?
zpool list -v and look at the %FRAG column

Is there a way / tool to visualize how data is laid out on disks in use, similar to how some Windows tools shows filesystem fragmentation (see picture for reference)?
No. At least none I am aware of.

I am looking for the fragmentation of free space
That's what ZFS calculates as %FRAG, so you have it.
 

EsTaF

Contributor
Joined
Sep 20, 2013
Messages
152
"zpool list -v" command shows nothing at all. Unless, of course, you take into account the number about the total fragmentation.

That is, to optimize the free space, I will have to blindly recopy all the files))))), even if there are very few fragmented files.
 
Top