mdadm -C /dev/md0 -l 4 -n 3 -x /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8
cat /proc/mdstat to check the status
mdadm /dev/md0 -f /dev/sda5
mdadm /dev/md0 -r /dev/sda5
mdadm /dev/md0 -a /dev/sda5
mknod /dev/md1 b 9 1 to make a new device
mkfs -t ext3 /dev/md0
mount /dev/md0 /mnt/raid
to release the partition taken by raid
mdadm /dev/md0 -f /dev/sdb1 /dev/sdb2 /dev/sdb3
mdadm /dev/md0 -r /dev/sdb1 /dev/sdb2 /dev/sdb3
extend Lv
extend vol and bring online
lvresize -L 550M /dev/vg0/lv0
resize2fs /dev/vg0/lv0
check online: df -h
reduce LV
umount /dev/vg0/lv0
fsck -f /dev/vg0/lv0
resize2fs /dev/vg0/lv0 200M
lvreduce /dev/vg0/lv0 -L 200M
mount /dev/vg0/lv0 /vol
df -h
#/boot can not put into LV as well.
# before make LV , ensure hard disk raided ,raid and add into VG
----------
sequence
linux block device ( partition or hard disk)--pvcreate--vgcreate--lvcreate
# create LV datalv on vg0
lvcreate -L 5G -n datalv vg0
------------
suggest use GUI to reduce LV
------
#vgextend vg0 /dev/sda11 ---add one block to vg0
#pvmove /dev/sda11
#vgreduce vg0 /dev/sda12