当前位置: 首页 > 工具软件 > Flashcache > 使用案例 >

exadata创建flashlog和flashcache

终弘厚
2023-12-01

exadata的flashcache和flashlog简介
https://blogs.oracle.com/exadatacn/exadata-smart-flash-cache

CellCLI> create flashlog all size=512m
Flash log slcm05celadm01_FLASHLOG successfully created

CellCLI> create flashcache all;
Flash cache slcm05celadm01_FLASHCACHE successfully created

在创建flashlog的时候如果不指定大小,则默认是创建512M的

CellCLI> create flashlog all
Flash log scaqai06celadm14_FLASHLOG successfully created

CellCLI> list flashlog detail
	 name:                   scaqai06celadm14_FLASHLOG
	 cellDisk:               FD_03_scaqai06celadm14,FD_00_scaqai06celadm14,FD_01_scaqai06celadm14,FD_02_scaqai06celadm14
	 creationTime:           2020-10-02T04:41:05-07:00
	 degradedCelldisks:
	 effectiveSize:          512M
	 efficiency:             100.0
	 id:                     d6f9b970-d6ce-4287-8b0c-285106abfecf
	 size:                   512M
	 status:                 normal

在创建flashcache时,如果不指定大小,默认是将剩余的空间都创建成flashcache

所以要先创建flashlog,然后再创建flashcache,这样会将所有的flash disk都创建成flashcache

CellCLI> create flashcache all
Flash cache scaqai06celadm14_FLASHCACHE successfully created

CellCLI> list flashcache detail
	 name:                   scaqai06celadm14_FLASHCACHE
	 cellDisk:               FD_01_scaqai06celadm14,FD_00_scaqai06celadm14,FD_02_scaqai06celadm14,FD_03_scaqai06celadm14
	 creationTime:           2020-10-02T04:42:58-07:00
	 degradedCelldisks:
	 effectiveCacheSize:     23.28692626953125T
	 id:                     a9c3b83f-983a-44ab-b71a-805bbb6d9092
	 size:                   23.28692626953125T
	 status:                 normal

可以创建大于512M的flashlog

CellCLI> create flashlog all size=1024M
Flash log scaqai06celadm14_FLASHLOG successfully created

CellCLI> list flashlog detail
	 name:                   scaqai06celadm14_FLASHLOG
	 cellDisk:               FD_01_scaqai06celadm14,FD_02_scaqai06celadm14,FD_03_scaqai06celadm14,FD_00_scaqai06celadm14
	 creationTime:           2020-10-02T04:45:57-07:00
	 degradedCelldisks:
	 effectiveSize:          1G
	 efficiency:             100.0
	 id:                     cc56735b-8c73-4c7e-9509-777abb7d1afe
	 size:                   1G
	 status:                 normal

创建griddisk

CellCLI> create griddisk all prefix=ocr ,size=5g
Cell disks were skipped because they had no freespace for grid disks: FD_00_scaqai06celadm14, FD_01_scaqai06celadm14, FD_02_scaqai06celadm14, FD_03_scaqai06celadm14.
GridDisk ocr_CD_00_scaqai06celadm14 successfully created
GridDisk ocr_CD_01_scaqai06celadm14 successfully created
GridDisk ocr_CD_02_scaqai06celadm14 successfully created
GridDisk ocr_CD_03_scaqai06celadm14 successfully created
GridDisk ocr_CD_04_scaqai06celadm14 successfully created
GridDisk ocr_CD_05_scaqai06celadm14 successfully created
GridDisk ocr_CD_06_scaqai06celadm14 successfully created
GridDisk ocr_CD_07_scaqai06celadm14 successfully created
GridDisk ocr_CD_08_scaqai06celadm14 successfully created
GridDisk ocr_CD_09_scaqai06celadm14 successfully created
GridDisk ocr_CD_10_scaqai06celadm14 successfully created
GridDisk ocr_CD_11_scaqai06celadm14 successfully created

查看flashcachemode

CellCLI> list cell attributes flashcachemode
	 WriteBack
 类似资料: