Posted
Filed under Computer/Linux

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)

2008/12/22 23:35 2008/12/22 23:35
[로그인][오픈아이디란?]