#! / bin / the bash # xfs file system-related installation package RPM -Y yum the install the -ql xfsprogs xfsprogs || # Create mount directory mkdir} -p /data{1..16 J =. 1 # partition for i in {b } ..m do the parted / dev / SD $ {I} << ESXU mklabel GPT the mkpart Primary 0 -1 the ignore quit ESXU SLEEP. 1 # format mount the mkfs.xfs -f / dev / SD $ {I}. 1 IF [ "? $" = "0"]; the then Mount -o the noatime, nodiratime, inode64, nobarrier / dev / SD $ {I}. 1 / Data $ {J} echo "Mount the noatime -o, nodiratime, inode64, nobarrier / dev / {I}. 1 SD $ / $ {J} Data "| -a TEE /etc/rc.local Fi the let. 1 = J + DONE