作者 主題: [問題]請問Linux+Raid Card(已解決)  (閱讀 8047 次)

0 會員 與 1 訪客 正在閱讀本文。

andyj

  • 鑽研的研究生
  • *****
  • 文章數: 957
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 於: 2004-12-13 15:44 »
問個笨問題
我的系統是Redhat 7.3
安裝在SCSI上
我額外安裝一塊Promise的SX4000 Raid卡
上面一顆IDE
在/proc/module.conf自己有抓到那塊卡
請問那個IDE硬碟應該是/dev/hda1嗎?
直接Mount上去就可以了?
還是有其他作法??
不好意思沒做過這樣的事情....

uck

  • 活潑的大學生
  • ***
  • 文章數: 224
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #1 於: 2004-12-13 16:51 »
應該是/dev/hda .
您可以下 # fdisk /dev/hda  去看看.

除非您有分割 才有 /dev/hda1 .. /dev/hda2 等等的分割區.

andyj

  • 鑽研的研究生
  • *****
  • 文章數: 957
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #2 於: 2004-12-15 21:29 »
#fdisk /dev/hda

Unable to Open dev/hda

這......
看了一下#vi /prco/pci
 Bus  0, device  17, function  0:
    RAID bus controller: PCI device 105a:6621 (Promise Technology, Inc.) (rev 1).
      IRQ 9.
      Master Capable.  Latency=96.  Min Gnt=6.Max Lat=18.
      I/O at 0xbc00 [0xbcff].
      I/O at 0xb800 [0xb8ff].
      I/O at 0xb400 [0xb4ff].
這應該代表有抓到卡....可是不曉得該怎麼看卡上的那個硬碟在哪邊怎麼mount與fdisk

uck

  • 活潑的大學生
  • ***
  • 文章數: 224
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #3 於: 2004-12-16 09:48 »
這樣說好了!!

例如:

您的Server上原本有 2顆 HD 分別是 hda 及 hdb .
       這一顆應該是 hdc .

1. 先將您的 Raid Card 卡設好. (不使用Raid 功能)
2. 將您要加上去的HD, Jump 調成 Master .
3. HD裝進您的Server. 排線,電源插好. 開機.
4. 其實在開機的過程中您就可以看到沒有沒抓到. 因為 Raid Card Bios 會秀出來它抓到的hd.
5. 開機後.看 dmesg 資訊. 看有沒有抓到.
6. fdisk /dev/hdc  ---> 不一定 hdc 哦..要看您的 hd 數量. 以此類推.
7. fdisk 做完後. 並 format hd
8. #mkdir /mnt/hdc
9. mount -t ext3 /dev/hdc /mnt/hdc
10.試試看.

edwardleung

  • 俺是博士!
  • *****
  • 文章數: 1135
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #4 於: 2004-12-16 10:05 »
為何不能使用raid 功能呢 ?
不啟動raid 卡如何 detect 那顆新增的 HD 呢 ?

andyj

  • 鑽研的研究生
  • *****
  • 文章數: 957
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #5 於: 2004-12-16 10:16 »
引述: "uck"
這樣說好了!!

例如:

您的Server上原本有 2顆 HD 分別是 hda 及 hdb .
       這一顆應該是 hdc .

1. 先將您的 Raid Card 卡設好. (不使用Raid 功能)
2. 將您要加上去的HD, Jump 調成 Master .
3. HD裝進您的Server. 排線,電源插好. 開機.
4. 其實在開機的過程中您就可以看到沒有沒抓到. 因為 Raid Card Bios 會秀出來它抓到的hd.
5. 開機後.看 dmesg 資訊. 看有沒有抓到.
6. fdisk /dev/hdc  ---> 不一定 hdc 哦..要看您的 hd 數量. 以此類推.
7. fdisk 做完後. 並 format hd
8. #mkdir /mnt/hdc
9. mount -t ext3 /dev/hdc /mnt/hdc
10.試試看.

我的Linux主系統在SCSI HD也就是sda
而上面再裝一塊ide raid卡(Promise SX4000/上有一顆250G的IDE HDD)
在開機有raid卡有抓到hd
dmesg:
代碼: [選擇]

[root@adsl-220-229-37-51 root]# dmesg
Linux version 2.4.20-28.7 (bhcompile@porky.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-126)) #1 Thu Dec 18 11:31:59 EST 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
 BIOS-e820: 000000000fff0000 - 000000000fff8000 (ACPI data)
 BIOS-e820: 000000000fff8000 - 0000000010000000 (ACPI NVS)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
On node 0 totalpages: 65520
zone(0): 4096 pages.
zone(1): 61424 pages.
zone(2): 0 pages.
Kernel command line: ro root=/dev/sda2
Initializing CPU#0
Detected 1000.055 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1992.29 BogoMIPS
Memory: 253196k/262080k available (1175k kernel code, 6452k reserved, 986k data, 120k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU serial number disabled.
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:07.1
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci00:07.1
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hdc: CD-540E, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
ide-floppy driver 0.99.newide
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 217k freed
VFS: Mounted root (ext2 filesystem).
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 11 for device 00:0e.0
sym53c8xx: at PCI bus 0, device 14, function 0
sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up)
sym53c8xx: 53c875 detected with Tekram NVRAM
sym53c875-0: rev 0x26 on pci bus 0 device 14 function 0 irq 11
sym53c875-0: Tekram format NVRAM, ID 7, Fast-20, Parity Checking
scsi0 : sym53c8xx-1.7.3c-20010512
blk: queue c1ac3e14, I/O limit 4095Mb (mask 0xffffffff)
  Vendor: IBM       Model: IC35L036UWPR15-0  Rev: S70L
  Type:   Direct-Access                      ANSI SCSI revision: 03
blk: queue c1ac3c14, I/O limit 4095Mb (mask 0xffffffff)
Attached scsi disk sda at scsi0, channel 0, id 12, lun 0
sym53c875-0-<12,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 16)
SCSI device sda: 71687340 512-byte hdwr sectors (36704 MB)
Partition check:
 sda: sda1 sda2 sda3
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 120k freed
Adding Swap: 522104k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 11:37:26 Dec 18 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 9 for device 00:07.2
PCI: Sharing IRQ 9 with 00:11.0
usb-uhci.c: USB UHCI at I/O 0xc800, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport_pc: Via 686A parallel port: io=0x378
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 10 for device 00:10.0
PCI: Sharing IRQ 10 with 00:07.5
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 Fast Ethernet at 0xd08c7d00, 00:40:f4:55:05:36, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8139C'
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
via-rhine.c:v1.10-LK1.1.17  March-1-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Found IRQ 5 for device 00:0f.0
divert: allocating divert_blk for eth1
eth1: VIA VT6105 Rhine-III at 0xc400, 00:40:f4:6a:c5:fc, IRQ 5.
eth1: MII PHY found at address 1, status 0x786d advertising 05e1 Link 40a1.

但我找不到硬碟

Pail

  • 俺是博士!
  • *****
  • 文章數: 1040
  • 性別: 男
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #6 於: 2004-12-16 12:02 »
scsi0 : sym53c8xx-1.7.3c-20010512
blk: queue c1ac3e14, I/O limit 4095Mb (mask 0xffffffff)
  Vendor: IBM       Model: IC35L036UWPR15-0  Rev: S70L
  Type:   Direct-Access                      ANSI SCSI revision: 03
blk: queue c1ac3c14, I/O limit 4095Mb (mask 0xffffffff)
Attached scsi disk sda at scsi0, channel 0, id 12, lun 0
sym53c875-0-<12,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 16)
SCSI device sda: 71687340 512-byte hdwr sectors (36704 MB)
Partition check:
sda: sda1 sda2 sda3


看到沒...人家的 partition 是 sdax, 不是 hdax


cat /proc/partitions
Pail Luo.
Email: pail.luo@gmail.com

andyj

  • 鑽研的研究生
  • *****
  • 文章數: 957
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #7 於: 2004-12-16 13:12 »
引述: "pail"
scsi0 : sym53c8xx-1.7.3c-20010512
blk: queue c1ac3e14, I/O limit 4095Mb (mask 0xffffffff)
  Vendor: IBM       Model: IC35L036UWPR15-0  Rev: S70L
  Type:   Direct-Access                      ANSI SCSI revision: 03
blk: queue c1ac3c14, I/O limit 4095Mb (mask 0xffffffff)
Attached scsi disk sda at scsi0, channel 0, id 12, lun 0
sym53c875-0-<12,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 16)
SCSI device sda: 71687340 512-byte hdwr sectors (36704 MB)
Partition check:
sda: sda1 sda2 sda3


看到沒...人家的 partition 是 sdax, 不是 hdax


cat /proc/partitions
沒啦...那是我的SCSI HDD
我的Linux 在那上面...
我要的是額外裝的ide raid卡....上的硬碟
代碼: [選擇]
[root@ root]# fdisk /dev/sda

The number of cylinders for this disk is set to 4462.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 255 heads, 63 sectors, 4462 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1         6     48163+  83  Linux
/dev/sda2             7      4397  35270707+  83  Linux
/dev/sda3          4398      4462    522112+  82  Linux swap

Command (m for help): q

[root@ root]# cat /proc/partitions
major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

   8     0   35843670 sda 1943 2979 38638 11650 973 1581 20410 61380 0 13590 73030
   8     1      48163 sda1 22 52 148 120 8 1 18 710 0 820 830
   8     2   35270707 sda2 1910 2887 38370 11490 965 1580 20392 60670 0 13440 72160
   8     3     522112 sda3 3 0 24 20 0 0 0 0 0 20 20

andyj

  • 鑽研的研究生
  • *****
  • 文章數: 957
    • 檢視個人資料
[問題]請問Linux+Raid Card(已解決)
« 回覆 #8 於: 2004-12-16 14:19 »
剛剛致電給Promise這家公司的技術克服
答案因此出爐了...
因為使用yum去升級系統
導致Kernel跟著升級去了...
而她們的卡只有支援標準的7.3 Kernel
所以用這張卡以後就不能升級Kernel除非她們出新的Driver
原來的種種問題都在這上面
也謝謝各位的回應^_^