#! /bin/bash

#

cat <<EOF

d|D) show disk usages

m|M)show memory usages

s|S)show swap usages

*)quit

EOF


read -p"Your choice:"CHOICE

while [ $CHOICE!='quit' ];do

case $CHOICE in

d|D)

    echo "Disk usage:"

    df -Ph;;

m|M)

    echo"Memory usage:"

    free -m |grep"Mem";;

s|S)

    echo"Swap usage:"

    free -m |grep "Swap";;

*)

    echo "Unknown.."

    exit 9;;

esac

read -p "Again, yourchoice:"CHOICE

done


RAID:

级别:仅代表磁盘组织方式不同,没有上下级之分

0:条带

性能提升:读写

冗余能力(容错能力):无

空间利用率:nS

至少两块盘

  1. 镜像

性能表现:写特性下降,读性能提升

冗余能力:有

空间利用率:1/2

至少2块盘

5.

读写能力提升

(n-1)/n

至少3块盘

10.

读写能力提升

1/2

至少需要4块盘

01.

读写能力提升

1/2

至少需要4块盘

50.

读写能力提升

(n-2)/n

至少需要6块盘

jbod:

1

至少需要2块盘