lvm
apt-get install xfsprogs
cat init_lvm2.sh
#/bin/bash
disk_name=vdb
yum install -y lvm2
pvcreate /dev/$disk_name
vgcreate db /dev/$disk_name
lvcreate -l 100%FREE -n mysql db
mkfs.xfs /dev/mapper/db-mysql
uuid=`blkid | grep db-mysql | awk -F: '{print $2}' | awk -F' ' '{print $1}'`
echo $uuid' /data xfs defaults 0 0' >> /etc/fstab
mkdir -p /data
mount -a