[Owncloud] Fwd: Personal Storage Message Question

Michael Gapczynski mtgap at owncloud.com
Tue Aug 21 15:13:45 UTC 2012


ownCloud uses the PHP internal function disk_free_space() to calculate the 
free space. That's why I asked you try to the example I gave you.


Michael

On Tuesday, August 21, 2012 07:06:12 AM Ken.Neiser wrote:
> My production server has 2 - 500 GB hard disks, the O/S is Fedora using
> LVM. I also have a CentOs 6.3 test server using LVM with 2 - hard disks
> with a total of around 500 GB. Both servers have owncloud installed. The
> CentOs server reports that I have 40 GB available under a similar user
> account circumstance.
> 
> The LVM in both cases is setup according to the defaults nothe fancy. No
> predetermined separate partitions. I have also chatted with another
> fellow who also setup owncloud and is getting similar results. He is
> more experienced with Linux that I am and he did not know how this value
> is determined.
> 
> So what is owncloud looking at?
> 
> On 08/20/2012 06:52 PM, Michael Gapczynski wrote:
> > Unless you have a quota set in Settings -> Users, 43.4 GB is what ownCloud
> > believes is the free disk space.
> > 
> > Is the data directory on a separate partition from the rest of your disk
> > storage?
> > 
> > To make sure it isn't ownCloud related, you can create a PHP file with:
> > 
> > <?php
> > $bytes = disk_free_space("/");
> > $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' );
> > $base = 1024;
> > $class = min((int)log($bytes , $base) , count($si_prefix) - 1);
> > echo $bytes . '<br />';
> > echo sprintf('%1.2f' , $bytes / pow($base,$class)) . ' ' .
> > $si_prefix[$class] . '<br />';
> > ?>
> > 
> > ^ From disk_free_space() comment on php.net
> > 
> > 
> > Michael
> > 
> > On Monday, August 20, 2012 11:08:25 AM Ken.Neiser wrote:
> >> When log in to my owncloud ID and go to Settings => Personal, there is a
> >> message about storage at the top of the page. "You use 3 GB of the
> >> available 43.4 GB" What does the 43.4 GB mean? My server has nearly 1 TB
> >> of disk storage. Is this a quota? Or is each user allocation a
> >> percentage of disk storage? Can this value be increased or decreased? I
> >> tried changing the user ID quota and it did not change the value. I
> >> can't seem to find any explanation for this message.
> >> 
> >> Ken Neiser Story Plain, AB Canada
> >> 
> >> 
> >> _______________________________________________
> >> Owncloud mailing list
> >> Owncloud at kde.org
> >> https://mail.kde.org/mailman/listinfo/owncloud
> 
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list