Solved! Re: Quotas & AMD

1997-06-25 Thread Adriano Nagelschmidt Rodrigues
Just FYI:

Felix Almeida writes:
 >   I'm using the AMD to mount the home directories by NFS on the clients.
 > I've read all of documents related to quotas, but with no success...

The problem was in the way I built the amd map for poor Felix's network ;-) 

The home server has two file systems under /home, u1 & u2. The quota files are
in the fs root directories (ie /home/u1, /home/u2). The amd map only told the
clients to mount /home. I had a feeling that it might be the source of the
problem, and today I changed the map so that the clients would mount /home/u1
& /home/u2 also, and voila'...

--
Adriano


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Quotas & AMD

1997-06-20 Thread John Goerzen
Did you enable quota support in the kernel on both the client *AND*
the NFS server?

I work with a Debian machine with just such a setup, and there are no
real problems there

Felix Almeida <[EMAIL PROTECTED]> writes:

>   Does anybody know how I can configure my network in order to let the
> users know their disk quotas? The problem is that the quota command
> doesn't show the quota values, it only shows them when the user is logged
> on the server.
> 
>   I'm using the AMD to mount the home directories by NFS on the clients.
> I've read all of documents related to quotas, but with no success...
> 
>   Also, I've noted that when I mount the home directories by hand (without
> AMD), using NFS of course, the users can see their disk quotas normaly,
> but I really don't know why. 
> 
>   Please help-me. :-)
> 
> 
> Thanks in advance,
> Felix Almeida <[EMAIL PROTECTED]>
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] . 
> Trouble?  e-mail to [EMAIL PROTECTED] .
> 

-- 
John Goerzen  | Running Debian GNU/Linux (www.debian.org)
Custom Programming| 
[EMAIL PROTECTED] | 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Quotas & AMD

1997-06-20 Thread Lukas Nellen
[EMAIL PROTECTED] said:

>   Ok. I know that. I'm starting rpc.rquotad in my netstd_misc script (on
> the server), so it is not the problem... When I mount the filesystems on
> the clients, via NFS too, directly in the fstab (not in AMD) the quotas
> are shown normaly (if I didn't have started the rpc.rquotad it won't
> occur).

Strange. I do get quota information via rquotad even for an NFS mount 
administered by AMD. Are we running different versions of the amd and quota 
packages? I'm using 

Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ NameVersionDescription
+++-===-==-
ii  quota   1.55-8 An implementation of the diskquota system.
ii  amd upl102-11  The 4.4BSD automounter.

Cheers,
Lukas


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Quotas & AMD

1997-06-20 Thread Felix Almeida
On Thu, 19 Jun 1997, Lukas Nellen wrote:

> You need to run the rquotad on the server to be able to query quotas for
> NFS-mounted filesystems. I patched /etc/init.d/quota to run rpc.rquotad
> if you export filesystems and at the same time some filesystems have
> quotas. I don't check, though, that set of exported filesystems and the
> set of filesystems with quotas have a non-empty intersection. 
> 
>   Cheers,
>   Lukas

  Ok. I know that. I'm starting rpc.rquotad in my netstd_misc script (on
the server), so it is not the problem... When I mount the filesystems on
the clients, via NFS too, directly in the fstab (not in AMD) the quotas
are shown normaly (if I didn't have started the rpc.rquotad it won't
occur).

Thank you anyway. :-)

Felix Almeida <[EMAIL PROTECTED]>


Re: Quotas & AMD

1997-06-20 Thread Lukas Nellen
[EMAIL PROTECTED] said:

>   Does anybody know how I can configure my network in order to let the
> users know their disk quotas? The problem is that the quota command
> doesn't show the quota values, it only shows them when the user is logged
> on the server.

You need to run the rquotad on the server to be able to query quotas for 
NFS-mounted filesystems. I patched /etc/init.d/quota to run rpc.rquotad if you 
export filesystems and at the same time some filesystems have quotas. I don't 
check, though, that set of exported filesystems and the set of filesystems with 
quotas have a non-empty intersection.

Cheers,
Lukas
---
   Dr. Lukas Nellen | Email: [EMAIL PROTECTED]
   Depto. de Fisica Teorica, IFUNAM |
   Apdo. Postal 20-364  | Tel.:  +52 5 622 5166
   01000 Mexico D.F., MEXICO| Fax:   +52 5 622 5015

#! /bin/sh
#
# Patched by Lukas Nellen <[EMAIL PROTECTED]> to check if it might
# be a good idea to run `rquotad'.
# The regular expression for grepping /etc/exports to check if we are an
# NFS-server is shamelessly stolen from netstd_nfs.

RQUOTAD=/usr/sbin/rpc.rquotad

case "$1" in
  start)
 # Check quotas.
 if [ -x /usr/sbin/quotacheck ]
 then
echo -n 'Checking quotas: ';
/usr/sbin/quotacheck -a -ug
echo 'Done'

 fi 
 # Turn quotas on.
 if [ -x /usr/sbin/quotaon ]
 then
echo 'Turning on quotas';
/usr/sbin/quotaon -aug
 fi
 # Start rpc.rquotad
 if [ -x $RQUOTAD ] \
&& grep -q '^[^#]*quota' /etc/fstab \
&& grep -q '^/' /etc/exports
 then
echo 'Starting rquotad.'
start-stop-daemon --start --quiet --exec $RQUOTAD
 fi
;;
  stop)
 if [ -x /usr/sbin/quotaoff ]
 then
echo "Turning off quotas"
/usr/sbin/quotaoff -a
 fi
 start-stop-daemon --stop --quiet --oknodo --exec $RQUOTAD 
;;
  *)
echo "Usage: /etc/init.d/quota {start|stop}"
exit 1
esac

exit 0