Re: Hotplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 4, 2008 at 8:35 PM, Tejun Heo <tj@xxxxxxxxxx> wrote:
> Hello,
>
> Mark Nelson wrote:
>> Can you check these too (I'm testing hotplug on the PDC42819 with
>> ahci driver)?
>>
>> after powering up eSATA connected drive:
>>
>>  ata7: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xe frozen
>>  ata7: irq_stat 0x00000040, connection status changed
>>  ata7: SError: { PHYRdyChg CommWake DevExch }
>>  ata7: hard resetting link
>>  ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
>>  ata7.00: ATA-7: HTS721060G9SA00, MC3IC10H, max UDMA/100
>>  ata7.00: 117210240 sectors, multi 0: LBA48
>>  ata7.00: configured for UDMA/100
>>  ata7: EH complete
>>  scsi 6:0:0:0: Direct-Access     ATA      HTS721060G9SA00  MC3I PQ: 0 ANSI: 5
>>  sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
>>  sd 6:0:0:0: [sdb] Write Protect is off
>>  sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
>>  sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
>> support DPO or FUA
>>  sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
>>  sd 6:0:0:0: [sdb] Write Protect is off
>>  sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
>>  sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
>> support DPO or FUA
>>   sdb: sdb1
>>  sd 6:0:0:0: [sdb] Attached SCSI disk
>>  sd 6:0:0:0: Attached scsi generic sg1 type 0
>>  kjournald starting.  Commit interval 5 seconds
>>  EXT3 FS on sdb1, internal journal
>>  EXT3-fs: recovery complete.
>>  EXT3-fs: mounted filesystem with ordered data mode.
>
> Yeap, looks fine.
>
>> after unmounting and executing
>> echo 1 > /sys/class/scsi_device/6\:0\:0\:0/device/delete:
>>
>>  sd 6:0:0:0: [sdb] Synchronizing SCSI cache
>>  sd 6:0:0:0: [sdb] Stopping disk
>>  ata7.00: disabled
>
> Heh.. I usually just pull the power plug doing delete is a good idea.

Well truth be told I just learnt it from Jason's post (prior to that I took
hotplug more literally :) )

>
>> and after removing power from eSATA device:
>>
>>  ata7: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0xe frozen
>>  ata7: irq_stat 0x00400000, PHY RDY changed
>>  ata7: SError: { PHYRdyChg }
>>  ata7: hard resetting link
>>  ata7: SATA link down (SStatus 0 SControl 300)
>>  ata7: EH complete
>
> This looks fine too.

Excellent.

Thanks!

Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux