作业
[root@localhost ~]# mdadm -C /dev/md11 -l 1 -n 2 /dev/sdb1 /dev/sdb2 -v
[root@localhost ~]# mdadm -C /dev/md12 -l 1 -n 2 /dev/sdb3 /dev/sdb4
[root@localhost ~]# mdadm -C /dev/md0 -l 0 -n 2 /dev/md11 /dev/md12 -v
[root@localhost ~]# pvcreate /dev/md0
[root@localhost ~]# vgcreate myvg /dev/md0
[root@localhost ~]# lvcreate -L 5G -n mylv myvg
[root@localhost ~]# mkfs.ext4 /dev/myvg/mylv
[root@localhost ~]# tar -xf httpd-2.2.17.tar.gz -C /usr/src/
[root@localhost httpd-2.2.17]# ./configure --prefix=/usr/local/apache
[root@localhost httpd-2.2.17]make
[root@localhost httpd-2.2.17]make install
[root@localhost htdocs]# cd /usr/local/apache/htdocs/
[root@localhost conf]# vi httpd.conf
[root@localhost conf]# /usr/local/apache/bin/apachectl start
1
[root@localhost htdocs]# mount /dev/myvg/mylv /usr/local/apache/htdocs/
[root@localhost htdocs]# vim /etc/fstab
/dev/myvg/mylv /usr/local/apache/htdocs/ ext4 defaults,usrquota,grpquota 0 0
[root@localhost htdocs]# echo " zhangjiaqi" > index.html
[root@localhost htdocs]# quotacheck -avug
[root@localhost htdocs]# useradd baba
[root@localhost htdocs]# quotacheck -avug
[root@localhost htdocs]# edquota -u baba
Disk quotas for user baba(uid 8893):
Filesystem blocks soft hard inodes soft hard
/dev/mapper/myvg-mylv 0 80000 100000 0 80 100