- Community Home
- >
- HPE Community, Taiwan
- >
- Tru64 Unix & OpenVMS
- >
- Tru64 Unix
- >
- 分享我的知識 : DISK/LUN TO FILE SYSTEM
Tru64 Unix
1753939
會員
9245
線上
108811
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 10-15-2005 06:30 PM
在 10-15-2005 06:30 PM
分享我的知識 : 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就可以了.
----------- 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就可以了.
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款
© 版权所有 2024 慧与发展有限责任合伙企业