Author: 891rpm

  • hdparm

    После смены режима жесткого диска (hda) с UDMA5 на UDMA2 начинает работать ide0:

    \"\"

    Странным образом hdparm помогает избавиться от ошибок Asterisk:

    [Jul  7 12:46:00] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [Jul  7 12:46:01] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [Jul  7 12:46:01] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [Jul  7 12:46:01] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [Jul  7 12:46:01] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [Jul  7 12:46:01] ERROR[18348]: chan_dahdi.c:8799 dahdi_pri_error: PTP MDL can\'t handle error of type I
    [Jul  7 12:46:01] ERROR[18348]: chan_dahdi.c:8799 dahdi_pri_error: MDL-ERROR (I): T200 = N200 in timer recovery state 8
    [Jul  7 12:46:01] NOTICE[18348]: chan_dahdi.c:9099 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 1
    [13:27:57] funtik:~ # hdparm -vi /dev/hda
    
    /dev/hda:
     multcount     =  0 (off)
     IO_support    =  0 (default)
     unmaskirq     =  0 (off)
     using_dma     =  1 (on)
     keepsettings  =  0 (off)
     readonly      =  0 (off)
     readahead     = 256 (on)
     geometry      = 16383/255/63, sectors = 156301488, start = 0
    
     Model=ST3802110A, FwRev=3.AAE, SerialNo=5LR3YW4N
     Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5
     RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
     BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=off
     CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=15629937
     IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
     PIO modes:  pio0 pio1 pio2 pio3 pio4
     DMA modes:  mdma0 mdma1 mdma2
     UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
     AdvancedPM=no WriteCache=enabled
     Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7
    
     * signifies the current active mode
    
    [13:29:31] funtik:~ # hdparm -d 1 -X udma2 -c 3 /dev/hda
    
    /dev/hda:
     setting 32-bit IO_support flag to 3
     setting using_dma to 1 (on)
     setting xfermode to 66 (UltraDMA mode2)
     IO_support    =  0 (default)
     using_dma     =  0 (off)
    
    [13:30:28] funtik:~ # hdparm -vi /dev/hda
    
    /dev/hda:
     multcount     =  0 (off)
     IO_support    =  0 (default)
     unmaskirq     =  0 (off)
     using_dma     =  0 (off)
     keepsettings  =  0 (off)
     readonly      =  0 (off)
     readahead     = 256 (on)
     geometry      = 16383/255/63, sectors = 156301488, start = 0
    
     Model=ST3802110A, FwRev=3.AAE, SerialNo=5LR3YW4N
     Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
     RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
     BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=off
     CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156299375
     IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
     PIO modes:  pio0 pio1 pio2 pio3 pio4
     DMA modes:  mdma0 mdma1 mdma2
     UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
     AdvancedPM=no WriteCache=enabled
     Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7
    
     * signifies the current active mode