找回密码
 注册
查看: 789|回复: 7

有关quota的设置

[复制链接]
发表于 2003-4-7 22:31:40 | 显示全部楼层 |阅读模式
fstab文件改过了
也已经有了 aquota.user 和 aquota.group
repquota -a也能看到正确的结果
为什么每次启动和运行quotaon的时候还是这样呢
quotaon: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.
quotaon: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.
发表于 2003-4-8 19:36:23 | 显示全部楼层
你可不可以把你quota的整个过程贴出来看看。
回复

使用道具 举报

发表于 2003-4-8 19:39:20 | 显示全部楼层
下载相关软件
apache_1.3.27.tar 下载:http://www.apache.org/dist
Apache-ASP-2.49.tar 下载:http://cpan.org/modules/by-module/Apache/
mod_perl-1.27.tar 下载:http://perl.apache.org/download/index.html
stable.tar(perl-5.8.0) 下载:http://www.cpan.org/src/

把上面的软件下载到一个目录,如test
1:解压
#tar xvf apache_1.3.27.tar
#tar xvf Apache-ASP-2.49.tar
#tar xvf mod_perl-1.27.tar

2:安装apache
为了以DSO的方式安装mod_perl,所以要有so模块
#cd apache_1.3.27
#./configure --prefix=/usr/local/apache
#make
#make install
上面这样编译会有一些modules加不进来,我只好手动指定modules了,大家用下面的命令安装
apache
#./configure --prefix=/usr/local/apache --enable-module=auth_anon --enable-modul
e=auth_dbm --enable-module=autoindex -

-enable-module=cgi --enable-module=expires --enable-module=expires --enable-modu
le=proxy --enable-module=rewrite -

-enable-module=so
#make
#make install
检查安装的模块
#cd /usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_auth_anon.c
mod_auth_dbm.c
mod_proxy.c
mod_expires.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexe

3:安装mod_perl
% make -v
% gcc -v
% perl -v
安装perl
我得perl版本不够,所以我升级了一下perl的版本,现在是v5.8.0
下载http://www.cpan.org/src/stable.tar
#tar xvf stable.tar
#cd perl-5.8.0/
#make
#make install
到sunfreeware下载pkg的安装也可以,可能还更简单

#cd mod_perl-1.27
看看DSO编译的语法
#grep DSO Makefile.PL
照猫画虎
#perl Makefile.PL EVERYTHING=1 DO_HTTPD=1 USE_APACI=1 USE_DSO=1 USE_APXS=1 WITH_
APXS=/usr/local/apache/bin/apxs
#make
#make install

测试mod_perl模块
启动apache
#telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
输入get Head /http /1.0
HTTP/1.1 400 Bad Request
Date: Wed, 25 Dec 2002 03:32:32 GMT
Server: Apache/1.3.27 (Unix) mod_perl/1.27

ok,mod_perl加上了


给perl安装asp模块,一张方法是CPAN安装,一种是常规安装
CPAN安装
#perl -MCPAN -e shell
cpan> install CPAN
...
Installing the Apache::ASP bundle will automatically install all the modules
Apache::ASP is dependent on as well as Apache::ASP itself. If you have
trouble installing the bundle, then try installing the necessary modules one
at a time:
cpan> install MLDBM
cpan> install MLDBM::Sync
cpan> install Digest::MD5
cpan> install Apache::ASP

For extra/optional functionality in Apache::ASP 2.31 or greater, like
support for FormFill, XSLT, or SSI, you can install this bundle via CPAN:
cpan> install Bundle::Apache::ASP::Extra

也可以用常规的方法安装asp模块
Otherwise, just copy ASP.pm to
$PERLLIB/site/Apache
> perl Makefile.PL
> make
> make test
> make install

安装完毕.
回复

使用道具 举报

 楼主| 发表于 2003-4-9 00:28:50 | 显示全部楼层
你上面这块是不是贴错地方了
过程我第一贴不说了么
回复

使用道具 举报

发表于 2003-4-9 12:52:48 | 显示全部楼层
不好意思,那天网络发错了,还有,能不能具体一点说说,你的步骤
回复

使用道具 举报

发表于 2003-4-9 15:04:46 | 显示全部楼层

Re: 有关quota的设置

[quote:af0aa294da="zhllg"]fstab文件改过了
也已经有了 aquota.user 和 aquota.group
repquota -a也能看到正确的结果
为什么每次启动和运行quotaon的时候还是这样呢
quotaon: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.
quotaon: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.[/quote]


可能你的 aquota.user 和 aquota.group 没有放在 /dev/hdb10 的 加载点 /mnt/bkp  的 根目录下,即 /mnt/bkp/ 目录下。

我只是猜测。
回复

使用道具 举报

 楼主| 发表于 2003-4-10 14:26:07 | 显示全部楼层
[root@Crespo bkp]# ls
aquota.group                     gtkrc.zh_CN                    root
aquota.user                      linux                          uni
config.bak                       linux-2.4.20                   up2date
decoration                       lost+found                     zhcon-0.2.1
enlightenment-0.16.5-1.i386.rpm  NVIDIA-Linux-x86-1.0-4349.run  zhcon-0.2.1.tar.gz
enlightenment-0.16.5-1.src.rpm   nwn
gnome-volume-control             oss
[root@Crespo bkp]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdb12              swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/hdb10              /mnt/bkp                ext3    defaults,usrquota,grpquota        1 1
/dev/hda1               /mnt/c                  vfat    rw,codepage=936,iocharset=cp936 0 0
/dev/hda6               /mnt/f                  ntfs    ro,iocharset=cp936 0 0
/dev/hda7               /mnt/g                  ntfs    ro,iocharset=cp936 0 0
/dev/hda8               /mnt/h                  ntfs    ro,iocharset=cp936 0 0
/dev/hdb9               /mnt/m                  ntfs    ro,iocharset=cp936 0 0
/dev/cdrom1             /mnt/cdrom1             iso9660 noauto,owner,kudzu,ro 0 0
[root@Crespo bkp]# quotacheck -a
Cannot get exact used space... Results might be inaccurate.
[root@Crespo bkp]# repquota -a
*** Report for user quotas on device /dev/hdb10
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --  736712       0       0          14023     0     0
robert    --   36368       0       0           2781     0     0
#501      --    1704       0       0             10     0     0
#573      --  170544       0       0          11955     0     0
[root@Crespo bkp]# quotaoff /mnt/bkp
quotaoff: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.
quotaoff: Cannot find quota file on /mnt/bkp [/dev/hdb10] to turn quotas on/off.
回复

使用道具 举报

发表于 2003-4-11 08:14:54 | 显示全部楼层
[quote:1397fae0c8="zhllg"]
[root@Crespo bkp]# quotacheck -a
Cannot get exact used space... Results might be inaccurate.
[/quote]


这里提示有错误。


你可以参照我的一步步来做:

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=5634
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-3-5 01:52 , Processed in 0.046347 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表