我的linux服务器需要一个多小时才能启动.建议?

前端之家收集整理的这篇文章主要介绍了我的linux服务器需要一个多小时才能启动.建议?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在构建一个CentOS 5.4系统,该系统使用模拟IDE驱动器的读卡器启动紧凑型闪存卡.它真的需要一个小时才能启动.当Grub加载内核时会发生超慢速部分.完成后,其余的启动过程只需大约一分钟即可到达登录提示.有没有人有什么建议?

我怀疑它可能与UDMA有关.我的BIOS中与IDE相关的所有内容似乎都要结帐.读取性能hdparm告诉我1.77 MB / s.哎哟! (但即使按照这个速度,它仍然不需要一个小时来解压缩并加载内核)

  1. [root@server ~]# hdparm -tT /dev/hdc
  2.  
  3. /dev/hdc:
  4. Timing cached reads: 2444 MB in 2.00 seconds = 1222.04 MB/sec
  5. Timing buffered disk reads: 6 MB in 3.39 seconds = 1.77 MB/sec

尝试启用DMA是不可取的:

  1. [root@server ~]# hdparm -d1 /dev/hdc
  2.  
  3. /dev/hdc:
  4. setting using_dma to 1 (on)
  5. Hdio_SET_DMA Failed: Operation not permitted
  6. using_dma = 0 (off)

以下是一些可能有用的命令输出

系统

  1. [root@server ~]# uname -a
  2. Linux server.localdomain 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux

PCI信息:

  1. [root@server ~]# lspci -v
  2. 00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
  3. Subsystem: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub
  4. Flags: bus master,fast devsel,latency 0
  5. Capabilities: [e0] Vendor Specific Information
  6.  
  7. 00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
  8. Subsystem: Intel Corporation 82945G/GZ Integrated Graphics Controller
  9. Flags: bus master,latency 0,IRQ 10
  10. Memory at fdf00000 (32-bit,non-prefetchable) [size=512K]
  11. I/O ports at ff00 [size=8]
  12. Memory at d0000000 (32-bit,prefetchable) [size=256M]
  13. Memory at fdf80000 (32-bit,non-prefetchable) [size=256K]
  14. Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
  15. Capabilities: [d0] Power Management version 2
  16.  
  17. 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
  18. Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1
  19. Flags: bus master,medium devsel,IRQ 16
  20. I/O ports at fe00 [size=32]
  21.  
  22. 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
  23. Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2
  24. Flags: bus master,IRQ 17
  25. I/O ports at fd00 [size=32]
  26.  
  27. 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
  28. Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3
  29. Flags: bus master,IRQ 18
  30. I/O ports at fc00 [size=32]
  31.  
  32. 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
  33. Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4
  34. Flags: bus master,IRQ 19
  35. I/O ports at fb00 [size=32]
  36.  
  37. 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
  38. Subsystem: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller
  39. Flags: bus master,IRQ 16
  40. Memory at fdfff000 (32-bit,non-prefetchable) [size=1K]
  41. Capabilities: [50] Power Management version 2
  42. Capabilities: [58] Debug port
  43.  
  44. 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
  45. Flags: bus master,latency 0
  46. Bus: primary=00,secondary=01,subordinate=01,sec-latency=32
  47. I/O behind bridge: 0000d000-0000dfff
  48. Memory behind bridge: fde00000-fdefffff
  49. Prefetchable memory behind bridge: 00000000fdd00000-00000000fdd00000
  50. Capabilities: [50] #0d [0000]
  51.  
  52. 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
  53. Subsystem: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge
  54. Flags: bus master,latency 0
  55. Capabilities: [e0] Vendor Specific Information
  56.  
  57. 00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) (prog-if 80 [Master])
  58. Subsystem: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller
  59. Flags: bus master,66MHz,IRQ 17
  60. I/O ports at <unassigned>
  61. I/O ports at <unassigned>
  62. I/O ports at <unassigned>
  63. I/O ports at <unassigned>
  64. I/O ports at f800 [size=16]
  65. Capabilities: [70] Power Management version 2
  66.  
  67. 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
  68. Subsystem: Intel Corporation 82801G (ICH7 Family) SMBus Controller
  69. Flags: medium devsel,IRQ 17
  70. I/O ports at 0500 [size=32]
  71.  
  72. 01:04.0 Ethernet controller: Realtek Semiconductor Co.,Ltd. RTL-8139/8139C/8139C+ (rev 10)
  73. Subsystem: Realtek Semiconductor Co.,Ltd. RTL-8139/8139C/8139C+
  74. Flags: bus master,latency 32,IRQ 18
  75. I/O ports at de00 [size=256]
  76. Memory at fdeff000 (32-bit,non-prefetchable) [size=256]
  77. Capabilities: [50] Power Management version 2
  78.  
  79. 01:06.0 Ethernet controller: Realtek Semiconductor Co.,IRQ 17
  80. I/O ports at dc00 [size=256]
  81. Memory at fdefe000 (32-bit,non-prefetchable) [size=256]
  82. Capabilities: [50] Power Management version 2
  83.  
  84. 01:07.0 Ethernet controller: Realtek Semiconductor Co.,IRQ 19
  85. I/O ports at da00 [size=256]
  86. Memory at fdefd000 (32-bit,non-prefetchable) [size=256]
  87. Capabilities: [50] Power Management version 2

