Solaris

Solaris:檢測熱插拔 SATA 磁碟插入

  • February 5, 2013

在 Solaris 上使用什麼方法讓系統重新掃描已在 SATA 控制器上熱插拔的新磁碟?

我有一個 HP X1600 NAS,它在 ZFS 池中配置了 9 個驅動器。我添加了 3 個磁碟,但format命令仍然只顯示原始的 9 個。

當我插入它們時,我看到了這個:

cpqary3: [ID 823470 kern.notice] NOTICE:  Smart Array P212 Controller
cpqary3: [ID 823470 kern.notice]  Hot-plug drive inserted, Port=1I Box=1 Bay=12
cpqary3: [ID 479030 kern.notice]  Configured Drive ? ....... NO
cpqary3: [ID 100000 kern.notice]
cpqary3: [ID 823470 kern.notice] NOTICE:  Smart Array P212 Controller
cpqary3: [ID 823470 kern.notice]  Hot-plug drive inserted, Port=1I Box=1 Bay=11
cpqary3: [ID 479030 kern.notice]  Configured Drive ? ....... NO
cpqary3: [ID 100000 kern.notice]
cpqary3: [ID 823470 kern.notice] NOTICE:  Smart Array P212 Controller
cpqary3: [ID 823470 kern.notice]  Hot-plug drive inserted, Port=1I Box=1 Bay=10
cpqary3: [ID 479030 kern.notice]  Configured Drive ? ....... NO

但無法弄清楚如何讓format命令看到它們,所以我知道它們已被系統檢測到。

試試devfsadm命令

devfsadm -c disk

The default operation is to attempt to load every driver  in
the  system  and  attach  to  all possible device instances.
Next, devfsadm creates logical links to device nodes in /dev
and /devices and loads the device policy.

您可能需要先執行/usr/sbin/devfsadm

引用自:https://serverfault.com/questions/247677