Friday, August 19, 2016

Storage Management add ASM

 Oracleasm Disk Add


Check the Server OS and the version.

#lsb_release -d
Description:    Red Hat Enterprise Linux Server release 5.11 (Tikanga)

#rpm -qa | grep -i oracleasm
oracleasm-2.6.18-274.12.1.el5-2.0.5-1.el5
oracleasm-2.6.18-348.6.1.el5-2.0.5-1.el5
oracleasm-2.6.18-407.el5-2.0.5-1.el5
oracleasm-2.6.18-408.el5-2.0.5-1.el5

  1. #uname -a
  2. Linux Server1 2.6.18-408.el5 #1 SMP Fri Dec 11 14:03:08 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

If the oracle ASM driver not tally you have to install same driver. 


Check for the last HDD 

#ls /dev/sd*
dev/sdl 

Add the HDD from VM ware console

Add new HDD to the VM guest.
#for scan in /sys/class/scsi_host/host*/scan; do echo '- - -' > $scan; done

Check for the new HDD
#ls /dev/sd*
dev/sdm

========================================================================

Format the HDD which support for the Oracleasm

#fdisk -u /dev/sdm

o
n
p
1
32768
default
w

========================================================================



Check for the Current oracle ASMDISK
#oracleasm listdisks

Check for the oracleasm Path.
#which oracleasm

========================================================================


Add HDD to the oracle ASM

ASM RHEL 5

#/etc/init.d/oracleasm createdisk ASM_SERVER1_3 /dev/sdm1
#/etc/init.d/oracleasm scandisks
#oracleasm listdisks


ASM RHEL 6
pvcreate
/usr/lib/oracleasm/oracleasm-write-label /dev/sd<X>1 ASM_<hostname>_1

========================================================================




More information

link


No comments:

Post a Comment

Comments System

Disqus Shortname