快速业务通道

Linux AS4U5 lvm raw oracle10

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-02
83 Linux Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System
/dev/sdb1 1 1305 10482381 83 Linux
[root@localhost ~]#
Empire CMS,phome.net

5、lvm使用
建立pv
[root@localhost ~]# pvcreate /dev/sdb1 -ff
/dev/cdrom: open failed: Read-only file system
Really INITIALIZE physical volume "/dev/sdb1" of volume group "oravg" [y/n]? y
WARNING: Forcing physical volume creation on /dev/sdb1 of volume group "oravg"
Physical volume "/dev/sdb1" successfully created
[root@localhost ~]# pvdisplay
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 10.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID OO5Na5-7nzB-O4ze-JaId-GQr2-GEMb-zqHK5b
6.建立vg oradata
[root@localhost ~]# vgcreate oradata /dev/sdb1
Volume group "oradata" successfully created
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name oradata
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 10.00 GB
PE Size 4.00 MB
Total PE 2559
Alloc PE / Size 0 / 0
Free PE / Size 2559 / 10.00 GB
VG UUID 1VkwE5-N1Kz-2dNj-X0s3-B1ex-AsXA-VGBSM7
[root@localhost ~]#
7.建立lv
[root@localhost /]# lvcreate -L 500M -n system01.dbf oradata
[root@localhost /]# lvcreate -L 500M -n sysaux01.dbf oradata
[root@localhost /]# lvcreate -L 500M -n undotbs01.dbf oradata
[root@localhost /]# lvcreate -L 500M -n redo01.dbf oradata
[root@localhost /]# lvcreate -L 500M -n redo02.dbf oradata
Empire CMS,phome.net

[root@localhost /]# lvcreate -L 500M -n control01.ctl oradata
[root@localhost /]# lvcreate -L 500M -n control02.ctl oradata
[root@localhost /]# lvcreate -L 500M -n temp01.dbf oradata
[root@localhost /]# lvcreate -L 500M -n spfileora10.ora oradata
[root@localhost /]# lvcreate -L 500M -n orapwdora10 oradata
[root@localhost /]# lvcreate -L 2048M -n users01.dbf oradata
知识点:
删除lv命令
lvremove /dev/oradata/system01.dbf
删除vg时要,先删除上面的lv
vgremove
8.将lv关联成raw vi /etc/sysconfig/rawdevices 加入以下内容:
/dev/raw/raw1 /dev/oradata/system01.dbf
/dev/raw/raw2 /dev/oradata/sysaux01.dbf
/dev/raw/raw3 /dev/oradata/undotbs01.dbf
/dev/raw/raw4 /dev/oradata/redo01.dbf
/dev/raw/raw5 /dev/oradata/redo02.dbf
/dev/raw/raw6 /dev/oradata/control01.ctl
/dev/raw/raw7 /dev/oradata/control02.ctl
/dev/raw/raw8 /dev/oradata/temp01.dbf
/dev/raw/raw9 /dev/oradata/spfileora10.ora
/dev/raw/raw10 /dev/oradata/orapwdora10
/dev/raw/raw11 /dev/oradata/users01.dbf 9.使用raw设

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多
上一篇: linux ftp下一篇: linux的运行级别

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号