Monthly Archives: July 2016

linux reset sata port

readlink /sys/block/sdd

echo 1 > /sys/block/sdd/device/delete

[12811675.481503] scsi 3:0:0:0: Direct-Access ATA TOSHIBA DT01ACA2 MX4O PQ: 0 ANSI: 5
[12811675.481651] sd 3:0:0:0: Attached scsi generic sg3 type 0
[12811675.481663] sd 3:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[12811675.481667] sd 3:0:0:0: [sdd] 4096-byte physical blocks
[12811675.481694] sd 3:0:0:0: [sdd] Write Protect is off
[12811675.481696] sd 3:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[12811675.481707] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[12811675.481811] sdd:
[12811675.503100] sd 3:0:0:0: [sdd] Attached SCSI disk

if sdd still missing, so:

echo "- - -" > /sys/class/scsi_host/host1/scan

journal rollforward failed: journal out of sync with zone

named -g
To resolve this stop BIND, then remove the journal file for problem zone, these exist in the same directory as the zone files but end in “.jnl”. Once the file has been deleted BIND can be restarted and all will be back to normal.

If you have dynamic zones it is best to “freeze” them first before editing and “thaw” them after to avoid this problem in the first place. The commands for this are:

rndc freeze
rndc thaw