You use asmcmd to query disk information in ASM. I usually use lsdg. You have to set the environment for ASM to be able to use this command.
I do not have ASM setup right now.
Does it mean I can not see the physical disk mounted? using df -h?
ASM is just a storage and there is no certification separately for EBS. The certification of EBS will be will be with a database version. So for example, if you are using 220.127.116.11 with EBS 12.2 which is certified DB, ASM is also obviously certified.
You cannot use OS commands to access ASM storage. You need to use asmcmd commands.
This will show the Disk Groups of ASM along with the space.
Did you already install the Grid Infrasturcture?
Thanks Vishnu and Michael,
I just want to clarify How to get the total disk size the server with ASM have? sorry for being redundant
So if I run "df -h", I can not get the actual disk total of mounted disk? Is it because ASM disks are not mounted or it is hidden?
If you login as ASM OS user, source the ASM environment and run asmcmd, you can run lsdg, and see total MB and free MB of all ASM disk groups.
I got a problem.
My boss ask me to get the total size of the disk on the EBS database server for our prospect client.
This project for server migration from on-prem to Cloud.
I just told the client on remote to run "df -h" and give us the total.
The have RAC on EBS, so his means the shared RAC asm disks were not counted?
Correct. They need to execute lsdg from asmcmd to show ASM disk group sizes.
Thanks Michael, Vishnu and ALL!
This is for client assessment only so I assume they have grid infra?