Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Red Hat Linux (http://www.linux-archive.org/red-hat-linux/)
-   -   Raw device mappings of multipath disks in RHEL5.4 (http://www.linux-archive.org/red-hat-linux/481024-raw-device-mappings-multipath-disks-rhel5-4-a.html)

Matty Sarro 01-25-2011 05:17 PM

Raw device mappings of multipath disks in RHEL5.4
 
Hey everyone. I am trying to run Oracle ORION, which requires that we
provide raw disk mappings for it to run. This is to perform a SAN
evaluation.
I have created /dev/raw/.
I have edited the /etc/udev/rules.d/60-raw.rules file trying the
following configurations:

ACTION=="add", KERNEL="/dev/mpath/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
ACTION=="add", KERNEL="/dev/mpath/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL="/dev/mpath/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"

ACTION=="add", KERNEL="/dev/mapper/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
ACTION=="add", KERNEL="/dev/mapper/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL="/dev/mapper/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"

ACTION=="add", KERNEL="/dev/dm-0",RUN+="/bin/raw /dev/raw/raw0 %N"
ACTION=="add", KERNEL="/dev/dm-1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL="/dev/dm-2",RUN+="/bin/raw /dev/raw/raw2 %N"

None of them work. After adding them, I run /sbin/start_udev.
Running raw -qa displays nothing.

Has anyone tried this? Any advice? I've managed to get ORION running
in a handicapped fashion but it dies after the first volley of tests.
Still some usable data, but it can't do any of the large writes.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

raj sourabh 01-25-2011 06:26 PM

Raw device mappings of multipath disks in RHEL5.4
 
Hi,

If the mapper device have been created suceesfully then you may try to map
the raw devices on rc script (rc.local)

This worked for me. My rc.local looks like;


MAKEDEV raw

sleep 2

raw /dev/raw/raw1 /dev/mapper/mpath1p1
Hope this helps.


Regards,

Raj

On Tue, Jan 25, 2011 at 10:17 PM, Matty Sarro <msarro@gmail.com> wrote:

> Hey everyone. I am trying to run Oracle ORION, which requires that we
> provide raw disk mappings for it to run. This is to perform a SAN
> evaluation.
> I have created /dev/raw/.
> I have edited the /etc/udev/rules.d/60-raw.rules file trying the
> following configurations:
>
> ACTION=="add", KERNEL="/dev/mpath/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
> ACTION=="add", KERNEL="/dev/mpath/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
> ACTION=="add", KERNEL="/dev/mpath/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"
>
> ACTION=="add", KERNEL="/dev/mapper/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
> ACTION=="add", KERNEL="/dev/mapper/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
> ACTION=="add", KERNEL="/dev/mapper/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"
>
> ACTION=="add", KERNEL="/dev/dm-0",RUN+="/bin/raw /dev/raw/raw0 %N"
> ACTION=="add", KERNEL="/dev/dm-1",RUN+="/bin/raw /dev/raw/raw1 %N"
> ACTION=="add", KERNEL="/dev/dm-2",RUN+="/bin/raw /dev/raw/raw2 %N"
>
> None of them work. After adding them, I run /sbin/start_udev.
> Running raw -qa displays nothing.
>
> Has anyone tried this? Any advice? I've managed to get ORION running
> in a handicapped fashion but it dies after the first volley of tests.
> Still some usable data, but it can't do any of the large writes.
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Matty Sarro 01-25-2011 06:46 PM

Raw device mappings of multipath disks in RHEL5.4
 
Thank you for the followup. Since this is only for testing and the
device won't be needed at boot time, I simply ran the following
commands:

/bin/raw /dev/raw/raw1 /dev/mpath/mpath0
/bin/raw /dev/raw/raw2 /dev/mpath/mpath1
/bin/raw /dev/raw/raw3 /dev/mpath/mpath2

It appears to have worked :)


On Tue, Jan 25, 2011 at 2:26 PM, raj sourabh <rajsourabh1@gmail.com> wrote:
> Hi,
>
> If the mapper device have been created suceesfully then you may try to map
> the raw devices on rc script (rc.local)
>
> This worked for me. My rc.local looks like;
>
>
> MAKEDEV raw
>
> sleep 2
>
> raw /dev/raw/raw1 /dev/mapper/mpath1p1
> Hope this helps.
>
>
> Regards,
>
> Raj
>
> On Tue, Jan 25, 2011 at 10:17 PM, Matty Sarro <msarro@gmail.com> wrote:
>
>> Hey everyone. I am trying to run Oracle ORION, which requires that we
>> provide raw disk mappings for it to run. This is to perform a SAN
>> evaluation.
>> I have created /dev/raw/.
>> I have edited the /etc/udev/rules.d/60-raw.rules file trying the
>> following configurations:
>>
>> ACTION=="add", KERNEL="/dev/mpath/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
>> ACTION=="add", KERNEL="/dev/mpath/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
>> ACTION=="add", KERNEL="/dev/mpath/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"
>>
>> ACTION=="add", KERNEL="/dev/mapper/mpath0",RUN+="/bin/raw /dev/raw/raw0 %N"
>> ACTION=="add", KERNEL="/dev/mapper/mpath1",RUN+="/bin/raw /dev/raw/raw1 %N"
>> ACTION=="add", KERNEL="/dev/mapper/mpath2",RUN+="/bin/raw /dev/raw/raw2 %N"
>>
>> ACTION=="add", KERNEL="/dev/dm-0",RUN+="/bin/raw /dev/raw/raw0 %N"
>> ACTION=="add", KERNEL="/dev/dm-1",RUN+="/bin/raw /dev/raw/raw1 %N"
>> ACTION=="add", KERNEL="/dev/dm-2",RUN+="/bin/raw /dev/raw/raw2 %N"
>>
>> None of them work. After adding them, I run /sbin/start_udev.
>> Running raw -qa displays nothing.
>>
>> Has anyone tried this? Any advice? I've managed to get ORION running
>> in a handicapped fashion but it dies after the first volley of tests.
>> Still some usable data, but it can't do any of the large writes.
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

"Geofrey Rainey" 01-26-2011 02:20 AM

Raw device mappings of multipath disks in RHEL5.4
 
Hi,

I've setup something similar with Oracle RAC which also requires raw
device mappings. For this I used both multipathing (which creates the
/dev/mapper/<file_names>), and rc.local (which provides the /dev/raw/
mappings to the /dev/mapper/ file names.

There's a very good how-to document on Oracle's Metalink site explaining
how to do this on rhel 5.

Regards,
Geoff.


-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of raj sourabh
Sent: Wednesday, 26 January 2011 8:27 a.m.
To: General Red Hat Linux discussion list
Subject: Re: Raw device mappings of multipath disks in RHEL5.4

Hi,

If the mapper device have been created suceesfully then you may try to
map
the raw devices on rc script (rc.local)

This worked for me. My rc.local looks like;


MAKEDEV raw

sleep 2

raw /dev/raw/raw1 /dev/mapper/mpath1p1
Hope this helps.


Regards,

Raj

On Tue, Jan 25, 2011 at 10:17 PM, Matty Sarro <msarro@gmail.com> wrote:

> Hey everyone. I am trying to run Oracle ORION, which requires that we
> provide raw disk mappings for it to run. This is to perform a SAN
> evaluation.
> I have created /dev/raw/.
> I have edited the /etc/udev/rules.d/60-raw.rules file trying the
> following configurations:
>
> ACTION=="add", KERNEL="/dev/mpath/mpath0",RUN+="/bin/raw /dev/raw/raw0
%N"
> ACTION=="add", KERNEL="/dev/mpath/mpath1",RUN+="/bin/raw /dev/raw/raw1
%N"
> ACTION=="add", KERNEL="/dev/mpath/mpath2",RUN+="/bin/raw /dev/raw/raw2
%N"
>
> ACTION=="add", KERNEL="/dev/mapper/mpath0",RUN+="/bin/raw
/dev/raw/raw0 %N"
> ACTION=="add", KERNEL="/dev/mapper/mpath1",RUN+="/bin/raw
/dev/raw/raw1 %N"
> ACTION=="add", KERNEL="/dev/mapper/mpath2",RUN+="/bin/raw
/dev/raw/raw2 %N"
>
> ACTION=="add", KERNEL="/dev/dm-0",RUN+="/bin/raw /dev/raw/raw0 %N"
> ACTION=="add", KERNEL="/dev/dm-1",RUN+="/bin/raw /dev/raw/raw1 %N"
> ACTION=="add", KERNEL="/dev/dm-2",RUN+="/bin/raw /dev/raw/raw2 %N"
>
> None of them work. After adding them, I run /sbin/start_udev.
> Running raw -qa displays nothing.
>
> Has anyone tried this? Any advice? I've managed to get ORION running
> in a handicapped fashion but it dies after the first volley of tests.
> Still some usable data, but it can't do any of the large writes.
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
================================================== ========
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz
================================================== ========
CAUTION: This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s). This information
is not to be used or stored by any other person and/or organisation.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Shankar Jha 01-26-2011 02:37 AM

Raw device mappings of multipath disks in RHEL5.4
 
After editing udev, run udevtrigger command to get updated.

Thanks-
Shankar

On 26-Jan-2011 8:52 AM, "Geofrey Rainey" <Geofrey.Rainey@tvnz.co.nz> wrote:

Hi,

I've setup something similar with Oracle RAC which also requires raw
device mappings. For this I used both multipathing (which creates the
/dev/mapper/<file_names>), and rc.local (which provides the /dev/raw/
mappings to the /dev/mapper/ file names.

There's a very good how-to document on Oracle's Metalink site explaining
how to do this on rhel 5.

Regards,
Geoff.



-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat...
================================================== ========
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz
================================================== ========
CAUTION: This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s). This information
is not to be used or stored by any other person and/or organisation.


--

redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https...
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


All times are GMT. The time now is 07:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.