Willi Burmeister
2009-Nov-26 12:59 UTC
[zfs-discuss] rquota didnot show userquota (Solaris 10)
Hi,
we have a new fileserver running on X4275 hardware with Solaris 10U8.
On this fileserver we created one test dir with quota and mounted these
on another Solaris 10 system. Here the quota command didnot show the
used quota. Does this feature only work with OpenSolaris or is it
intended to work on Solaris 10?
Here what we did on the server:
# zfs create -o mountpoint=/export/home2 zpool1/home
# zfs set sharenfs=rw=sparcs zpool1/home
# zfs set userquota at wib=1M zpool1/home
# mkdir /export/home2/wib
# cp <some stuff> /export/home2/wib
# chown -Rh wib:sysadmin /export/home2/wib
# zfs userspace zpool1/home
TYPE NAME USED QUOTA
POSIX User root 3K none
POSIX User wib 154K 1M
# quota -v wib
Disk quotas for wib (uid 90):
Filesystem usage quota limit timeleft files quota limit timeleft
/export/home2
154 1024 1024 - - - - -
and the client:
# mount <server>:/export/home2/wib /mnt
% cd /mnt
% du -sk .
154 .
% quota -v wib
Disk quotas for wib (uid 90):
Filesystem usage quota limit timeleft files quota limit timeleft
A simple snoop on the network shows us:
client -> server PORTMAP C GETPORT prog=100011 (RQUOTA) vers=1 proto=UDP
server -> client PORTMAP R GETPORT port=32865
client -> server RQUOTA C GETQUOTA Uid=90 Path=/export/home2/wib
server -> client RQUOTA R GETQUOTA No quota
Why ''no quota''?
Both systems are nearly fully patched.
Any help is appreciated. Thanks in advance.
Willi
Tomas Ă–gren
2009-Nov-26 17:16 UTC
[zfs-discuss] rquota didnot show userquota (Solaris 10)
On 26 November, 2009 - Willi Burmeister sent me these 1,7K bytes:> Hi, > > we have a new fileserver running on X4275 hardware with Solaris 10U8. > > On this fileserver we created one test dir with quota and mounted these > on another Solaris 10 system. Here the quota command didnot show the > used quota. Does this feature only work with OpenSolaris or is it > intended to work on Solaris 10?ZFS userspace quota doesn''t support rquotad reporting. (.. yet?) /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
Willi Burmeister
2009-Nov-26 18:25 UTC
[zfs-discuss] rquota didnot show userquota (Solaris 10)
On Thu, Nov 26, 2009 at 06:16:59PM +0100, Tomas ?gren wrote:> On 26 November, 2009 - Willi Burmeister sent me these 1,7K bytes: > > > we have a new fileserver running on X4275 hardware with Solaris 10U8. > > > > On this fileserver we created one test dir with quota and mounted these > > on another Solaris 10 system. Here the quota command didnot show the > > used quota. Does this feature only work with OpenSolaris or is it > > intended to work on Solaris 10? > > ZFS userspace quota doesn''t support rquotad reporting. (.. yet?)This thread seems to say it should work: http://mail.opensolaris.org/pipermail/zfs-discuss/2009-May/028291.html And even the zfsadmin guide tells us: You can use the legacy quota command to review user quotas in an NFS environment, for example, where a ZFS file system is mounted. So still the question: why does it not work in my setup? Willi
Jorgen Lundman
2009-Nov-26 23:53 UTC
[zfs-discuss] rquota didnot show userquota (Solaris 10)
Hopefully this will confirm to you that it should work:
x4500-10:~# zfs get userquota at 57564 zpool1/sd02_www
NAME PROPERTY VALUE SOURCE
zpool1/sd02_www userquota at 57564 29.5G local
prov01# df -h |grep sd02
x4500-10.unix:/export/sd02/www 16T 839G 15T 6% /export/sd02/www
remote/read/write/setuid/devices/vers=4/hard/intr/quota/xattr/dev=4700038
# quota -v 57564
Disk quotas for (no account) (uid 57564):
Filesystem usage quota limit timeleft files quota limit timeleft
/export/sd02/www
15 30932992 30932992 0 0 0
I would suggest the usual things to check:
online Aug_20 svc:/network/nfs/rquota:default
If you are using NFSv4, check /var/run/nfs4_domain match, we mount the volumes
with "-o rq" (due to legacy reasons, it was UFS at one time) but I
don''t know if
that is still required.
Willi Burmeister wrote:> Hi,
>
> we have a new fileserver running on X4275 hardware with Solaris 10U8.
>
> On this fileserver we created one test dir with quota and mounted these
> on another Solaris 10 system. Here the quota command didnot show the
> used quota. Does this feature only work with OpenSolaris or is it
> intended to work on Solaris 10?
>
> Here what we did on the server:
>
> # zfs create -o mountpoint=/export/home2 zpool1/home
> # zfs set sharenfs=rw=sparcs zpool1/home
> # zfs set userquota at wib=1M zpool1/home
>
> # mkdir /export/home2/wib
> # cp<some stuff> /export/home2/wib
> # chown -Rh wib:sysadmin /export/home2/wib
>
> # zfs userspace zpool1/home
> TYPE NAME USED QUOTA
> POSIX User root 3K none
> POSIX User wib 154K 1M
>
> # quota -v wib
> Disk quotas for wib (uid 90):
> Filesystem usage quota limit timeleft files quota limit
timeleft
> /export/home2
> 154 1024 1024 - - - -
-
>
> and the client:
>
> # mount<server>:/export/home2/wib /mnt
>
> % cd /mnt
> % du -sk .
> 154 .
>
> % quota -v wib
> Disk quotas for wib (uid 90):
> Filesystem usage quota limit timeleft files quota limit
timeleft
>
>
> A simple snoop on the network shows us:
>
> client -> server PORTMAP C GETPORT prog=100011 (RQUOTA) vers=1
proto=UDP
> server -> client PORTMAP R GETPORT port=32865
> client -> server RQUOTA C GETQUOTA Uid=90 Path=/export/home2/wib
> server -> client RQUOTA R GETQUOTA No quota
>
> Why ''no quota''?
>
> Both systems are nearly fully patched.
>
>
> Any help is appreciated. Thanks in advance.
>
> Willi
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
--
Jorgen Lundman | <lundman at lundman.net>
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)
Willi Burmeister
2009-Nov-27 05:55 UTC
[zfs-discuss] rquota didnot show userquota (Solaris 10)
Hi Jorgen,> Hopefully this will confirm to you that it should work:thanks for confirmation.> I would suggest the usual things to check:server# svcs \*nfs\* STATE STIME FMRI online 10:57:32 svc:/network/nfs/status:default online 10:57:32 svc:/network/nfs/nlockmgr:default online 10:57:32 svc:/network/nfs/cbd:default online 10:57:32 svc:/network/nfs/mapid:default online 10:57:34 svc:/network/nfs/client:default online 11:13:49 svc:/network/nfs/server:default online 13:21:51 svc:/network/nfs/rquota:default server# cat /var/run/nfs4_domain informatik.uni-kiel.de client# svcs \*nfs\* STATE STIME FMRI disabled Nov_03 svc:/network/nfs/server:default online Nov_03 svc:/network/nfs/cbd:default online Nov_03 svc:/network/nfs/status:default online Nov_03 svc:/network/nfs/mapid:default online Nov_03 svc:/network/nfs/nlockmgr:default online Nov_03 svc:/network/nfs/rquota:default online Nov_03 svc:/network/nfs/client:default client# cat /var/run/nfs4_domain informatik.uni-kiel.de looks ok for me.> If you are using NFSv4, check /var/run/nfs4_domain match, we mount the > volumes with "-o rq" (due to legacy reasons, it was UFS at one time) but I > don''t know if that is still required.I tried this too: client# mount -F nfs -o quota server:/export/home2/wib /mnt client# mount | egrep ^/mnt /mnt on server:/export/home2/wib remote/read/write/setuid/devices/quota/xattr/dev=598003f on Fri Nov 27 06:41:56 2009 and ''quota -v'' still shows nothing :-(( I think I will oben a service call. Thanks for your help. Willi
This is CR 6907830 rquotad(1M) doesn''t return quotas for ZFS if NFS client mountpoint differs from entry in /etc/mnttab Fix is in progress. Thanks, Lin On 11/26/09 04:59, Willi Burmeister wrote:> Hi, > > we have a new fileserver running on X4275 hardware with Solaris 10U8. > > On this fileserver we created one test dir with quota and mounted these > on another Solaris 10 system. Here the quota command didnot show the > used quota. Does this feature only work with OpenSolaris or is it > intended to work on Solaris 10? > > Here what we did on the server: > > # zfs create -o mountpoint=/export/home2 zpool1/home > # zfs set sharenfs=rw=sparcs zpool1/home > # zfs set userquota at wib=1M zpool1/home > > # mkdir /export/home2/wib > # cp <some stuff> /export/home2/wib > # chown -Rh wib:sysadmin /export/home2/wib > > # zfs userspace zpool1/home > TYPE NAME USED QUOTA > POSIX User root 3K none > POSIX User wib 154K 1M > > # quota -v wib > Disk quotas for wib (uid 90): > Filesystem usage quota limit timeleft files quota limit timeleft > /export/home2 > 154 1024 1024 - - - - - > > and the client: > > # mount <server>:/export/home2/wib /mnt > > % cd /mnt > % du -sk . > 154 . > > % quota -v wib > Disk quotas for wib (uid 90): > Filesystem usage quota limit timeleft files quota limit timeleft > > > A simple snoop on the network shows us: > > client -> server PORTMAP C GETPORT prog=100011 (RQUOTA) vers=1 proto=UDP > server -> client PORTMAP R GETPORT port=32865 > client -> server RQUOTA C GETQUOTA Uid=90 Path=/export/home2/wib > server -> client RQUOTA R GETQUOTA No quota > > Why ''no quota''? > > Both systems are nearly fully patched. > > > Any help is appreciated. Thanks in advance. > > Willi > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >