I'm running a small array of 3x 2TB drives, with one parity disk and a union filesystem spread over the two data disks. Here's what a the top of a snapraid status looks like:
Files Fragmented Excess Wasted Used Free Use Name
Files Fragments GB GB GB
24614 132 528 7.1 1615 344 82% Red
37448 264 1188 7.6 1622 336 82% Sea0
--------------------------------------------------------------------------
62062 396 1716 14.7 3238 681 82%
While snapraid shows 82% usage for my storage array, df shows 87% usage and the parity disk as being 98% full:
Hi,
check if there are any other files on the parity disk. The parity disk is not shown in status.
for data disk, check if there are some files excluded from SnapRAID and so not counted.
depending on file system, there may be some part of the disk reserved for root only. df shows the space available to user.
Last edit: Walter Tuppa 2020-02-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Took a while to get back to this, but I just had a look and the only file on the parity disk is snapraid.parity as expected. This is a 1.7T file, which is again surprising because my most full drive only has 1.5T of content on it (as determined by df). I have however just noticed that the parity drive is ext3 while both data drives are ext4: is that relevant here? I can't think of why it would be...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the difference of file system should be no problem. The wasted space for the data disk is normal (can be quite high if you have a lot of very small files). What kind of files do you have stored on data disk? are there any sparse files? You can check this "du -s --apparent-size " vs. "du -s". The first should be smaller than the second one.
can you check the following command on all disks:
This is a home media server. Most of the storage (~2.5T) is video files of 2 - 20 GB, with a smaller but significant (~200G) portion as music.
The apparent sizes are very similar: 1491600341/1491658756 , 1514249832/1514380156, 1776219412/1777955704 (that last pair is the mysteriously filled parity drive). That's what, 1 GB difference at most?
one more question:
was at any earlier time, one of the data disks almost filled?
The parity file never shrinks, it just grows. this is no problems, because SnapRAID knows which parts of the parity file are used for which data files, so it will only grow if the size of data files is larger than the current size of the parity file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's a good question, and a possibility I was unaware of!
As far as I know, none of the data drives have ever been as full as the parity drive currently is. But I'll keep an eye on the parity and see if it grows any further.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running a small array of 3x 2TB drives, with one parity disk and a union filesystem spread over the two data disks. Here's what a the top of a
snapraid statuslooks like:While snapraid shows 82% usage for my storage array,
dfshows 87% usage and the parity disk as being 98% full:Can someone please explain this discrepancy to me? How does disk 82% usage seen by snapraid translate to 87% or 98% disk usage seen by the system?
Hi,
check if there are any other files on the parity disk. The parity disk is not shown in status.
for data disk, check if there are some files excluded from SnapRAID and so not counted.
depending on file system, there may be some part of the disk reserved for root only. df shows the space available to user.
Last edit: Walter Tuppa 2020-02-29
Took a while to get back to this, but I just had a look and the only file on the parity disk is
snapraid.parityas expected. This is a 1.7T file, which is again surprising because my most full drive only has 1.5T of content on it (as determined bydf). I have however just noticed that the parity drive isext3while both data drives areext4: is that relevant here? I can't think of why it would be...the difference of file system should be no problem. The wasted space for the data disk is normal (can be quite high if you have a lot of very small files). What kind of files do you have stored on data disk? are there any sparse files? You can check this "du -s --apparent-size " vs. "du -s". The first should be smaller than the second one.
can you check the following command on all disks:
This will show reserved space for root user only. maybe there is a difference to parity disk.
This is a home media server. Most of the storage (~2.5T) is video files of 2 - 20 GB, with a smaller but significant (~200G) portion as music.
The apparent sizes are very similar: 1491600341/1491658756 , 1514249832/1514380156, 1776219412/1777955704 (that last pair is the mysteriously filled parity drive). That's what, 1 GB difference at most?
Reserved block counts are as follows. Data disks:
and
Parity disk:
Again, all look extremely similar.
Last edit: Thomas MacDonald 2020-03-17
one more question:
was at any earlier time, one of the data disks almost filled?
The parity file never shrinks, it just grows. this is no problems, because SnapRAID knows which parts of the parity file are used for which data files, so it will only grow if the size of data files is larger than the current size of the parity file.
That's a good question, and a possibility I was unaware of!
As far as I know, none of the data drives have ever been as full as the parity drive currently is. But I'll keep an eye on the parity and see if it grows any further.