From: Suresh Babu Kandukuru Subject: Re: dm_mirror/dm_raid1 limitations ?. Date: Tue, 27 Jan 2015 20:03:18 -0800 (PST) Message-ID: <2d1d9a04-d3f4-4714-a588-e2852ec8dcb8@default> References: <4d982ea8-3769-46d2-ba73-2d1525faa63b@default> <54C64C4F.6090601@redhat.com> <54C68F22.5080004@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4039023385302257191==" Return-path: In-Reply-To: <54C68F22.5080004@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids --===============4039023385302257191== Content-Type: multipart/alternative; boundary="__1422417801796114040abhmp0013.oracle.com" --__1422417801796114040abhmp0013.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable What is difference of creating mirror with=20 1 ) mdadm ( mdadm --create --verbose /dev/md0 --level=3Dmirror --raid-de= vices=3D2 /dev/sdb1 /dev/sdc1 --spare-devices=3D1 /dev/sdd1 )=20 and=20 2) dmsetup ( dmsetp create mirror ) Which one is better ?. and Pros and cons ?. Google is not helping much=20 =20 /Suresh -----Original Message----- From: Marian Csontos [mailto:mcsontos@redhat.com]=20 Sent: Tuesday, January 27, 2015 12:32 AM To: dm-devel@redhat.com Subject: Re: [dm-devel] dm_mirror/dm_raid1 limitations ?. On 01/26/2015 04:34 PM, HYPERLINK "mailto:suresh.babu.kandukuru@oracle.com= " suresh.babu.kandukuru@oracle.com wrote: > Heinzm,thanks for the quick reply.. We are using dmestup create mirror=20 > ..as we want to do that on physical San lun (block devices) ... Not=20 > the one ( lv create ) you mentioned below.. Is there any advantage=20 > going with logical volume approach lvcreate -type One of LVM features is monitoring of mirror/raid LVs and removing/replacing= any missing legs. Using dmsetup directly, you have to do this manually. > > /Suresh > > Sent from my iPhone > >> On Jan 26, 2015, at 7:46 PM, Heinz Mauelshagen < HYPERLINK "mailto:heinz= m@redhat.com" heinzm@redhat.com> >> wrote: >> >> >>> On 01/26/2015 02:51 PM, Suresh Babu Kandukuru wrote: Use case is >>> : Two luns are mapped from storage array to linux host which are in=20 >>> same SAN fabric . we want to create a mirror on the linux host with=20 >>> these two luns and let host use that mirror lun . basic tests=20 >>> suggest that dm_mirror working fine . when we have any intermittent=20 >>> path issues with between host and san array , host i/o just freeze ,=20 >>> never returns back even after the path is online. >> >> Hard to tell what's happening without any kernel log. >> >>> >>> Is dm_mirror viable solution here ?. Can you point me any link=20 >>> which gives the limitations of dm_mirror ? . another alternate=20 >>> solutions you propose here ?. Thanks in advance . >> >> We've switched the default away from "mirror" to "raid1" in order to=20 >> take advantage of th MD runtime. Have you tested "lvcreate --type=20 >> raid1 ..." yet? Please do. >> >> Regards, Heinz >> >>> >>> Thanks /Suresh >>> >>> >>> -- dm-devel mailing list HYPERLINK "mailto:dm-devel@redhat.com" dm-dev= el@redhat.com=20 >>> https://www.redhat.com/mailman/listinfo/dm-devel >> >> > > > > -- dm-devel mailing list HYPERLINK "mailto:dm-devel@redhat.com" dm-devel= @redhat.com=20 > https://www.redhat.com/mailman/listinfo/dm-devel > -- dm-devel mailing list HYPERLINK "mailto:dm-devel@redhat.com" dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --__1422417801796114040abhmp0013.oracle.com Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable RE: [dm-devel] dm_mirror/dm_raid1 limitations ?.

What is difference= of  creating mirror with

1 )<= SPAN LANG=3D"en-us"> mdadm (    <= FONT FACE=3D"Calibri">mdadm --create --verbose /dev/md0 --level=3Dmirror --= raid-devices=3D2 /dev/sdb1 /dev/sdc1 --spare-devices=3D1 /dev/sdd1 )

and<= SPAN LANG=3D"en-us">

2)  dmsetup ( dmsetp create mirror )

Which one is bette= r ?. and Pros and cons ?. Google is not helping much

 

/Suresh

-----Original Mess= age-----
From: Marian Csontos [mailto:mcsonto= s@redhat.com]
Sent: Tuesday, January 27, 2015 12:32 AM
To: dm-devel@redhat.com
Subject: Re: [dm-devel] dm_mirror/dm_raid1 limitations ?.

On 01/26/2015 04:3= 4 PM, suresh= .babu.kandukuru@oracle.com wrote:

> Heinzm,thanks= for the quick reply.. We are using dmestup create mirror

> ..as we want = to do that on physical San lun (block devices) ... Not

> the one ( lv = create ) you mentioned below.. Is there any advantage

> going with lo= gical volume approach lvcreate -type

One of LVM feature= s is monitoring of mirror/raid LVs and removing/replacing any missing legs.=

Using dmsetup dire= ctly, you have to do this manually.

>=

> /Suresh

>=

> Sent from my = iPhone

>=

>> On Jan 26= , 2015, at 7:46 PM, Heinz Mauelshagen <heinzm@redhat.com<= /A>>

>> wrote:

>>

>>

>>> On 01= /26/2015 02:51 PM, Suresh Babu Kandukuru wrote: Use case is

>>> : Two= luns are mapped from storage array to linux host which are in

>>> same = SAN fabric . we want to create a mirror on the linux host with

>>> these= two luns and let  host use that mirror lun .  basic tests

>>> sugge= st that dm_mirror working fine . when we have any intermittent

>>> path = issues with between host and san array , host i/o just freeze ,

>>> never= returns back even after the path is online.

>>

>> Hard to t= ell what's happening without any kernel log.

>>

>>>

>>> Is dm= _mirror viable solution here  ?. Can you point me any link

>>> which= gives the limitations of dm_mirror ? . another alternate

>>> solut= ions you propose here ?. Thanks in advance .

>>

>> We've swi= tched the default away from "mirror" to "raid1" in orde= r to

>> take adva= ntage of th MD runtime. Have you tested  "lvcreate --type =

>> raid1 ...= " yet? Please do.

>>

>> Regards, = Heinz

>>

>>>

>>> Thank= s /Suresh

>>>

>>>

>>> -- dm= -devel mailing list dm-de= vel@redhat.com

>>> https://= www.redhat.com/mailman/listinfo/dm-devel=

>>

>> <Untit= led.txt>

>=

>=

>=

> -- dm-devel m= ailing list dm-devel@redh= at.com

>= https://www.redh= at.com/mailman/listinfo/dm-devel<= /A>

>=

--

dm-devel mailing l= ist

dm-devel@redhat.com=

http= s://www.redhat.com/mailman/listinfo/dm-devel

--__1422417801796114040abhmp0013.oracle.com-- --===============4039023385302257191== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4039023385302257191==--