Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

regression post 2.6.30: device mapper fails on some logical volumes

46 views
Skip to first unread message

Christian Bornträger

unread,
Jul 15, 2009, 1:20:10 PM7/15/09
to
Hello Mike,

your patch
commit 754c5fc7ebb417b23601a6222a6005cc2e7f2913
Author: Mike Snitzer <sni...@redhat.com>
Date: Mon Jun 22 10:12:34 2009 +0100

dm: calculate queue limits during resume not load

causes some problems during startup (/sbin/lvm vgchange -a y) on my s390 system.
The logical volumes space-home and space-test dont come up (device-mapper:
resume ioctl faile: Invalid argument) and dmesg has:

[ 4.450974] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-
de...@redhat.com
[ 4.567024] device-mapper: table: 253:0: target device dasdf1 is misaligned
[ 4.567031] device-mapper: table: 253:0: target device dasde1 is misaligned
[ 4.567036] device-mapper: table: 253:0: target device dasdf1 is misaligned
[ 4.567042] device-mapper: table: 253:0: target device dasde1 is misaligned
[ 4.589196] device-mapper: table: 253:1: target device dasdf1 is misaligned
[ 4.589202] device-mapper: table: 253:1: target device dasde1 is misaligned
[ 4.589208] device-mapper: table: 253:1: target device dasdf1 is misaligned
[ 4.589214] device-mapper: table: 253:1: target device dasde1 is misaligned
[ 4.611440] device-mapper: table: 253:2: target device dasdf1 is misaligned
[ 4.611446] device-mapper: table: 253:2: target device dasde1 is misaligned
[ 4.611452] device-mapper: table: 253:2: target device dasdf1 is misaligned
[ 4.611457] device-mapper: table: 253:2: target device dasde1 is misaligned
[ 4.633804] device-mapper: table: 253:3: target device dasdf1 is misaligned
[ 4.633810] device-mapper: table: 253:3: target device dasde1 is misaligned
[ 4.633816] device-mapper: table: 253:3: target device dasdf1 is misaligned
[ 4.633821] device-mapper: table: 253:3: target device dasde1 is misaligned
[ 4.656035] device-mapper: table: 253:4: target device dasdf1 is misaligned
[ 4.656040] device-mapper: table: 253:4: target device dasde1 is misaligned
[ 4.656046] device-mapper: table: 253:4: target device dasdf1 is misaligned
[ 4.656052] device-mapper: table: 253:4: target device dasde1 is misaligned
[ 4.678408] device-mapper: table: 253:5: target device dasdf1 is misaligned
[ 4.678413] device-mapper: table: 253:5: target device dasde1 is misaligned
[ 4.678419] device-mapper: table: 253:5: target device dasdf1 is misaligned
[ 4.678424] device-mapper: table: 253:5: target device dasde1 is misaligned
[ 4.700951] device-mapper: table: 253:6: target device dasdf1 is misaligned
[ 4.700957] device-mapper: table: 253:6: target device dasde1 is misaligned
[ 4.700962] device-mapper: table: 253:6: target device dasdf1 is misaligned
[ 4.700968] device-mapper: table: 253:6: target device dasde1 is misaligned
[ 4.723516] device-mapper: table: 253:7: target device dasdf1 is misaligned
[ 4.723522] device-mapper: table: 253:7: target device dasde1 is misaligned
[ 4.723527] device-mapper: table: 253:7: target device dasdf1 is misaligned
[ 4.723533] device-mapper: table: 253:7: target device dasde1 is misaligned
[ 4.746748] device-mapper: table: 253:8: target device dasdf1 is misaligned
[ 4.746754] device-mapper: table: 253:8: target device dasde1 is misaligned
[ 4.746760] device-mapper: table: 253:8: target device dasdf1 is misaligned
[ 4.746765] device-mapper: table: 253:8: target device dasde1 is misaligned
[ 4.769524] device-mapper: table: 253:9: target device dasdf1 is misaligned
[ 4.769530] device-mapper: table: 253:9: target device dasde1 is misaligned
[ 4.769536] device-mapper: table: 253:9: target device dasdf1 is misaligned
[ 4.769541] device-mapper: table: 253:9: target device dasde1 is misaligned
[ 4.792364] device-mapper: table: 253:10: target device dasdf1 is misaligned
[ 4.792370] device-mapper: table: 253:10: target device dasde1 is misaligned
[ 4.792375] device-mapper: table: 253:10: target device dasdf1 is misaligned
[ 4.792381] device-mapper: table: 253:10: target device dasde1 is misaligned
[ 4.815425] device-mapper: table: 253:11: target device dasdf1 is misaligned
[ 4.815431] device-mapper: table: 253:11: target device dasde1 is misaligned
[ 4.815437] device-mapper: table: 253:11: target device dasdf1 is misaligned
[ 4.815442] device-mapper: table: 253:11: target device dasde1 is misaligned
[ 4.838585] device-mapper: table: 253:12: target device dasdf1 is misaligned
[ 4.838591] device-mapper: table: 253:12: target device dasde1 is misaligned
[ 4.838597] device-mapper: table: 253:12: target device dasdf1 is misaligned
[ 4.838602] device-mapper: table: 253:12: target device dasde1 is misaligned
[ 4.861830] device-mapper: table: 253:13: target device dasdf1 is misaligned
[ 4.861836] device-mapper: table: 253:13: target device dasde1 is misaligned
[ 4.861842] device-mapper: table: 253:13: target device dasdf1 is misaligned
[ 4.861848] device-mapper: table: 253:13: target device dasde1 is misaligned
[ 4.885126] device-mapper: table: 253:14: target device dasdf1 is misaligned
[ 4.885132] device-mapper: table: 253:14: target device dasde1 is misaligned
[ 4.885138] device-mapper: table: 253:14: target device dasdf1 is misaligned
[ 4.885143] device-mapper: table: 253:14: target device dasde1 is misaligned
[ 4.908738] device-mapper: table: 253:15: target device dasdf1 is misaligned
[ 4.908744] device-mapper: table: 253:15: target device dasde1 is misaligned
[ 4.908750] device-mapper: table: 253:15: target device dasdf1 is misaligned
[ 4.908755] device-mapper: table: 253:15: target device dasde1 is misaligned
[ 4.932243] device-mapper: table: 253:16: target device dasdf1 is misaligned
[ 4.932249] device-mapper: table: 253:16: target device dasde1 is misaligned
[ 4.932255] device-mapper: table: 253:16: target device dasdf1 is misaligned
[ 4.932260] device-mapper: table: 253:16: target device dasde1 is misaligned
[ 4.955903] device-mapper: table: 253:17: target device dasdf1 is misaligned
[ 4.955909] device-mapper: table: 253:17: target device dasde1 is misaligned
[ 4.955914] device-mapper: table: 253:17: target device dasdf1 is misaligned
[ 4.955920] device-mapper: table: 253:17: target device dasde1 is misaligned
[ 4.979580] device-mapper: table: 253:18: target device dasdf1 is misaligned
[ 4.979586] device-mapper: table: 253:18: target device dasde1 is misaligned
[ 4.979592] device-mapper: table: 253:18: target device dasdf1 is misaligned
[ 4.979597] device-mapper: table: 253:18: target device dasde1 is misaligned
[ 5.003273] device-mapper: table: 253:19: target device dasdf1 is misaligned
[ 5.003279] device-mapper: table: 253:19: target device dasde1 is misaligned
[ 5.003285] device-mapper: table: 253:19: target device dasdf1 is misaligned
[ 5.003290] device-mapper: table: 253:19: target device dasde1 is misaligned
[ 5.027017] device-mapper: table: 253:20: target device dasdf1 is misaligned
[ 5.027023] device-mapper: table: 253:20: target device dasde1 is misaligned
[ 5.027029] device-mapper: table: 253:20: target device dasdf1 is misaligned
[ 5.027034] device-mapper: table: 253:20: target device dasde1 is misaligned
[ 5.050967] device-mapper: table: 253:21: target device dasdf1 is misaligned
[ 5.050972] device-mapper: table: 253:21: target device dasde1 is misaligned
[ 5.050978] device-mapper: table: 253:21: target device dasdf1 is misaligned
[ 5.050983] device-mapper: table: 253:21: target device dasde1 is misaligned
[ 5.075008] device-mapper: table: 253:22: target device dasdf1 is misaligned
[ 5.075014] device-mapper: table: 253:22: target device dasde1 is misaligned
[ 5.075020] device-mapper: table: 253:22: target device dasdf1 is misaligned
[ 5.075025] device-mapper: table: 253:22: target device dasde1 is misaligned
[ 5.099179] device-mapper: table: 253:23: target device dasdf1 is misaligned
[ 5.099185] device-mapper: table: 253:23: target device dasde1 is misaligned
[ 5.099191] device-mapper: table: 253:23: target device dasdf1 is misaligned
[ 5.099196] device-mapper: table: 253:23: target device dasde1 is misaligned
[ 5.123406] device-mapper: table: 253:24: target device dasdf1 is misaligned
[ 5.123412] device-mapper: table: 253:24: target device dasde1 is misaligned
[ 5.123417] device-mapper: table: 253:24: target device dasdf1 is misaligned
[ 5.123423] device-mapper: table: 253:24: target device dasde1 is misaligned
[ 5.147705] device-mapper: table: 253:25: target device dasdf1 is misaligned
[ 5.147711] device-mapper: table: 253:25: target device dasde1 is misaligned
[ 5.147717] device-mapper: table: 253:25: target device dasdf1 is misaligned
[ 5.147722] device-mapper: table: 253:25: target device dasde1 is misaligned
[ 5.172251] device-mapper: table: 253:26: target device dasdf1 is misaligned
[ 5.172257] device-mapper: table: 253:26: target device dasde1 is misaligned
[ 5.172263] device-mapper: table: 253:26: target device dasdf1 is misaligned
[ 5.172268] device-mapper: table: 253:26: target device dasde1 is misaligned
[ 5.196815] device-mapper: table: 253:27: target device dasdf1 is misaligned
[ 5.196821] device-mapper: table: 253:27: target device dasde1 is misaligned
[ 5.196826] device-mapper: table: 253:27: target device dasdf1 is misaligned
[ 5.196832] device-mapper: table: 253:27: target device dasde1 is misaligned
[ 5.221607] device-mapper: table: 253:28: target device dasdf1 is misaligned
[ 5.221613] device-mapper: table: 253:28: target device dasde1 is misaligned
[ 5.221619] device-mapper: table: 253:28: target device dasdf1 is misaligned
[ 5.221624] device-mapper: table: 253:28: target device dasde1 is misaligned
[ 5.247061] device-mapper: table: 253:29: target device dasdf1 is misaligned
[ 5.247067] device-mapper: table: 253:29: target device dasde1 is misaligned
[ 5.247073] device-mapper: table: 253:29: target device dasdf1 is misaligned
[ 5.247079] device-mapper: table: 253:29: target device dasde1 is misaligned
[ 5.272408] device-mapper: table: 253:30: target device dasdf1 is misaligned
[ 5.272414] device-mapper: table: 253:30: target device dasde1 is misaligned
[ 5.272419] device-mapper: table: 253:30: target device dasdf1 is misaligned
[ 5.272425] device-mapper: table: 253:30: target device dasde1 is misaligned
[ 5.297555] device-mapper: table: 253:31: target device dasdf1 is misaligned
[ 5.297561] device-mapper: table: 253:31: target device dasde1 is misaligned
[ 5.297567] device-mapper: table: 253:31: target device dasdf1 is misaligned
[ 5.297572] device-mapper: table: 253:31: target device dasde1 is misaligned
[ 5.322750] device-mapper: table: 253:32: target device dasdf1 is misaligned
[ 5.322756] device-mapper: table: 253:32: target device dasde1 is misaligned
[ 5.322762] device-mapper: table: 253:32: target device dasdf1 is misaligned
[ 5.322767] device-mapper: table: 253:32: target device dasde1 is misaligned
[ 5.348129] device-mapper: table: 253:33: target device dasdf1 is misaligned
[ 5.348135] device-mapper: table: 253:33: target device dasde1 is misaligned
[ 5.348141] device-mapper: table: 253:33: target device dasdf1 is misaligned
[ 5.348146] device-mapper: table: 253:33: target device dasde1 is misaligned
[ 5.373557] device-mapper: table: 253:34: target device dasdf1 is misaligned
[ 5.373563] device-mapper: table: 253:34: target device dasde1 is misaligned
[ 5.373569] device-mapper: table: 253:34: target device dasdf1 is misaligned
[ 5.373574] device-mapper: table: 253:34: target device dasde1 is misaligned
[ 5.399201] device-mapper: table: 253:35: target device dasdf1 is misaligned
[ 5.399207] device-mapper: table: 253:35: target device dasde1 is misaligned
[ 5.399213] device-mapper: table: 253:35: target device dasdf1 is misaligned
[ 5.399218] device-mapper: table: 253:35: target device dasde1 is misaligned
[ 5.424923] device-mapper: table: 253:36: target device dasdf1 is misaligned
[ 5.424929] device-mapper: table: 253:36: target device dasde1 is misaligned
[ 5.424935] device-mapper: table: 253:36: target device dasdf1 is misaligned
[ 5.424940] device-mapper: table: 253:36: target device dasde1 is misaligned
[ 5.451162] device-mapper: table: 253:37: target device dasdf1 is misaligned
[ 5.451168] device-mapper: table: 253:37: target device dasde1 is misaligned
[ 5.451174] device-mapper: table: 253:37: target device dasdf1 is misaligned
[ 5.451180] device-mapper: table: 253:37: target device dasde1 is misaligned
[ 5.477232] device-mapper: table: 253:38: target device dasdf1 is misaligned
[ 5.477238] device-mapper: table: 253:38: target device dasde1 is misaligned
[ 5.477244] device-mapper: table: 253:38: target device dasdf1 is misaligned
[ 5.477249] device-mapper: table: 253:38: target device dasde1 is misaligned
[ 5.503196] device-mapper: table: 253:39: target device dasdf1 is misaligned
[ 5.503202] device-mapper: table: 253:39: target device dasde1 is misaligned
[ 5.503208] device-mapper: table: 253:39: target device dasdf1 is misaligned
[ 5.503213] device-mapper: table: 253:39: target device dasde1 is misaligned
[ 5.529146] device-mapper: table: 253:40: target device dasdf1 is misaligned
[ 5.529152] device-mapper: table: 253:40: target device dasde1 is misaligned
[ 5.529158] device-mapper: table: 253:40: target device dasdf1 is misaligned
[ 5.529163] device-mapper: table: 253:40: target device dasde1 is misaligned
[ 5.555273] device-mapper: table: 253:41: target device dasdf1 is misaligned
[ 5.555279] device-mapper: table: 253:41: target device dasde1 is misaligned
[ 5.555285] device-mapper: table: 253:41: target device dasdf1 is misaligned
[ 5.555290] device-mapper: table: 253:41: target device dasde1 is misaligned
[ 5.581672] device-mapper: table: 253:42: target device dasdf1 is misaligned
[ 5.581678] device-mapper: table: 253:42: target device dasde1 is misaligned
[ 5.581684] device-mapper: table: 253:42: target device dasdf1 is misaligned
[ 5.581689] device-mapper: table: 253:42: target device dasde1 is misaligned
[ 5.609371] device-mapper: table: 253:43: target device dasdf1 is misaligned
[ 5.609377] device-mapper: table: 253:43: target device dasde1 is misaligned
[ 5.609382] device-mapper: table: 253:43: target device dasdf1 is misaligned
[ 5.609388] device-mapper: table: 253:43: target device dasde1 is misaligned
[ 5.635806] device-mapper: table: 253:44: target device dasdf1 is misaligned
[ 5.635812] device-mapper: table: 253:44: target device dasde1 is misaligned
[ 5.635818] device-mapper: table: 253:44: target device dasdf1 is misaligned
[ 5.635823] device-mapper: table: 253:44: target device dasde1 is misaligned
[ 5.662333] device-mapper: table: 253:45: target device dasdf1 is misaligned
[ 5.662339] device-mapper: table: 253:45: target device dasde1 is misaligned
[ 5.662345] device-mapper: table: 253:45: target device dasdf1 is misaligned
[ 5.662351] device-mapper: table: 253:45: target device dasde1 is misaligned
[ 5.688979] device-mapper: table: 253:46: target device dasdf1 is misaligned
[ 5.688985] device-mapper: table: 253:46: target device dasde1 is misaligned
[ 5.688991] device-mapper: table: 253:46: target device dasdf1 is misaligned
[ 5.688996] device-mapper: table: 253:46: target device dasde1 is misaligned
[ 5.715719] device-mapper: table: 253:47: target device dasdf1 is misaligned
[ 5.715725] device-mapper: table: 253:47: target device dasde1 is misaligned
[ 5.715731] device-mapper: table: 253:47: target device dasdf1 is misaligned
[ 5.715736] device-mapper: table: 253:47: target device dasde1 is misaligned
[ 5.742624] device-mapper: table: 253:48: target device dasdf1 is misaligned
[ 5.742630] device-mapper: table: 253:48: target device dasde1 is misaligned
[ 5.742636] device-mapper: table: 253:48: target device dasdf1 is misaligned
[ 5.742642] device-mapper: table: 253:48: target device dasde1 is misaligned
[ 5.769767] device-mapper: table: 253:49: target device dasdf1 is misaligned
[ 5.769773] device-mapper: table: 253:49: target device dasde1 is misaligned
[ 5.769779] device-mapper: table: 253:49: target device dasdf1 is misaligned
[ 5.769784] device-mapper: table: 253:49: target device dasde1 is misaligned
[ 5.797018] device-mapper: table: 253:50: target device dasdf1 is misaligned
[ 5.797024] device-mapper: table: 253:50: target device dasde1 is misaligned
[ 5.797029] device-mapper: table: 253:50: target device dasdf1 is misaligned
[ 5.797035] device-mapper: table: 253:50: target device dasde1 is misaligned
[ 5.824218] device-mapper: table: 253:51: target device dasdf1 is misaligned
[ 5.824225] device-mapper: table: 253:51: target device dasde1 is misaligned
[ 5.824230] device-mapper: table: 253:51: dasdf1 too small for target
[ 5.824236] device-mapper: table: 253:51: dasde1 too small for target
[ 5.851638] device-mapper: table: 253:52: target device dasdd1 is misaligned
[ 5.851644] device-mapper: table: 253:52: target device dasdf1 is misaligned
[ 5.851650] device-mapper: table: 253:52: target device dasdd1 is misaligned
[ 5.851655] device-mapper: table: 253:52: target device dasdf1 is misaligned
[ 5.879150] device-mapper: table: 253:53: target device dasdc1 is misaligned
[ 5.879156] device-mapper: table: 253:53: target device dasdd1 is misaligned
[ 5.879162] device-mapper: table: 253:53: target device dasdc1 is misaligned
[ 5.879167] device-mapper: table: 253:53: target device dasdd1 is misaligned
[ 5.906693] device-mapper: table: 253:54: target device dasdc1 is misaligned
[ 5.906699] device-mapper: table: 253:54: target device dasde1 is misaligned
[ 5.906705] device-mapper: table: 253:54: target device dasdc1 is misaligned
[ 5.906710] device-mapper: table: 253:54: target device dasde1 is misaligned
[ 5.934859] device-mapper: table: 253:55: target device dasdc1 is misaligned
[ 5.934865] device-mapper: table: 253:55: target device dasde1 is misaligned
[ 5.934870] device-mapper: table: 253:55: target device dasdc1 is misaligned
[ 5.934876] device-mapper: table: 253:55: target device dasde1 is misaligned
[ 5.962624] device-mapper: table: 253:56: target device dasdc1 is misaligned
[ 5.962630] device-mapper: table: 253:56: target device dasde1 is misaligned
[ 5.962636] device-mapper: table: 253:56: target device dasdc1 is misaligned
[ 5.962641] device-mapper: table: 253:56: target device dasde1 is misaligned
[ 5.991056] device-mapper: table: 253:57: target device dasdc1 is misaligned
[ 5.991062] device-mapper: table: 253:57: target device dasde1 is misaligned
[ 5.991068] device-mapper: table: 253:57: target device dasdc1 is misaligned
[ 5.991073] device-mapper: table: 253:57: target device dasde1 is misaligned
[ 6.019482] device-mapper: table: 253:58: target device dasdc1 is misaligned
[ 6.019488] device-mapper: table: 253:58: target device dasde1 is misaligned
[ 6.019494] device-mapper: table: 253:58: target device dasdc1 is misaligned
[ 6.019499] device-mapper: table: 253:58: target device dasde1 is misaligned
[ 6.048163] device-mapper: table: 253:59: target device dasdc1 is misaligned
[ 6.048168] device-mapper: table: 253:59: target device dasde1 is misaligned
[ 6.048174] device-mapper: table: 253:59: target device dasdc1 is misaligned
[ 6.048180] device-mapper: table: 253:59: target device dasde1 is misaligned
[ 6.076781] device-mapper: table: 253:60: target device dasdc1 is misaligned
[ 6.076787] device-mapper: table: 253:60: target device dasde1 is misaligned
[ 6.076793] device-mapper: table: 253:60: target device dasdc1 is misaligned
[ 6.076798] device-mapper: table: 253:60: target device dasde1 is misaligned
[ 6.105621] device-mapper: table: 253:61: target device dasdc1 is misaligned
[ 6.105627] device-mapper: table: 253:61: target device dasde1 is misaligned
[ 6.105633] device-mapper: table: 253:61: target device dasdc1 is misaligned
[ 6.105639] device-mapper: table: 253:61: target device dasde1 is misaligned
[ 6.134582] device-mapper: table: 253:62: target device dasdc1 is misaligned
[ 6.134588] device-mapper: table: 253:62: target device dasde1 is misaligned
[ 6.134594] device-mapper: table: 253:62: target device dasdc1 is misaligned
[ 6.134600] device-mapper: table: 253:62: target device dasde1 is misaligned
[ 6.163671] device-mapper: table: 253:63: target device dasdc1 is misaligned
[ 6.163677] device-mapper: table: 253:63: target device dasde1 is misaligned
[ 6.163683] device-mapper: table: 253:63: target device dasdc1 is misaligned
[ 6.163688] device-mapper: table: 253:63: target device dasde1 is misaligned
[ 6.192928] device-mapper: table: 253:64: target device dasdf1 is misaligned
[ 6.192934] device-mapper: table: 253:64: target device dasde1 is misaligned
[ 6.192940] device-mapper: table: 253:64: target device dasdc1 is misaligned
[ 6.192946] device-mapper: table: 253:64: target device dasdd1 is misaligned
[ 6.192952] device-mapper: table: 253:64: dasdc1 too small for target
[ 6.192958] device-mapper: table: 253:64: dasdd1 too small for target

