On 5/7/10 9:38 PM, Giovanni wrote: > Hi guys, > > I have a quick question, I am playing around with ZFS and here's what I did. > > I created a storage pool with several drives. I unplugged 3 out of 5 drives > from the array, currently: > > NAME STATE READ WRITE CKSUM > gpool UNAVAIL 0 0 0 insufficient replicas > raidz1 UNAVAIL 0 0 0 insufficient replicas > c8t2d0 UNAVAIL 0 0 0 cannot open > c8t4d0 UNAVAIL 0 0 0 cannot open > c8t0d0 UNAVAIL 0 0 0 cannot open > > These drives had power all the time, the SATA cable however was disconnected. > Now, after I logged into Solaris and opened firefox, I plugged them back in > to sit and watch if the storage pool suddenly becomes "available" > > This did not happen, so my question is, do I need to make Solaris re-detect > the hard drives and if so how? I tried format -e but it did not seem to > detect the 3 drives I just plugged back in. Is this a BIOS issue? > > Does hot-swap hard drives only work when you replace current hard drives > (previously detected by BIOS) with others but not when you have ZFS/Solaris > running and want to add more storage without shutting down? > > It all boils down to, say the scenario is that I will need to purchase more > hard drives as my array grows, I would like to be able to (without shutting > down) add the drives to the storage pool (zpool) >
There are lots of different things you can look at and do, but it comes down to just one command: "devfsadm -vC". This will cleanup (-C for cleanup, -v for verbose) the device tree if it gets into a funky state. Then run "format" or "iostat -En" to verify that the device(s) are there. Then re-import the zpool or add the device or whatever you wish to do. Even if device locations change, ZFS will do the right thing on import. If you wish to dig deeper... normally when you attach a new device hot-plug will do the right thing and you'll see the connection messages in "dmesg". If you want to explicitly check the state of dynamic reconfiguration, checkout the "cfgadm" command. Normally, however, on modern version of Solaris there is no reason to resort to that, its just something fun if you wish to dig. benr. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss