Please allow me to specify volume size.
I have set up an ExpanDrive to my Dreamhost backup user. This is good and should allow me to make better use of that space I have sitting around. The only problem is that ExpanDrive reports a volume size of 8TB, which I can only assume is the size of the disk on Dreamhost's server. I don't get all of that and currently have a maximum disk space of around 650GB. If I could set the limit on my ExpandDrive volume, I could avoid the risk of running over my storage limit.
2
people like this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
-
Inappropriate?It's an arbitrary size we put in there. Even if we let you set 650GB, the amount of "used" free space [which we report as 0 in volume info] would be 0.
We've got some techniques we can use to check quota if your server allows us to execute commands over the SSH/SFTP channel. It seems like dreamhost isn't letting you though.
All in all, there isn't a great way to solve this problem, unfortunatley.
p.s. I've heard dreamhost is canning some people's accounts for excessive non-web storage
1 person thinks
this is one of the best points
-
Actually we're thinking of getting a site-license for SFTPDrive and ExpanDrive, but unfortunately this quota issue is becoming a bit of a showstopper...
One way to go around this would be to allow a preference setting for a command or script that could output quota info in samba compatible format, for example.
Samba can use a script, which takes the username as the argument, in order to properly report the user's quota to the windows CIFS client. If you could have something similar, that would be great.
Here's a sample bash script that works with samba:
---------------
#!/bin/bash
used_space=$(/usr/bin/quota -u $1 | tail -1 | awk '{print $1}')
hard_quota=$(/usr/bin/quota -u $1 | tail -1 | awk '{print $3}')
soft_quota=$(/usr/bin/quota -u $1 | tail -1 | awk '{print $2}')
free_space=$(expr $hard_quota - $used_space)
echo $soft_quota $free_space
--------------- -
Inappropriate?I can execute shell commands from my local machine by ssh username@myserver if that helps.
Re: your p.s., I should certainly hope this is not the case since they just announced backup users. Although I did not know it was only 50GB. See here: http://wiki.dreamhost.com/V10.08_Augu...
Thanks for the response! -
Inappropriate?On OS X 10.5, you can run the following shell command:
diskutil info -plist /
(you can use other mount points instead of "/" I think)
And you will get an XML property list dumped to STDOUT that tells you the disk size and free space. I'm not sure if the same command works on OS X {10.x | x < 5}, but most of your mac users would be on Leopard anyway. -
Isn't is much simpler to just use df (see my post above)? Furthermore, would diskutil also report quotas on local and remote filesystems (e.g. NFS)? df and quota will do that. -
Yes, df would be just as good. I only saw mention of 'quota' in your post above, not 'df', and I've never used df before. As far as I can tell, quota doesn't do anything on a standard non-server OS install where you don't have specific quotas set up.
Also, I think you're probably correct, diskutil is only good for dealing with local disks. -
Inappropriate?Jeff (or anyone from ExpanDrive), would a prospect of a site-license client, namely the University of Toronto (www.utoronto.ca), give you enough incentive to consider including support for quota/disk size scripts as discussed here?
I happen to know that this is one of the major deciding factors for my superiors.
I’m happy
Loading Profile...


EMPLOYEE

