Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 documentation –  Iain 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
add comment

3 Answers

up vote 3 down vote accepted

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.
share|improve this answer
    
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 at 15:21
add comment

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.