#!/bin/sh
echo "VG: "
read VG
echo "LP: "
read LP
echo "SAP: "
read SAP
echo "NUM: "
read NUM
echo "SID: "
read SID
while [[ $NUM -lt 2 ]]; read VG LP SAP NUM SID ; do
mklv -y $SAP$NUM -t jfs2 -e x $VG $LP;
crfs -v jfs2 -d /dev/$SAP$NUM -m /oracle/$SID/$SAP$NUM -A yes -p rw -a log=INLINE -a options=cio;
NUM=$((NUM+1)) OR (( NUM++ ))
done
I want to create file system on AIX as priyank1, priyank2 and so on...
VG is the volume group name, LP is the logical partition/size of FS, SAP is the name "priyank" and SID is the Directory under /oracle..
Please let me know if any further details needed. Please help the above script is not working...not reading the variable properly while executing the commands.
also i have placed 2 variable together $SAP$NUM , will this be a problem ?
Regards, Priyank