Centos 5.x quota 적용

· 13년 전 · 1569
 
 
1.quota 패키지 설치 확인
 
rpm -qa | grep quota
quota-3.13-5.el5
 
설치되어 있네요.
 
2. /etc/fstab usrquota 추가하기
 
UUID=6944a9e2-25a3-4d5a-981c-xxxxx           /xxx                ext4    defaults,usrquota        1 2
 
 
3. remount 하기
 
mount -o remount /xxx
 
 
mount 명령으로 usrquota 확인
 
mount
...중략
/dev/sdb1 on /xxx type ext4 (rw,usrquota)
 
 
4. aquota.usr 생성
 
cd /xxx
touch aquota.user
chmod 600 aquota.user
 
 
5. quota 적용위해 현재 상태 체크
 
quotacheck -avug
quotacheck: WARNING -  Quotafile /xxx/aquota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sdb1 [/xxx] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 8520 directories and 59474 files
 
6. quota 시작하기
 
quotaon -avug
/dev/sdb1 [/xxx]: user quotas turned on
 
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
Linux 13년 전 조회 2,076
Linux 13년 전 조회 2,171
Linux 13년 전 조회 3,785
Linux 13년 전 조회 1,649
Linux 13년 전 조회 1,311
Linux 13년 전 조회 1,480
Linux 13년 전 조회 1,506
Linux 13년 전 조회 1,650
Linux 13년 전 조회 2,287
Linux 13년 전 조회 1,751
Linux 13년 전 조회 2,259
Linux 13년 전 조회 1,758
기타 13년 전 조회 1,892
Linux 13년 전 조회 2,631
Linux 13년 전 조회 1,570
JavaScript 13년 전 조회 2,496
Linux 13년 전 조회 2,162
Linux 13년 전 조회 1,623
기타 13년 전 조회 1,753
PHP 13년 전 조회 2,371
기타 13년 전 조회 3,374
Linux 13년 전 조회 1,482
Linux 13년 전 조회 1,584
Linux 13년 전 조회 2,370
Linux 13년 전 조회 1,844
Linux 13년 전 조회 2,860
Linux 13년 전 조회 1,369
Linux 13년 전 조회 1,865
PHP 13년 전 조회 1,802
Linux 13년 전 조회 1,653