LVM stuff
pvdisplay vgdisplay lvdisplay
Check status
cat /proc/mdstat cat /etc/mdadm.conf
Make Raid 10
mdadm --create /dev/md30 --run --level=10 --chunk=4 --raid-devices=4 /dev/sda /dev/sdb /dev/sdd /dev/sdf mdadm --examine /dev/md30 mdadm --detail /dev/md30
Make file system
mkfs.ext4 -O extent -b 4096 -E stride=128,stripe-width=128 -O ^has_journal /dev/md30 tune2fs -o journal_data_writeback /dev/md30 # append output to /etc/mdadm.conf mdadm --detail --scan|grep d30 >>/etc/mdadm.conf
Add to /etc/fstab
echo "#">>/etc/fstab; echo "/dev/md30 /data ext4 discard,defaults,data=writeback 0 0" >>/etc/fstab
Create home directory and access
mkdir /data mount /data
Add User and group
groupadd solr useradd -d /home/solr -g solr -m -s /bin/bash -c "Solr Search" solr
Create solr directory & access
mkdir /data/solr;chown solr:solr /data/solr;chmod 770 /data/solr passwd solr devtech101solr#
Source – howto migarte to raid on live system