Powered By Blogger

Wednesday, March 25, 2009

Adding Disks To Zpool

Re-scan the HBA, then create new disk device nodes:
cfgadm -c configure c5 ; devfsadm -C -v
Have a look to see if the disks actually showed up:
format
Look at the new disk device nodes:
ls -latr /dev/rdsk/*s2 grep "Oct 24"
...and let's just print the Solaris disk devices for use in the next step:
ls -latr /dev/rdsk/*s2 grep "Oct 24" awk '{print $9}'
Finally, add the disks to the pool:
zpool add ZPool-Name c5t60060480000190100665533032323438d0 \ c5t60060480000190100665533032323338d0 \ c5t60060480000190100665533032323238d0 \ c5t60060480000190100665533032323138d0 \ c5t60060480000190100665533032323038d0 \ c5t60060480000190100665533032314638d0 \ c5t60060480000190100665533032314538d0 \ c5t60060480000190100665533032314438d0 \ c5t60060480000190100665533032314338d0 \ c5t60060480000190100665533032314238d0 \ c5t60060480000190100665533032314138d0 \ c5t60060480000190100665533032313938d0 \ c5t60060480000190100665533032313838d0 \ c5t60060480000190100665533032313738d0 \ c5t60060480000190100665533032313638d0 \ c5t60060480000190100665533032313538d0
And admire our handiwork:
zpool status Zpool-name
zfs list grep Zpool-name

No comments:

Post a Comment

Welcome to the UNIX world