I have taken some snapshorts of pv/vg/lvdisplay on a working kernel (see
attachements) If you need more information, please let me know.

Christian

pvdisplay.txt
lvdisplay.txt
vgdisplay.txt

Mike Snitzer

unread,
Jul 15, 2009, 5:50:12 PM7/15/09
to
On Wed, Jul 15 2009 at 12:52pm -0400,
Christian Borntr�ger <bornt...@de.ibm.com> wrote:

> Hello Mike,
>
> your patch
> commit 754c5fc7ebb417b23601a6222a6005cc2e7f2913
> Author: Mike Snitzer <sni...@redhat.com>
> Date: Mon Jun 22 10:12:34 2009 +0100
>
> dm: calculate queue limits during resume not load
>
> causes some problems during startup (/sbin/lvm vgchange -a y) on my s390 system.
> The logical volumes space-home and space-test dont come up (device-mapper:
> resume ioctl faile: Invalid argument) and dmesg has:
>
> [ 4.450974] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-
> de...@redhat.com
> [ 4.567024] device-mapper: table: 253:0: target device dasdf1 is misaligned

...


> [ 6.048168] device-mapper: table: 253:59: target device dasde1 is misaligned

Christian,

Which kernel are you using? I believe these warnings have been fixed
with this commit (which should be part of 2.6.31-rc2):
ea9df47cc92573b159ef3b4fda516c32cba9c4fd

