October 3Oct 3 Hi all,Got a bit of a curio, done some searching around and can't find anyone else reporting it.I've an all-disk enabled share that is showing data on all four of my data disks. I can query the share and it shows data on all four (see pics). However, when browsing those disks there is no data on two of them.What I'm seeing in reality on the disks is what I expect, it's the share reporting that is at fault.Nothing apparently dangerous here, but I wonder if the issue is wider spread across my array, and what I can do to resolve. Can any give any insights or suggestions?Thanks!
October 3Oct 3 Get the diagnostics file and post the entire file up in a new post in this thread. (Click on diagnostics in the post for instructions.)
October 3Oct 3 OK-- The User Share-- backup --has files on all four of the disks in the array. (You also have have six other shares that are using disk 1) You are also looking at a folder (jonh) deep inside the User Share. The fact that the folder exists and that is empty is a bit of surprise to me. I can only suspect that it contained files at some point and they were all deleted without removing the directory.The above screenshot (captured from your post) shows info on the entire backup share. There are 319 files in the entire backup share! From the mc screenshot (I had almost completely forgot that tool was still in Unraid!), you are looking at the files in a directory that is three layers deep in that backup share. There are a lot more places (12 Folders to be exact) for files to be stored in backup share that the mc screenshot does not show.By the way, I am hoping this is just an exploration of how things work in Unraid. You are using mc and looking at things from a 'Disk Share' perspective while using 'User Share' as your standard Unraid file system. You should be aware that copying files from a disk view to a share view (and vice verse) can result in file loss!!!!!!! (It is an unfixable 'bug' in Unraid. Basically, you can copy a file onto itself which truncates it to zero length! That is why Disk Shares are turned "off" by default in Unraid!) But when you use file management tools at the Linux OS level, you are totally exposed to this bug.It is recommend that you use the built-in File Manager in Unraid as it has coding that prevents making this mistake. Edited October 3Oct 3 by Frank1940 added "off" into third paragraph. (cockpit error)
October 4Oct 4 Author Hi Frank,Thanks for diving in to help.I should confirm the capacity calculation in my GUI screen grab is scoped only the the specific folder that I show in the MC screen grab.My question remains open and unanswered, can anyone help explain it?Thanks!
October 4Oct 4 Author To add in case it helps, the 'backup' share in total contains approx 500GB, all of which is held only on disks 3 & 4.
October 4Oct 4 The diagnostics list the share on all four disks, but empty directories can also account for that.Please compare the same folder directly on each disk. Replace SHARE/PATH with the share name and exact subfolder path, keeping the quotation marks:du -sh -- /mnt/disk{1,2,3,4}/"SHARE/PATH"du -sb -- /mnt/disk{1,2,3,4}/"SHARE/PATH"These commands only read the folder contents, including hidden entries. The first shows allocated space; the second shows apparent size in bytes.Please post both results, including any errors, alongside a fresh GUI calculation with the folder path, column labels, and units visible. This will help distinguish small directory sizes from an incorrect usage calculation.
October 5Oct 5 Author Morning!As expected, D1 & D2 are empty. I've intentionally not tried a reboot yet, as that may well 'resolve' the issue, but leave me in a place where I have no phenomena to analyse, thus no way of identifying the root cause and whether it's a bigger issue.Cheers,-- -- -- -- -- -- -- -- --root@BAKERY-UR:~# du -sh -- /mnt/disk{1,2,3,4}/"backup/inbound/jonh"0 /mnt/disk1/backup/inbound/jonh0 /mnt/disk2/backup/inbound/jonh94G /mnt/disk3/backup/inbound/jonh177G /mnt/disk4/backup/inbound/jonh-- -- -- -- -- -- -- -- ---- -- -- -- -- -- -- -- --root@BAKERY-UR:~# du -sb -- /mnt/disk{1,2,3,4}/"backup/inbound/jonh"0 /mnt/disk1/backup/inbound/jonh0 /mnt/disk2/backup/inbound/jonh100921079355 /mnt/disk3/backup/inbound/jonh189173292946 /mnt/disk4/backup/inbound/jonh-- -- -- -- -- -- -- -- --
October 5Oct 5 Author Interestingly, the GUI shows D3 & D4 consumption as below. The figures from CLI are far more accurate in terms of what we know the data is that's in there:D3 (GB)D4 (GB)cli94177gui118434
October 5Oct 5 Author Sorry to keep adding, but I think I'm narrowing it down. It's rather anecdotal, but I've done some spot-rando checks on other shares and share subfolders aroundabouts and non appear to be demonstrating the same discrepancy.In addition, when digging deeper into the 'backup' share there's some cosmic weirdness. A calculate query in the gui for the root 'backup' folder, AND each of it's three sub-folders produces the same result for each folder:434GB14 folders9896 files
October 5Oct 5 Solution The du output confirms that this folder only has data on disk3 and disk4. Nothing is missing on disk1 or disk2.About the GUI numbers: du -sh uses binary units, so 94G and 177G are about 101 GB and 189 GB in the decimal units the GUI uses. That explains only part of the difference. The GUI values (118 GB and 434 GB) are larger than this folder on both disks, and together they come to about 552 GB. That's close to the ~500 GB you mention for the whole backup share.The per-disk usage in the GUI (Shares → Compute) is always calculated for the whole share, not a subfolder. A disk is listed whenever the share has a folder on it, even an empty one. Your diagnostics show the backup share exists on all four disks, so disk1 and disk2 most likely only have empty folders left over from earlier.To confirm, please post the output of:du -sb -- /mnt/disk{1,2,3,4}/backupfind /mnt/disk1/backup /mnt/disk2/backup -type f | wc -lfind /mnt/disk1/backup /mnt/disk2/backup -type d | wc -lIf disk3 and disk4 match the GUI values and the first find returns 0 for disk1 and disk2, this is expected behavior, not a fault. If you then want disk1 and disk2 to stop showing for that share, you can remove the empty folders with:find /mnt/disk1/backup /mnt/disk2/backup -depth -type d -empty -deleteThis only removes folders that are empty. Only run it after confirming there are no files there.
October 5Oct 5 Author This all makes sense now, and all can be explained.It has all stemmed from a mis-understanding about what the 'calculate' function does when clicking on a Disk inside a sub-folder in a share.I now know that when one runs calculate on a given disk in a share, it does not provide a result that is in context to the hierarchy, it only reports the total amount for that share on that disk. All makes complete sense now, thank you for the education.*I don't mind that it reports as all four disks, if I bothered cleaning up empty folders the fill and spill will only put them back in a few weeks, not worth the bother.**I've put in a Feature Request (Nice to have) for the above option to be scoped to the context of the GUI, intuition would say that a calculate button next to a folder would give a result related to that folder.Thanks! Edited October 5Oct 5 by TheBenga
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.