Trying ZFS 

Trying ZFS

well, today was my first time with ZFS, since i dont have a biig disk available or any free slices I just used regular files, I used 200mb files in fact and here is how i created my first ZFS mirror
first, let's create the files
root@darkstar:/export # mkfile 200m testfs1
root@darkstar:/export # mkfile 200m testfs2
now let's create the pool and the mirror
zpool create test mirror /export/testfs1 /export/testfs2
finally let's change the mount point and turn comression on
root@darkstar:/export # zfs set compression=on test
root@darkstar:/export # zfs set mountpoint=/export/test test
root@darkstar:/export # zpool status
pool: test
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
test ONLINE 0 0 0
mirror ONLINE 0 0 0
/export/testfs1 ONLINE 0 0 0
/export/testfs2 ONLINE 0 0 0
all looks good but let's check the value of the properties of the zfs pool
root@darkstar:/export # zfs get all test
NAME PROPERTY VALUE SOURCE
test type filesystem -
test creation Fri Mar 10 18:24 2006 -
test used 422K -
test available 179M -
test referenced 98.5K -
test compressratio 1.00x -
test mounted yes -
test quota none default
test reservation none default
test recordsize 128K default
test mountpoint /export/test local
test sharenfs off default
test checksum on default
test compression on local
test atime on default
test devices on default
test exec on default
test setuid on default
test readonly off default
test zoned off default
test snapdir visible default
test aclmode groupmask default
test aclinherit secure default

that was easy wasnt it? ;)
I will play more with it later
I will tell you about my failed experience using ZFS and lofi exported file, hint: it didn' result quite as expected, specially when i tried to cat /dev/random the lofi exported file

Return to Main Page

Comments

Add Comment




On This Site

  • About this site
  • Main Page
  • Most Recent Comments
  • Complete Article List
  • Sponsors

Search This Site


Syndicate this blog site

Powered by BlogEasy


Free Blog Hosting