磁碟管理-StorCLI

這款機器的 Local Disks 都連結在內建的 MegaRAID (MegaRAID SAS-3 3108) 介面上,如果系統已經安裝好 Linux,可以透過指令 lshw 確認這個裝置存在。

雖然有 Raid 卡,卻無法建立 Raid,從 Petitboot 指令模式下,使用 storcli 指令新增 Raid 失敗。
錯誤訊息: Resources already in use

下載安裝 StorCLI

下載網址:https://www.broadcom.com/support/download-search/?pg=&pf=&pn=&po=&pa=&dk=storcli 

StorCLI for Linux 其實只是一個編譯過的指令 storcli (storcli64 for 64-bit),官方只是將這指令包裝成 RPM 或 DEB 方便用戶在可以在不同的作業系統版本做安裝;只是筆者從連結下載的壓縮包,解開後找不到 PPC64LE for RedHat,但有看到 PPC64LE for Ubuntu (*.deb),所以只要用另一部 Windows 或 Linux 電腦將 *.deb 解開就會看到一個檔案 storcli64

將這個檔案複製到已經安裝好的 RedHat Linux 即可使用。

storcli64 也能用在 Petitboot,直接用 scp 或 wget 從外部電腦複製。

在 Linux 內確認 MegaRAID 裝置
# lshw

...
*-raid
   description: RAID bus controller
   product: MegaRAID SAS-3 3108 [Invader]
   vendor: LSI Logic / Symbios Logic
   physical id: 0
   bus info: pci@0001:03:00.0
   logical name: scsi0
   version: 02
   width: 64 bits
   clock: 33MHz
   capabilities: raid pm pciexpress vpd msi msix bus_master cap_list rom
   configuration: driver=megaraid_sas latency=0
   resources: irq:507 memory:3fe080200000-3fe08020ffff memory:3fe080000000-3fe0800fffff memory:3fe080100000-3fe0801fffff
 *-enclosure UNCLAIMED
      description: SCSI Enclosure
      product: SAS3x28
      vendor: LSI
      physical id: 0.8.0
      bus info: scsi@0:0.8.0
      version: 0601
      configuration: ansiversion=5
 *-disk:0
      description: ATA Disk
      product: SDLF1DAR-960G-1H
      physical id: 0.9.0
      bus info: scsi@0:0.9.0
      logical name: /dev/sda
      version: ZH06
      serial: A008676A
      size: 894GiB (960GB)
      capacity: 894GiB (960GB)
      capabilities: 15000rpm partitioned partitioned:dos
      configuration: ansiversion=6 logicalsectorsize=512 sectorsize=4096 signature=000e7231
    *-volume:0
         description: PPC PReP Boot partition
         physical id: 1
         bus info: scsi@0:0.9.0,1
         logical name: /dev/sda1
         capacity: 10MiB
         capabilities: primary bootable boot
    *-volume:1
         description: Linux raid autodetect partition
         physical id: 2
         bus info: scsi@0:0.9.0,2
         logical name: /dev/sda2
         capacity: 1025MiB
         capabilities: primary multi
    *-volume:2
         description: Linux raid autodetect partition
         physical id: 3
         bus info: scsi@0:0.9.0,3
         logical name: /dev/sda3
         capacity: 893GiB
         capabilities: primary multi
 *-disk:1
      description: ATA Disk
      product: SDLF1DAR-960G-1H
      physical id: 0.a.0
      bus info: scsi@0:0.10.0
      logical name: /dev/sdb
      version: ZH06
      serial: A0086638
      size: 894GiB (960GB)
      capacity: 894GiB (960GB)
      capabilities: 15000rpm partitioned partitioned:dos
      configuration: ansiversion=6 logicalsectorsize=512 sectorsize=4096 signature=0003819f
    *-volume:0
         description: PPC PReP Boot partition
         physical id: 1
         bus info: scsi@0:0.10.0,1
         logical name: /dev/sdb1 
...

 

 

 

 


Revision #2
Created 9 March 2022 02:53:49 by Admin
Updated 9 March 2022 02:58:04 by Admin