← Back to team overview

kernel-packages team mailing list archive

[Bug 1063354] Re: Sudden Read-Only Filesystems

 

Hi there,

I am running Ubuntu 12.04 LTS on three machines:

1. An intel xeon with an asus motherboard, 32GB RAM, SSD (SAMSUNG older model)
2. An Lenovo Thinkpad 201s i7, 8GB RAM, SSD (Crucial)
3. An Lenovo Thinkpad W510 i7 720, 8GB RAM, SSD (Samsung EVO)

All systems are running under kernel 3.11 (linux-image-generic-lts-saucy
, 3.11.0.15.14)

/etc/default/grub:  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

/etc/modprobe.d/options: EMPTY

The #3 (W510) randomly freezes with the following errors:
ata1: SATA max UDMA/133 abar m2048@0xf2627000 port 0xf2627100 irq 54
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
ata1.00: ATA-9: Samsung SSD 840 EVO 500GB, EXT0BB0Q, max UDMA/133
ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
ata1.00: configured for UDMA/133
[...]

These errors occur up to 5-10 times, then the SSD is set to readonly
state like this:

ata1: EH complete
ata1: limiting SATA link speed to 1.5 Gbps
ata1.00: exception Emask 0x52 SAct 0x1 SErr 0x1a80d00 action 0x6 frozen
ata1.00: irq_stat 0x08000000, interface fatal error
ata1: SError: { UnrecovData Proto HostInt 10B8B BadCRC LinkSeq TrStaTrns }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/08:00:d8:b9:27/00:00:05:00:00/40 tag 0 ncq 4096 in
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)

---------------------------------

i am now trying the following settings:

/etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
libata.force=noncq"

/etc/modprobe.d/options: options libata noacpi=1

/etc/default/tlp (which was on standard setting until now)

# Hard disk advanced power management level: 1(max saving)..254(off)
# Levels 1..127 may spin down the disk.
# Separate values for multiple devices with spaces.
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="254 254"

# SATA aggressive link power management (ALPM):
# min_power/medium_power/max_performance
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=max_performance

I will write ... after further testing.

Please note: system #1. and #2. are running without any problems!

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1063354

Title:
  Sudden Read-Only Filesystems

Status in “linux” package in Ubuntu:
  Confirmed

