This discussion is archived
6 Replies Latest reply: Jan 7, 2013 5:36 AM by 849296 RSS

resize LUN and asm disk/diskgroup

849296 Newbie
Currently Being Moderated
Happy New year to all.

I have a small problem resizing an ASM diskgroup and maybe someone from here can help me.

I've had a lun with size 50G and added on it an asm disk called LUN1D1.
Then I have created a DISKGROUP called data1 (external) witch contain LUN1D1.
DATA1 was then made asm volume. So I have an asm volume with size 50G and I need it to be 100G.

Now I have increased the size of the lun with 50G (100G in total). I have rescaned the LUN and os see the new size.

The problem is I can not resize DISKGROUP data1 or disk LUN1D1.

Orale Database 11.2.0.3.0 x64
  • 1. Re: resize LUN and asm disk/diskgroup
    Veeresh.S Pro
    Currently Being Moderated
    hope this helps....

    How to resize a physical disk or LUN and an ASM DISKGROUP [ID 311619.1]
  • 2. Re: resize LUN and asm disk/diskgroup
    849296 Newbie
    Currently Being Moderated
    Thanks for your reply but that note is for
    Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.1.0.7 [Release 10.1 to 11.1]

    I must resize the size with both asm and database online and I don't have any partition on that lun.
  • 3. Re: resize LUN and asm disk/diskgroup
    Levi-Pereira Guru
    Currently Being Moderated
    Hi,

    OS version?

    Please post here output of (as grid user):
    $ kfod asm_diskstring='<Lun_Path>' disks=all status=true
    If you do not specify a new size in the SIZE clause, then Oracle ASM uses the size of the disk as returned by the operating system. The new size is written to the Oracle ASM disk header and if the size of the disk is increasing, then the new space is immediately available for allocation.
    ALTER DISKGROUP <DG_NAME> 
         RESIZE DISKS '<ASMDISK_NAME>'
    This procedure is documented for this reason there is no MoS note:

    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmdiskgrps.htm#OSTMG94115

    Regards,
    Levi Pereira
  • 4. Re: resize LUN and asm disk/diskgroup
    849296 Newbie
    Currently Being Moderated
    Hi,
    os version
    SUSE Linux Enterprise Server 11 (x86_64)
    VERSION = 11
    PATCHLEVEL = 1
    kfod asm_diskstring='/dev/oracleasm/disks/LUN1D1' disks=all status=true
    --------------------------------------------------------------------------------
     Disk          Size Header    Path                                     User     Group
    ================================================================================
       1:      51200 Mb MEMBER    /dev/oracleasm/disks/LUN1D1           grid     asmadmin
    --------------------------------------------------------------------------------
    ORACLE_SID ORACLE_HOME
    ================================================================================
         +ASM1 /ssi/grid/product/11gR2/grid
         +ASM2 /ssi/grid/product/11gR2/grid
    oracleasm querydisk -p LUN1D1
    Disk "LUN1D1" is a valid ASM disk
    /dev/mapper/STORAGE0LUN1: LABEL="LUN1D1" TYPE="oracleasm"
    /dev/sdp: LABEL="LUN1D1" TYPE="oracleasm"
    /dev/sdo: LABEL="LUN1D1" TYPE="oracleasm"
    fdisk -l /dev/sdo
    
    Disk /dev/sdo: 107.4 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/sdo doesn't contain a valid partition table
    fdisk -l /dev/sdp
    
    Disk /dev/sdp: 107.4 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/sdp doesn't contain a valid partition table
    The execution of the alter statement
    SQL> alter diskgroup DATA1 resize disk LUN1D1;
    
    Diskgroup altered.
    does not modify the actual size
    SQL> select NAME, TOTAL_MB from v$asm_diskgroup where name='DATA1';
    
    NAME                             TOTAL_MB
    ------------------------------ ----------
               5 DATA1                               51200
  • 5. Re: resize LUN and asm disk/diskgroup
    Levi-Pereira Guru
    Currently Being Moderated
    Kfod read OS values, so something is wrong on OS and is not recognizing these new values​​.

    Did you follow these steps?
    http://www.novell.com/support/kb/doc.php?id=7009660
  • 6. Re: resize LUN and asm disk/diskgroup
    849296 Newbie
    Currently Being Moderated
    Thank you a lot.
    After multipathd was restarted the new size was ok.

    Now acfs file system is at 100G.

    Edited by: richi on Jan 7, 2013 3:35 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points