hdparm输出

  1. [root@server ~]# hdparm /dev/hdc
  2.  
  3. /dev/hdc:
  4. multcount = 0 (off)
  5. IO_support = 0 (default 16-bit)
  6. unmaskirq = 0 (off)
  7. using_dma = 0 (off)
  8. keepsettings = 0 (off)
  9. readonly = 0 (off)
  10. readahead = 256 (on)
  11. geometry = 8146/16/63,sectors = 8211168,start = 0
  12.  
  13. [root@server ~]# hdparm -I /dev/hdc
  14.  
  15. /dev/hdc:
  16.  
  17. ATA device,with non-removable media
  18. Model Number: InnoDisk Corp. - iCF4000 4GB
  19. Serial Number: 20091023AACA70000753
  20. Firmware Revision: 081107
  21. Standards:
  22. Supported: 5
  23. Likely used: 6
  24. Configuration:
  25. Logical max current
  26. cylinders 8146 8146
  27. heads 16 16
  28. sectors/track 63 63
  29. --
  30. CHS current addressable sectors: 8211168
  31. LBA user addressable sectors: 8211168
  32. device size with M = 1024*1024: 4009 MBytes
  33. device size with M = 1000*1000: 4204 MBytes (4 GB)
  34. Capabilities:
  35. LBA,IORDY(can be disabled)
  36. Standby timer values: spec'd by Vendor
  37. R/W multiple sector transfer: Max = 2 Current = 2
  38. DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4
  39. Cycle time: min=120ns recommended=120ns
  40. PIO: pio0 pio1 pio2 pio3 pio4
  41. Cycle time: no flow control=120ns IORDY flow control=120ns
  42. Commands/features:
  43. Enabled Supported:
  44. * Power Management feature set
  45. * WRITE_BUFFER command
  46. * READ_BUFFER command
  47. * NOP cmd
  48. * CFA feature set
  49. * Mandatory FLUSH_CACHE
  50. HW reset results:
  51. CBLID- above Vih
  52. Device num = 0
  53. CFA power mode 1:
  54. enabled and required by some commands
  55. Maximum current = 100ma
  56. Checksum: correct

编辑:大约需要5分钟才能通过“GRUB loading stage 2 …”消息.我得出结论,问题可能是:bootloader,BIOS /固件或硬件问题.我玩了所有相关的BIOS设置没有任何运气,并取代我的IDE电缆,以防我有一个坏的.我订购了一个新的紧凑型闪存卡(一个不同的品牌),但它会在它到达之前的几天.我目前还在运行Memtest86,看看我的内存是否有奇怪的问题.完成后,我会看看我的主板是否有可用的固件更新.

解决方法

问题解决了!

奇怪的是,在BIOS中禁用UDMA修复了问题.

感谢this Ubuntu thread获得答案.并感谢大家在这里提出的建议!

猜你在找的Linux相关文章