raid10+quota
[root@localhost ~]# fdisk /dev/sdb (...sdc sde )
[root@localhost ~]# mkdir /media/md1 ----建mountpoint
[root@localhost ~]# mdadm --create /dev/md1 --level=10 --raid-devices=4 /dev/sd{b,c,d,e}1
[root@localhost ~]# mkfs.ext3 /dev/md1
[root@localhost ~]# mdadm --detail /dev/md1 ----查看
[root@localhost ~]# mount -o usrquota,grpquota /dev/md1 /media/md1/ 将/dev/md1挂到/media/md1/
[root@localhost ~]# quotacheck -avug
[root@localhost ~]# vim /etc/mdadm.conf ----写主配(UUID)
[root@localhost ~]# vim /etc/fstab ----开机挂载
[root@localhost ~]# ls /media/md1/
aquota.group aquota.user lost+found
[root@localhost ~]# quotaon -u /media/md1/ ----开启
[root@localhost ~]# quotaon -g /media/md1/
[root@localhost ~]# setquota -u xuhe 10000 15000 0 0 /media/md1/
[root@localhost ~]# su - xuhe 设置用户xuhe对/media/md1/的使用量,软限10M,硬限15M
[xuhe@localhost ~]$ dd if=/dev/zero of=/media/md1/test.file bs=1M count=9
[xuhe@localhost ~]$ quota -u 在/media/md1/下建一个1M*9=9M,由/dev/zero导出的文件test.file
Disk quotas for user xuhe (uid 500):
Filesystem blocks quota limit grace files quota limit grace
/dev/md1 9232 10000 15000 1 0 0
[xuhe@localhost ~]$ dd if=/dev/zero of=/media/md1/test.file.2 bs=1M count=6
md1: write failed, user block limit reached.
dd: 写入 “/media/md1/test.file.2”: 超出磁盘限额