NFS 기반에서 사용자 Quota 설정하기

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)

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

페이스북/트위트/구글 계정으로 댓글 가능합니다.