How to identify ASM DiskGroup attached to which Disks ???

Hi Guys,
In 11gR2 RAC, How to identify which ASM Diskgroup is attached to which Disks...( OS is RHEL 5.4).
We could list ASM Diskgroups by,
*#oracleasm listdisks* but this command doesn't show the disks assigned to ASM DiskGroup.
Even for checking location of OCR and Voting Disks only show Diskgroup name and not the actual disks.
$ocrcheck
$crsctl query css votedisk
( like in 10gR2 RAC, We do entry in /etc/rules.d/udev/60-raw-rules file for raw mapping of OCR, Voting Disk and Other ASM Diskgroup)
Plz help me, As one of the client place, I could see so many LUNs assigned to the Server and not getting exact idea which Disks have been used for OCR, Voting Disk and DATA Diskgroup.
Thanks,
Manish

Well for this you can use oracleasm querydisk.Using this you can identify which device as marked for asm or not. for example you can see this below example.
[oracle@localhost init.d]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jun 3 11:52:12 2010
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select path from v$asm_disk;
PATH
/dev/oracleasm/disks/VOL2
/dev/oracleasm/disks/VOL1
SQL> exit;
[oracle@localhost init.d]$ su
Password:
[root@localhost init.d]# /sbin/fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1305    10482381   83  Linux
/dev/sda2            1306        9401    65031120   83  Linux
/dev/sda3            9402        9662     2096482+  82  Linux swap / Solaris
/dev/sda4            9663        9726      514080    5  Extended
/dev/sda5            9663        9726      514048+  83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        4859    39029886   83  Linux
/dev/sdb2            4860        9729    39118275   83  Linux
[root@localhost init.d]# ./oracleasm querydisk /dev/sdb1
Device "/dev/sdb1" is marked an ASM disk with the label "VOL1"
[root@localhost init.d]# ./oracleasm querydisk /dev/sdb2
Device "/dev/sdb2" is marked an ASM disk with the label "VOL2"
[root@localhost init.d]# ./oracleasm querydisk /dev/sda1
Device "/dev/sda1" is not marked as an ASM disk
[root@localhost init.d]#Also in windows :
C:\Documents and Settings\comp>asmtool -list
NTFS                             \Device\Harddisk0\Partition1           140655M
ORCLDISKDATA1                    \Device\Harddisk0\Partition2             4102M
ORCLDISKDATA2                    \Device\Harddisk0\Partition3             4102M
NTFS                             \Device\Harddisk0\Partition4           152617M
C:\Documents and Settings\comp>answered by chinar.
refer:-how to identify which rawdevice Disk Is named as VOL1 IN ASM from os level
Happy New Year.
regards,

