dm-cache: clean cache resyncs to origin on every boot

Bug #1509237 reported by Bogdan Vasiliev
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On every boot an entire dm-cache resyncs to an origin device, even if it was clean before on shutdown. It takes time and full bandwidth of an origin device. There is the simple solution from the upstream:

commit 7e0a9739fd9e72dc51490bdff92796400b12a34f
Author: Joe Thornber <ejt redhat com>
Date: Thu Oct 22 18:10:55 2015 +0100

    [dm-cache] The CLEAN_SHUTDOWN flag was not being set

    or rather, it was being set on the disk, then immediately cleared again.

    If the CLEAN_SHUTDOWN flag is not set when a cache is loaded then all cache
    blocks are marked as dirty and a full writeback occurs.

Revision history for this message
Bogdan Vasiliev (bogdan-vasiliev) wrote :
tags: added: patch
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1509237

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → New
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Radek Zajic (radek-zajic) wrote : apport information

ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lightdm 12203 F.... pulseaudio
DistroRelease: Ubuntu 16.10
InstallationDate: Installed on 2012-04-24 (1660 days ago)
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120327)
MachineType: Gigabyte Technology Co., Ltd. B150N Phoenix-WIFI
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.8.0-26-generic root=LABEL=lvmroot ro nosplash vmalloc=256MB video=LVDS-1:d net.ifnames=0 biosdevname=0
ProcVersionSignature: Ubuntu 4.8.0-26.28-generic 4.8.0
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.8.0-26-generic N/A
 linux-backports-modules-4.8.0-26-generic N/A
 linux-firmware 1.161
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: yakkety
Uname: Linux 4.8.0-26-generic x86_64
UnreportableReason: The report belongs to a package that is not installed.
UpgradeStatus: Upgraded to yakkety on 2016-10-10 (30 days ago)
UserGroups:

_MarkForUpload: False
dmi.bios.date: 03/14/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F2
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B150N Phoenix-WIFI-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF2:bd03/14/2016:svnGigabyteTechnologyCo.,Ltd.:pnB150NPhoenix-WIFI:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnB150NPhoenix-WIFI-CF:rvrx.x:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: B150N Phoenix-WIFI
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

tags: added: apport-collected yakkety
Revision history for this message
Radek Zajic (radek-zajic) wrote : AlsaInfo.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : CRDA.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : IwConfig.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : JournalErrors.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : Lspci.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : Lsusb.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : ProcEnviron.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : ProcModules.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : UdevDb.txt

apport information

Revision history for this message
Radek Zajic (radek-zajic) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.