First, there are some typos in chap. 7 in the manual, most options require
double dashes so if you are lazy like me and use cutnpaste you get a lot of
error messages. For instance, the modprobe.conf lines should read
install mdc /sbin/modprobe lquota ; /sbin/modprobe --ignore-install mdc
install lov /sbin/modprobe lquota ; /sbin/modprobe --ignore-install lov
install osc /sbin/modprobe lquota ; /sbin/modprobe --ignore-install osc
Also, the use of lquota makes the "service lustre stop" barf on
clients:
[root@compute-1-2 ~]# service lustre stop
Shutting down lustre: MTPT: MNT_client MNT_client_UUID /lustre/work
mds-work_UUID lov-work_UUID
MDC: MDC_compute-1-2.local_mds-work_MNT_client 690d5_MNT_client_3414640379
LOV: lov-work dc4db_lov-work_ecbe88d740
MTPT: MNT_client_2 MNT_client_2_UUID /lustre/home mds-home_UUID lov-home_UUID
MDC: MDC_compute-1-2.local_mds-home_MNT_client_2 32d10_MNT_client_2_8f2c48f1c7
LOV: lov-home 6d626_lov-home_71adf42858
NETWORK: NET_client_lnet NET_client_lnet_UUID lnet *
unloading module: llite
unloading module: mdc
unloading module: lov
unloading module: osc
unloading module: ptlrpc
! unable to unload module: ptlrpc
ERROR: Module ptlrpc is in use by lquota
unloading module: obdclass
! unable to unload module: obdclass
ERROR: Module obdclass is in use by lquota,ptlrpc
unloading module: lvfs
! unable to unload module: lvfs
ERROR: Module lvfs is in use by lquota,ptlrpc,obdclass
unloading module: lnet
! /usr/sbin/lctl (255): LNET busy
lustre
adding this line into modprobe.conf should have fixed the problem, but this
results in an infinite recursion (???)
remove ptlrpc /sbin/modprobe -r lquota ; /sbin/modprobe -r --ignore-remove
ptlrpc
So to the real problem: I cannot get the quota to work as advertised.
I''m
trying to set a 1GB quota on the /lustre/home filesystem:
[root@compute-1-2 ~]# lfs quotacheck -ug /lustre/home
[root@compute-1-2 ~]# lfs setquota -u royd 0 1000000 0 100000 /lustre/home
[root@compute-1-2 ~]# lfs quota -u royd /lustre/home
Disk quotas for user royd (uid 50008):
Filesystem blocks quota limit grace files quota limit
grace
/lustre/home 4 0 1000000 1 0 100000
mds-home_UUID 4 0 102400 1 0 5000
ost8_UUID 0 0 102400
ost9_UUID 0 0 102400
ost10_UUID 0 0 102400
ost11_UUID 0 0 102400
So everything looks fine, but I''m still able to write an 8GB file on
the file
system. Also, shouldn''t there be a quota file on the filesystem?
[root@compute-1-2 ~]# ll -a /lustre/home
total 12
drwxr-xr-x 3 root root 4096 Sep 5 21:23 .
drwxr-xr-x 4 root root 4096 Sep 5 15:36 ..
drwxr-xr-x 2 royd royd 4096 Sep 5 21:34 royd
So what am I missing here?
This is for lustre 1.4.7 on RH EL4.
Any hints is greatly appreciated.
r.
--
The Computer Center, University of Troms?, N-9037 TROMS?, Norway.
phone:+47 77 64 41 07, fax:+47 77 64 41 00
Roy Dragseth, High Performance Computing System Administrator
Direct call: +47 77 64 62 56. email: royd@cc.uit.no