ext
ext
red hat從kernel
<1.源文件>
kernel
quota:ftp:///linux/redhat/
把檔案放在/home/src下
<2.設定方法>
#cd /home/src
#mkdir kernel_update
#cp
#cd kernel_update
#tar zxvf linux
#cd linux
#make menuconfig
此時出現Linux Kernel v
Processor type and features
General setup
Memory Technology Devices (MTD)
Parallel port support
Plug and Play configuration
Block devices
Multi
Networking options
Telephony Support
ATA/IDE/MFM/RLL support
SCSI support
Fusion MPT device support
I
Network device support
Amateur Radio support
IrDA (infrared) support
ISDN subsystem
Old CD
Input core support
Character devices
Multimedia devices
File systems
Console drivers
Sound
USB support
Kernel hacking
Load an Alternate Configuration File
Save Configuration to an Alternate File
以下都是kernel裡的選項
與quota有關的設定如下
找到File systems
把第一行的Quota support前打上*號
[*] Quota support
Kernel automounter support
<*> Kernel automounter version
< > Reiserfs support
Ext
[*] JBD (ext
< > DOS FAT fs support
< > Compressed ROM file system support
[*] Virtual memory file system support (former shm fs)
< > Simple RAM
<*> ISO
[ ] Microsoft Joliet CDROM extensions
[ ] Transparent decompression extension
< > Minix fs support
< > FreeVxFS file system support (VERITAS VxFS(TM) compatible)
< > NTFS file system support (read only)
< > OS/
[*] /proc file system support
[*] /dev/pts file system for Unix
< > ROM file system support
<*> Second extended fs support
< > System V/Xenix/V
< > UDF file system support (read only)
< > UFS file system support (read only)
Network File Systems
選定以後選擇exit退出
出現以下
┌──────────────────────────────────────────────────────────┐
│ Do you wish to save your new kernel configuration? │
├──────────────────────────────────────────────────────────┤
│ < Yes > < No > │
└──────────────────────────────────────────────────────────┘
選擇yes
然後出現以下字樣
Saving your kernel configuration
*** End of Linux kernel configuration
*** Check the top
*** Next
#make dep
#make clean
#make bzImage
#make modules
#make modules_install
#cp /home/src/kernel_update/linux/arch/i
#mkinitrd /boot/initrd
#vi /etc/nf
在最後添加以下
image=/boot/vmlinuz
label=newkernel <= 啟動時的卷標
initrd=/boot/initrd
read
root=/dev/hda
#/sbin/lilo
#reboot
重新啟動進入時在redhat lilo的選擇界面選擇newkernel進入
#cd /home/src
#rpm
#vi /etc/fstab
把
LABEL=/home /home ext
改成
LABEL=/home /home ext
重啟server
#/sbin/reboot
#quotacheck
#edquota
Disk quotas for user chenc (uid
Filesystem blocks soft hard inodes soft hard
/dev/hda
在soft和hard下添上需要限制的磁盤大小(單位是K)
#edquota
Grace period before enforcing soft limits for users:
Time units may be: days
Filesystem Block grace period Inode grace period
/dev/hda
設定soft quota和hard quota之間的時間
啟動quota
#quotaon
<
用test帳號用ftp進行測試
From:http://tw.wingwit.com/Article/program/Oracle/201311/16642.html