FreeBSD:当使用3ware SATA卡时,如何将磁盘序列号与设备名称相关联

使用3ware SATA / RAID卡时,是否有将磁盘序列号与/ dev / daN设备关联的方法? 我可以通过使用“smartctl -d 3ware,0 / dev / twa0 -i”来获得序列号,但我不知道“twa0”是否与“da0”直接对应。 smartctl -a / dev / da0只是告诉我,我需要使用-d 3ware,N,所以我不能直接获取信息。

FreeNASgraphics用户界面确实显示磁盘在卷中的序列号,所以应该有一些预先做好的方法。 在创build池之前,我需要设备/串行映射,因为我想确保通过两个3ware sata卡镜像磁盘。 我还希望能够将物理插槽位置映射到序列号和设备名称,以便将来更轻松地更换驱动器。

我正在运行FreeBSD 8.2(FreeNAS 8.0 RC5)

对于在dmesg.boot中的twaX to daX config:

$ cat /var/run/dmesg.boot da0 at twa0 bus 0 scbus0 target 0 lun 0 da0: <AMCC 9690SA-4I DISK 4.10> Fixed Direct Access SCSI-5 device da0: 100.000MB/s transfers da0: 476827MB (976541696 512 byte sectors: 255H 63S/T 60786C) da1 at twa0 bus 0 scbus0 target 1 lun 0 

对于'我可以得到这些之前,我build立一个数组部分':

在我的FreeBSD盒子上安装3dm2:

 $ pkg_info 3dm\* Information for 3dm-2.09.01.004_1,1: Comment: 3ware RAID controller monitoring daemon and web server Description: 3DM 2 provides a web interface to remotely create, manage and monitor your 3ware RAID arrays. In the event of a hardware failure, 3DM 2 can automatically notify you via email. WWW: http://www.3ware.com/support/ 

一旦你得到3dm2设置,你可以login到Web界面和信息::驱动器信息下,它将具有:

  Extra Drive Info (Controller ID 0 - VPort 0) Drive Type SATA Serial # 9YY0XX4N