Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Share max size

Featured Replies

+1

  • 3 weeks later...
  • Replies 85
  • Views 23.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You don't usually get replies to feature requests, except sometimes by other users if they want the same (like +1), but requests are still checked and considered by LT.    

  • Nick Kos
    Nick Kos

    The workaround on how to make Unraid shares with quota. It will work with Hikvision cameras well.   1. Make the directory where you will store .img files for shares. I prefer to do this on c

  • +1 This should be a basic feature of Unraid

Posted Images

1. This would be useful in corporate contexts, but I'm sure people will find other ways to do something useful with it.

2. What should happen when a file is halfway through writing and it's already hitting the quota? Should it not have started in the first place? Should one file "too big" be allowed? Or should it just terminate the write?

3. What should a share report to a client as its total capacity? The actual physical capacity, or the quota?

4. Percentile quotas might be useful. Then, the quota would allow more data to be written when the array is expanded.

Edited by thany

  • 2 months later...

+1

 

On 12/20/2022 at 6:57 PM, thany said:

2. What should happen when a file is halfway through writing and it's already hitting the quota? Should it not have started in the first place? Should one file "too big" be allowed? Or should it just terminate the write?

Do whatever a share currently does when it runs out of space.

 

On 12/20/2022 at 6:57 PM, thany said:

3. What should a share report to a client as its total capacity? The actual physical capacity, or the quota?

Report the quota - I want to know what is available to me. In most cases it would be useless to know about the totally (partially inaccessible) space in the array.

1 minute ago, mjforan said:

Do whatever a share currently does when it runs out of space.

Depends on settings for the share. As long as Minimum Free allows another disk to be chosen, it won't run out of space until all included disks for the share are below Minimum Free for the share.

  • 1 month later...

+1

I want to set a quota for one of my shares and was surprised that this feature is not implemented.

  • 4 months later...

+1

I come from Synology for my Home Lab and TrueNAS at work and it's just a doozy to do something like that and it's soooo useful. I use it to limit backup folders or "home cloud" storage space for family members. I discovered late you couldn't do in unraid. If I had known, I would have switched to TrueNAS for my home lab... that's a bummer. Now I have to keep my Synology around. 

 

Please add this feature for a future release ?

  • 2 weeks later...

+1

  • 2 weeks later...

+1

 

Storage is always an issue with kids. They don't seem to grasp the fact that "a computer" can get full. I want to allow them acces to my server to write stuff onto it so it will be save. School projects and what not. I've setup the family pc with storage restrictions per account and it works like a charm, basic windows stuff. Only problem with the family pc: no redundancy and not really easy if one wants to remotely acces the files per laptop.

 

So space on the server would be THE option. But with the kids filling up there storage space and having to clean up their storage multiple times a year, I'm not giving them acces to multiple TB of storage.

  • 1 month later...

+1

Yeah it would be a great feature to have a setting to set the maximum size of a share if you wanted to or just leave it blank if you don't  

 

it could be added right under the line that says "Minimum Free Space" it could say "Maximum Free space" and work the same way just in reverse of course

 

 

Thanks 😎

+1

Please!  Yes!   +1

+1

Please, this would be a great addition to Unraid, that is already present in so many other products / solutions.

  • 4 weeks later...

Limiting a Share size should be a basic feature on a Data Server.

please!!  make this (simple) feature available asap

  • 4 weeks later...

+1, this will be very helpful!

  • 2 weeks later...

+1,

 

currently my only method would be to create a completely separate cache pool and limit a share to that specific pool, with zero feedback as to how much space is left of the allowance. (Or unassigned but mounted & shared device of the specific desired size.) Granted, that also would allow me to e.g.: forego array protection if the data is not important at all, but it also robs me of any flexibility in reconfiguring it easily.

Hello everyone! You can limit share size through the unraid GUI by changing the shares export to use "Time Machine" in Unraid. It doesn't matter that time machine is for mac, the limit still applies to SMB and Windows.

 

***HUGE DISCLAIMER***

This requires "Enhanced macOS interoperability" to be enabled which, has an annoying downfall of occasionally preventing file changes in windows. (Example: On your windows client, you update and save a word document. After saving, for the next ~5 minutes, you cant rename or delete it). See this unraid post for more info on that issue. Personally, I stopped using this setting specifically due to this issue, but simply waiting, or logging off/on will solve the problem.

 

 

If you don't care about the listed downfall, here are the steps to use Time Machine to limit share sizes:

1) Navigate to 'Settings > SMB'

2) Look for "Enhanced macOS interoperability" verify that the setting is 'Yes'. If the setting is no, you must stop the array, then come back here to change it.

3) Next, Navigate to 'Shares > [share name]'
4) Under "SMB Security Settings", Find the drop down for 'Export' and change it to "Yes/Time Machine"

5) Enter your size in MB (1000000 Megabytes = 1 Terabyte)

6) Apply

 

 

Below are some pics for reference:

 

Enhanced macOS interoperability

1509219938_1limit5.thumb.jpg.7b17809e9cbc0977a45aadb52979a49b.jpg


SMB Share settings and windows results BEFORE the change
254528295_1limit1.thumb.jpg.373cebb01b6c565d359a456883b38e26.jpg


1222830022_1limit2.jpg.82cc21defda7128f2da03f468d9337dc.jpg

 


SMB Share settings and windows results AFTER the change
1555600169_1limit3.thumb.jpg.413f1ca5b59fe424063fc43c24337130.jpg


1959951952_1limit4.jpg.a1582c492dcc00781ebde361bb935a98.jpg

 

 

Side notes

-The number isn't exactly 1000 GB thanks to windows usual formatting shenanigans.

-The above steps work for Unraid v6.12 ... unknown if they will work for other versions.

-Check out some of the alternate suggestions below if you don't want to deal with the "Time Machine" disclaimer.

 

 

Alternate suggestions/solutions

-In the above example, I am using a ZFS pool and am very limited in options. If you are using a multi-disk array for storage, consider using "Included/Excluded" disks instead, and just limit the share to a single disk.

-If you are competent in the terminal, a user script would be an excellent alternative to this. A script which limits the directory size should work (Note, this requires creating mount points, setting permissions, etc. all while unraid is running... you REALLY need to be good in the terminal to do this). A script which removes files older than X days from directory could also work.

-As of Samba version 4.17 ... It includes storage quotas "smbcquotas". Unraid 6.12 currently uses samba version 4.17.12 (you can check your samba version by putting 'smbstatus' into the terminal). If you feel like messing around, here is documentation directly from Samba about configuring this feature: "Samba quotas" . It is likely that this feature will eventually get implemented into unraid if you are patient.

 

 

This is my first post so I greatly apologize to the moderators for any mistakes I made. Thank you for your patience, good luck everyone!

 

Edited by socomsgh
adding smbcquotas

+1 on the quota feature

+1

+1 +1

 

Been doing some research nad this was the only thread I found. Trying to implement a share that is used for others as cold storage for their backups and high priority files but wanting to keep the share at a MAX of let's say 300 Gb for said person or environment.

  • 2 weeks later...

+1

+1

would be nice for remote replication with friends- but I can't create an unlimited share for that kind of stuff

  • 1 month later...

+1

  • 4 weeks later...

+1

+1

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.