solaris vm create new lv
时间:2011-05-19 来源:sundayhe
重启vxconfig程序
#vxdctl enable
清除数据,此时状态为error
#vxdiskunsetup -C c1t1d0
初始化硬盘,此时状态为online
#vxdisksetup -if c1t1d0
创建dg
#vxdg init datadg datadg1=c1tc1d0
把c1t2d0硬盘加入datadg
#vxdg -g datadg adddisk datadg2=c1t2d0
创建lv(直接镜像,前面两个与后面两个,如果是六个盘即是前面三个与后三个相互镜像)
#vxassist -g oracledg -U gen make system 2048m layout=stripe-mirror,log oracledg1 oracledg2 oracledg3 oracledg4&
创建lv,分别进行镜像。
vxassist -g rootdg -U fsgen make lv_optoracle 16g layout=nostripe,nolog c1t2d0
vxassist -g rootdg -U fsgen make lv_optmmsc 16g layout=nostripe,nolog c1t2d0
vxassist -g rootdg mirror lv_optoracle layout=nostripe,nolog c1t3d0&
vxassist -g rootdg mirror lv_optmmsc layout=nostripe,nolog c1t3d0&
在sun cluster双机中同步卷
scconf -c -D name=db_dg,sync