asm磁碟normal模式

xychong123發表於2017-05-24


NORMAL模式下磁碟組,可以設定3個失敗磁碟組。

CREATE DISKGROUP data01 NORMAL REDUNDANCY
  FAILGROUP controller1 DISK
    '/dev/oracleasm/disks/ASMDISK1' NAME diska1,
 '/dev/oracleasm/disks/ASMDISK2' NAME diska2
  FAILGROUP controller2 DISK
    '/dev/oracleasm/disks/ASMDISK3' NAME diska3,
 '/dev/oracleasm/disks/ASMDISK4' NAME diska4
FAILGROUP controller3 DISK
   '/dev/oracleasm/disks/ASMDISK5' NAME diska5,
 '/dev/oracleasm/disks/ASMDISK6' NAME diska6
  ATTRIBUTE 'au_size'='4M'



DG_NAME DG_STATE   TYPE       DSK_NO PATH  MOUNT_S FAILGROUP       STATE
--------------- ---------- ------ ---------- ------------------------------------------------------------ ------- -------------------- --------
DATA MOUNTED    NORMAL   0 /dev/oracleasm/disks/ASMDISK7  CACHED  DATA_0000       NORMAL
DATA MOUNTED    NORMAL   1 /dev/oracleasm/disks/ASMDISK8  CACHED  DATA_0001       NORMAL
DATA01 MOUNTED    NORMAL   0 /dev/oracleasm/disks/ASMDISK1  CACHED  CONTROLLER1       NORMAL
DATA01 MOUNTED    NORMAL   1 /dev/oracleasm/disks/ASMDISK2  CACHED  CONTROLLER1       NORMAL
DATA01 MOUNTED    NORMAL   2 /dev/oracleasm/disks/ASMDISK3  CACHED  CONTROLLER2       NORMAL
DATA01 MOUNTED    NORMAL   3 /dev/oracleasm/disks/ASMDISK4  CACHED  CONTROLLER2       NORMAL
DATA01 MOUNTED    NORMAL   4 /dev/oracleasm/disks/ASMDISK5  CACHED  CONTROLLER3       NORMAL
DATA01 MOUNTED    NORMAL   5 /dev/oracleasm/disks/ASMDISK6  CACHED  CONTROLLER3       NORMAL




可以使用容量:

       333 NAME    TOTAL_MB FREE_MB      %USED
---------- ------------------------------ ---------- ---------- ----------
       333 DATA 200     94 53
       333 DATA01 600    360 40


當不指定失敗組 使用預設方式建立: 每個磁碟預設是一個FAILGROUP

CREATE DISKGROUP data01 NORMAL REDUNDANCY disk
'/dev/oracleasm/disks/ASMDISK1' NAME diska1,
 '/dev/oracleasm/disks/ASMDISK2' NAME diska2,
    '/dev/oracleasm/disks/ASMDISK3' NAME diska3,
 '/dev/oracleasm/disks/ASMDISK4' NAME diska4,
   '/dev/oracleasm/disks/ASMDISK5' NAME diska5,
 '/dev/oracleasm/disks/ASMDISK6' NAME diska6
  ATTRIBUTE 'au_size'='4M'



DG_NAME DG_STATE   TYPE       DSK_NO PATH  MOUNT_S FAILGROUP       STATE
--------------- ---------- ------ ---------- ------------------------------------------------------------ ------- -------------------- --------
DATA01 MOUNTED    NORMAL   0 /dev/oracleasm/disks/ASMDISK1  CACHED  DISKA1       NORMAL
DATA01 MOUNTED    NORMAL   1 /dev/oracleasm/disks/ASMDISK2  CACHED  DISKA2       NORMAL
DATA01 MOUNTED    NORMAL   2 /dev/oracleasm/disks/ASMDISK3  CACHED  DISKA3       NORMAL
DATA01 MOUNTED    NORMAL   3 /dev/oracleasm/disks/ASMDISK4  CACHED  DISKA4       NORMAL
DATA01 MOUNTED    NORMAL   4 /dev/oracleasm/disks/ASMDISK5  CACHED  DISKA5       NORMAL
DATA01 MOUNTED    NORMAL   5 /dev/oracleasm/disks/ASMDISK6  CACHED  DISKA6       NORMAL



       333 NAME    TOTAL_MB FREE_MB      %USED
---------- ------------------------------ ---------- ---------- ----------
       333 DATA01 600    360 40




圖形方式建立 normal 磁碟中:

DG_NAME DG_STATE   TYPE       DSK_NO PATH  MOUNT_S FAILGROUP       STATE
--------------- ---------- ------ ---------- ------------------------------------------------------------ ------- -------------------- --------
DATA MOUNTED    NORMAL   0 /dev/oracleasm/disks/ASMDISK1  CACHED  DATA_0000       NORMAL
DATA MOUNTED    NORMAL   1 /dev/oracleasm/disks/ASMDISK2  CACHED  DATA_0001       NORMAL
DATA MOUNTED    NORMAL   2 /dev/oracleasm/disks/ASMDISK3  CACHED  DATA_0002       NORMAL
DATA MOUNTED    NORMAL   3 /dev/oracleasm/disks/ASMDISK4  CACHED  DATA_0003       NORMAL
DATA MOUNTED    NORMAL   4 /dev/oracleasm/disks/ASMDISK5  CACHED  DATA_0004       NORMAL
DATA MOUNTED    NORMAL   5 /dev/oracleasm/disks/ASMDISK6  CACHED  DATA_0005       NORMAL



       333 NAME    TOTAL_MB FREE_MB      %USED
---------- ------------------------------ ---------- ---------- ----------
       333 DATA 600    435       27.5


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2139823/,如需轉載,請註明出處,否則將追究法律責任。

相關文章