Operating System - HP-UX
1822100 Members
3691 Online
109640 Solutions
New Discussion юеВ

Re: doubt in after creating ASM disks in oracle 10g

 
Nirmalkumar
Frequent Advisor

doubt in after creating ASM disks in oracle 10g

Hi,

i have created volumes for ASM disks in oracle 10g using the following command

/etc/init.d/oracleasm createdisk vol1 /dev/sdf1

MY Question:
After creating a volume for ASM disk how list out disk information using os commands.

kindly help me out.

Thanks,
Nirmal.



3 REPLIES 3
David Child_1
Honored Contributor

Re: doubt in after creating ASM disks in oracle 10g

Hello Nirmal,

Is this a Linux server (it looks like it as you mention /dev/sdf1)?

Do you have the ASMLib stuff installed (it looks like you might)?

If so, all you need to run is;

service oracleasm listdisks (to see all disks)
service oracleasm querydisk /dev/sdf1 (to see header information on that specific disk)

Note: instead of using the 'service oracleasm' command you can use '/etc/init.d/oracleasm'.

Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
Hein van den Heuvel
Honored Contributor

Re: doubt in after creating ASM disks in oracle 10g

>> how list out disk information using os commands.

What kind of information?

Once you give a disk to Oracle ASM it is owned by, and managed by, Oracle.

Any information, other then its size, can only come from Oracle after that point.
For example /etc/init.d/oracleasm scandisks

And with everytign operational use SQLplsu commands like:
SQL> show parameter diskgroup
SQL> select name,total_mb from v$asm_diskgroup;
:


The createdisk command writes the tag "ORCLDISK" to the raw devive. I suppose you can 'see' that with dd and/or od, but why bother?

A google for "oracleasm createdisk" will of course reveal several reference. One I though was interesting is:

http://www.oracle.com/technology/tech/linux/asmlib/raw_migration.html

Cheers,
Hein.
Nirmalkumar
Frequent Advisor

Re: doubt in after creating ASM disks in oracle 10g

Hi all,

Thanks for your reply

Thanks,
Nirmal.