Romu,
did you initialize the metadata device before trying to create the
era target?
Zeroes in the first KBs will do.
Yes, check for NULL in era_destroy is needed to handle the error
path you hit properly.
Heinz
On 09/26/2014 05:16 AM, Romu Hu wrote:
On 2014/9/25 22:57, Heinz Mauelshagen wrote:
Romu,
"dmsetup create MyEra --table "0 20971520 /dev/mapper/mpathbp1
/dev/mapper/mpathap1 8"
should read
dmsetup create MyEra --table "0 20971520 era
/dev/mapper/mpathbp1 /dev/mapper/mpathap1 8"
Sorry my bad.
I ran 'dmsetup create MyEra --table "0 20971520 era
/dev/mapper/mpathbp1 /dev/mapper/mpathap1 8"' but kernel
(2.6.32-494.el6.i686) oopsed:
Sep 25 18:34:11 localhost kernel: device-mapper: era: sb_check
failed: magic 0: wanted 2126579579
Sep 25 18:34:11 localhost kernel: device-mapper: block
manager: superblock validator check failed for block 0
Sep 25 18:34:11 localhost kernel: device-mapper: era:
couldn't read_lock superblock
Sep 25 18:34:11 localhost kernel: BUG: unable to handle
kernel NULL pointer dereference at 00000008
Sep 25 18:34:11 localhost kernel: IP: [<f7e2b3c7>]
era_destroy+0x7/0x60 [dm_era]Sep 25 18:34:11 localhost kernel:
*pdpt = 0000000032457001 *pde = 00000003fb5fa067
Sep 25 18:34:11 localhost kernel: Oops: 0000 [#1] SMP
Sep 25 18:34:11 localhost kernel: last sysfs file:
/sys/module/dm_persistent_data/initstate
Perhaps this should be cherry-picked?
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=989f26f5ad308f40a95f280bf9cd75e558d4f18d
The log says sb_check failed, anything wrong with the dmsetup
command parameters?
Thanks
Romu
On 09/25/2014 04:02 PM, Romu wrote:
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel
--
===============================================================
Heinz Mauelshagen +49 2626 141200
Consulting Development Engineer FAX +49 2626 924446
Red Hat GmbH
Am Sonnenhang 11
56242 Marienrachdorf
Germany heinzm@xxxxxxxxxx
===============================================================
|
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel