setup quota on nfs server

Computer/Linux December 22nd, 2008 23:35 kage

suse)
need quota & nfs rpm:

quota
portmap
nfs-utils
nfs-server
nfs-client


quota & nfs server:
make a quota.user file in want partition's root path.
example )   /export partition
cd /export
touch  quota.user
chmod 600 quota.user
vi /etc/fstab
----------------------------------------------------------------------------------
/dev/sda2  /export          xfs        defaults,usrquota              1 2
----------------------------------------------------------------------------------
mount -o remount /export
( quotaon /export )

vi /etc/exports
----------------------------------------------------------------------------------
/data *(rw,sync,no_root_squash)
----------------------------------------------------------------------------------
/etc/init.d/quotad start
/etc/init.d/nfsserver start

quotacheck /export
    automatic create quota.user and quota.group file under /export
      ex)quotacheck -avug /export

repquota -a   <== show all quota information for users.
edquota [ID]  <== edit ID's quota configuration
quota [ID]  <== show quota configuration for ID

client :
mount -t nfs [quota_server]:/export   /mnt
quota [ID]  <== show quota configuration for ID


rhel)
need quota & nfs rpm

quota
nfs-utils
portmap

quota & nfs server:
make a quota.user file in want partition's root path.
example )   /export partition
cd /export
touch  quota.user
chmod 600 quota.user
vi /etc/fstab
-----------------------------------------------------------------------------------------
/dev/sda2  /export          xfs        defaults,usrquota              1 2
-----------------------------------------------------------------------------------------
mount -o remount /export
( quotaon /export )

vi /etc/exports
-----------------------------------------------------------------------------------------
/data *(rw,sync,no_root_squash)
-----------------------------------------------------------------------------------------
/etc/init.d/nfs start
Starting NFS services:          [ OK ]
Starting NFS quotas:             [ OK ]
Starting NFS daemon:          [ OK ]

quotacheck /export
    automatic create quota.user and quota.group file under /export
      ex)quotacheck -avug /export

repquota -a   <== show all quota information for users.
edquota [ID]  <== edit ID's quota configuration
quota [ID]  <== show quota configuration for ID

client :
mount -t nfs [quota_server]:/export   /mnt
quota [ID]  <== show quota configuration for ID


common )
It need same GID UID and path on both system (server and client)

크리에이티브 커먼즈 라이센스
Creative Commons License
TAG , , , ,
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.cep.kr/blog/cep/rss/response/141

댓글+트랙백 ATOM :: http://www.cep.kr/blog/cep/atom/response/141

트랙백 주소 :: http://www.cep.kr/blog/cep/trackback/141

트랙백 RSS :: http://www.cep.kr/blog/cep/rss/trackback/141

트랙백 ATOM :: http://www.cep.kr/blog/cep/atom/trackback/141

댓글을 달아 주세요

댓글 RSS 주소 : http://www.cep.kr/blog/cep/rss/comment/141
댓글 ATOM 주소 : http://www.cep.kr/blog/cep/atom/comment/141
[Login][OpenID?]
You have to log in with and OpenID to leave a comment.