Mike

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Christian Bornträger

unread,
Jul 16, 2009, 1:40:09 AM7/16/09
to
Am Mittwoch 15 Juli 2009 23:40:52 schrieb Mike Snitzer:

>
> > [ 6.048168] device-mapper: table: 253:59: target device dasde1 is
> > misaligned
>
> Christian,
>
> Which kernel are you using? I believe these warnings have been fixed
> with this commit (which should be part of 2.6.31-rc2):
> ea9df47cc92573b159ef3b4fda516c32cba9c4fd
>
> Mike

Mike,

I see the problem with 2.6.31-rc3. Given the content of patch ea9df4...it might
be of interest that my dasd devices have a hard sector size of 4k:

$ sudo blockdev --getss /dev/dasdf1
4096
$ sudo blockdev --getbsz /dev/dasdf1
4096

Since I always get confused by the internal 512 bytes vs. hard sector size vs.
block size vs. file system block size I dont know if that is important.

Christian

Mike Snitzer

unread,
Jul 16, 2009, 10:50:12 AM7/16/09
to
On Thu, Jul 16 2009 at 1:36am -0400,

Christian Borntr�ger <bornt...@de.ibm.com> wrote:

> Am Mittwoch 15 Juli 2009 23:40:52 schrieb Mike Snitzer:
>
> >
> > > [ 6.048168] device-mapper: table: 253:59: target device dasde1 is
> > > misaligned
> >
> > Christian,
> >
> > Which kernel are you using? I believe these warnings have been fixed
> > with this commit (which should be part of 2.6.31-rc2):
> > ea9df47cc92573b159ef3b4fda516c32cba9c4fd
> >
> > Mike
>
> Mike,
>
> I see the problem with 2.6.31-rc3. Given the content of patch ea9df4...it might
> be of interest that my dasd devices have a hard sector size of 4k:
>
> $ sudo blockdev --getss /dev/dasdf1
> 4096
> $ sudo blockdev --getbsz /dev/dasdf1
> 4096
>
> Since I always get confused by the internal 512 bytes vs. hard sector size vs.
> block size vs. file system block size I dont know if that is important.

These "target device dasde1 is misaligned" warnings are a function of
device-mapper now being topology-aware. This means that your LVs are
likely misaligned relative to the underlying hardware.

Moving forward it would likely be wise if we were to add a bit more
contextual information to the warning so we'd know _why_ a device was
deemed "misaligned".

So you know these dasd devices to use an internal (aka
physical_block_size) of 512 bytes? And a logical_block_size (aka hard
sect size) of 4096 bytes? That would be strange; I'm only aware of the
opposite being possible (physical_block_size=4096,
logical_block_size=512).

In any case, the reason for your "aisaligned" warnings could be that
you're using partitions with start offsets into the underlying dasd
device that aren't aligned on a 4k boundary.

Please provide the output from the following commands:

pvs -o +pe_start /dev/dasdf1

I'm not sure of the /sys/block/ device names that are associated with
/dev/dasdf1, maybe dasdf is the entire device and dasdf1 is a partition?

So along the lines of these commands (relative to sda6):
cat /sys/block/sda/sda6/alignment_offset
cat /sys/block/sda/queue/physical_block_size
cat /sys/block/sda/queue/logical_block_size

maybe these are applicable to dasdf1?:
cat /sys/block/dasdf/dasdf1/alignment_offset
cat /sys/block/dasdf/queue/physical_block_size
cat /sys/block/dasdf/queue/logical_block_size

It would also be great if you could provide the "dmsetup table"
output associated the dasdf1 device. Are you just using linear DM
mappings?

Thanks,
Mike

p.s. I'm out of the office for a few more days but when I'm back I can
look to try to reproduce on dasd devices on s390 hardware (if we're
unable to make progress with you sharing the above info).

Christian Bornträger

unread,
Jul 16, 2009, 11:20:11 AM7/16/09
to
Am Donnerstag 16 Juli 2009 16:44:39 schrieben Sie:

> On Thu, Jul 16 2009 at 1:36am -0400,
> These "target device dasde1 is misaligned" warnings are a function of
> device-mapper now being topology-aware. This means that your LVs are
> likely misaligned relative to the underlying hardware.
>
> Moving forward it would likely be wise if we were to add a bit more
> contextual information to the warning so we'd know _why_ a device was
> deemed "misaligned".
>
> So you know these dasd devices to use an internal (aka
> physical_block_size) of 512 bytes? And a logical_block_size (aka hard
> sect size) of 4096 bytes? That would be strange; I'm only aware of the
> opposite being possible (physical_block_size=4096,
> logical_block_size=512).

No, the physical block size and the logical block size is 4k for dasds.


> In any case, the reason for your "aisaligned" warnings could be that
> you're using partitions with start offsets into the underlying dasd
> device that aren't aligned on a 4k boundary.
> Please provide the output from the following commands:
>
> pvs -o +pe_start /dev/dasdf1

[root@t63lp34 ~]# pvs -o +pe_start /dev/dasdf1
PV VG Fmt Attr PSize PFree 1st PE
/dev/dasdf1 space lvm2 a- 22.49G 12.00M 192.00K

> I'm not sure of the /sys/block/ device names that are associated with
> /dev/dasdf1, maybe dasdf is the entire device and dasdf1 is a partition?

Yes, dasdf is a device with up to 3 partitions and dasdf1 is the first
partition:


> So along the lines of these commands (relative to sda6):
> cat /sys/block/sda/sda6/alignment_offset
> cat /sys/block/sda/queue/physical_block_size
> cat /sys/block/sda/queue/logical_block_size
>
> maybe these are applicable to dasdf1?:
> cat /sys/block/dasdf/dasdf1/alignment_offset

0

> cat /sys/block/dasdf/queue/physical_block_size
4096

> cat /sys/block/dasdf/queue/logical_block_size
4096

>
> It would also be great if you could provide the "dmsetup table"
> output associated the dasdf1 device. Are you just using linear DM
> mappings?

If you look down the logs, all 4 pv are affected, so I am posting the complete
dmsetup table output. dasdf1 is 94:21.

space-s17: 0 819200 striped 2 128 94:21 27148672 94:17 27148672
space-r5: 0 819200 striped 2 128 94:21 16908672 94:17 16908672
space-r16: 0 819200 striped 2 128 94:21 25919872 94:17 25919872
space-s16: 0 819200 striped 2 128 94:21 26329472 94:17 26329472
space-s9: 0 819200 striped 2 128 94:21 20595072 94:17 20595072
space-r4: 0 819200 striped 2 128 94:21 16089472 94:17 16089472
space-r15: 0 819200 striped 2 128 94:21 25100672 94:17 25100672
space-s15: 0 819200 striped 2 128 94:21 25510272 94:17 25510272
space-s8: 0 819200 striped 2 128 94:21 19775872 94:17 19775872
space-r3: 0 819200 striped 2 128 94:21 15270272 94:17 15270272
space-r29: 0 819200 striped 2 128 94:9 7471488 94:17 45482368
space-r14: 0 819200 striped 2 128 94:21 24281472 94:17 24281472
space-s29: 0 819200 striped 2 128 94:9 7881088 94:17 45891968
space-s14: 0 819200 striped 2 128 94:21 24691072 94:17 24691072
space-s7: 0 819200 striped 2 128 94:21 18956672 94:17 18956672
space-r2: 0 819200 striped 2 128 94:21 14451072 94:17 14451072
space-r28: 0 819200 striped 2 128 94:9 6652288 94:17 44663168
space-r13: 0 819200 striped 2 128 94:21 23462272 94:17 23462272
space-usr: 0 6291456 striped 2 128 94:21 10486144 94:17 10486144
space-s28: 0 819200 striped 2 128 94:9 7061888 94:17 45072768
space-s13: 0 819200 striped 2 128 94:21 23871872 94:17 23871872
space-s6: 0 819200 striped 2 128 94:21 18137472 94:17 18137472
space-r1: 0 819200 striped 2 128 94:21 13631872 94:17 13631872
space-r27: 0 819200 striped 2 128 94:9 5833088 94:17 43843968
space-r12: 0 819200 striped 2 128 94:21 22643072 94:17 22643072
space-test: 0 6291456 striped 2 128 94:21 33292672 94:17 33292672
space-test: 6291456 2441216 striped 2 128 94:9 8290688 94:13 8388992
space-test: 8732672 1490944 striped 2 128 94:17 46301568 94:21 46399872
space-s27: 0 819200 striped 2 128 94:9 6242688 94:17 44253568
space-s12: 0 819200 striped 2 128 94:21 23052672 94:17 23052672
space-s5: 0 819200 striped 2 128 94:21 17318272 94:17 17318272
space-r26: 0 819200 striped 2 128 94:9 5013888 94:17 43024768
space-r11: 0 819200 striped 2 128 94:21 21823872 94:17 21823872
space-s26: 0 819200 striped 2 128 94:9 5423488 94:17 43434368
space-s11: 0 819200 striped 2 128 94:21 22233472 94:17 22233472
space-s4: 0 819200 striped 2 128 94:21 16499072 94:17 16499072
space-r25: 0 819200 striped 2 128 94:9 4194688 94:17 42205568
space-home: 0 10485760 striped 2 128 94:21 36962688 94:17 36962688
space-r10: 0 819200 striped 2 128 94:21 21004672 94:17 21004672
space-s25: 0 819200 striped 2 128 94:9 4604288 94:17 42615168
space-s10: 0 819200 striped 2 128 94:21 21414272 94:17 21414272
space-s3: 0 819200 striped 2 128 94:21 15679872 94:17 15679872
space-r24: 0 819200 striped 2 128 94:21 32473472 94:17 32473472
space-base: 0 8388608 striped 2 128 94:9 384 94:13 4194688
space-s24: 0 819200 striped 2 128 94:21 32883072 94:17 32883072
space-s2: 0 819200 striped 2 128 94:21 14860672 94:17 14860672
space-r23: 0 819200 striped 2 128 94:21 31654272 94:17 31654272
space-r9: 0 819200 striped 2 128 94:21 20185472 94:17 20185472
space-s23: 0 819200 striped 2 128 94:21 32063872 94:17 32063872
space-s1: 0 819200 striped 2 128 94:21 14041472 94:17 14041472
space-r22: 0 819200 striped 2 128 94:21 30835072 94:17 30835072
space-space: 0 20971520 striped 2 128 94:21 384 94:17 384
space-root: 0 1048576 striped 2 128 94:21 36438400 94:17 36438400
space-r8: 0 819200 striped 2 128 94:21 19366272 94:17 19366272
space-s22: 0 819200 striped 2 128 94:21 31244672 94:17 31244672
space-r19: 0 819200 striped 2 128 94:21 28377472 94:17 28377472
space-r21: 0 819200 striped 2 128 94:21 30015872 94:17 30015872
space-s19: 0 819200 striped 2 128 94:21 28787072 94:17 28787072
space-r7: 0 819200 striped 2 128 94:21 18547072 94:17 18547072
space-s21: 0 819200 striped 2 128 94:21 30425472 94:17 30425472
space-r18: 0 819200 striped 2 128 94:21 27558272 94:17 27558272
space-r20: 0 819200 striped 2 128 94:21 29196672 94:17 29196672
space-s18: 0 819200 striped 2 128 94:21 27967872 94:17 27967872
space-r6: 0 819200 striped 2 128 94:21 17727872 94:17 17727872
space-ccache: 0 8388608 striped 2 128 94:13 384 94:21 42205568
space-s20: 0 819200 striped 2 128 94:21 29606272 94:17 29606272
space-r17: 0 819200 striped 2 128 94:21 26739072 94:17 26739072


PLease note that most of the LVs are fine, only test and home dont come up.
Maybe the following information is of some use:

[root@t63lp34 ~]# lvdisplay --maps /dev/mapper/space-home
--- Logical volume ---
LV Name /dev/space/home
VG Name space
LV UUID zqzWBR-orl5-c4N0-XNcP-hqtr-e3qa-TCwNLe
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:51

--- Segments ---
Logical extent 0 to 1279:
Type striped
Stripes 2
Stripe size 64 KB
Stripe 0:
Physical volume /dev/dasdf1
Physical extents 4512 to 5151
Stripe 1:
Physical volume /dev/dasde1
Physical extents 4512 to 5151


> p.s. I'm out of the office for a few more days but when I'm back I can
> look to try to reproduce on dasd devices on s390 hardware (if we're
> unable to make progress with you sharing the above info).

Well, next week I am going to leave for my wedding and my honeymoon, so we have
some kine of overlap here. I know that redhat has an s390, but I can also
reproduce and test in the middle of august ;-)

Is it possible that the lvm tools created logical volumes in a wrong way, and
the old kernel never detected a misaligment? (After all, the old code always
passed 0 to blk_stack_limits)

Christian

Christian Bornträger

unread,
Jul 16, 2009, 11:50:05 AM7/16/09
to
Am Donnerstag 16 Juli 2009 16:44:39 schrieb Mike Snitzer:

