Showing posts with label asmlib. Show all posts
Showing posts with label asmlib. Show all posts

Saturday, February 17, 2018

Execute ASM Rebalance 1 time while adding & droppping disks

Sometimes it is required to add disks and drop disks sequentially in ASM environments. For example diskgroup migration between SAN , disk arrays etc .. , the disks are added and dropped . In this situation as default rebalance operation executes after every add & drop statements . 

alter diskgroup DATA add disk 
'ASMNEWDDISK_1',
'ASMNEWDDISK_2',
'ASMNEWDDISK_3' rebalance power 4;


alter diskgroup DATA drop disk 
'ASMOLDDDISK_1,
'ASMOLDDDISK_2,
'ASMOLDDDISK_3' rebalance power 4;

With this above statements rebalance operation executes 2 times , and not necessary. In order to execute rebalance in one operation , following statement can be used.

alter diskgroup DATA add disk 
'ASMNEWDDISK_1',
'ASMNEWDDISK_2',
'ASMNEWDDISK_3' 
drop disk 
'ASMOLDDDISK_1,
'ASMOLDDDISK_2,
'ASMOLDDDISK_3' rebalance power 4;

Wednesday, April 16, 2014

registering Oracle linux to Unbreakable Linux Network and installing ASM

In order to install asm related packages for OEL 5.7  I have registered my system to  Unbreakable Linux Network (ULN). For OEL 5  up2date --register command is used. If you are using OEL 6 uln_register is used.

# up2date --register (OEL 5)

# uln_register (OEL 6)

Do not forget , you must have your server has access to internet to register itself on ULN and of course valid ULN account.

After typing up2date --register  you will be asked to enter your ULN uid , pwd and CSI 


The up2date will collect your system information  and this information will be used for system profile.







Then up2date will collect installed packages and associate then with related system.


On last screen collected information is sent to ULN to register.

Asmlib RPM is part of “Oracle Software for Oracle Linux” channel.System must be subscribed to related channel.After login  into ULN web site (linux.oracle.com) go to systems tab and select the system you will subscribe.  By using manage subscriptions you can select “Oracle Software for Oracle linux 5 (x86_64)” channel to save .Now you can download all asmlib software directly from ULN.

To install asm related softwares following command is executed for Oracle Linux 5 and older.

# up2date -i oracleasm-support oracleasmlib oracleasm-`uname -r`

if you have Oracle Linux 6

# yum install oracleasm-support oracleasmlib oracleasm-`uname -r`