[OpenIndiana-discuss] force ZFS to update disk quota info

CJ Keist cj.keist at colostate.edu
Thu Feb 7 22:36:31 UTC 2013


No, I have never used snapshots on this server.

# zfs get usedbysnapshots data/students/GRAD/ECE/vwb
NAME                        PROPERTY         VALUE     SOURCE
data/students/GRAD/ECE/vwb  usedbysnapshots  0         -

# zfs list -r -t snapshot data/students/GRAD/ECE/vwb
no datasets available


On 2/7/13 3:30 PM, Martin Frost wrote:
> Not "doing" snapshots is irrelevant.
>
> *Have* any snapshots?  What do these report?
>
>    zfs get usedbysnapshots YOUR-DATASET
>
>    zfs list -r -t snapshot YOUR-DATASET
>
> Martin
>
>   > Date: Thu, 07 Feb 2013 15:18:21 -0700
>   > From: CJ Keist <cj.keist at colostate.edu>
>   >
>   > No, not doing any snapshots.
>   >
>   >
>   > On 2/7/13 3:14 PM, Jan Owoc wrote:
>   > > On Thu, Feb 7, 2013 at 3:08 PM, CJ Keist <cj.keist at colostate.edu> wrote:
>   > >> Info: OpenIndiana (powered by illumos)    SunOS 5.11    oi_151a5    June
>   > >> 2012
>   > >>
>   > >> We have ZFS folder with disk quota set on it.  That folder
>   > >> filled up, so the user delete about 3Gb of files. Problem is
>   > >> that ZFS still thinks the folder is full and will not let the
>   > >> user write any data. I checked the folder with "df -h" and it
>   > >> shows correct folder size minus the 3Gb.  I tried setting the
>   > >> quota=none and then back to quota=15g, but ZFS still shows disk
>   > >> is full.
>   > >
>   > > Does the filesystem have snapshots that get counted against the quota?
>   > >
>   > >> Is there anyway to force ZFS to recalculate disk usage?
>   > >
>   > > ZFS should update the space used instantly. Try running "zfs list -o
>   > > space name/of/filesystem" to find out where the space is (snapshots,
>   > > dependents, etc.)
>   > >
>   > > Jan
>   > >
>   > > _______________________________________________
>   > > OpenIndiana-discuss mailing list
>   > > OpenIndiana-discuss at openindiana.org
>   > > http://openindiana.org/mailman/listinfo/openindiana-discuss
>   > >
>   >
>   > --
>   > C. J. Keist                     Email: cj.keist at colostate.edu
>   > Systems Group Manager           Solaris 10 OS (SAI)
>   > Engineering Network Services    Phone: 970-491-0630
>   > College of Engineering, CSU     Fax:   970-491-5569
>   > Ft. Collins, CO 80523-1301
>   >
>   > All I want is a chance to prove 'Money can't buy happiness'
>   >
>   > _______________________________________________
>   > OpenIndiana-discuss mailing list
>   > OpenIndiana-discuss at openindiana.org
>   > http://openindiana.org/mailman/listinfo/openindiana-discuss
>   >
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>

-- 
C. J. Keist                     Email: cj.keist at colostate.edu
Systems Group Manager           Solaris 10 OS (SAI)
Engineering Network Services    Phone: 970-491-0630
College of Engineering, CSU     Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'



More information about the OpenIndiana-discuss mailing list