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.

user share size limit

Featured Replies

is it possible to set a user share size limit(SMB)? like you can for the TimeMachine share?

I don't think this is possible today, but this is an interesting idea. Btrfs offers a way to set quotas on subvolumes, which would be one way to accomplish this at a filesystem level, but not sure if that's ideal for user shares because shares can cross over multiple devices / filesystems.

 

This is definitely a feature that we should look into at some point, but not something I would think needs to be prioritized for 6.0.

  • Author

 

I don't think this is possible today, but this is an interesting idea. Btrfs offers a way to set quotas on subvolumes, which would be one way to accomplish this at a filesystem level, but not sure if that's ideal for user shares because shares can cross over multiple devices / filesystems.

 

This is definitely a feature that we should look into at some point, but not something I would think needs to be prioritized for 6.0.

all my user shares are on a single disk,  can you explain how to setup quotas for them?

IE: 100gb per user share

Not easily. Its all commandline right now and relies on subvolumes on btrfs. This is still a feature request we will need to address.

  • Author

 

Not easily. Its all commandline right now and relies on subvolumes on btrfs. This is still a feature request we will need to address.

Do you have a link for reference?

 

ok, that seems complicated, LOL

 

096cde16d01e38dbbb8c3bcb19191546.jpg

Exactly!  We want to get to testing this at some point, but not something we will get to play with before the release of 6.0.

  • Author

Ah, a simple size limit for the user share would be sooo much nicer, but i don't think samba supports quotas

What about Linux quotas. They are based on the user account.

  • Author

 

What about Linux quotas. They are based on the user account.

no idea

Can I ask what the use case you have for quotas is?

  • Author

Can I ask what the use case you have for quotas is?

 

i have a single 1tb drive used for timemachine backups, and 2 user shares for file backup, i want to set a 100gb limit per user share

Can I ask what the use case you have for quotas is?

 

i have a single 1tb drive used for timemachine backups, and 2 user shares for file backup, i want to set a 100gb limit per user share

I have pretty much the same problem. 3 computers that I backup to a single hd mounted on an Airport. The only thing that keeps me from using my unRaid is the fact that I can't limit the size of the file. My MacPro would take over the whole share. Would be very nice to be able to install a 6TB HDD and allocate 1TB to each TM backup and the balance to my Media share since empty slots are in short supply.

  • Author

 

Can I ask what the use case you have for quotas is?

 

i have a single 1tb drive used for timemachine backups, and 2 user shares for file backup, i want to set a 100gb limit per user share

I have pretty much the same problem. 3 computers that I backup to a single hd mounted on an Airport. The only thing that keeps me from using my unRaid is the fact that I can't limit the size of the file. My MacPro would take over the whole share. Would be very nice to be able to install a 6TB HDD and allocate 1TB to each TM backup and the balance to my Media share since empty slots are in short supply.

you can specify a size limit for time machine, but not for user shares (smb)

you can specify a size limit for time machine, but not for user shares (smb)

How do you limit the size for each time machine backup?

  • Author

 

you can specify a size limit for time machine, but not for user shares (smb)

How do you limit the size for each time machine backup?

under shares, afp security settings, timemachine volume size limit

I never realized it was possible to setup multiple time machine volumes. Thanks.

  • 1 year later...

Bumping this as this would be a feature I would use immediately.  I'll give you my use case:

 

Server serves media (TV shows and movies) to myself and three other roommates. In addition, we each have our own personal (SMB) user shares that we use for personal data (backups, photos, etc...). To keep things fair, setting a size limit for these shares would be beneficial so that one individual cannot hog the array's capacity. In a perfect world I would just condition my roommates to practice restraint and not throw tons of junk in their personal folders, but you know people can be stupid and/or greedy.

 

I've read around the forums extensively about how this could be done by limiting a share to a disk, but I don't have equal disks of a reasonable size to devote to this cause. I've also seen suggestions to try splitting a disk into a few virtual partitions, but failed to find anyone who implemented it in a bulletproof way.

 

Cheers

 

 

Bumping this as this would be a feature I would use immediately.  I'll give you my use case:

 

Server serves media (TV shows and movies) to myself and three other roommates. In addition, we each have our own personal (SMB) user shares that we use for personal data (backups, photos, etc...). To keep things fair, setting a size limit for these shares would be beneficial so that one individual cannot hog the array's capacity. In a perfect world I would just condition my roommates to practice restraint and not throw tons of junk in their personal folders, but you know people can be stupid and/or greedy.

 

I've read around the forums extensively about how this could be done by limiting a share to a disk, but I don't have equal disks of a reasonable size to devote to this cause. I've also seen suggestions to try splitting a disk into a few virtual partitions, but failed to find anyone who implemented it in a bulletproof way.

 

I suppose if I wanted to enforce this, in a way that is fair and avoids squabbles, I'd create a policy of BYOD, Bring Your Own Disk!  Then each one uses and writes *only* to their disk.  If they want more space, they buy a bigger disk, and replace theirs.  No one ever has to deal with anyone else's greed or clutter. 

 

This doesn't preclude having other shared spaces, if you choose.  To avoid fights, it's always best for each shared space to have only one owner, one 'ruler'.  Their space, their rules, even if shared access.

Bumping this as this would be a feature I would use immediately.  I'll give you my use case:

 

Server serves media (TV shows and movies) to myself and three other roommates. In addition, we each have our own personal (SMB) user shares that we use for personal data (backups, photos, etc...). To keep things fair, setting a size limit for these shares would be beneficial so that one individual cannot hog the array's capacity. In a perfect world I would just condition my roommates to practice restraint and not throw tons of junk in their personal folders, but you know people can be stupid and/or greedy.

 

I've read around the forums extensively about how this could be done by limiting a share to a disk, but I don't have equal disks of a reasonable size to devote to this cause. I've also seen suggestions to try splitting a disk into a few virtual partitions, but failed to find anyone who implemented it in a bulletproof way.

 

I suppose if I wanted to enforce this, in a way that is fair and avoids squabbles, I'd create a policy of BYOD, Bring Your Own Disk!  Then each one uses and writes *only* to their disk.  If they want more space, they buy a bigger disk, and replace theirs.  No one ever has to deal with anyone else's greed or clutter. 

 

This doesn't preclude having other shared spaces, if you choose.  To avoid fights, it's always best for each shared space to have only one owner, one 'ruler'.  Their space, their rules, even if shared access.

 

True, that would be an excellent way to enforce it. However SATA connections in the system are too valuable to give each roommate their own disk. Much more efficient to throw one large disk in and then split it evenly among the squabblers.

  • 2 years later...

Did this ever get implemented?

I'm trialling Unraid now and this seems to be a critical missing feature.

Especially for my CCTV camera which will basically fill the drive and then start deleting old files.

2 hours ago, daninmanchester said:

Did this ever get implemented?

I'm trialling Unraid now and this seems to be a critical missing feature.

Especially for my CCTV camera which will basically fill the drive and then start deleting old files.

No.  Workarounds though would be limiting the share to only exist on a specific drive and/or an unassigned device.

  • 1 year later...

If this is impossible, how can I limit the size of a Windows File History target? I'm using 12 TB drives so per drive free space isn't a workaround.

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.