Aug
23
2003

solaris ufs에 quota 지정하기

quota설정하기

solaris ufs에 quota지정하기

solaris ufs 화일 시스템에 Quota를 지정해 보았다.

리눅스에서와는 약간 방법이 다르다.

그렇지만 사용방법은 비슷하다.

테스트는 solaris9, ultra10 60GB EIDE HDD에서 했음.

quota는 /export/home에 지정하기로 함.

1. /etc/vfstab을 수정
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
부분을 찾아서 다음과 같이 변경
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes rq

2. /export/home에 quotas화일 생성(소유권 주의)
-rw——- 1 root other 98304 May 27 17:35 quotas

3. 사용자에게 quota할당(예로 store유저)
edquota store
fs /export/home blocks (soft = 10000, hard = 10000) inodes (soft = 0, hard = 0)

4. 시스템을 재부팅(재부팅 하지 않으려면 다음 명령어를 사용)
sh /etc/init.d/ufs_quota start
시간이 꽤 걸렸다.. 이부분에서..

5. 확인해본다.
repquota -a
다음과 같은 결과가……
/dev/dsk/c0t0d0s7 (/export/home):
Block limits File limits User used soft hard timeleft used soft hard timeleft
store +- 28422 10000 10000 NOT STARTED 2435 0 0

Quota관련 명령어에는 다음과 같은것이…..

quota, edquota, checkquota, repquota, quotaon, quotaoff

Written by poss in: Solaris(솔라리스) |

답글 없음 »

RSS feed for comments on this post. TrackBack URL

답글 남기기

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes

Bad Behavior has blocked 75 access attempts in the last 7 days.