发现19c和11g有些asm命令参数不完全一致,这里记录下,持续更新
###kfod命令
查看asm磁盘 #kfod disks=all
查看asm磁盘组 #kfod op=groups
特定diskgroup情况 #kfod status=true g=data
查看磁盘与磁盘组的对应关系# kfod disks=all group=diskgroup ds=true
+ASM1:/home/grid@db1>kfod disks=all
--------------------------------------------------------------------------------
Disk Size Path User Group
================================================================================
1: 1048576 MB /dev/mapper/asm_arc1 grid asmadmin
2: 1048576 MB /dev/mapper/asm_arc2 grid asmadmin
3: 81920 MB /dev/mapper/asm_crs1 grid asmadmin
4: 81920 MB /dev/mapper/asm_crs2 grid asmadmin
5: 81920 MB /dev/mapper/asm_crs3 grid asmadmin
6: 81920 MB /dev/mapper/asm_crs4 grid asmadmin
7: 81920 MB /dev/mapper/asm_crs5 grid asmadmin
8: 1048576 MB /dev/mapper/asm_data1 grid asmadmin
9: 1048576 MB /dev/mapper/asm_data2 grid asmadmin
10: 1048576 MB /dev/mapper/asm_data3 grid asmadmin
11: 1048576 MB /dev/mapper/asm_data4 grid asmadmin
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME
================================================================================
+ASM1:/home/grid@db1> kfod disks=all status=true
--------------------------------------------------------------------------------
Disk Size Header Path User Group
================================================================================
1: 1048576 MB MEMBER /dev/mapper/asm_arc1 grid asmadmin
2: 1048576 MB MEMBER /dev/mapper/asm_arc2 grid asmadmin
3: 81920 MB MEMBER /dev/mapper/asm_crs1 grid asmadmin
4: 81920 MB MEMBER /dev/mapper/asm_crs2 grid asmadmin
5: 81920 MB MEMBER /dev/mapper/asm_crs3 grid asmadmin
6: 81920 MB MEMBER /dev/mapper/asm_crs4 grid asmadmin
7: 81920 MB MEMBER /dev/mapper/asm_crs5 grid asmadmin
8: 1048576 MB MEMBER /dev/mapper/asm_data1 grid asmadmin
9: 1048576 MB MEMBER /dev/mapper/asm_data2 grid asmadmin
10: 1048576 MB MEMBER /dev/mapper/asm_data3 grid asmadmin
11: 1048576 MB MEMBER /dev/mapper/asm_data4 grid asmadmin
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME
================================================================================
+ASM1:/home/grid@db1>kfod status=true g=data
--------------------------------------------------------------------------------
Disk Size Path
================================================================================
0 1048576 MB /dev/mapper/asm_data1
1 1048576 MB /dev/mapper/asm_data2
2 1048576 MB /dev/mapper/asm_data3
3 1048576 MB /dev/mapper/asm_data4
0 1048576 MB /dev/mapper/asm_data1
1 1048576 MB /dev/mapper/asm_data2
2 1048576 MB /dev/mapper/asm_data3
3 1048576 MB /dev/mapper/asm_data4
+ASM1:/home/grid@db1>kfod op=groups
--------------------------------------------------------------------------------
Group Size Free Redundancy Name
================================================================================
1: 4194304 MB 4001132 MB EXTERN DATA
3: 409600 MB 57114 MB HIGH CRS
5: 2097152 MB 1931324 MB EXTERN FRA
+ASM1:/home/grid@db1>kfod disks=all group=diskgroup ds=true
--------------------------------------------------------------------------------
Disk Size Path Disk Group User Group
================================================================================
1: 1048576 MB /dev/mapper/asm_arc1 FRA grid asmadmin
2: 1048576 MB /dev/mapper/asm_arc2 FRA grid asmadmin
3: 81920 MB /dev/mapper/asm_crs1 CRS grid asmadmin
4: 81920 MB /dev/mapper/asm_crs2 CRS grid asmadmin
5: 81920 MB /dev/mapper/asm_crs3 CRS grid asmadmin
6: 81920 MB /dev/mapper/asm_crs4 CRS grid asmadmin
7: 81920 MB /dev/mapper/asm_crs5 CRS grid asmadmin
8: 1048576 MB /dev/mapper/asm_data1 DATA grid asmadmin
9: 1048576 MB /dev/mapper/asm_data2 DATA grid asmadmin
10: 1048576 MB /dev/mapper/asm_data3 DATA grid asmadmin
11: 1048576 MB /dev/mapper/asm_data4 DATA grid asmadmin
KFOD returned no data