Portál AbcLinuxu, 1. června 2025 04:27
debian:~# cat /etc/mdadm/mdadm.conf DEVICE partitions ARRAY /dev/md1 level=raid1 num-devices=2 UUID=74dddacf:49661663:365a2079:5f39ef18 devices=/dev/hda5,/dev/hdb5 ARRAY /dev/md0 level=raid1 num-devices=2 UUID=37eae15b:29473cba:a4b430e3:4964263c devices=/dev/hda1,/dev/hdb1Problem je v tom, ze oba disky maji vypnute pouzivani DMA:
debian:~# hdparm /dev/hda /dev/hda: multcount = 0 (off) IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 0 (off) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 16383/255/63, sectors = 156312576, start = 0 debian:~# hdparm /dev/hdb /dev/hdb: multcount = 0 (off) IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 0 (off) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 16383/255/63, sectors = 156312576, start = 0Diky tomu je samozrejme system neuveritelne pomaly, navic prave dochazi k replikaci disku, ktera s touhle rychlosti potrva nekolik hodin.
debian:~# cat /proc/mdstat Personalities : [raid1] md1 : active raid1 hda5[0] hdb5[1] 1542144 blocks [2/2] [UU] resync=DELAYED md0 : active raid1 hda1[0] hdb1[1] 76613888 blocks [2/2] [UU] [>....................] resync = 2.0% (1582464/76613888) finish=734.2min speed=1700K/sec unused devices: <none>Jak muzu DMA zapnout? Klasicky postup selze.
debian:~# hdparm -d1 /dev/hda /dev/hda: setting using_dma to 1 (on) HDIO_SET_DMA failed: Operation not permitted using_dma = 0 (off)
debian:~# hdparm /dev/sda /dev/sda: IO_support = 0 (default 16-bit) readonly = 0 (off) readahead = 256 (on) geometry = 9730/255/63, sectors = 156312576, start = 0 debian:~# hdparm /dev/sdb /dev/sdb: IO_support = 0 (default 16-bit) readonly = 0 (off) readahead = 256 (on) geometry = 9730/255/63, sectors = 156312576, start = 0Vsechno ale nasvedcuje tomu, ze ted uz se DMA pouziva, system jede jako z praku.
debian:~# lsmod Module Size Used by ipv6 233056 12 ide_disk 16032 0 ide_cd 37092 0 cdrom 33632 1 ide_cd joydev 9088 0 evdev 9056 0 i2c_i801 8204 0 mousedev 11012 0 i2c_core 19840 1 i2c_i801 psmouse 32772 0 serio_raw 6980 0 pcspkr 2148 0 rtc 12532 0 ext3 120136 1 jbd 52916 1 ext3 mbcache 9252 1 ext3 raid1 19104 2 md_mod 63700 3 raid1 ide_generic 1344 0 [permanent] sd_mod 17536 6 ata_piix 9220 4 libata 51980 1 ata_piix scsi_mod 127592 2 sd_mod,libata tg3 92004 0 generic 4516 0 [permanent] ide_core 115664 4 ide_disk,ide_cd,ide_generic,generic ehci_hcd 30120 0 uhci_hcd 29360 0 usbcore 116196 3 ehci_hcd,uhci_hcd thermal 13736 0 processor 23912 1 thermal fan 4804 0
piix
.
dmesg
) a podle toho se pripadne zaridit.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.