2

What's the method used on Solaris to get the system to rescan for new disks that have been hot-plugged on a SATA controller?

I've got an HP X1600 NAS which had 9 drives configred in a ZFS pool. I've added 3 disks, but the format command still only shows the original 9.

When I plugged them in, I saw this:

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

But can't figure out how to get the format command to see them so I know they've been detected by the system.

ewwhite
  • 194,921
  • 91
  • 434
  • 799
growse
  • 7,830
  • 11
  • 72
  • 114
  • Did you configure multiple RAID 0 drive arrays, or did you configure a hardware RAID 1,5,1+0 on the P212 controller? – ewwhite Mar 15 '11 at 16:22
  • I don't believe I configured the P212 at all - I use ZFS so like to see the individual disks as they are so that Solaris can manage them. The only array created is the two 2.5" system disks in the back are in RAID1 on the controller. How would I go about checking how the P212 is configured from within Solaris? – growse Mar 15 '11 at 17:07
  • Have a look at the [Array Configuration Utility](http://download.oracle.com/docs/cd/E19253-01/816-5177/6mbbc4g3m/index.html) documentation – user9517 Mar 15 '11 at 17:47
  • Thanks - I ended up having to reboot and add the disks manually as individual RAID0 volumes in the P212 bios. Next time, I'll dig into it a bit more and figure out how to configure it from the CLI. – growse Mar 16 '11 at 10:12

3 Answers3

4

Try the devfsadm command

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.
user9517
  • 114,104
  • 20
  • 206
  • 289
  • I tried this, but I still only see the 9 disks (+ 1 system volume = 10) in format. I'm starting to think that the Smart Array isn't presenting them to the OS properly for some reason. – growse Mar 15 '11 at 17:06
  • This works, once I'd actually bothered to add the disks as Volumes in the P212 controller. – growse Mar 16 '11 at 10:12
  • Just adding what I just googled -- on some distributions, you need `cfgadm`, in my case it was `cfgadm -c configure sata3/3`. – exa May 29 '14 at 15:21
  • This also works like a charm when hotplugging/adding virtual disks in VMware ESXi (useful for testing purposes). – user121391 Feb 23 '17 at 14:35
2

You may need to run /usr/sbin/devfsadm first.

Cakemox
  • 24,141
  • 6
  • 41
  • 67
0

As noted in the post at: Disabling RAID feature on HP Smart Array P400

Be careful with the SmartArray single-disk RAID 0 setup. If you have a hotplug event (disk failure/drive removal), ZFS won't recognize the new disk without a reboot. The Smart Array controllers don't offer a true JBOD setting.

You're best off using a more compatible controller: ZFS SAS/SATA controller recommendations

ewwhite
  • 194,921
  • 91
  • 434
  • 799