Cool, I’ve got my VM up and running with OpenSolaris 2008.05 @ snv_95 in ESXi 3.5 U2 on my nice new server.
Now – to add more disks. I wanted to add 3 new hard disks to use RAID-Z. Obviously I would be using 3 physically seperate disks, but make vmdk’s on each of them. I wanted to do this without rebooting at all, and manged it. Here’s how:
- Create new DataStores in the VMware Infrastructure Manager.
- Add 3 new virtual hard disks to the VM, making sure they are all the same size but on 3 different data stores.
- Apply the changes
- SSH into the VM (or use the console… SSH is better)
pfexec devfsadm -c disk
pfexec zpool create <name here> raidz c4t1d0p0 c4t2d0p0 c4t3d0p0
Obviously device nodes might be different, those were what they were for me. Was very nice to be able to do this with zero downtime on the server itself.
Step 5 forces Solaris to reload the /dev structure in relation to disks. Means all the new /dev/rdsk and /dev/dsk nodes are created without the normal reboot. Step 6, obviously, is the creation of the zpool. Once you have that – go ahead and store lots of stuff!


I hope you remembered to install the recent VMWare patches onto ESXi update 2
I’m going to expose an opensolaris 2008.5 box with a ZFS RAIDZ via iscsi tomorrow.
– Sriram
http://www.belenix.org