4 if [ -f working/scripts/create-pv ];then
6 if [ -f create-pv ];then
10 if [ -f create-lv ];then
14 if [ -f create-vg ];then
17 if [ -f lvdisks ];then
25 if [ -f disklistmp ];then
28 cat disklist|while read line;do
29 if [ ! $line = "" ];then
30 grep $line disklistmp>>/dev/null 2>&1
32 echo $line >>disklistmp
37 cat raidisks|while read line;do
38 if [ ! $line = "" ];then
39 grep $line disklistmp>>/dev/null 2>&1
41 echo $line >>disklistmp
45 mv disklistmp totaldisks
47 cat totaldisks|while read line;do
49 cat working/scripts/create-pv |grep pvcreate|grep $line|while read LINE ;do
51 cat create-pv|grep "$li">>/dev/null 2>&1
53 echo $LINE >> create-pv
56 cat working/scripts/create-vg |grep vgcreate|grep $line|while read LINE ;do
58 cat create-vg|grep "$li">>/dev/null 2>&1
60 echo $LINE >> create-vg
67 cat create-vg|awk '{print $3}'|while read line;do
69 cat working/scripts/create-lv |grep lvcreate|grep $line|while read LINE ;do
71 cat create-lv|grep "$li">>/dev/null 2>&1
73 echo $LINE >> create-lv
75 if [ -f working/scripts/format.$line ];then
76 cat working/scripts/format.$line >>formatallscript
78 cat lvdisks|grep $line>/dev/null 2>&1