spl147 Posted December 3, 2014 Share Posted December 3, 2014 is it possible to set a user share size limit(SMB)? like you can for the TimeMachine share? 1 1 Quote Link to comment
jonp Posted December 10, 2014 Share Posted December 10, 2014 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. Quote Link to comment
spl147 Posted December 10, 2014 Author Share Posted December 10, 2014 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 Quote Link to comment
jonp Posted December 10, 2014 Share Posted December 10, 2014 Not easily. Its all commandline right now and relies on subvolumes on btrfs. This is still a feature request we will need to address. Quote Link to comment
spl147 Posted December 10, 2014 Author Share Posted December 10, 2014 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? Quote Link to comment
jonp Posted December 10, 2014 Share Posted December 10, 2014 https://btrfs.wiki.kernel.org/ Quote Link to comment
spl147 Posted December 10, 2014 Author Share Posted December 10, 2014 https://btrfs.wiki.kernel.org/ ok, that seems complicated, LOL Quote Link to comment
jonp Posted December 10, 2014 Share Posted December 10, 2014 https://btrfs.wiki.kernel.org/ ok, that seems complicated, LOL 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. Quote Link to comment
spl147 Posted December 10, 2014 Author Share Posted December 10, 2014 Ah, a simple size limit for the user share would be sooo much nicer, but i don't think samba supports quotas Quote Link to comment
WeeboTech Posted December 11, 2014 Share Posted December 11, 2014 What about Linux quotas. They are based on the user account. Quote Link to comment
spl147 Posted December 11, 2014 Author Share Posted December 11, 2014 What about Linux quotas. They are based on the user account. no idea Quote Link to comment
NAS Posted December 11, 2014 Share Posted December 11, 2014 Can I ask what the use case you have for quotas is? Quote Link to comment
spl147 Posted December 11, 2014 Author Share Posted December 11, 2014 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 Quote Link to comment
wgstarks Posted December 11, 2014 Share Posted December 11, 2014 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. Quote Link to comment
spl147 Posted December 11, 2014 Author Share Posted December 11, 2014 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) Quote Link to comment
wgstarks Posted December 11, 2014 Share Posted December 11, 2014 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? Quote Link to comment
spl147 Posted December 11, 2014 Author Share Posted December 11, 2014 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 Quote Link to comment
wgstarks Posted December 11, 2014 Share Posted December 11, 2014 I never realized it was possible to setup multiple time machine volumes. Thanks. Quote Link to comment
SRB Posted September 7, 2016 Share Posted September 7, 2016 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 Quote Link to comment
RobJ Posted September 7, 2016 Share Posted September 7, 2016 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. Quote Link to comment
Bjonness406 Posted September 7, 2016 Share Posted September 7, 2016 +1 for this feature. Quote Link to comment
SRB Posted September 7, 2016 Share Posted September 7, 2016 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. Quote Link to comment
daninmanchester Posted January 30, 2019 Share Posted January 30, 2019 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. Quote Link to comment
Squid Posted January 30, 2019 Share Posted January 30, 2019 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 Quote Link to comment
cinereus Posted April 23, 2020 Share Posted April 23, 2020 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. Quote Link to comment
Recommended Posts
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.