Re: Oracle ASM and UDEV

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Mon, 16 Feb 2015 19:31:17 +0000
Message-ID: <CABe10sbXrObmmWztn0E+TKDXEDE6b5m=Q9PqhqNVEJtbYAC74Q_at_mail.gmail.com>



Can I ask *why* you need to use ASM with an AWS instance? I'm struggling to see what advantage it would give you over and above a filesystem on the AWS storage?

On Mon, Feb 16, 2015 at 5:08 PM, Out <mufc01666_at_gmail.com> wrote:

> Thanks everyone for help.
>
> I am using EC2 AWS cloud instances with RHEL 7 and they are using XEN
> visualization. I am not sure if I can change something outside from OS,
> like I can do for VMware or OVM.
>
> I test a bit with disk names and it seems they I always have same names
> for devises path. So now I removed some options from UDEV conf file and it
> works.
>
> KERNEL=="xvdg", SYMLINK+="oracleasm/asm-data3" OWNER="grid",
> GROUP="asmadmin", MODE="0660"
>
> So I don't have UUID , I don't use UUID.
> Is it good enough or can be some side effects ?
>
> P.S. This is not prod system.
>
>
>
> *-----------------*
> *Tiran*
> *Best Regards*
> *Stay in touch...*
> I did a blog entry on this in August. See if this helps. Also if you are
> using VMware vmdk's I think there is an option to generate SCSI id's.
>
> Find the section in the blog that talks about rhel 7 for the rules:
>
> https://dbakerber.wordpress.com/2014/08/08/udev-rules/
>
> Sent from my iPhone
>
> On Feb 16, 2015, at 5:59 AM, Ls Cheng <exriscer_at_gmail.com> wrote:
>
> looking the device name it looks like the system is a virtualized guest?
>
> AFIAK scsi_id does not return anything for virtual disks
>
> In OVM Guests for example, this is from a RAC running in OVM, what we do
> is in vm.cfg we bind the physical disks to xvd* disk in the guest, for
> example:
>
> disk =
> ['file:/OVS/Repositories/0004fb00000300008efa6174ff36f936/VirtualDisks/0004fb0000120000788e1d3e6843db80.img,xvda,w',
> 'phy:/dev/mapper/3600144f0b681e04e0000523abfa90006,xvdb,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523abfbd0007,xvdc,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523abfcb0008,xvdd,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523ac063000a,xvde,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523ac072000b,xvdf,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523ac150000c,xvdg,w!',
> 'phy:/dev/mapper/3600144f0b681e04e0000523ac160000d,xvdh,w!']
>
> and in the guest udev file we have this
>
> KERNEL=="xvdb1", NAME="asm_crsdata01p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvdc1", NAME="asm_crsdata02p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvdd1", NAME="asm_crsdata03p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvde1", NAME="asm_dgdata01_01p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvdf1", NAME="asm_dgdata01_02p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvdg1", NAME="asm_dgfra01_01p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
> KERNEL=="xvdh1", NAME="asm_dgfra01_02p1" OWNER="grid", GROUP="asmadmin",
> MODE="0660"
>
> in VMWARE yuo can get guest UUID by setting EnableUUID to TRUE but I dont
> think there is anyway in OVM
>
> You need to ask Amazon what sort of Virtualization they are using
>
>
> Thanks
>
>
> On Mon, Feb 16, 2015 at 12:42 PM, Out <mufc01666_at_gmail.com> wrote:
>
>> Hi,
>>
>> Thanks for reply.
>>
>> I tried also what is mentioned on Oracle document which you send me but
>> result is same again no output.
>>
>> /usr/lib/udev/scsi_id --whitelisted --replace-whitespace
>> --device=/dev/xvdj1
>>
>> ------
>> When I am running blkid I have some output.
>>
>> blkid
>> /dev/xvda2: UUID="668dbd02-c201-44bc-be76-f606fc9ab8db" TYPE="xfs"
>> PARTUUID="9146b810-9a31-4c10-a206-01b0bbaca807"
>> /dev/xvda3: UUID="4724e874-741e-49a0-8826-58caca0feae7" TYPE="xfs"
>> PARTLABEL="primary" PARTUUID="1229ed73-0343-4233-b2d8-6876162af9c6"
>> /dev/xvdj1: UUID="4b3dd71d-e685-4d1e-9a95-06958dfd4c1f" TYPE="xfs"
>>
>> So I guess that the problem is not from Amazon EC2......?
>>
>>
>>
>> *-----------------*
>> *Tiran*
>>
>> *Best RegardsStay in touch...*
>>
>> On 16 February 2015 at 12:11, Mladen Gogala <dmarc-noreply_at_freelists.org>
>> wrote:
>>
>>> You're doing it wrong. Here is the right way for EL7:
>>> https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-s19-storage.html
>>>
>>> On 02/16/2015 05:43 AM, Out wrote:
>>>
>>> Dear,
>>>
>>> I need to setup ASM. Because I am using RHEL 7 I cannot find
>>> kmod-asm package in repository. I guess is not yet available for RHEL 7
>>> unlike for RHEL 6.6......????
>>>
>>> So I am trying to set up UDEV for ASM. My problem is when I need to
>>> get disk id for UDEV rules I get nothing, Command is not returning anything.
>>>
>>> /usr/lib/udev/scsi_id -g -u -d /dev/xvdj1
>>>
>>>
>>> My instance is in EC2 in AWS.
>>>
>>> Can this be because this is EC2 instance or I am doing something wrong.
>>>
>>> Please if someone have experience with this help me.
>>>
>>> Thanks
>>>
>>> *Aleks*
>>>>
>>>> *Best Regards Stay in touch...*
>>>>
>>>
>>>
>>>
>>> --
>>> Mladen Gogala
>>> Oracle DBAhttp://mgogala.freehostia.com
>>>
>>>
>>
>

-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Feb 16 2015 - 20:31:17 CET

Original text of this message