hot swap gpt hdd destroys partion table during swaping

Bug #1099203 reported by thometal
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned
Fedora
New
Undecided
Unassigned

Bug Description

Hallo,

I have a Asrock Z77 Pro4-m Board and a Seagate 3tb ST3000DM00-1CH166 with Firmware cc24.

with Ubutnu 12.10 64bit also tested it with fedora 18 beta

A Bios update did have I done. So the version is currently on 1.70.
The HDD Bios I cant update because there is no newer version.

The Hdd is connect to sata.

The HDD i have formated via gparted as primary partion with ext4 and gpt as partition table. Alignment was set to optimal.

The Problem occurs if hot unplug(with umount) the disk and try to hot replug(with mount) it. Then the partition table isnt recognized and gdisk shows me:

MBR: projective
GPT: damaged

In the case I can always start the system via Paragon Live Image which repairs me automatically the gpt header so that I have not to repair it inside the tool. After restarting Ubuntu I can mount the drive again.

In the case where the partition is damaged, the partion is the most of time recogonized but the filesystem is unknown. But not everytime.

The same occurs with the mainline kernel not only with the shipped kernel.

Smartvalues are ok.

I also changed the sata port,chipset and cable but the problem occurs further.

In the bios all controllers are set to AHCI.

Here some dmesg output:

[ 103.561920] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4090000 action 0xe frozen
[ 103.561925] ata6: irq_stat 0x00400040, connection status changed
[ 103.561928] ata6: SError: { PHYRdyChg 10B8B DevExch }
[ 103.561933] ata6: hard resetting link
[ 104.283829] ata6: SATA link down (SStatus 0 SControl 300)
[ 109.279026] ata6: hard resetting link
[ 109.583723] ata6: SATA link down (SStatus 0 SControl 300)
[ 109.583732] ata6: limiting SATA link speed to 1.5 Gbps
[ 114.578912] ata6: hard resetting link
[ 114.883622] ata6: SATA link down (SStatus 0 SControl 310)
[ 114.883630] ata6.00: disabled
[ 114.883644] ata6: EH complete
[ 114.883750] ata6.00: detaching (SCSI 5:0:0:0)
[ 114.885244] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 114.885275] sd 5:0:0:0: [sdb]
[ 114.885278] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 114.885280] sd 5:0:0:0: [sdb] Stopping disk
[ 114.885288] sd 5:0:0:0: [sdb] START_STOP FAILED
[ 114.885290] sd 5:0:0:0: [sdb]
[ 114.885291] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 128.864419] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
[ 128.864424] ata6: irq_stat 0x00000040, connection status changed
[ 128.864426] ata6: SError: { DevExch }
[ 128.864433] ata6: hard resetting link
[ 133.203987] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 133.204890] ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[ 133.204895] ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[ 133.204899] ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[ 133.205459] ata6.00: HPA detected: current 5860531055, native 5860533168
[ 133.205604] ata6.00: ATA-8: ST3000DM001-1CH166, CC24, max UDMA/133
[ 133.205606] ata6.00: 5860531055 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 133.205786] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 133.206812] ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[ 133.206818] ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[ 133.206821] ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[ 133.207722] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 133.207728] ata6.00: configured for UDMA/133
[ 133.207743] ata6: EH complete
[ 133.207866] scsi 5:0:0:0: Direct-Access ATA ST3000DM001-1CH1 CC24 PQ: 0 ANSI: 5
[ 133.208676] sd 5:0:0:0: [sdb] 5860531055 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 133.208682] sd 5:0:0:0: [sdb] 4096-byte physical blocks
[ 133.208758] sd 5:0:0:0: [sdb] Write Protect is off
[ 133.208763] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 133.208796] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 133.210849] sd 5:0:0:0: Attached scsi generic sg2 type 0
[ 133.224978] sdb: unknown partition table
[ 133.225190] sd 5:0:0:0: [sdb] Attached SCSI disk
---
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
DistroRelease: LinuxMint 14
InstallationDate: Installed on 2013-01-14 (0 days ago)
InstallationMedia: Linux Mint 14 "Nadia" - Release amd64 (20121120)
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Tags: nadia
Uname: Linux 3.8.0-030800rc3-generic x86_64
UnreportableReason: This is not an official LinuxMint package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

