#!/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
我想在AIX上創建文件系統priyank1,priyank2等等...文件系統創建腳本while循環
VG是卷組的名稱,LP爲邏輯分區/ FS的大小,SAP的名稱是「priyank」,SID是/ oracle下的目錄..
請讓我知道是否需要進一步的細節。 請幫助上述腳本無法正常工作......在執行命令時沒有正確讀取變量。
此外,我已將2個變量放在一起$ SAP $ NUM,這會是一個問題嗎?
問候, Priyank
Hi/pedz,非常感謝,你的sugesstions工作得很完美。 –