I am lucky enough to have a Ultra 40 (AMD64) at home, so I decided to load Nevada Build 67 and experiment with ZFS, with the intention of learning more about ZFS and building (over time) a solid backup server and strategy for my other home and mobile systems.

My machine is called 'booter'

At the moment it only has one 80Gb SATA disk, but I intend to change that by purchasing a couple of 320-500Gb drives that I will tie together in a future ZFS combo...

So here are the overview steps I followed:

1) Find my drive details:

booter# format < /dev/null
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1d0
          /pci@0,0/pci-ide@7/ide@0/cmdk@0,0
Specify disk (enter its number):
booter#

2) I knew s7 on disk c1d0 was free, so I issued the command:

booter# zpool create -f tank c1d0s7

3) I then created the filesystem and specified a mount point using:

booter# zfs create tank/backup
booter# zfs set mountpoint=/export/backup tank/backup

booter# df -k | grep tank

tank                 33546240      18 33546100     1%    /tank
tank/backup          33546240      18 33546100     1%    /export/backup

3) To compress the data on the drive:

booter# zfs set compression=on tank/backup

4) Using the zpool history command I could see what steps I had followed, I can see this would be useful in the future once I'd let some extended time go by and can't remember what I'd done (or for shared admin machine what someone else had done)

booter# zpool history

History for 'tank':
2007-06-22.23:05:43 zpool create -f tank c1d0s7
2007-06-22.23:10:00 zpool clear tank
2007-06-22.23:10:58 zfs create tank/backup
2007-06-22.23:11:49 zfs set mountpoint=/export/backup tank/backup
2007-06-22.23:13:14 zfs set compression=on tank/backup

5) I decided I wanted to share out the filesystem via NFS, using:

booter# zfs set sharenfs=rw tank/backup
booter# zfs share -a

Now I can mount and write the backup filesystem from my other systems (Mac).

In a future update I plan to write up how I added more storage, how I get samba share to work, and a little on zfs snapshots...



Powered by ScribeFire.

Comments:

Please send me update henceforth. It is really useful for me.

Posted by Selva Shunmugavel on June 26, 2007 at 01:43 AM PDT #

Post a Comment:
Comments are closed for this entry.

This blog copyright 2008 by scf