Bug description:
  After upgrading to ubuntu 12.10, I experience sudden locks of my
  filesystems (I have a root and a home partition with ext4), in which
  the filesystems suddenly become mounted readonly. /var/log/syslog
  shows the following entries:

  Oct  7 20:00:42 StudioXPS signond[3510]: signondaemon.cpp 345 init Failed to SUID root. Secure storage will not be available.
  Oct  7 20:02:12 StudioXPS kernel: [  249.193555] ata1.00: exception Emask 0x0 SAct 0x7 SErr 0x0 action 0x0
  Oct  7 20:02:12 StudioXPS kernel: [  249.193561] ata1.00: irq_stat 0x40000001
  Oct  7 20:02:12 StudioXPS kernel: [  249.193565] ata1.00: failed command: READ FPDMA QUEUED
  Oct  7 20:02:12 StudioXPS kernel: [  249.193572] ata1.00: cmd 60/20:00:90:6f:53/00:00:1a:00:00/40 tag 0 ncq 16384 in
  Oct  7 20:02:12 StudioXPS kernel: [  249.193572]          res 41/40:20:98:6f:53/00:00:1a:00:00/40 Emask 0x409 (media error) <F>
  Oct  7 20:02:12 StudioXPS kernel: [  249.193575] ata1.00: status: { DRDY ERR }
  Oct  7 20:02:12 StudioXPS kernel: [  249.193578] ata1.00: error: { UNC }
  Oct  7 20:02:12 StudioXPS kernel: [  249.193581] ata1.00: failed command: WRITE FPDMA QUEUED
  Oct  7 20:02:12 StudioXPS kernel: [  249.193587] ata1.00: cmd 61/18:08:18:fb:0e/00:00:2b:00:00/40 tag 1 ncq 12288 out
  Oct  7 20:02:12 StudioXPS kernel: [  249.193587]          res 41/40:08:98:6f:53/00:00:1a:00:00/40 Emask 0x9 (media error)
  Oct  7 20:02:12 StudioXPS kernel: [  249.193590] ata1.00: status: { DRDY ERR }
  Oct  7 20:02:12 StudioXPS kernel: [  249.193593] ata1.00: error: { UNC }
  Oct  7 20:02:12 StudioXPS kernel: [  249.193596] ata1.00: failed command: WRITE FPDMA QUEUED
  Oct  7 20:02:12 StudioXPS kernel: [  249.193602] ata1.00: cmd 61/d8:10:a0:bd:8b/00:00:0d:00:00/40 tag 2 ncq 110592 out
  Oct  7 20:02:12 StudioXPS kernel: [  249.193602]          res 41/40:08:98:6f:53/00:00:1a:00:00/40 Emask 0x9 (media error)
  Oct  7 20:02:12 StudioXPS kernel: [  249.193605] ata1.00: status: { DRDY ERR }
  Oct  7 20:02:12 StudioXPS kernel: [  249.193607] ata1.00: error: { UNC }
  Oct  7 20:02:12 StudioXPS kernel: [  249.196606] ata1.00: configured for UDMA/100
  Oct  7 20:02:12 StudioXPS kernel: [  249.196622] sd 0:0:0:0: >[sda] Unhandled sense code
  Oct  7 20:02:12 StudioXPS kernel: [  249.196624] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196626] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Oct  7 20:02:12 StudioXPS kernel: [  249.196628] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196629] Sense Key : Medium Error [current] [descriptor]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196633] Descriptor sense data with sense descriptors (in hex):
  Oct  7 20:02:12 StudioXPS kernel: [  249.196634]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196642]         1a 53 6f 98
  Oct  7 20:02:12 StudioXPS kernel: [  249.196645] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196648] Add. Sense: Unrecovered read error - auto reallocate failed
  Oct  7 20:02:12 StudioXPS kernel: [  249.196650] sd 0:0:0:0: >[sda] CDB:
  Oct  7 20:02:12 StudioXPS kernel: [  249.196651] Read(10): 28 00 1a 53 6f 90 00 00 20 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196658] end_request: I/O error, dev sda, sector 441675672
  Oct  7 20:02:12 StudioXPS kernel: [  249.196674] sd 0:0:0:0: >[sda] Unhandled sense code
  Oct  7 20:02:12 StudioXPS kernel: [  249.196676] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196678] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Oct  7 20:02:12 StudioXPS kernel: [  249.196679] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196681] Sense Key : Medium Error [current] [descriptor]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196683] Descriptor sense data with sense descriptors (in hex):
  Oct  7 20:02:12 StudioXPS kernel: [  249.196684]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196692]         1a 53 6f 98
  Oct  7 20:02:12 StudioXPS kernel: [  249.196695] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196697] Add. Sense: Unrecovered read error - auto reallocate failed
  Oct  7 20:02:12 StudioXPS kernel: [  249.196699] sd 0:0:0:0: >[sda] CDB:
  Oct  7 20:02:12 StudioXPS kernel: [  249.196700] Write(10): 2a 00 2b 0e fb 18 00 00 18 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196706] end_request: I/O error, dev sda, sector 722402072
  Oct  7 20:02:12 StudioXPS kernel: [  249.196710] Buffer I/O error on device sda6, logical block 82899555
  Oct  7 20:02:12 StudioXPS kernel: [  249.196718] Buffer I/O error on device sda6, logical block 82899556
  Oct  7 20:02:12 StudioXPS kernel: [  249.196722] Buffer I/O error on device sda6, logical block 82899557
  Oct  7 20:02:12 StudioXPS kernel: [  249.196725] EXT4-fs warning (device sda6): ext4_end_bio:250: I/O error writing to inode 20709582 (offset 0 size 12288 starting block 90300262)
  Oct  7 20:02:12 StudioXPS kernel: [  249.196726] JBD2: Detected IO errors while flushing file data on sda6-8
  Oct  7 20:02:12 StudioXPS kernel: [  249.196737] sd 0:0:0:0: >[sda] Unhandled sense code
  Oct  7 20:02:12 StudioXPS kernel: [  249.196739] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196740] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Oct  7 20:02:12 StudioXPS kernel: [  249.196742] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196743] Sense Key : Medium Error [current] [descriptor]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196745] Descriptor sense data with sense descriptors (in hex):
  Oct  7 20:02:12 StudioXPS kernel: [  249.196746]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196754]         1a 53 6f 98
  Oct  7 20:02:12 StudioXPS kernel: [  249.196758] sd 0:0:0:0: >[sda]
  Oct  7 20:02:12 StudioXPS kernel: [  249.196759] Add. Sense: Unrecovered read error - auto reallocate failed
  Oct  7 20:02:12 StudioXPS kernel: [  249.196761] sd 0:0:0:0: >[sda] CDB:
  Oct  7 20:02:12 StudioXPS kernel: [  249.196762] Write(10): 2a 00 0d 8b bd a0 00 00 d8 00
  Oct  7 20:02:12 StudioXPS kernel: [  249.196768] end_request: I/O error, dev sda, sector 227261856
  Oct  7 20:02:12 StudioXPS kernel: [  249.196781] ata1: EH complete
  Oct  7 20:02:12 StudioXPS kernel: [  249.196810] Aborting journal on device sda6-8.
  Oct  7 20:02:12 StudioXPS kernel: [  249.197216] EXT4-fs error (device sda6): ext4_journal_start_sb:370: Detected aborted journal
  Oct  7 20:02:12 StudioXPS kernel: [  249.197219] EXT4-fs (sda6): Remounting filesystem read-only
  Oct  7 20:02:13 StudioXPS kernel: [  250.934678] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:13 StudioXPS kernel: [  250.934691] ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000078])
  Oct  7 20:02:13 StudioXPS kernel: [  250.938886] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:13 StudioXPS kernel: [  250.938896] ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000050])
  Oct  7 20:02:13 StudioXPS kernel: [  250.939062] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:13 StudioXPS kernel: [  250.939068] ecryptfs_writepage: Error encrypting page (upper index [0x0000000000000000])
  Oct  7 20:02:21 StudioXPS kernel: [  259.082126] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:21 StudioXPS kernel: [  259.082138] ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000005])
  Oct  7 20:02:21 StudioXPS kernel: [  259.082257] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:21 StudioXPS kernel: [  259.082262] ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000003])
  Oct  7 20:02:21 StudioXPS kernel: [  259.082376] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:02:21 StudioXPS kernel: [  259.082381] ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000000])
  Oct  7 20:05:16 StudioXPS kernel: [  433.841434] ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-30]
  Oct  7 20:05:16 StudioXPS kernel: [  433.841448] ecryptfs_write_end: Error encrypting page (upper index [0x00000000000000c9])
  Oct  7 20:07:57 StudioXPS sudo: pam_ecryptfs: pam_sm_authenticate: /home/lars is already mounted

  The harddrive is one month old and has no defects (AFAIK). The problem
  arises anywhere between directly after boot and 3h into working. A
  remount with mount -o remount,rw is not possible and aborted with an
  error. Since I will most certainly loose data during work, this
  renders my system unusable for the moment. The problem did not occur
  when running 12.04.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: linux-image-3.5.0-17-generic 3.5.0-17.27
  ProcVersionSignature: Ubuntu 3.5.0-17.27-generic 3.5.5
  Uname: Linux 3.5.0-17-generic x86_64
  ApportVersion: 2.6.1-0ubuntu1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  lars       2341 F.... pulseaudio
   /dev/snd/controlC0:  lars       2341 F.... pulseaudio
  Date: Sun Oct  7 20:00:11 2012
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926)
  MachineType: Dell Inc. Studio XPS 1640
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.5.0-17-generic root=UUID=68856248-4726-45a0-84b2-670a468cce31 ro quiet splash
  RelatedPackageVersions:
   linux-restricted-modules-3.5.0-17-generic N/A
   linux-backports-modules-3.5.0-17-generic  N/A
   linux-firmware                            1.94
  RfKill:
   0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/19/2009
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A12
  dmi.board.name: 0W497D
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A12
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.chassis.version: A12
  dmi.modalias: dmi:bvnDellInc.:bvrA12:bd11/19/2009:svnDellInc.:pnStudioXPS1640:pvrA123:rvnDellInc.:rn0W497D:rvrA12:cvnDellInc.:ct8:cvrA12:
  dmi.product.name: Studio XPS 1640
  dmi.product.version: A123
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1063354/+subscriptions