VirtualBox and the ZFS Demonstration Tutorial

The ZFS Demonstration Tutorial is an excellent resource, however, many are probably put off by the requirements necessary to complete it:

"You need a minimum of four disks, preferably five or more and if possible, all the same size."

As my teammate Gregg would say - Yowza!

The good news is that VirtualBox makes this REAL easy. If you do not already have OpenSolaris running under VirtualBox, follow Running OpenSolaris Using VirtualBox to get started.

Once you have OpenSolaris successfully installed in VirtualBox, we can begin to add the additional disks (you'll need to shut down OpenSolaris if it is running). From the VirtualBox File menu, select Virtual Disk Manager. Here you'll see the virtual disk image you created when you first installed OpenSolaris (your vdi name, of course, may be different):

Click New to add a new disk:


Select Dynamically expanding image as the image type: 


Name the image ZFSTutorial1.vdi and set the size to 100 MB:

Repeat those steps to create disks 2 through 5. Once complete your disk manager should look as follows:

Click OK to close the Virtual Disk Manager. Open the Settings for your OpenSolaris virtual machine and select Hard Disks:

Select Enable SATA Controller.

Click the Add Attachment icon on the right 5 times to add the 5 disks we just created:

Then change the slot property so all of the disks use SATA ports. This will just make managing the disks easier from OpenSolaris as they'll all be assigned to the same controller:

Now start OpenSolaris and identify the disks by opening a terminal and running the format command:

bleonard@opensolaris:~$ pfexec format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c4d0 
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
       1. c6t1d0 
          /pci@0,0/pci8086,2829@d/disk@1,0
       2. c6t2d0 
          /pci@0,0/pci8086,2829@d/disk@2,0
       3. c6t3d0 
          /pci@0,0/pci8086,2829@d/disk@3,0
       4. c6t4d0 
          /pci@0,0/pci8086,2829@d/disk@4,0
       5. c6t5d0 
          /pci@0,0/pci8086,2829@d/disk@5,0
Specify disk (enter its number): 

You can see the disk IDs are nicely labeled c6t1d0 through c6t5d0 (for this tutorial, I'm not going to mess with my existing hard disk - c4d0). The tutorial uses disk IDs c1t0d0 through c5t0d0, which cleanly map as follows:

 Tutorial Device ID  Your Device ID
 c1t0d0  c6t1d0
 c2t0d0  c6t2d0
 c3t0d0  c6t3d0
 c4t0d0  c6t4d0
 c5t0d0  c6t4d0

 

With that you should be ready to complete the ZFS Demonstration Tutorial. Enjoy!

Comments:

Or use files instead of physical disks to create you pool on (as is explained on the next page of the tutorial).

Posted by guest on July 08, 2008 at 06:53 AM GMT #

http://dlc.sun.com/osol/docs/content/IPS/virtualbox.html

Is that true? Virtualbox can be hosted on Windows, Linux and MacOSx systems but not a Solaris 10?

Posted by Tim on July 08, 2008 at 08:09 AM GMT #

I am running OpenSolaris both as host and as guest with VirtualBox, so I think the document needs to be updated.

Posted by Roman Strobl on July 08, 2008 at 09:08 AM GMT #

I did the same thing on my virtualbox (windows host) but if i run the "pfexec format" i still only see one disk.

what i am doing wrong?

Posted by Pieter on July 10, 2008 at 05:11 AM GMT #

please can i have translation in french?

Posted by deffo on October 15, 2008 at 10:19 AM GMT #

Hi,

I just filed this enhancement request on your behalf (http://defect.opensolaris.org/bz/show_bug.cgi?id=4035 ). Also note, the ZFS Community does have a French translation page (http://opensolaris.org/os/community/zfs/translations/french/home/ ).

I hope that helps,
Brian

Posted by Brian Leonard on October 17, 2008 at 10:35 AM GMT #

please can i have translation in vietnmese

Posted by hmhung on October 21, 2008 at 06:08 AM GMT #

it is a very good operating system which works very fast

Posted by srideep bardhan roy on October 23, 2008 at 03:59 AM GMT #

asdfg m

Posted by hiren on October 24, 2008 at 01:02 AM GMT #

Am very happy to use this infomration regarding virtual box.

Posted by Ratan Nampelly on November 18, 2008 at 10:20 PM GMT #

"please can i have translation in french?
Posted by deffo on October 15, 2008 at 05:19 PM GMT"

Hello,
do you mean translation of this blog or ZFS/VirtualBox documentation?
The Observatory blog is running in multilingual mode now.
So if you want to help and translate some articles into your native language, you are welcomed!
Unfortunately, only Sun employees can manage blog.
However, you can send me a translations and I'll post them on the blog.

Posted by Jan Hlodan on February 09, 2009 at 07:49 AM GMT #

you need to run devfsadm -c disk to make the solaris 10 to recognize the sata disk.

Posted by hendro moeljono on June 18, 2009 at 09:31 AM GMT #

Is the first time that my old Workstation SUN Ultra 5 start and give me (OK)prompt, and now?
Linux & DOS commands don't work
Someone could help me.

Posted by Newebby on December 29, 2009 at 06:31 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20
21
22
23
24
25
26
27
28
29
30
   
       
Today