I had another reproduce, and with the latest code (2.6.31-rc3) the mislignment
warnings from rc1 are indeed gone: I now only have

[ 6.283482] device-mapper: table: 253:51: dasdf1 too small for target
[ 6.283488] device-mapper: table: 253:51: dasde1 too small for target
[ 6.648895] device-mapper: table: 253:64: dasdc1 too small for target
[ 6.648900] device-mapper: table: 253:64: dasdd1 too small for target

The logical volumes space-test and space-home still dont appear.

Christian

Mike Snitzer

unread,
Jul 16, 2009, 4:30:21 PM7/16/09
to
On Thu, Jul 16 2009 at 11:46am -0400,

Christian Borntr�ger <bornt...@de.ibm.com> wrote:

> Am Donnerstag 16 Juli 2009 16:44:39 schrieb Mike Snitzer:
>
> I had another reproduce, and with the latest code (2.6.31-rc3) the mislignment
> warnings from rc1 are indeed gone:

Ah OK, so you were using < 2.6.31-rc2 when you saw all those warnings.

> I now only have
>
> [ 6.283482] device-mapper: table: 253:51: dasdf1 too small for target
> [ 6.283488] device-mapper: table: 253:51: dasde1 too small for target
> [ 6.648895] device-mapper: table: 253:64: dasdc1 too small for target
> [ 6.648900] device-mapper: table: 253:64: dasdd1 too small for target
>
> The logical volumes space-test and space-home still dont appear.

I'm fairly certain that this pending fix will resolve your issues:
http://patchwork.kernel.org/patch/33534/

I'm not sure when Alasdair intends to push it to Linus but it should be
soon.

Mike

Christian Bornträger

unread,
Jul 16, 2009, 5:20:15 PM7/16/09
to
Am Donnerstag 16 Juli 2009 22:20:29 schrieb Mike Snitzer:
> > The logical volumes space-test and space-home still dont appear.
>
> I'm fairly certain that this pending fix will resolve your issues:
> http://patchwork.kernel.org/patch/33534/
>
> I'm not sure when Alasdair intends to push it to Linus but it should be
> soon.

Yes, it does. Thank you for your help.

> http://patchwork.kernel.org/patch/33534/
Tested-by: Christian Borntraeger <bornt...@de.ibm.com>

0 new messages