FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 07-25-2012, 08:58 AM
Gaurav Mahajan
 
Default Dm-mirror Issue

Hi,

I want to run Dm-raid1 or dm-mirror in degraded mode.

So say I have 2 Disks (loop devices) and I create a mirror device over that (using dmsetup).
Create EXT4 over the new device, mounted it and started a huge number of IO using dd on that device.




Now while the IO are going on, I failed the 'Default' Mirror in the mirror set.

Then ideally the IO operation should not break. All the IO should go to other mirror.
But it is not happening. Either my dd command hangs till the default device comes back or it returns an IO error




and breaks the IO operations on disk.

Is this is known behavior ?
Or
I am missing something in configuration ?

I tried disabling initial sync, but still it is behaving same.

I am using Kernel 2.6.32.



Mirror target's version is 1.12.0

Please help !


Thanks,
Gaurav




--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 07-25-2012, 03:38 PM
Brassow Jonathan
 
Default Dm-mirror Issue

On Jul 25, 2012, at 3:58 AM, Gaurav Mahajan wrote:

> Hi,
>
> I want to run Dm-raid1 or dm-mirror in degraded mode.
>
> So say I have 2 Disks (loop devices) and I create a mirror device over that (using dmsetup).
> Create EXT4 over the new device, mounted it and started a huge number of IO using dd on that device.
> Now while the IO are going on, I failed the 'Default' Mirror in the mirror set.
>
> Then ideally the IO operation should not break. All the IO should go to other mirror.
> But it is not happening. Either my dd command hangs till the default device comes back or it returns an IO error
> and breaks the IO operations on disk.
>
> Is this is known behavior ?
> Or
> I am missing something in configuration ?
>
> I tried disabling initial sync, but still it is behaving same.
>
> I am using Kernel 2.6.32.
> Mirror target's version is 1.12.0

This is expected behavior. The dm-raid1.c code as written will block I/O in the event of a failure and wait for repair. This repair can be automated (as LVM does with dmeventd monitoring) or manual, but you are stuck until the condition is cleared.

Much of this boils down to the fact that failures are not recorded by the mirror in a superblock or log by the kernel. MD RAID can handle these situations because it does record device failures in the array superblocks. You can use MD or - if you prefer device-mapper - you can use dm-raid.c. Documentation for device-mapper raid targets can be found in the kernel source: linux/Documentation/device-mapper/dm-raid.txt. Alternately, you can create RAID devices via LVM (or 'mdadm' as I eluded to above).

brassow


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 01:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org