xyz's profile逍遥者寒号的小屋BlogLists Tools Help

Blog


    February, 2006

    OCFS详解

    OCFS目前不支持2.6内核,即不能再AS4上使用
    (OCFS2已经发布)
    当由 Oracle 使用时,OCFS 的原始性能类似于执行原始输入/输出的性能。代码本身几乎相同。
    1.安装rpm包
    ocfs-support-1.0.10-1.i386.rpm
    ocfs-2.4.9-e-1.0.13-1.i686.rpm
    ocfs-tools-1.0.10-1.i386.rpm
    ocfs-2.4.9-e-smp-1.0.13-1.i686.rpm(smp核)
    2.分区
    3.将分区格式化ocfs格式
     图形界面下执行ocfstool
     或执行 mkfs.ocfs -F -b 128 -L /var/opt/oracle/oradata/orcl -m /var/opt/oracle/oradata/orcl \-u `id -u oracle` -g `id -g oracle` -p 0775 /dev/sda8

    ocfs_uid_gen ocfs load_ocfs

    4.创建加载点
    5.加载
     使用ocfstools
     或mount -t ocfs /dev/sda9 /ocfs
     
    ocfs load_ocfs
    OCFS 只支持以下文件类型:
    Oracle 数据库文件
    联机重做日志文件
    归档重做日志文件
    控制文件
    服务器参数文件 (SPFILE)
    Oracle 集群注册表 (OCR) 文件
    CRS 表决磁盘。 (仲裁盘)

    ocfs.conf的编写:
    更换网卡时
    ocfs.conf内容如下:
            node_name = ora1
            ip_address = 192.168.65.21
            ip_port = 7000
            comm_voting = 1
    然后运行 ocfs_uid_gen -c
    生成guid

    fsck.ocfs 检查ocfs设备
    load_ocfs 载入ocfs模块
    mkfs.ocfs 格式化ocfs分区
    ocfs_uid_gen生成gid(在ocfs.conf中)
    resizeofs 重新调整ocfs分区大小
    tuneocfs 修改ocfs节点 -l 查看 -N 删除(OCFS分区保存有节点IP??第一次mount后写入??)
    ocfstool ocfs图形工具
    ocfsextfinder ?
    debugocfs ?
     
     
    cp、dd 和类似的程序 — 选择一个选项,o_direct=yes,这使得该工具在打开文件时也使用 o_direct,加上此参数时,将不允许频繁访问此文件
    dd o_direct=yes if=/ocfs/foo of=/backup/foo.bak bs=1M (bs在512K至1M间)
     
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://xyzhh.spaces.live.com/blog/cns!B4A8BE2681ED7440!152.trak
    Weblogs that reference this entry
    • None