thometal (thometal)
description: updated
description: updated
affects: ubuntu → linux (Ubuntu)
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 1099203

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
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.8 kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-rc3-raring/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: quantal
Revision history for this message
thometal (thometal) wrote :

Tested with your suggest kernel version 3.8-rc3 and the the bug stil appears.

tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
thometal (thometal) wrote :

demsg log seems to by the same:

[ 40.556993] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 54.742955] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4090000 action 0xe frozen
[ 54.742968] ata6: irq_stat 0x00400040, connection status changed
[ 54.742970] ata6: SError: { PHYRdyChg 10B8B DevExch }
[ 54.742973] ata6: hard resetting link
[ 55.464133] ata6: SATA link down (SStatus 0 SControl 300)
[ 60.459325] ata6: hard resetting link
[ 60.778977] ata6: SATA link down (SStatus 0 SControl 300)
[ 60.778994] ata6: limiting SATA link speed to 1.5 Gbps
[ 65.774178] ata6: hard resetting link
[ 66.093819] ata6: SATA link down (SStatus 0 SControl 310)
[ 66.093836] ata6.00: disabled
[ 66.093846] ata6: EH complete
[ 66.093908] ata6.00: detaching (SCSI 5:0:0:0)
[ 66.095212] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 66.095244] sd 5:0:0:0: [sdb]
[ 66.095247] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 66.095249] sd 5:0:0:0: [sdb] Stopping disk
[ 66.095256] sd 5:0:0:0: [sdb] START_STOP FAILED
[ 66.095258] sd 5:0:0:0: [sdb]
[ 66.095259] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 77.891415] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[ 77.891421] ata6: irq_stat 0x00000040, connection status changed
[ 77.891424] ata6: SError: { CommWake DevExch }
[ 77.891432] ata6: hard resetting link
[ 78.949371] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 78.950315] ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[ 78.950321] ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[ 78.950324] ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[ 78.950880] ata6.00: HPA detected: current 5860531055, native 5860533168
[ 78.951058] ata6.00: ATA-8: ST3000DM001-1CH166, CC24, max UDMA/133
[ 78.951063] ata6.00: 5860531055 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 78.951238] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 78.952257] ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[ 78.952263] ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[ 78.952266] ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[ 78.953129] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 78.953136] ata6.00: configured for UDMA/133
[ 78.953291] ata6: EH complete
[ 78.953454] scsi 5:0:0:0: Direct-Access ATA ST3000DM001-1CH1 CC24 PQ: 0 ANSI: 5
[ 78.953669] sd 5:0:0:0: [sdb] 5860531055 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 78.953673] sd 5:0:0:0: [sdb] 4096-byte physical blocks
[ 78.953708] sd 5:0:0:0: Attached scsi generic sg2 type 0
[ 78.953754] sd 5:0:0:0: [sdb] Write Protect is off
[ 78.953760] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 78.953796] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 78.971263] sdb: unknown partition table
[ 78.971553] sd 5:0:0:0: [sdb] Attached SCSI disk

Revision history for this message
thometal (thometal) wrote :

executed apport-collect via linux mint 14 and upstream kernel

tags: added: apport-collected nadia
description: updated
Revision history for this message
thometal (thometal) wrote :

The bug also exists in upstream kernel 3.8-rc4.

thometal (thometal)
tags: added: gpt hot hotplug swap
atomkern (radius)
information type: Public → Private
thometal (thometal)
information type: Private → Public
Revision history for this message
thometal (thometal) wrote :

The bug stil exists in upstream kernel 3.8.2.

penalvch (penalvch)
affects: linux (Ubuntu) → linuxmint
Changed in linuxmint:
importance: Medium → Undecided
status: Confirmed → New
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.