如何在windows平台添加新的OCFS磁盘

今天一windows用户RAC环境因为用ASM一直有些问题,日常维护也比较麻烦,用户决定更换成OCFS文件系统存放数据文件,虽然迁移过程操作很简单,但是OCFS之前并没有做过,查了下资料,把存储转换的操作过程记录下来,资料为How to Add Another OCFS Drive for RAC on Windows (文档 ID 229060.1)

   这里主要用到ocfsformat这个工具,工具所在位置及说明介绍如下:

II. Formatting with OCFSFORMAT Utility 

The ocfsformat.exe utility is found in the following directories, depending on the version of clusterware:

For Oracle9i (9.2.x)  the ocfsformat.exe is found in:  C:\Windows\system32\osd9i\cfs
For Oracle10g and Oracle 11g (10.1 and above) the ocfsformat.exe is found in:   CRS_HOME\cfs
where CRS_HOME is the directory where the Oracle Clusterware is installed.


Syntax for the OCFSFORMAT Utility can be read by entering OCFSFORMAT at the command line with no switches:

C:\oracle\product\10.2.0\crs\cfs>ocfsformat
Usage: OcfsFormat /m <linkName> /c <ClusterSize in KB> /v <Volume Label> /f /a
    /m linkName where linkName is the mount point for this file system
       with NT 4.0 only drive letters are used
    /c Size of Cluster in KB
    /v VolumeLabel
    /f Force format a volume
    /a This flag if specified will force OcfsFormat to use the clustersize
       specified with /c option
      方法很简单,先把磁盘设置成裸设备,然后分配一个盘符,如分配为E盘符,然后执行如下命令:

     ocfsformat /m E: /c 1024 /v DATA /f /d /a

     OK,那个盘符就格式化为OCFS格式,接下来就可以把数据文件存放在该目录中

   

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值