一、挂载FLASH_DISK磁盘组
SQL> alter diskgroup FLASH_DISK mount;
Diskgroup altered.
SQL> select name,state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
FLASH_DISK MOUNTED
ARCH_DISK MOUNTED
DATA_DISK MOUNTED
二、查看每个磁盘组的可用大小
SQL> select name,allocation_unit_size,total_mb from v$asm_diskgroup;
NAME ALLOCATION_UNIT_SIZE TOTAL_MB
------------------ -------------------------------- ----------
FLASH_DISK 1048576 3815
ARCH_DISK 1048576 3815
DATA_DISK 1048576 954
三、查看磁盘名与裸设备对应关系
SQL> select name,path from v$asm_disk_stat;
NAME PATH
------------------- --------------------------------------
/dev/oracleasm/disks/ASMDISK3
DATADISK2 /dev/oracleasm/disks/ASMDISK5
DATADISK1 /dev/oracleasm/disks/ASMDISK4
ARCHDISK1 /dev/oracleasm/disks/ASMDISK2
FLASHDISK /dev/oracleasm/disks/ASMDISK1
四、向磁盘组中增加一个磁盘
SQL> ALTER DISKGROUP ARCH_DISK ADD DISK '/dev/oracleasm/disks/ASMDISK3' name ARCHDISK2;
Diskgroup altered.
查看每个磁盘组的可用大小
SQL> select name,allocation_unit_size,total_mb from v$asm_diskgroup;
NAME ALLOCATION_UNIT_SIZE TOTAL_MB
------------------- ------------------------------- ----------
FLASH_DISK 1048576 3815
ARCH_DISK 1048576 4292
DATA_DISK 1048576 954
SQL> select name,path from v$asm_disk_stat;
NAME PATH
------------------- ----------------------------------------
DATADISK2 /dev/oracleasm/disks/ASMDISK5
DATADISK1 /dev/oracleasm/disks/ASMDISK4
ARCHDISK2 /dev/oracleasm/disks/ASMDISK3
ARCHDISK1 /dev/oracleasm/disks/ASMDISK2
FLASHDISK /dev/oracleasm/disks/ASMDISK1
可以看出,磁盘组ARCH_DISK的大小发生变化了,表明添加磁盘成功。
阅读(2706) | 评论(0) | 转发(0) |