- 論壇徽章:
- 1
|
安裝Vertias Volume Manager 3.0.4
#cd /cdrom/cdrom0/pkgs/
#pkgadd -d .
下列軟件包是可以使用的:
1 VRTSvmdev VERITAS Volume Manager, Header and Library Files
(sparc) 3.0.4,REV=04.18.2000.10.00
2 VRTSvmdoc VERITAS Volume Manager (user documentation)
(sparc) 3.0.4,REV=04.18.2000.10.00
3 VRTSvmman VERITAS Volume Manager, Manual Pages
(sparc) 3.0.4,REV=04.18.2000.10.00
4 VRTSvmsa VERITAS Volume Manager Storage Administrator
(sparc) 3.0.6,REV=04.03.2000.14.30
5 VRTSvxvm VERITAS Volume Manager, Binaries
(sparc) 3.0.4,REV=04.18.2000.10.00
選擇你要執(zhí)行的軟件包(或選擇'全部'執(zhí)行所有的軟件包). (default: all) [?,??,q]: all
Installing VERITAS Volume Manager, Header and Library Files as <VRTSvmdev>; 回答y
Installation of <VRTSvmdev>; was successful.
Processing package instance <VRTSvmdoc>; from </export/home/VM.304/pkgs>; y
VERITAS Volume Manager (user documentation)
(sparc) 3.0.4,REV=04.18.2000.10.00
Copyright (c) 2000 VERITAS Software Corporation.
ALL RIGHTS RESERVED.
THIS SOFTWARE IS THE PROPERTY OF AND IS LICENSED BY VERITAS SOFTWARE,
AND/OR ITS SUPPLIERS.
1 PostScript
2 PDF
Select the document formats to be installed (default: all) [?,??,q]:all
Installing VERITAS Volume Manager (user documentation) as <VRTSvmdoc>;y
Installation of <VRTSvmdoc>; was successful.
Installing VERITAS Volume Manager, Manual Pages as <VRTSvmman>;
Installation of <VRTSvmman>; was successful.
Where should this package be installed? (default: /opt]) [?,q] [回車]
Should the Apache HTTPD (Web Server) included in this package be installed?
(default: n) [y,n,?,q] [回車]
Should the Volume Manager Storage Administrator Server be installed on this
system?
(The Volume Manager Storage Administrator Client will be installed regardless)
(default: y) [y,n,?,q] [回車]
Do you want to continue with the installation of <VRTSvmsa>; [y,n,?] y
Do you want to continue with the installation of <VRTSvmsa>; [y,n,?] y
Installing VERITAS Volume Manager Storage Administrator as <VRTSvmsa>;
Installation of <VRTSvmsa>; was successful.
Processing package instance <VRTSvxvm>; from </export/home/VM.304/pkgs>;
VERITAS Volume Manager, Binaries
(sparc) 3.0.4,REV=04.18.2000.10.00
Copyright (c) 1990-2000 VERITAS Software Corporation.
ALL RIGHTS RESERVED.
THIS SOFTWARE IS THE PROPERTY OF AND IS LICENSED BY VERITAS SOFTWARE,
AND/OR ITS SUPPLIERS.
This package, VxVM 3.0.4, is supported on Solaris 2.5.1, 2.6,
7, and 8. You appear to be running Solaris 8. Press
ENTER to install VxVM 3.0.4 for Solaris 8, or enter
another Solaris version number if you are certain that you
want to install the drivers for a different release of
Solaris.
Install for which version of Solaris?
[8, 7, 2.6, 2.5.1] (default: : [回車]
Installing VxVM for Solaris 8
The following Sun patch(s) are required for Solaris 8.
Sun patch(s):
Continue installation? [y,n,q,?] (default: n):y
The following files are being installed with setuid and/or setgid
permissions:
/usr/sbin/vxprint <setuid root>;
Do you want to install these as setuid/setgid files [y,n,?,q] y
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <VRTSvxvm>; [y,n,?] y
Installing VERITAS Volume Manager, Binaries as <VRTSvxvm>;
Installation of <VRTSvxvm>; was successful.
2 安裝Vertias Volume Manager補丁
安裝完補丁后重啟機器
# sync;sync;reboot
3 在安裝完成之后,需要安裝Volume Manager的license.
# vxlicense -c
輸入license。
4 禁止Volume Manager dmp的功能
刪除vxdmp驅(qū)動程序。
# rm /kernel/drv/vxdmp
# rm /kernel/drv/sparcv9/vxdmp
編輯 /etc/system 文件,刪除vxdmp forceload 語句。
# vi /etc/system
刪除或注釋語句: forceload: drv/vxdmp
結(jié)果:*forceload: drv/vxdmp
刪除dmp設(shè)備目錄
# rm -rf /dev/vx/dmp
# rm -rf /dev/vx/rdmp
建立關(guān)于dmp和rdmp的符號連接。
# ln -s /dev/dsk /dev/vx/dmp
# ln -s /dev/rdsk /dev/vx/rdmp
重啟機器
# sync;sync;reboot
創(chuàng)建rootdg
運行以下命令創(chuàng)建rootdg(前題是c0t0d0s4在系統(tǒng)安裝是就已經(jīng)預(yù)留,10m左右即可,不用浪費一個盤,rootdg在裝機中不能切換到其他機器)
# vxconfigd -m disable
# vxdctl init
# vxdg init rootdg
# vxdctl add disk c0t0d0s4 type=simple
# vxdisk -f init c0t0d0s4 type=simple
# vxdg adddisk c0t0d0s4
# vxdctl enable
# rm /etc/vx/reconfig.d/state.d/install-db
創(chuàng)建rootdg以后用以下命令創(chuàng)建所需要的卷
在超級用戶下運行以下命令:(以下是個簡單的鏡像的例子)
# /usr/lib/vxvm/bin/vxdisksetup -i c1t1d0
# /usr/lib/vxvm/bin/vxdisksetup -i c1t2d0
# /usr/lib/vxvm/bin/vxdisksetup -i c2t1d0
# /usr/lib/vxvm/bin/vxdisksetup -i c2t2d0
# vxdg init datadg01 datadg0101=c1t1d0
# vxdg -g datadg01 adddisk datadg0102=c2t1d0
# vxdg init datadg02 datadg0201=c1t2d0
# vxdg -g datadg02 adddisk datadg0202=c2t2d0
# vxassist -g datadg02 -U fsgen make vol-00 2000m layout=nolog datadg0201
# vxassist -g datadg01 -U fsgen make vol-01 10000m layout=nolog datadg0101
# vxassist -g datadg02 -U fsgen make vol-02 3000m layout=nolog datadg0201
# vxassist -g datadg02 -U fsgen make vol-03 2000m layout=nolog datadg0201
# vxassist -g datadg02 -U fsgen make vol-04 1000m layout=nolog datadg0201
# vxassist -g datadg02 -U fsgen make vol-05 12000m layout=nolog datadg0201
# vxassist -g datadg02 mirror vol-00 layout=nolog datadg0202
# vxassist -g datadg01 mirror vol-01 layout=nolog datadg0102
# vxassist -g datadg02 mirror vol-02 layout=nolog datadg0202
# vxassist -g datadg02 mirror vol-03 layout=nolog datadg0202
# vxassist -g datadg02 mirror vol-04 layout=nolog datadg0202
# vxassist -g datadg02 mirror vol-05up layout=nolog datadg0202
# newfs /dev/vx/rdsk/datadg02/vol-00
# newfs /dev/vx/rdsk/datadg01/vol-01
# newfs /dev/vx/rdsk/datadg02/vol-02
# newfs /dev/vx/rdsk/datadg02/vol-03
# newfs /dev/vx/rdsk/datadg02/vol-04
# newfs /dev/vx/rdsk/datadg02/vol-05
注:1、如果不是SUN的雙機,去掉DMP的功能可以不做,(sun的cluster和Vertias Volume Manager的DMP功能沖突)
2、如果裸設(shè)備用gen替代fsgen,不做newfs即可。
希望大家繼續(xù)補充內(nèi)容,比方做raid 5卷的命令、維護邏輯卷的命令,我實在沒有時間寫,(原來的文檔中沒有,自己有沒有時間,同時也想學習“他山之石”)
cluster 的正在整理中。 |
|