Veritasvolumemanager安装和配置说明.docx
- 文档编号:6208806
- 上传时间:2023-01-04
- 格式:DOCX
- 页数:11
- 大小:19.78KB
Veritasvolumemanager安装和配置说明.docx
《Veritasvolumemanager安装和配置说明.docx》由会员分享,可在线阅读,更多相关《Veritasvolumemanager安装和配置说明.docx(11页珍藏版)》请在冰豆网上搜索。
Veritasvolumemanager安装和配置说明
Veritasvolumemanager
软件安装配置说明
1.Veritasvolumemanager
3.配置和使用volumemanager
4.日常使用
一.简介
1.VeritasVolumeManager
VeritasVolumeManager是一个磁盘管理软件,它可以对磁盘(阵列)进行灵活的配置和管理,为系统提供性能优良的逻辑卷。
其主要特性有:
●实现多种RAID模式:
0,1,5,0+1,1+0等。
●在线扩容
●I/O平衡.例如,当一个Volume上的数据访问太密集时,可以将其数据转移到另外的Volume上去。
●DMP(DynamicMultipath)功能,改进I/O吞吐率,且支持冗余。
二.安装和配置说明
●$PATH=/sbin:
/user/sbin:
/opt/VRTS/bin:
$PATH;exportPATH(将此路径加入/etc/profile)
●必须有/opt目录
●为了初始化volumemanager必须有许可证密匙和cluster功能许可证
●使用volumemanager是为了管理磁盘阵列
●安装前,确认磁盘阵列的分配布局
●安装前,确认rootdg的位置如c1t0d0s0。
rootdg必须存在。
●有volumemanager管理的磁盘应有两个空闲分区和少量空闲空间
●一般在封装一块内置硬盘后,volumemanager会清空第4,5分区,所以在安装操作系统后,不要在这两分区上装软件,这两分区也不要和其他的文件系统挂接
●在系统硬盘上必须有足够的空间来安装软件
●操作系统是solaris8
●一般安装的顺序是先安装操作系统,然后是volumemanager,然后是cluster,然后是sybase和其他的应用程序
2.软件安装
●将VeritasvolumemanagerCD盘放入CDROM中
●进入/cdrom/cdrom0,运行./installer,进行安装软件包。
●安装完毕后进入安装菜单,选择1安装license。
●安装完后选择2再选1进行软件安装。
3.配置和使用VolumeManager
VolumeManager是以磁盘组(DiskGroup)为管理单元,其中rootdg必不可少,在其中包含VolumeManager的启动信息。
在系统中,有rootdg、datadg2个DiskGroup,rootdg建在c1t1d0s0(举例)上。
●创建rootdg(操作系统安装在c1t0d0上)用vxinstall创建rootdg简单
#vxconfigd–mdisable停后台进程
#vxdctlinit磁盘控制初始化
#vxdginitrootdg
#vxdisk–finitc1t1d0s0type=simple
#vxdctladddiskc1t1d0s0type=simple
#vxdgadddiskc1t1d0s0
# vxdctl enable
#rminstall-db
#init6重启
●封装根磁盘(c1t0d0)
#vxdiskadm进入菜单,选择2进行封装。
敲list可以看到
DEVICEDISKGROUPSTATUS
c1t0d0--error
c1t1d0c1t1d0s0rootdgonline
c1t1d0--error
fabric_0--error
fabric_1--error
Selectdiskdevicestoencapsulate:
[
]c1t0d0
Hereisthediskselected.Outputformat:
[Device_Name]
Continueoperation?
[y,n,q,?
](default:
y)
Youcanchoosetoaddthisdisktoanexistingdiskgrouporto
anewdiskgroup.Tocreateanewdiskgroup,selectadiskgroup
namethatdoesnotyetexist.
Diskc1t0d0containsoneofthesefilesystems:
//usr/var.
Asaresultitmustbeencapsulatedtotherootdgdiskgroup.
HitRETURNtocontinue.按回车继续
Whichdiskgroup[
](default:
rootdg)
Useadefaultdisknameforthedisk?
[y,n,q,?
](default:
y)
Theselecteddiskswillbeencapsulatedandaddedtotherootdg
diskgroupwithdefaultdisknames.
c1t0d0
Continuewithoperation?
[y,n,q,?
](default:
y)
Thefollowingdiskhasbeenselectedforencapsulation.
Outputformat:
[Device_Name]
c1t0d0
Continuewithencapsulation?
[y,n,q,?
](default:
y)
Thediskdevicec1t0d0willbeencapsulatedandaddedtothediskgroup
rootdgwiththedisknamedisk01.
Useadefaultprivateregionlengthforthisdisk?
[y,n,q,?
](default:
y)
Thec1t0d0diskhasbeenconfiguredforencapsulation.
Thefirststageofencapsulationhascompletedsuccessfully.You
shouldnowrebootyoursystemattheearliestpossibleopportunity.
Theencapsulationwillrequiretwoorthreerebootswhichwillhappen
automaticallyafterthenextreboot.Torebootexecutethecommand:
shutdown-g0-y-i6
Continuewithencapsulation?
[y,n,q,?
](default:
y)n是否继续封装
Thiswillupdatethe/etc/vfstabfilesothatvolumedevicesare
usedtomountthefilesystemsonthisdiskdevice.Youwillneed
toupdateanyotherreferencessuchasbackupscripts,databases,
ormanuallycreatedswapdevices.
Encapsulateotherdisks?
[y,n,q,?
](default:
n)是否继续封装其它磁盘
封装结束。
重启系统(reboot)。
●删除c1t1d0s0和c1t1d0s2
#vxdisklist
DEVICETYPEDISKGROUPSTATUS
c1t0d0s2sliceddisk01rootdgonline
c1t1d0s0simple--online
c1t1d0s2sliced--online
#vxdiskofflinec1t1d0s2
#vxdiskrmc1t1d0s2
#vxdiskofflinec1t1d0s0
#vxdiskrmc1t1d0s0
#vxdisklist
DEVICETYPEDISKGROUPSTATUS
c1t0d0s2sliceddisk01rootdgonline
#init6
运行#vxdisklist可以看到
#vxdisklist
DEVICETYPEDISKGROUPSTATUS
c1t0d0s2sliceddisk01rootdgonline
c1t1d0s2slicedonline
●根盘的镜像#vxdiskadm
先选1(第二块硬盘初始化)
Addorinitializedisks
Menu:
VolumeManager/Disk/AddDisks
Usethisoperationtoaddoneormorediskstoadiskgroup.Youcanaddtheselecteddiskstoanexistingdiskgrouportoanewdiskgroupthatwillbecreatedasapartoftheoperation.Theselecteddisksmay
alsobeaddedtoadiskgroupasspares.Ortheymaybeaddedas
nohotusestobeexcludedfromhot-relocationuse.Theselected
disksmayalsobeinitializedwithoutaddingthemtoadiskgroup
leavingthedisksavailableforuseasreplacementdisks.
Morethanonediskorpatternmaybeenteredattheprompt.Herearesomediskselectionexamples:
all:
alldisks
c3c4t2:
alldisksonbothcontroller3andcontroller4,target2
c3t4d2:
asingledisk(inthec#t#d#namingscheme)
xyz_0:
asingledisk(intheenclosurebasednamingscheme)
xyz_:
alldisksontheenclosurewhosenameisxyz
Selectdiskdevicestoadd:
[
]list
DEVICEDISKGROUPSTATUS
c1t0d0disk01rootdgonline
c1t1d0--error
fabric_0--error
fabric_1--error
Selectdiskdevicestoadd:
[
]c1t1d0
Hereisthediskselected.Outputformat:
[Device_Name]
c1t1d0
Continueoperation?
[y,n,q,?
](default:
y)
Youcanchoosetoaddthisdisktoanexistingdiskgroup,a
newdiskgroup,orleavethediskavailableforusebyfuture
addorreplacementoperations.Tocreateanewdiskgroup,
selectadiskgroupnamethatdoesnotyetexist.Toleave
thediskavailableforfutureuse,specifyadiskgroupname
of"none".
Whichdiskgroup[
](default:
rootdg)(加到rootdg组里面)
Useadefaultdisknameforthedisk?
[y,n,q,?
](default:
y)
Adddiskasasparediskforrootdg?
[y,n,q,?
](default:
n)
Excludediskfromhot-relocationuse?
[y,n,q,?
](default:
n)
Theselecteddiskswillbeaddedtothediskgrouprootdgwith
defaultdisknames.
c1t1d0
Continuewithoperation?
[y,n,q,?
](default:
y)
ThefollowingdiskdevicehasavalidVTOC,butdoesnotappeartohavebeeninitializedfortheVolumeManager.Ifthereisdataonthedisk
thatshouldNOTbedestroyedyoushouldencapsulatetheexistingdisk
partitionsasvolumesinsteadofaddingthediskasanewdisk.
Outputformat:
[Device_Name]
c1t1d0
Encapsulatethisdevice?
[y,n,q,?
](default:
y)n
c1t1d0
Insteadofencapsulating,initialize?
[y,n,q,?
](default:
n)y(初始化操作)
Initializingdevicec1t1d0.
Useadefaultprivateregionlengthforthisdisk?
[y,n,q,?
](default:
y)
Addingdiskdevicec1t1d0todiskgrouprootdgwithdisk
namedisk02.
Addorinitializeotherdisks?
[y,n,q,?
](default:
n)n
然后选6做Mirror
Mirrorvolumesonadisk
Menu:
VolumeManager/Disk/Mirror
Thisoperationcanbeusedtomirrorvolumesonadisk.These
volumescanbebemirroredontoanotherdiskorontoany
availablediskspace.Volumeswillnotbemirrorediftheyare
alreadymirrored.Also,volumesthatarecomprisedofmorethan
onesubdiskwillnotbemirrored.
Mirroringvolumesfromthebootdiskwillproduceadiskthat
canbeusedasanalternatebootdisk.
Atthepromptbelow,supplythenameofthediskcontainingthe
volumestobemirrored.
Enterdiskname[
]list
Diskgroup:
rootdg
DMNAMEDEVICETYPEPRIVLENPUBLENSTATE
dmdisk01c1t0d0s2sliced288871124291-
dmdisk02c1t1d0s2sliced552171118513-
Enterdiskname[
]disk01源盘
Youcanchoosetomirrorvolumesfromdiskdisk01ontoany
availablediskspace,oryoucanchoosetomirrorontoaspecific
disk.Tomirrortoaspecificdisk,selectthenameofthatdisk.
Tomirrortoanyavailablediskspace,select"any".
Enterdestinationdisk[
](default:
any)disk02目的盘
Therequestedoperationistomirrorallvolumesondiskdisk01
indiskgrouprootdgontoavailablediskspaceondiskdisk02.
NOTE:
Thisoperationcantakealongtimetocomplete.
Continuewithoperation?
[y,n,q,?
](default:
y)
Mirrorvolumedisk014vol...
Mirrorvolumedisk015vol...
Mirrorvolumerootvol...
Mirrorvolumeswapvol...
Mirrorvolumeusr...
Mirroringofdiskdisk01iscomplete.
Mirrorvolumesonanotherdisk?
[y,n,q,?
](default:
n)
镜像完成,退出vxdiskadm。
执行以下命令,可以看到以下显示
#vxdisklist
DEVICETYPEDISKGROUPSTATUS
c1t0d0s2sliceddisk01rootdgonline
c1t1d0s2sliceddisk02rootdgonline
fabric_0sliced--error
注:
也可以用vxinstall(/opt/VRTS/bin)来封装或初始化磁盘。
特别是可以用在封装根盘上。
一般选用custominstall的方式。
这个命令使用后需要重起系统。
●按要求在阵列上创建diskgroup
#vxdiskadm选择1
Selectanoperationtoperform:
1
Addorinitializedisks
Menu:
VolumeManager/Disk/AddDisks
Usethisoperationtoaddoneormorediskstoadiskgroup.Youcan
addtheselecteddiskstoanexistingdiskgrouportoanewdiskgroup
thatwillbecreatedasapartoftheoperation.Theselecteddisksmay
alsobeaddedtoadiskgroupasspares.Ortheymaybeaddedas
nohotusestobeexcludedfromhot-relocationuse.Theselected
disksmayalsobeinitializedwithoutaddingthemtoadiskgroup
leavingthedisksavailableforuseasreplacementdisks.
Morethanonediskorpatternmaybeenteredattheprompt.Hereare
somediskselectionexamples:
all:
alldisks
c3c4t2:
alldisksonbothcontroller3andcontroller4,target2
c3t4d2:
asingledisk(inthec#t#d#namingscheme)
xyz_0:
asingledisk(intheenclosurebasednamingscheme)
xyz_:
alldisksontheenclosurewhosenameisxyz
Selectdiskdevicestoadd:
[
]list
DEVICEDISKGROUPSTATUS
c1t0d0disk01rootdgonline
c1t1d0disk02rootdgonline
fabric_0--error
Selectdiskdevicestoadd:
[
]fabric_0(阵列)
Hereisthediskselected.Outputformat:
[Device_Name]
fabric_0
Continueoperation?
[y,n,q,?
](default:
y)
Youcanchoosetoaddthisdisktoanexistingdiskgroup,a
newdiskgroup,orleavethediskavailableforusebyfuture
addorreplacementoperations.Tocreat
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Veritasvolumemanager 安装 配置 说明