Re: LUN ID

From: GG <grzegorzof_at_interia.pl>
Date: Tue, 20 Nov 2012 16:36:51 +0100
Message-ID: <50ABA393.4050200_at_interia.pl>



W dniu 2012-11-20 16:16, Shanmugam, Satheesh B pisze:
> We have created asm disk using asmlib and assigned to the diskgroups. This was done a while back. Is there a way now to get LUN ID of these disks? We are in linux running 11.2.0.3 grid.
> Regards,
> Satheesh Shanmugam

Hi,

Troubleshooting a multi-node ASMLib installation [ID 811457.1] On existing or freshly labelled systems, you can identify and verify the LUNs, scsi IDs and ASM volume labelling on each cluster node with the following command:

|#*blkid|grep sd.*oracleasm|while read a b;do echo -n $a$b" scsi_id=";(echo $a|tr -d [:digit:]|tr -d [:]|cut -d"/" -f3|xargs -i scsi_id -g -s /block/{})done;*|

above is one long line .

Output :
|root_at_rmvsx1:~ # blkid|grep sd.*oracleasm|while read a b;do echo -n $a$b" scsi_id=";(echo $a|tr -d [:digit:]|tr -d [:]|cut -d"/" -f3|xargs -i scsi_id -g -s /block/{})done;|
|/dev/sda1:LABEL="DATA0" TYPE="oracleasm"

scsi_id=14945540000000000646174612d3000000000000000000000|
|/dev/sdb1:LABEL="DATA0" TYPE="oracleasm"
scsi_id=14945540000000000646174612d3000000000000000000000

|Regards
GregG

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 20 2012 - 16:36:51 CET

Original text of this message