取消
顯示結果 
搜尋替代 
您的意思是: 

分享我的知識 : DISK/LUN TO FILE SYSTEM

分享我的知識 : DISK/LUN TO FILE SYSTEM

提供一個快速的方法, 在建置系統時, 可在短時間內, 完成FILESYSTEM的建置.



----------- INPUT FILE SAMPLE -----------------



# DISK DOMAIN CONFIGURATION SAMPLE

#

dsk6 /orahome ora1 oracle:dba

----------- INPUT FILE SAMPLE -----------------



---------------- LUN2FS.ksh -------------------

#!/bin/ksh



cat list|grep -v ^#|while read x y z w

do

echo ${x}:${y}

disklabel -rw ${x}

mkfdmn /dev/disk/${x}c ${x}c

mkfset ${x}c ${z}

cd /

if ]; then

mkdir -p ${y}

fi

mount ${x}c#${z} ${y}

chown -R ${w} ${y}

echo "Writing following to /etc/fstab"

echo "----------------------------------------"

echo "${x}c#${z}" "${y}" advfs rw 0 2

echo "----------------------------------------"

echo "${x}c#${z}" "${y}" advfs rw 0 2 >> /etc/fstab

done

---------------- LUN2FS.ksh -------------------



只要依照input file的格式, 提供給LUN2FS.ksh就可以了.