Resizing RAID5 under ASM

Lots of RAID managment software (including Array Config Utility provided by HP) allows non-destructive dynamic reconfiguration of RAID arrays, including expanding them to add extra disks.
If I'm running an ASM instance using an ASM diskgroup (external redundancy) on a RAID 5 array using and I dynamically resize the RAID 5 array by adding extra disks, is the ASM instance going to:
a. seamlessly detect that the array is bigger and expand the diskgroup accordingly (I wish) or
b. have a heart attack.
The resize diskgroup command doco states:
If you do not specify a new size in the SIZE clause then ASM uses the size of the disk as returned by the operating system. The new size is written to the ASM disk header and if the size of the disk is increasing, then the new space is immediately available for allocation.
So it does seem to imply that it can all be done dynamically with no loss of service...
Anyone ever tested this?
Thanks,
Gavin

a. seamlessly detect that the array is bigger and expand the diskgroup accordingly (I wish) or
b. have a heart attack.
Anyone ever tested this?Hi,
first of all it depends what from you created your disk group. If you put the whole disk (e.g. "/dev/sda") in it ASM should recognize the resize immediately.
If you first created a partition on the disk (e.g. "/dev/sda1") as oracle recommends to prevent some administrator from using the disk cause he though it was empty then ASM will NOT detect the change. You have to adjust the partition after resizing (growing) the disk.
Ronny Egner
My Blog: http://blog.ronnyegner-consulting.de