Similar Messages

  • How to rename ASM diskgroups after having cloned the original disks to the same server. ASMlib is used

    Linux RHE 6
    Oracle Grid single instance (Oracle Restart) 11.2.0.4 installed
    Oracle RDBMS 11.2.0.4 installed
    One 11.2.0.4 database single instance running
    Our ASM have DATA, REDO, FRA diskgroup mounted
    We need to do a storage snapshot for creating on THE SAME server a copy of the current ASM diskgroups DATA, REDO, FRA. Then we would rename the cloned diskgroups using renamedg command.
    We have done this operation several times when ASMlib is not used. The command used when ASMlib is not used is for example:
    renamedg dgname=FRA newdgname=FRA2 verbose=true phase=both asm_diskstring='/dev/oracle/fra*'
    With ASMlib in use I am not sure about the steps to follow
    First I am not sure about what to provide to the asm_diskstring parameter of the renamedg command. I need to provide an asm_diskstring which identifies the path pointing to the disks belonging to the cloned diskgroup (I do not want to rename the original diskgroup). Though in an ASM instance using ASMlib the parameter asm_diskstring is is ‘ORCL:*’.
    Second, I suppose after the diskgroup rename ASMlib would return an error because it would find duplicated disks.
    Could you please advise ?
    Thanks in advance
    Massi

    Hi,
    As you have OS level clone ,you have same ASMlib label.
    ASMlib always mount unique ASMLib label only.
    +you need to identify those newly cloned device.
    + Then rename those ASMLib label using force-renamedisk after taking 1Mb disk backup using dd read on one node .
    + Then run scandisks on other nodes .
    + Then validate newly labelled device is mounted or not on all nodes .
    $ ls -ltr /dev/oracleasm/disks/*
    + Then run renamedg command with asm_diskstring of /dev/oracleasm/disks/*
    Regards,
    Aritra

  • How to get asm diskgroups read/writes per hour or day

    Hi ,
    we have 2 production databases sitting on same server (2 node RAC) and using the same ASM disk groups.
    we have been having issues since past 2 days where we see lot of I/O from one of the dabase .
    I was asked to provide the disk I/O stats from past 1 week.
    wondering how can I get this information either from v$asm_disk_iostat (which gives overall usage but no timestamp) or from grid control (like host disk I/O usage )

    Try this :
    ASMCMD> iostat -t -G diskgroup 5
    In 11G release 2 ASMCMD has a iostat feature that allows you to list the reads and writes per disk (either as I/O operation or bytes)
    iostat [-et][--io] [--suppressheader] [--region] [-G diskgroup] [interval]-e display error statistics (write/read)
    -t display time statistics giving the total I/O time in hundredths of a second (requires TIMED_STATISTICS to be true)
    -G diskgroup
    interval – repeat the command every X seconds

  • Transfer: how do identify from what stock to which stock is the movement

    Hey Gurus can someone help me with this:
    Trying to make a report which has to identify each and every movement that affects the transfer stock at storage location and at plant level. My question is I know that movements 305 affects transfer stock and even when the movement is in "+" direction in unrestricted use I also have to take it in "-" direction for transfer stock in the same warehouse. How in the system is that represented, is there any indicator within the material document that tells me you're taking this quantity out of transfer stock and putting it into unrestricted use? Or should I hardcode by movement type?
    Something similar  for movement 303 I know I take it out of the stock at a certain plant and it is directed to another plant but isn't in unrestricted use yet. How do I make such distinction from other movemets that actually affect unrestricted use? Only by movement type or is there any indicator that says that it goes into transfer stock and not into unrestricted?
    Thx for your help.-

    Hi,
    I'm afraid you need to use movement type to differentiate the movements in your report.
    You probably already know that 303 is the one with all the financial impact.  From stock account point of view, 303 withdraws from sending plant and receipts into receiving plant as transfer stock.  305 is only statistical posting in the receiving plant to move from transfer stock to unrestricted, no accounting impact.
    Phyllis.

  • How to add ASm diskgroup in ASM oracle 10.1.0.4.0

    Hi experts,
    We are using IBM AIX 5.3L OS on IBM Servers.
    Oracle Database EE 10G 10.1.0.4.0,
    RAC and ASM
    Presently There are 3 diskgroup (Filesystem) in my DB suppose
    +ABC
    +DEF
    +GHI
    Now I want to add a new Diskgroup (File system)
    Say
    +XYZ
    and I want to tranfer some file from OS to ASM so that these files are stored in
    +XYZ
    I m new to ASM plz suggest me in detail.
    Thanks and Regards,

    It depends on the type of file you are talking about, if an spfile, you can use a SQL command to add it in if the database already exists:
    SQL> create spfile='+XYZ/dbname/spfileDBNAME.ora' from pfile='/home/oracle/initdbname.ora'
    For other file types like datafiles, controlfiles, etc. you should use RMAN to move them from a "real" datafile into ASM:
    RMAN> restore controlfile from '/oracle/product/admin/${db}/control01.ctl';
    - take tablespace test offline first then...
    RMAN> backup as copy tablespace 'TEST' format '+XYZ';
    RMAN> switch tablespace 'TEST' to copy;
    - then set the tablespace online
    If non-Oracle files, it is possible to put them in/out ASM using XDB and FTP, but why?
    Cheers!
    Jay Caviness
    http://www.grumpy-dba.com

  • How to identify the meta chain in which the Process Chain is used

    Hi,
       I had a Process Chain which is designed to Load Transaction Data.
       This process chain is scheduled to start as a part of Meta Chain...
       How can i locate that META chain in which this Process Chain is used
    Thanks

    Hi
    There is no where used list for Process chain, but you can check it in table RSPCCHAIN.
    Give details as below:
    Version is 'A'.
    Process Type is 'CHAIN'.
    Process Variants = 'enter technical name of the local chain'.
    now hit execute button.
    You can see the list of process chains under Chain  ID column.
    Ravi

  • How to identify the KJS process in which the startup class is running

    The startup class will be executed in every kjs process (default, iiop). How can i check that i'm not in the cxs(iiop) process?

    Hi
    There is no where used list for Process chain, but you can check it in table RSPCCHAIN.
    Give details as below:
    Version is 'A'.
    Process Type is 'CHAIN'.
    Process Variants = 'enter technical name of the local chain'.
    now hit execute button.
    You can see the list of process chains under Chain  ID column.
    Ravi

  • How to identify OS on Mac in target disk mode?

    If I have a Mac that won't boot, but I can mount the disk in target disk mode, how can I tell what OS is installed on it? Is there some aspect of the directory structure (or just a file somewhere) that identifies Tiger vs. Leopard vs....?

    (I think I answered my own question)
    If there's a /System/Library/PreferencePanes/TimeMachine.prefPane I guess it's Leopard, huh?

  • How to identify offseting account

    Dear friends
    i am creating zreport in which i have some query related to offsetting account.
    please find some details.
    while viewing GL account in FBL3N ,
    we found different document numbers
    aginst these document number there is an offsetting account
    in certain document offsetting account is GL account number
    while in other it is Vendor code
    How system identify that for perticular document
    which type of offsetting account comes.
    is there any table for that??
    or any function module??
    or any logic for that??
    Regards
    Avirat

    Hi
    See the article [Offsetting Account Display in FBL Reports|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2074877d-fad9-2d10-c69b-f47fb0685327?QuickLink=index&overridelayout=true] by Praveen.J in this site.
    I hope this helps you
    Regards
    Eduardo

  • How to identify the number of clients in server

    Hai
    Iam trying a network program to identify the number of clients which accessing the server. I dont no how to identify the number of clients which accessing the server through server machine. I want to identify the client machine ip or name. If you have any idea help for me.
    Regards
    A.KRaj

    You can keep a ArrayList of active connections and store the IP address of the incoming connection in the Server. You have to do this everytime you accept a connection.

  • How to Identify that which Region is attached to which Jsp page?

    Hi
    I am working on module Quoting Sales. I have my jsp page qotSCocHeader.jsp . In responsibility AK Developer we have a region QOTSCOCHEADER . As we can see that the jsp page name and the AK region name both are same.
    Now my doubt here is that :
    How can we identify that which region is attached to which jsp page ?
    Analysis that I have done so far:
    1) I have check the Application Developer responsibility --> Function also . Here I can see 1 tab for Region , but no details are present in this tab
    2) All jsp pages are present in $OA_HTML . So I have done grep in this directory but no reference to region name .
    Pls guide me as how can I get information about Jsp page and region linkage .
    Thanks
    Amit

    Hi
    Thanks for the update.
    I have Right clicked my jsp page --> View Source and searched for the Region name i.e XXQOTSCOCHEADERLLLP and found one occurence for the region. Reference to region name was like this:
    <form target=_top method=POST name="_etffm001"> <input type=hidden name="jfn"
    href="http://betsyn1.emrsn.com:29604/OA_HTML/jsp/fnd/fndhelp.jsp?lang=US&root=FND:LIBRARY&path=US/QOT/@XXQOTSCOCHEADERLLLP" target="HELP_WIN"><span
    But still I have an open question, Where in the Oracle Apps setup we attach the region with Jsp page ?
    i) I am not able to find any setup for this in Oracle.
    ii) In jsp code I am not able to find as where we are making call to region associated with the Jsp page.
    So can you pls help me out in identifying as where exactly the Jsp page and region are attached . How the Oracles Apps identify as which region is attached to which Jsp pae ?
    Thanks
    Amit

  • How to identify which rawdevice Disk Is named as VOL1 IN ASM from os level

    Hi Friends,
    disk creation using the ASMLIB
    I want to know which disk is named as VOL1,VOL2,VOL3 etc,. from operating system LINUX .
    i know using v$asm_disk we can query name,path, status, label, etc...
    i want to know which raw device disk is named or configured as VOL1 from operating system(LINUX )
    thanks in advance.
    rajesh.
    Edited by: rajeysh on Jun 3, 2010 3:49 PM

    Well for this you can use oracleasm querydisk.Using this you can identify which device as marked for asm or not. for example you can see this below example.
    [oracle@localhost init.d]$ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jun 3 11:52:12 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select path from v$asm_disk;
    PATH
    /dev/oracleasm/disks/VOL2
    /dev/oracleasm/disks/VOL1
    SQL> exit;
    [oracle@localhost init.d]$ su
    Password:
    [root@localhost init.d]# /sbin/fdisk -l
    Disk /dev/sda: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1305    10482381   83  Linux
    /dev/sda2            1306        9401    65031120   83  Linux
    /dev/sda3            9402        9662     2096482+  82  Linux swap / Solaris
    /dev/sda4            9663        9726      514080    5  Extended
    /dev/sda5            9663        9726      514048+  83  Linux
    Disk /dev/sdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        4859    39029886   83  Linux
    /dev/sdb2            4860        9729    39118275   83  Linux
    [root@localhost init.d]# ./oracleasm querydisk /dev/sdb1
    Device "/dev/sdb1" is marked an ASM disk with the label "VOL1"
    [root@localhost init.d]# ./oracleasm querydisk /dev/sdb2
    Device "/dev/sdb2" is marked an ASM disk with the label "VOL2"
    [root@localhost init.d]# ./oracleasm querydisk /dev/sda1
    Device "/dev/sda1" is not marked as an ASM disk
    [root@localhost init.d]# Also in windows :
    C:\Documents and Settings\comp>asmtool -list
    NTFS                             \Device\Harddisk0\Partition1           140655M
    ORCLDISKDATA1                    \Device\Harddisk0\Partition2             4102M
    ORCLDISKDATA2                    \Device\Harddisk0\Partition3             4102M
    NTFS                             \Device\Harddisk0\Partition4           152617M
    C:\Documents and Settings\comp> this is answer your question. :-)

  • How to identify that a host is connected to which particular edge switch

    Hello Guys
    Can anybody explain how to identify that a host is connected to which particular edge switch and port in a Cisco SAN Fabric ??

    Hi,
    Hopefully you know the host PWWN. 
    If the edge switch is not in NPV mode, get the FCID from the output of "show fcns database"
    The answer may also be as simple as finding this entry in the "show fcns database detail".
    If not, once you have the fcid, the first byte of the fcid is the switch domain ID. With the combination of "show fcdomain domain-list vsan xx" "show fcs ie" you should be able to determine what you need.
    If the edge switch is in NPV and registers as a NPV device ( Cisco switches do ), then the FCID will be assigned by the core switch upstream of that edge switch.   You can see this from a "show flogi database".  Find the PWWN here.  There will likely be multiple entries for the port where the host is connected.  Once you find the port where the NPV switch is attached.  The first flogi entry on that port will be the switch WWN.  Get the FCID for the switch and then find the entry for this FCID in the "show fcns database detail", this will give you the switch information.
    Best regards,
    Jim

  • Deduplication: how to identify which files are "in-policy" (and which are not)?

    Dear experts,
    in eventlog I find the following information for one of my deduplicated volumes:
    Volume: F: (\\?\Volume{9794e270-fb08-487e-979b-8a08fa9ca311}\)
    Error code: 0x0
    Error message:
    Savings rate: 24
    Saved space: 853327714684
    Volume used space: 2681869406208
    Volume free space: 66771247104
    Optimized file count: 1199618
    In-policy file count: 1188049
    Job processed space (bytes): 0
    Job elapsed time (seconds): 2
    Job throughput (MB/second): 0
    Some things look strange to me: 
    - The savings rate is only 24% which looks odd because I get about 40% on other file shares with similar characteristics.
    - The "Optimized file count" is higher than the "in-policy" file count.
    - The volume has about 3.5 million files but only 1.1 million files are "in-policy".
    My understanding of "in-policy" files is that all files are in-policy which are older than 3 days (if not configured different, which is not the case) and which are not contained in an excluded folder (nothing configured here) and which have no
    excluded file extension (nothing configured here apart from the default). Right?
    I'm sure that only a small fraction of the files on this volume are younger than three days, so something seems to be wrong there, but I have no idea how to find the cause of the problem.
    Is there any way to identify the files (full path) which are considered to be not "in-policy"?
    How can I find out if the optimization process really looks at all files - and doesn't skip a million?
    Thanks!
    Regards
    Christoph

    Mandy, thanks for your feedback! I've read these technet articels, but I couldn't learn something really helpfull related to my problem there. To make investigation of the problem easier I did the following:
    - created a brand new empty volume (x:) on the same server
    - enabled data deduplication on that volume with a minimal file age of 0 days
    - copied about 2GB of data from the problem-volume in 15450 files to this new volume
    - started "Start-DedupJob x: -Type Optimization -Memory 50"
    After a few seconds that job completed and I got the following result:
    Volume: X: (\\?\Volume{d1ba9ed8-28f1-44d1-9535-fe603d6a70c6}\)
    Error code: 0x0
    Error message:
    Savings rate: 0
    Saved space: 12360718
    Volume used space: 3091664896
    Volume free space: 7610097664
    Optimized file count: 153
    In-policy file count: 153
    Job processed space (bytes): 46095214
    Job elapsed time (seconds): 9
    Job throughput (MB/second): 4.88
    The question is: why are only 153 files in-policy?
    All files (of more than 15000) are of course "older than 0 days", there are no excluded folders configured, there are no excluded extensions configured, no file has one of the default excluded extensions and more than 1000 files are bigger than 100kB
    (minimal size for deduplication is 32kB). So what makes only 153 files qualify for deduplication?
    My impression is that there are further undocumented requirements which have to be met by a file to qualify for deduplication. But if there's no detailed log of an optimization run available how to find out what's going on?
    (Or is something going wrong on my server?)
    Kind Regards
    Christoph

  • How to create a new ASM Diskgroup in Oracle 10g RAC?

    Hi,
    Our env is Oracle 10g R2 RAC on HP-UX. I want to create a new ASM Diskgroup. Please let me know if the following steps are ok to create a new ASM Diskgroup.
    1. Ensure the new Disk is visible in both ASM instances in RAC (v$asm_disk) and the header_status is 'CANDIDATE'
    2. From Node 1 ASM Instance issue the create diskgroup command.
    SQL> create diskgroup DATA2 external redundancy disk '/dev/rdsk/c4t0d5';
    3. Query v$asm_diskgroup and make sure the Diskgroup is created.
    4. Mount the DATA2 Diskgroup from Node 2 ASM Instance.
    5. Query v$asm_diskgroup and make sure the Diskgroup is visible from Node2 ASM instance.
    6. Ensure the header_status is 'MEMBER'.
    Rgds,

    correct.
    instead of using device file '/dev/rdsk/c4t0d5' you can create an alternate device file using mknod, which is called "asm_disk_xg" for example.
    check here: http://download.oracle.com/docs/cd/B19306_01/install.102/b14202/storage.htm#CDEECIHI
    hth

Maybe you are looking for