예전 블로그 정리중... 예전 작성글....
ext3 에서 Quota 설정하기
Test 환경....
Linux : Hancomsoftlinux 2005
1. /etc/fstab 설정
/home 과 /var에 쿼터 설정을 하려한다.
설정전
LABEL=/home /home ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
설정 후
LABEL=/home /home ext3 defaults,usrquota 1 2
LABEL=/var /var ext3 defaults,usrquota 1 2
2. aquota.user 파일 만들기 / 퍼미션 설정
touch /home/aquota.user
chmod 600 /home/aquota.user
touch /home/aquota.user
chmod 600 /var/aquota.user
3. 리부팅 또는 리마운트 한다.
mount -o remount /home
mount -o remount /var
4. 쿼터체크 실행
~]# quotacheck -augvm -F vfsv0
quotacheck: WARNING - Quotafile /home/aquota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sda7 [/home] quotacheck: Old group file not found. Usage will not be substrac
ted.
done
quotacheck: Checked 12 directories and 19 files
quotacheck: WARNING - Quotafile /var/aquota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sda6 [/var] quotacheck: Old group file not found. Usage will not be substract
ed.
done
quotacheck: Checked 129 directories and 913 files
5. 쿼터 실행
~]# quotaon -a
6. 쿼터 상태 보기
~]# repquota -a
*** Report for user quotas on device /dev/sda7
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 32828 0 0 3 0 0
*** Report for user quotas on device /dev/sda6
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 40464 0 0 1003 0 0
daemon -- 8 0 0 3 0 0
7. 쿼터 설정하기
~]# eduquota -u [username]
쿼터설정은 다른 문서 참조하세요~
http://wiki.kldp.org/wiki.php/QuotaMiniHOWTO
잡담)
쿼터가 이렇게 말썽을 부릴줄은 몰랐다~
국내 사이트 검색해서는 답을 찾을수가 없었다~
결국, 안되는 영어실력으로 redhat.com에서 답을 찾을 수가 있었다...
역시~ 영어공부를 해야한단 말인가~ ㅠ.ㅠ
ext3에서 쿼터설정때문에 헤매었던분들에게 도움이 되길.... ^^
'Server(Windows&Linux)' 카테고리의 다른 글
[Linux] dns 설정 후 설정한 도메인이 응답하지 않을때... (0) | 2015.07.30 |
---|---|
[Linux&Window] 네트워크 LISTENING 포트 확인 netstat (0) | 2015.07.16 |
[Linux] yum 사용하기... (0) | 2014.12.26 |
[Linux] CentOS ssh 설치하기 (2) | 2014.08.07 |
[Windows&Linux] 프로세스 종료 시키기 (0) | 2014.03.06 |