Similar Messages

  • How to know the size of archived logs created under ASM

    I using Oracle 10g on Linux x86-64.
    I need to ship the archived logs(not the entire directory, only a few) from the Live database to the DR site, so I need an estimate of how much time it will take to ship them across the network ?
    Is there anyway I can know the size of a specific archived log file stored under ASM ?
    We can use du in ASM to know the size of directory but I dont find a command in ASM to get the size of a file ?

    No we are also switching logfiles manually , so the maximum size may not
    have reached.
    What I need is something like ls -l command in the Unix prompt which will
    help us to find the size of the file , a similar command to help us determine
    a size of file in ASM ?What is the objective?
    Anyways, you can get the size of an archived log file by quering V$ARCHIVED_LOG view.
    SQL> select sequence#, name, blocks*block_size from v$archived_log where sequence# > 180;
    SEQUENCE# NAME                                     BLOCKS*BLOCK_SIZE
           182 C:\MYDB\ARCH\ARC00182_0633314306.001             223053312
           181 C:\MYDB\ARCH\ARC00181_0633314306.001             264281600
           183 C:\MYDB\ARCH\ARC00183_0633314306.001              26209280
           184 C:\MYDB\ARCH\ARC00184_0633314306.001                  4096
           185 C:\MYDB\ARCH\ARC00185_0633314306.001                 16384
    SQL>

  • RMAN backup restoration on a different server under ASM .

    Hello Experts,
    This is regarding new installation of Oracle RAC 11gR2 on AIX 6.1 . Its a two node cluster setup , using ASM . As i am newbie for RMAN , I would like to know how i can restore my rman backup to another uat server which has standby database again cofigured under asm .
    Thanks for your kind help .

    Hi ,
    Thanks for reply
    1) I performed the full database backup on source .
    2) Source (prod) and target remote database (uat) are in ASM and have same DG for datafiles .
    3) I have transfered the backup from production to UAT . I have already running uat database
    do i need to drop it before i start the restoration ? My final purpose is just to refresh target with production backup . Kindly advice the steps from here to proceed with .
    Thank you

  • Spfile locatin under ASM after recreation

    hello,
    i run 10g RAC on to SUN nodes with asm. after installation the location of the spfile was correct (+data/pkrac/spfile_pkrac.ora -> linking to +data/pkrac/parameterfile/spfilexxxx) i had to change an parameter, so i created an pfile, changed it and recreated the spfile.
    after that the alias is on the same place (+data/pkrac/spfile_pkrac.ora) but the dir <parameterfile> and the link are gone. i find them under +data/dbunknown/parameterfile/spfilexxxxx, which will not be watched by the system.
    even when i recreate the spfile by naming the parameterfile dir, then only the alias is under +data/pkrac/parameterfile/spfile_pkrac.ora but the spfile himself again is under the unknown db-dir.
    so, how get i my recreated spfile to the right place under +data/pkrac?
    thanks, michael

    i had to change
    an parameter, so i created an pfile, changed it and
    recreated the spfile. Did you really need to recreate the spfile because of the parameter change?
    You can use Alter Statement to change it rather than recreate it
    Example 1
    SQL> alter system set PROCESSES=300 SCOPE=SPFILE;
    This will automatically update your spfile only
    Example 2
    SQL> alter system set PROCESSES=300 SCOPE=BOTH;
    This will automatically update Memory and spfile.
    Note that imediate changes will take effect for only Dynamic Parameters

  • How to establish a single init.ora file for 3 node RAC under ASM

    All,
    Our environment is a combination of several different memory sized SUN machines (V880, V490 & 250R).
    Setting up a single init.ora file that encompasses each of the nodes memory into the SGA sizing is our desired setup.
    Though we have established the file, the question is getting each NODE on the RAC to use that single parameter
    file to start its database instead of taking the default init.ora file in the default (asm/dbs) directory.
    As we have performed fail-over testing, upon the restart of instances they have restarted with wrong memory
    definitions that have hung the nodes when it took more memory then what was available and swap space began
    to grow.
    Steps to configure and enable this process is what I am looking for.
    Thanks
    Gerry

    Gerry,
    Here's what we do. Not sure if it is relevant to your situation ...
    (on each node)
    $ cat $ORACLE_HOME/dbs/initrac11d1.ora
    SPFILE='+DATA/rac11d/spfilerac11d.ora'
    (in ASM)
    $ asmcmd
    ASMCMD> ls -la +data/rac11d
    Type Redund Striped Time Sys Name
    Y CONTROLFILE/
    Y DATAFILE/
    Y ONLINELOG/
    Y PARAMETERFILE/
    Y TEMPFILE/
    N spfilerac11d.ora => +DATA/RAC11D/PARAMETERFILE/spfile.267.685170285
    The spfile has all parameters, qualified by node where applicable. For example :
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed May 6 19:00:45 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    With the Real Application Clusters option
    SQL> create pfile='/tmp/sb.ora' from spfile;
    File created.
    SQL> Disconnected from Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    With the Real Application Clusters option
    $ cat /tmp/sb.ora
    *.archive_lag_target=1800
    *.audit_file_dest='/var/oracle/admin/rac11d/adump'
    rac11d1.dispatchers='(address=(protocol=tcp)(host=msdbc11-vip)(port=64000))'
    rac11d2.dispatchers='(address=(protocol=tcp)(host=msdbc12-vip)(port=64000))'
    *.global_names=TRUE
    rac11d1.instance_number=1
    rac11d2.instance_number=2
    rac11d1.undo_tablespace='UNDOTBS1'
    rac11d2.undo_tablespace='UNDOTBS2'
    Hope this helps,
    Steve

  • JTable have no resize cursor under a JLayeredPane

    Hi,
    i have over my JScrollPane a JLayeredPane to show infotext.
    When the JLayeredPane is over the JScrollpane you can resize the column but the JTable show no resize Cursor.
    Does anybody know why?
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JLayeredPane;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    public class NoResizeCursorDemo extends JFrame
      public NoResizeCursorDemo()
        JTable table = new JTable( new DefaultTableModel( new String[]{ "aaa", "bbb" }, 10 ) );
        JScrollPane scrollPane = new JScrollPane( table );
        InfoLayer layer = new InfoLayer( scrollPane );
        add( layer );
      public static void main( String[] args )
        NoResizeCursorDemo frame = new NoResizeCursorDemo();
        frame.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
        frame.pack();
        frame.setVisible( true );
      class InfoLayer extends JLayeredPane
        private final JComponent wrappedComponent;
        public InfoLayer( JComponent wrappedComponent )
          this.wrappedComponent = wrappedComponent;
          setLayout( null );
          add( wrappedComponent, JLayeredPane.DEFAULT_LAYER );
          setInfoText();
        private void setInfoText()
          add( new JLabel( "Info......" ), JLayeredPane.POPUP_LAYER );
          revalidate();
        @Override
        public Dimension getPreferredSize()
          return wrappedComponent.getPreferredSize();
        @Override
        public void doLayout()
          Dimension size = getSize();
          Component layers[] = getComponents();
          for ( Component layer : layers )
            layer.setBounds( 0, 0, size.width, size.height );
    }Thanks

    Hi,
    I had almost the same problem with JTable and JSplitPane, the components worked fine, but cursor did not change when require.
    I already had in place mouse events dispatching in my top layer. It passed all events to the components underneath (see example in [Glass Pane Demo Project|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/GlassPaneDemoProject/src/components/GlassPaneDemo.java]; in my case the listener was the content panel of the top layer).
    And now here is the trick around the cursor. Within the custom dispatch method I've called the following:
    this.setCursor(comp.getCursor());
    where "this" is the content panel of the layer and comp is the component where mouse event passed to.
    Hope that helps!
    Regards,
    Sergey

  • Error in resizing the an asm disk in a group....

    SQL> alter diskgroup DGROUP2 resize disk DGROUP2_0000 size 512M;
    alter diskgroup DGROUP2 resize disk DGROUP2_0000 size 512M
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15057: specified size of 512 MB is larger than actual size of 100 MB
    SQL> alter diskgroup DGROUP2 resize all size 512M;
    alter diskgroup DGROUP2 resize all size 512M
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15057: specified size of 512 MB is larger than actual size of 100 MB

    Is there a question here at all?
    It says you've only got 100MB of free space. Are we supposed to think that this is not true, and that you think you have a lot more than that?
    As a general rule, I'd take Oracle's word on this matter as the operative statement!

  • Oracle ASM and RAID 5

    Hi All..
    I have an OLTP database about 80 GB in size and is running on Oracle RAC with ASM on MSW2K3 Server 64 bit.
    The diskgroups were not balanced as some disks in the DATA diskgroup were of different capacity. So I suggested to add disks with equal capacities but the problem is that Storage Admin has give given me 3 X 100GB LUNs on RAID 5 for the DATA diskgroup which contains datafiles only. Below is the distribution of diskgroups
    DATA - 4 disks - 2X50 , 2X100 RAID 1_0
    ONLINELOGS- 2 disks - 2X50 GB RAID 1_0
    UNDO -- 2 disks 2X50 GB RAID 5
    As RAID 5 is not suggested for OLTP databases because of more I/O and parity reasons, my questions are
    1. Whether ASM performs well with RAID 5 or not?
    2. Will it impact the performance if only datafiles will be on RAID 5 and Redo Logs are on RAID 10?
    Please suggest...

    Yes, of course there is a penalty with RAID5 and of course if you have a disk failure there is an EVEN larger penalty.
    But not everyone has huge transactional burdens to bear, so for some people the trade off in terms of less performance is worth the benefit in terms of higher capacity.
    Only you know the number of IOPS you need to sustain, and the best way of determining if your configuration will meet your needs is to test it. Do you have a similar setup with a database already that undergoes a similar workload? If so how does the disk setup compare?
    Using external redundancy, all ASM will do is stripe the data across all devices within the diskgroup, and attempt to keep each device within the diskgroup at the same capacity. It will be blissfully unaware if it's RAID1, RAID3, RAID5, RAID6 - ASM just won't have any idea what the underlying RAID level is.
    jason.
    http://jarneil.wordpress.com

  • ASM instances on 2 node Oracle RAC 10g r2  on Red Hat 4 u1

    Hi all
    I'm experiencing a problem in configuring diskgroups under +ASM instances on a two node Oracle RAC.
    I followed the official guide and also official documents from metalink site, but i'm stuck with the visibility of asm disks.
    I created fake disks on nfs with Netapp certified storage binding them to block device with the usual trick "losetup /dev/loopX /nfs/disk1 " ,
    run "oracleasm createdisk DISKX /dev/loopX" on one node and
    "oracleasm scandisks" on the other one.
    With "oracleasm listdisks" i can see the disks at OS level in both nodes , but , when i try to create and mount diskgroup in the ASM instances , on the instance on which i create the diskgroup all is well, but the other one doesn't see the disks at all, and diskgroup mount fails with :
    ERROR: no PST quorum in group 1: required 2, found 0
    Tue Sep 20 16:22:32 2005
    NOTE: cache dismounting group 1/0x6F88595E (DG1)
    NOTE: dbwr not being msg'd to dismount
    ERROR: diskgroup DG1 was not mounted
    any help would be appreciated
    thanks a lot.
    Antonello

    I'm having this same problem. Did you ever find a solution?

  • How to check Database Growth for a DB on ASM?

    Hi there
    I have been using the following script to check the database growth (for DBs on Filesystem):
    SELECT b.tsname tablespace_name ,
      MAX(b.used_size_mb) cur_used_size_mb ,
      ROUND(AVG(inc_used_size_mb),2)avg_increas_mb
    FROM
      (SELECT a.days,
        a.tsname ,
        used_size_mb ,
        used_size_mb - LAG (used_size_mb,1) OVER ( PARTITION BY a.tsname ORDER BY a.tsname,a.days) inc_used_size_mb
      FROM
        (SELECT TO_CHAR(sp.begin_interval_time,'MM-DD-YYYY') days ,
          ts.tsname ,
          MAX(ROUND((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) used_size_mb
        FROM dba_hist_tbspc_space_usage tsu ,
          dba_hist_tablespace_stat ts ,
          dba_hist_snapshot sp,
          dba_tablespaces dt
        WHERE tsu.tablespace_id    = ts.ts#
        AND tsu.snap_id            = sp.snap_id
        AND ts.tsname              = dt.tablespace_name
        AND sp.begin_interval_time > sysdate-7
        GROUP BY TO_CHAR(sp.begin_interval_time,'MM-DD-YYYY'),
          ts.tsname
        ORDER BY ts.tsname,
          days
        ) a
      ) b
    GROUP BY b.tsname
    ORDER BY b.tsname;And I think it always gave me good results until I ran this script on a DB (10.2.0.5) on ASM.
    Is it because databases on ASM are maintaied differently OR is it that most proabbly there has been no activity on this database in the last 7 days? I even ran this query for last 90/180-days and it still returned me following results:
    TABLESPACE_NAME                CUR_USED_SIZE_MB AVG_INCREAS_MB
    SYSAUX                                   574.38            .36
    SYSTEM                                   514.69              0
    DATA                                    1593.25              0
    IDX                                         .06              0
    UNDOTBS1                                  69.06          -3.84
    USERS                                     96.13              0Thanks in advance!

    I have no reason to believe tablespaces under ASM are maintained differently, so the most likely explanation is change in DB activity.
    What is your AWR retention? The default is 7 days, so if yours is set at the default then running the query for 90/180 days would not give you more information.
    If you want to get useful output from your scripts, you might need to adjust the AWR retention and your SYSAUX tablespace respectively.
    If the DB is monitored by Oracle Enterprise Manager(OEM), you can do tablespace forecasting based on the metrics collected by OEM. I did a presentation about this (NYOUG,VirtaThon) a while back:
    http://iiotzov.files.wordpress.com/2011/08/iotzov_oem_repository.pdf
    http://iiotzov.files.wordpress.com/2012/05/oem-repository-a-second-look.doc
    Iordan Iotzov

  • OCR and VOT disk, in the same asm disk or different disks ?! and how ?!

    What Oracle recommends regarding the OCR and Voting disks in Rac 11gR2 on ASM ?!
    Making them under the same disk or different disks ?!
    and how ?!
    Thanks a lot,
    Regards,
    Gehad.

    Best practice is that OCR/Voting should be under ASM. Making them under the same disk or different disks depends upon the ASM diskgroup. If we want to keep it on seperate failover groups then we should create muliple failover group.
    For external : 1 ; Normal : 3 and higher : 5 asm diskgroups.
    I hope i would be clear ith my answers.
    Regards,
    Dheeraj Vaish

  • Backup - ASM vs regular cooked file system

    Use Oracle 11g on Linux.
    The disk system is ASM. For instance, the FRA is configured based on a ASM disk group +FRA (along withe multiplexed logs and control files).  This is one place for the backup and multiplexing.
    Now, I intend to place the multiplexed files also to a second location (disk). For this disk, I have two choices: 1) Use the ASM diskgroup 2) Use the regular datafile (/u01/oracle/oracdata/back).
    Good thing about the cooked file system ( I can think) is that I can see the location of the file by going to the file manager and locate the directory of the files, kind of transparent.
    For doing so, will it incur the opertion cost in the future? (As compared to the ASM diskgroup, though files somewhat hidden from the view, but Oracle will take care of "everything").
    So, any comment on the file system of the second disk? (Oracle ASM vs regular cooked file system).
    Thanks

    I suggest you continue using ASM and use the ACFS feature.
    From 11.2.0.3 I don't use FRA on ASM only, I'm using FRA under ASM/ACFS mount point.
    Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is a multi-platform, scalable file system, and storage management technology that extends Oracle Automatic Storage Management (Oracle ASM) functionality to support customer files maintained outside of Oracle Database. Oracle ACFS supports many database and application files, including executables, database trace files, database alert logs, application reports, BFILEs, and configuration files. Other supported files are video, audio, text, images, engineering drawings, and other general-purpose application file data.
    Starting with Oracle Automatic Storage Management 11g Release 2 (11.2.0.3), Oracle ACFS supports RMAN backups (BACKUPSET file type), archive logs (ARCHIVELOG file type), and Data Pump dumpsets (DUMPSET file type).

  • How to increase size of a Disk Group in ASM?

    Hi,
    I'm testing the ASM in AIX. I created a Logical Volume with size is, e.g., 10G. Then I assign this LV with a Disk Group in ASM. Now I increase the size of the LV using AIX's smit, e.g., to 20G. How can I increase the size of my Disk Group in ASM?
    I understand that Oracle recommend to assign a whole physical hard disk to a Disk Group in ASM.Thus, the resize command of ASM can only reduce the size of Disk Group, but cannot increase the size of it?
    Any advice?
    Pham

    Disk Group is a logical term, phyical size of a diskgroup is determined by the disks belonging to a diskgroup. So you cannot increase a diskgroup, only the disks in it. You can resize a disk up to its physical limit (resize option of ALTER DISKGROUP statement).
    Werner

  • Image resize - Photoshop Elements 11

    How do I re-size an image using pixels for height or width in PS Elements 11?  The pixels option has disappeared in Image Resize box under the Image menu.  I do need to specify the number of pixels, as I am adding to a website control interface that does not automatically re-size images.

    Checking the ‘resample’ box enables the following options:  percent, inches, cm, mm, points, picas, columns.  I still cannot use pixels as the sizing option.  There are locks in place on both the pixels dimensions and the document size.

  • Edit listener from ASM instance in OEM

    Hi
    I've installed Oracle Grid Infrastructure for a standalone server, and next installed database 11g. I have ASM and orcl instances. Under ASM (in ORACLE_HOME/grid) I have listener (listener.ora file), and under orcl instance I have only tnsnames.ora (so I can connect by local naming). In OEM Database Control, in Net Services Administration I see only local names, but not listeners. So, can I edit listener from ASM instance in OEM Database Control?
    Thanks awfully for help.
    Regards

    Yes, you can use the Net Manager also to do the same but it should be started from the Grid Home and not from the Oracle Home.
    HTH
    Aman....

Maybe you are looking for