HOME > 게시판 > 초보자용게시판
게시판| 초보자용게시판
※ 게시판 용도에 맞지 않는 글(광고및 홍보 글 등)은 임의삭제될 수 있습니다.

 
작성일 : 06-12-01 04:56
quota 관련 질문 있습니다(고수님들 도와주세요)
 글쓴이 : 이승환
조회 : 2,531  

안녕하세요 ...

quota를 설정 하려하는데.. 잘 안되고 있습니다..

도움 부탁 드리겠습니다..

 

내용...

 

Centos 4.3  이고 커널 컴파일을 해서 2.6.10 입니다.

samba를 설치 하였고 /home/samba 이렇게 설정 했습니다.

/etc/default/useradd 내용은

# useradd defaults file
GROUP=100
HOME=/home/samba
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

fstab은

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1                /                         ext3    defaults        1 1
LABEL=/boot           /boot                   ext3    defaults        1 2
none                          /dev/pts                devpts  gid=5,mode=620  0 0
none                          /dev/shm                tmpfs   defaults        0 0
LABEL=/home/samba       /home/samba             ext3    defaults,usrquota       1 2
none                         /proc                   proc    defaults        0 0
none                         /sys                    sysfs   defaults        0 0
LABEL=/var             /var                    ext3    defaults        1 2
LABEL=SWAP-sda5         swap                    swap    defaults        0 0
/dev/hda                  /media/cdrecorder       auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

한다음

[root@disk etc]# mount -o remount /home/samba
mount: no such partition found

하면 mount가 잡히질 않습니다 ㅜ.ㅜ

그래서

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home             ext3    defaults,usrquota     1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=SWAP-sda5         swap                    swap    defaults        0 0
/dev/hda                /media/cdrecorder       auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

이렇게 수정을 하여

remount를 하면

[root@disk etc]# mount
/dev/sda6 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda2 on /home type ext3 (rw,usrquota)
/dev/sda3 on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/home은 잘 잡힙니다.. ㅜ.ㅜ

아직 많이 배우고 있습니다.. 제가 실수 한부분이 있거나 부족한 부분이 있으면 지적

부탁드립니다..

참고로 다른 서버에 제가 한것은 아니지만

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/backup1          /backup                 ext3    defaults        1 2
LABEL=/boot1            /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home/db1         /home/db                ext3    defaults,grpquota        1 2
LABEL=/home/hosting     /home/hosting           ext3    defaults,usrquota        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0
/dev/hdc                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

[root@web-01 etc]# mount
/dev/sda5 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda2 on /backup type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sdb1 on /home/db type ext3 (rw,grpquota)
/dev/sdb2 on /home/hosting type ext3 (rw,usrquota)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

이렇게 설정을 했는데 저는 왜 안되는지 ㅜ.ㅜ 고수님들의 도움 부탁드립니다..

 

 

 


~

 


이 글을 트위터로 보내기 이 글을 페이스북으로 보내기