Hello, the device broke after about a day:
dmesg:[83086.878182] device-mapper: space map metadata: unable to allocate new metadata block
[83088.879861] device-mapper: space map metadata: unable to allocate new metadata block
[83089.414700] device-mapper: space map metadata: unable to allocate new metadata block
[83089.414706] device-mapper: cache: could not commit metadata for accurate status
[83090.881533] device-mapper: space map metadata: unable to allocate new metadata block
[83092.883142] device-mapper: space map metadata: unable to allocate new metadata block
[83094.884719] device-mapper: space map metadata: unable to allocate new metadata block
[83096.886355] device-mapper: space map metadata: unable to allocate new metadata block
[83097.712195] device-mapper: space map metadata: unable to allocate new metadata block
[83097.712200] device-mapper: cache: could not commit metadata for accurate status
[83098.283947] device-mapper: space map metadata: unable to allocate new metadata block
[83098.283952] device-mapper: cache: could not commit metadata for accurate status
[83098.729396] device-mapper: space map metadata: unable to allocate new metadata block
[83098.729401] device-mapper: cache: could not commit metadata for accurate status
dmsetup status:
4 MB + ( 16 bytes * nr_blocks ) I get 13341184 ~ 13MB and metadata partiton is 1024MB
device sizes:
# blockdev --report
RO RA SSZ BSZ StartSec Size Device
rw 256 512 4096 0 26843414528 /dev/sda
rw 256 512 4096 2048 4094689280 /dev/sda1
rw 256 512 4096 7999488 22746759168 /dev/sda2
rw 2048 512 4096 0 20973392756736 /dev/sdb
rw 2048 512 4096 2048 20973390659584 /dev/sdb1
rw 2048 512 4096 0 2397799710720 /dev/sdc
rw 2048 512 4096 2048 1023410176 /dev/sdc1
rw 2048 512 4096 2000896 2396774203392 /dev/sdc2
rw 2048 512 512 0 20973390659584 /dev/dm-0
What am I doing wrong?
regards.
On Fri, Nov 29, 2013 at 5:06 PM, Vladimir Smolensky <arizal@xxxxxxxxx> wrote:
Ok, I compiled it and will test if it works.When I try to make my cache with blocksize smaller than 8192 I get
# dmsetup create storage --table '0 40963653632 cache /dev/sdc1 /dev/sdc2 /dev/sdb1 4096 1 writeback default 0'
device-mapper: reload ioctl on storage failed: Cannot allocate memory
Command faileddnesg:
[ 664.940597] device-mapper: cache-policy-mq: version 1.1.0 loaded
[ 665.002924] ------------[ cut here ]------------
[ 665.002943] WARNING: CPU: 0 PID: 18271 at mm/page_alloc.c:2484 __alloc_pages_nodemask+0x73d/0x820()
[ 665.002945] Modules linked in: dm_cache_mq dm_cache dm_bio_prison dm_persistent_data dm_bufio ipv6 bonding coretemp ixgbe i7core_edac edac_core kvm processor pcspkr hed button bnx2 dcdbas dca mdio ehci_pci thermal_sys microcode joydev sha256_generic libiscsi scsi_transport_iscsi tg3 ptp pps_core libphy e1000 fuse nfs lockd sunrpc jfs multipath linear raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq raid1 raid0 dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log dm_mod hid_sunplus hid_sony hid_samsung hid_pl hid_petalynx hid_gyration sl811_hcd usbhid ohci_hcd uhci_hcd usb_storage ehci_hcd usbcore usb_common mpt2sas raid_class aic94xx libsas lpfc crc_t10dif crct10dif_common qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_transport_sas mptfc scsi_transport_fc scsi_tgt mptspi mptscsih mptbase atp870u dc395x qla1280 imm parport dmx3191d sym53c8xx gdth advansys initio BusLogic arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise pata_sl82c105 pata_cs5530 pata_cs5520 pata_via pata_jmicron pata_marvell pata_sis pata_netcell pata_sc1200 pata_pdc202xx_old pata_triflex pata_atiixp pata_opti pata_amd pata_ali pata_it8213 pata_ns87415 pata_ns87410 pata_serverworks pata_artop pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366 pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x pata_mpiix libata
[ 665.003077] CPU: 0 PID: 18271 Comm: dmsetup Not tainted 3.12.0-rc5+ #1
[ 665.003079] Hardware name: Dell Inc. PowerEdge R510/0DPRKF, BIOS 1.5.3 10/25/2010
[ 665.003082] 00000000000009b4 ffff881fada458f8 ffffffff81595198 00000000000009b4
[ 665.003085] 0000000000000000 ffff881fada45938 ffffffff81043a62 ffff881fada45918
[ 665.003088] 0000000000000000 ffff881fae8a0000 0000000000000000 0000000000000002
[ 665.003092] Call Trace:
[ 665.003101] [<ffffffff81595198>] dump_stack+0x49/0x61
[ 665.003107] [<ffffffff81043a62>] warn_slowpath_common+0x82/0xb0
[ 665.003111] [<ffffffff81043aa5>] warn_slowpath_null+0x15/0x20
[ 665.003114] [<ffffffff810c595d>] __alloc_pages_nodemask+0x73d/0x820
[ 665.003120] [<ffffffffa14405b7>] ? mq_create+0x187/0x3a0 [dm_cache_mq]
[ 665.003124] [<ffffffff810c5ac2>] __get_free_pages+0x12/0x50
[ 665.003130] [<ffffffff810f69cb>] __kmalloc+0xeb/0xf0
[ 665.003134] [<ffffffffa1440767>] mq_create+0x337/0x3a0 [dm_cache_mq]
[ 665.003139] [<ffffffffa1436faa>] dm_cache_policy_create+0x4a/0xcc [dm_cache]
[ 665.003143] [<ffffffffa14339d1>] cache_ctr+0x4a1/0xd40 [dm_cache]
[ 665.003152] [<ffffffffa065dbb8>] ? dm_split_args+0x78/0x140 [dm_mod]
[ 665.003159] [<ffffffffa065ddba>] dm_table_add_target+0x13a/0x390 [dm_mod]
[ 665.003166] [<ffffffffa0660eb0>] table_load+0xd0/0x330 [dm_mod]
[ 665.003173] [<ffffffffa0660de0>] ? table_clear+0xd0/0xd0 [dm_mod]
[ 665.003179] [<ffffffffa0662032>] ctl_ioctl+0x1d2/0x410 [dm_mod]
[ 665.003187] [<ffffffff8103a718>] ? __do_page_fault+0x208/0x4e0
[ 665.003193] [<ffffffffa066227e>] dm_ctl_ioctl+0xe/0x20 [dm_mod]
[ 665.003198] [<ffffffff8110bd2e>] do_vfs_ioctl+0x8e/0x4e0
[ 665.003202] [<ffffffff810fbc09>] ? ____fput+0x9/0x10
[ 665.003205] [<ffffffff8110c1d2>] SyS_ioctl+0x52/0x80
[ 665.003211] [<ffffffff815996f9>] system_call_fastpath+0x16/0x1b
[ 665.003213] ---[ end trace 2afe5f836777e03f ]---
[ 665.008704] device-mapper: table: 253:0: cache: Error creating cache's policy
[ 665.008712] device-mapper: ioctl: error adding target to table
# blockdev --report
RO RA SSZ BSZ StartSec Size Device
rw 256 512 4096 0 26843414528 /dev/sda
rw 256 512 4096 2048 4094689280 /dev/sda1
rw 256 512 4096 7999488 22746759168 /dev/sda2
rw 256 512 4096 0 20973392756736 /dev/sdb
rw 256 512 4096 2048 20973390659584 /dev/sdb1
rw 256 512 4096 0 2397799710720 /dev/sdc
rw 256 512 4096 2048 1023410176 /dev/sdc1
rw 256 512 4096 2000896 2396774203392 /dev/sdc2
regards.On Fri, Nov 29, 2013 at 3:34 PM, Vladimir Smolensky <arizal@xxxxxxxxx> wrote:This is complete kernel, right?On Thu, Nov 28, 2013 at 7:28 PM, Joe Thornber <thornber@xxxxxxxxxx> wrote:
On Thu, Nov 28, 2013 at 06:50:39PM +0200, Vladimir Smolensky wrote:My latest stable code lives in the 'thin-dev' branch of my github tree:
> Hello, I would like to test the latest dm-cache available to see if the
> problem I was having still exists. Where can I get this code?
https://github.com/jthornber/linux-2.6/tree/thin-dev
This has the latest versions of both the thin-provisioning and cache
targets, and will shortly have the era target too.
-- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel