An example of logical volume management script

pvcreate /dev/sdc

vgcreate hadoopvg /dev/sdc

lvcreate -L 60G -n hadooplv hadoopvg

lvcreate -l 100%FREE -n reply hadoopvg

mkfs.xfs /dev/hadoopvg/hadooplv

mkfs.xfs /dev/hadoopvg/repolv

mkdir /{hadoop,repo}

mount /dev/hadoopvg/hadooplv /hadoop

mount /dev/hadoopvg/repolv /repo