- Urgent
Hi,
When creating a share with only primary storage set to array, and excluding all disks, instead of creating a share with 0 bytes free, it will not create a share, and it doesn't give an error:
I can understand the share is not being created, since there is no disk to create the folder on, but an error message would be nice.
A bigger issue is if the share is already created and disks get excluded. This is my share with all disks included:
Editing the share and excluding all disks:
And the share still shows free space (this matches the size of my disk1, containing the folder):
Clicking the compute button will even tell me the size is 6B and disk 1 is out of designated disks:
I created a "test" folder on disk2 as well:
Now the free space is showing the sum of the 2 disks. Compute does report correctly though:
Making a file file on an excluded disk, also still shows the file in the share:
Editing (even after removing disk2 from excluded disks) or deleting the file, will update this on disk1
Even if the file edit is relative big, it still works:
I understand that https://docs.unraid.net/unraid-os/manual/shares/user-shares/#included-or-excluded-disks states "Never set both values, set only the one that is most convenient for you.", but if I don't select any specific disks as included, it defaults to "all", with no option to not set this. This makes the exclude function worthless, the only way to exclude a disk is to not have it in the included disks to begin with (something I don't want, cause I want all current and future disks available to a share, apart from 1 disk I want to exclude, and setting specific included disks will not add my future disks). I really think we need an "all except excluded" option for included.
To make things more confusing, when trying to create a file on a share with all disk excluded, but reporting free space, I get the error of no space left, even when df is showing free space:
So in some way, the exclude is being done? But partially?
So I'm really confused now:
- Included disks have priority over excluded disks, but I have no good way to make use of excluded disks.
- Free space on excluded counts towards the free space reported by the share.
- Existing files on excluded disks are listed, can be opened, edited and deleted without issues.
So far, while I don't like it, it still follows "all disks are included so the excluded disks does nothing".
- Making a new file will tell me there is no space, though everything indicates to me there is space, and I can even edit existing files and make them a lot bigger.