Archive

Posts Tagged ‘Sun’

OpenSolaris ZFS setup

March 3rd, 2009 Arthur Gressick No comments

I will have a completed project called OpenSolaris NAS device once I get the testing finished but for now here are some directions for setting up a ZFS file system. I am using VMware fusion for Mac and created the main system and then 4 additional 1GB drives. I set them up at SATA drives which would be like I would have in the final product.

First thing I had to do what install the software and then after I install everything I opened the terminal and begin hacking away. Here are my commands that I ran:

Get the ID for each of the attached drives.

iostat -En

Create a simple mirror of just 2 drives. (drive_id = id from command above)

zpool create your_pool_name mirror drive_id drive_id

SAMPLE of script above

zpool create your_pool_name mirror c4t1d0 c4t2d0

Check your work

zpool list
zpool status

create a folder

zfs create your_pool_name/folder_name

Adding more space to the storage pool

zpool add your_pool_name mirror drive_id drive_id

Checking all of the drives that make up the zfs pool

zpool status -v

Setting reserve limits of space

zfs set reservation=157m your_pool_name/folder

Show any of the reservations on the system

zfs get reservation your_pool_name/folder

Remove a reservation from a folder

zfs set reservation=none your_pool_name/folder

Setting Quotas

zfs set quota=3M your_pool_name/folder

Show Quotas

zfs get quota your_pool_name/folder

Removing the Quote

zfs set quota=none your_pool_name/folder

Changing Permissions (I am sure there is a ZFS one, I used Unix)

chown user:group /your_pool_name

Always check the pool to see if it is already compressed

zfs get compression your_pool_name/folder

Start compression

zfs set compression=on your_pool_name/folder

Turn off compresstion

zfs set compression=off your_pool_name/folder

Look for more articles on ZFS.

Sun xVM VirtualBox on Ubuntu 8.10 64-bit

February 18th, 2009 Arthur Gressick No comments

While there are lots of Virtual Machines like the VMware Workstation for Linux it cost money after 30 days. Another cost affective Virtual Machine by Sun Microsystems. This one is free and has a reasonably easy install. This is how I installed it.

Get the software (hopefully it remains a stable link in the future)

http://dlc.sun.com/virtualbox/vboxdownload.html#linux

Reading the VirtualBox documentation it looks like you have to APT-GET a few programs before installing and some other changes to the Permissions.

sudo apt-get install dkms

I also have some problems installing this above and had to run the following per directions from terminal

sudo apt-get install -f

Once you find the correct version you need to download it. You will notice that it is a .deb package. To install the .deb package you need to run the following command:

sudo dpkg --install virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_amd64.deb

You might find that you have some problems but I hope that it install anyway. Now add yourself to the GROUP vboxusers in the System/Administration/Users and Groups

Now run this command and see if it will check the system and everything should be good after this

/etc/init.d/vboxdrv setup

Now you might want to check the Applications Menu to see if it is completely install. Applications/System Tools.

Good luck and hope it works for you and you have fun.

Attached virtualbox installation instructions from the DVD they gave out at MacWorld for more instructions.