Skip to contentSkip to conversation

dm_mirror/dm_raid1 limitations ?.

DISCUSSION Suresh Babu Kandukuru 3 participants 5 messages Jan 26, 2015 – Jan 28, 2015 Device mapper

lore
Share & tools
lore
#0 lore raw

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 suggest 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.

Is dm_mirror viable solution here ?. Can you point me any link which gives the limitations of dm_mirror ? . another alternate solutions you propose here ?. Thanks in advance .

Thanks

/Suresh

#1 lore raw
Quoted 3 lines · Suresh Babu Kandukuru

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 suggest 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 tell what's happening without any kernel log.

Quoted 2 lines

Is dm_mirror viable solution here ?. Can you point me any link which gives the limitations of dm_mirror ? . another alternate solutions you propose here ?. Thanks in advance .

We've switched the default away from "mirror" to "raid1" in order to take advantage of th MD runtime. Have you tested "lvcreate --type raid1 ..." yet?
Please do.

Regards,
Heinz

Quoted 10 lines

Thanks

/Suresh

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#2 lore raw

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 logical volume approach lvcreate -type

/Suresh

Sent from my iPhone

Quoted 29 lines · Heinz Mauelshagen
Quoted 4 lines · Suresh Babu Kandukuru

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 suggest 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 tell what's happening without any kernel log.

Quoted 2 lines

Is dm_mirror viable solution here ?. Can you point me any link which gives the limitations of dm_mirror ? . another alternate solutions you propose here ?. Thanks in advance .

We've switched the default away from "mirror" to "raid1" in order to take advantage of th MD runtime. Have you tested "lvcreate --type raid1 ..." yet?
Please do.

Regards,
Heinz

Quoted 9 lines

Thanks
/Suresh

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

<Untitled.txt>

#3 lore raw
Quoted 4 lines · On 01/26/2015 04:34 PM, [email protected] 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 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.

Quoted 45 lines

/Suresh

Sent from my iPhone

Quoted 27 lines
Quoted 8 lines · Heinz Mauelshagen

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 suggest 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 tell what's happening without any kernel log.

Quoted 4 lines

Is dm_mirror viable solution here ?. Can you point me any link which gives the limitations of dm_mirror ? . another alternate solutions you propose here ?. Thanks in advance .

We've switched the default away from "mirror" to "raid1" in order to take advantage of th MD runtime. Have you tested "lvcreate --type raid1 ..." yet? Please do.

Regards, Heinz

Quoted 1 line
Quoted 7 lines
Quoted 5 lines

Thanks /Suresh

-- dm-devel mailing list [email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

<Untitled.txt>

-- dm-devel mailing list [email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#4 lore raw

What is difference of creating mirror with

1 ) mdadm ( mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1 /dev/sdc1 --spare-devices=1 /dev/sdd1 )
and
2) dmsetup ( dmsetp create mirror )

Which one is better ?. and Pros and cons ?. Google is not helping much

/Suresh

-----Original Message-----
From: Marian Csontos [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 12:32 AM
To: [email protected]
Subject: Re: [dm-devel] dm_mirror/dm_raid1 limitations ?.

Quoted 4 lines · On 01/26/2015 04:34 PM, HYPERLINK "mailto:[email protected]"…

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 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.

Quoted 37 lines

/Suresh

Sent from my iPhone

Quoted 32 lines
Quoted 7 lines · Heinz Mauelshagen

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 suggest 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 tell what's happening without any kernel log.

Quoted 4 lines

Is dm_mirror viable solution here ?. Can you point me any link which gives the limitations of dm_mirror ? . another alternate solutions you propose here ?. Thanks in advance .

We've switched the default away from "mirror" to "raid1" in order to take advantage of th MD runtime. Have you tested "lvcreate --type raid1 ..." yet? Please do.

Regards, Heinz

Quoted 6 lines

Thanks /Suresh

-- dm-devel mailing list HYPERLINK "mailto:[email protected]" [email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Quoted 7 lines
Quoted 1 line

<Untitled.txt>

-- dm-devel mailing list HYPERLINK "mailto:[email protected]" [email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
HYPERLINK "mailto:[email protected]" [email protected]
https://www.redhat.com/mailman/listinfo/dm-devel