分类:
2007-07-19 16:24:09
l 准备工作:
确定新lv所在的vg (vg31)
检查目标vg当前的硬盘空间使用情况 (剩余空间足够该操作)
确定新文件系统的信息
lv属性 -n lvdt25 -L 20480 -r N
fs属性 -F vxfs -b 8192 -o largefiles
mount point名 /oracle/EOP/data25
数据所有者 oraeop:dba
l 前期工作
新建文件系统,mount点,并更改其属性
lvcreate –L 20480 –n lvdt25 vg31
lvchange -r N /dev/vg31/lvdt25
newfs -F vxfs -b 8192 -o largefiles /dev/vg31/rlvdt25
mkdir /oracle/EOP/data25
chown –R oraeop:dba /oracle/EOP/data25
将新添加的lv信息写入新建的/etc/cmcluster/eofora/eofora.cntl.20070724中
cp /etc/cmcluster/eofora/eofora.cntl /etc/cmcluster/eofora/eofora.cntl.20070724
vi /etc/cmcluster/eofora/eofora.cntl.20070724
将/etc/cmcluster/eofora/eofora.cntl.20070724拷贝到bjeopap2上
rcp /etc/cmcluster/eofora/eofora.cntl.20070724 bjeopap2:/etc/cmcluster/eofora/eofora.cntl.20070724
将vg31生成map文件,并传到bjeopap2上
vgexport -s -p -m /tmp/vg31.map.20070724 /dev/vg31
rcp /tmp/vg31.map.20070724 bjeopap2:/tmp/vg31.map.20070724
l 待审批批准后再作的步骤:
Bjeopd01上的操作
将文件系统挂载到mount点
mount /dev/vg31/lvdt25 /oracle/EOP/data25
将eofora.cntl文件备份,并将含有新lv信息的eofora.cntl.20070724覆盖至eofora.cntl,使新lv在MC中生效.
cp /etc/cmcluster/eofora/eofora.cntl /etc/cmcluster/eofora/eofora.cntl.20070724.bak
mv /etc/cmcluster/eofora/eofora.cntl.20070724 /etc/cmcluster/eofora/eofora.cntl
bjeopap2上的操作
将vg31去激活
vgexport /dev/vg31
新建vg31
mkdir /dev/vg31
mknod /dev/vg31/group c 64 0x040000
将bjeopd01传来的map文件import到vg31中
vgimport -s -m /tmp/vg31.map.20070724 /dev/vg31
将现有的eofora.cntl文件备份,并将含有新lv信息的eofora.cntl.20070724文件覆盖到eofora.cntl
cp /etc/cmcluster/eofora/eofora.cntl /etc/cmcluster/eofora/eofora.cntl.20070724.bak
mv /etc/cmcluster/eofora/eofora.cntl.20070724 /etc/cmcluster/eofora/eofora.cntl