ZFS I am impressed!

When I had initially played around with zfs, I wasn't surprised. Just like you wouldn't be surprised if the next Steven Spielberg movie was a block buster, Jeff Bonwick's file system had to be revolutionary.

What really impressed me (and motivated to blog about it) is this small thing that I thought would not work, but it worked like a charm:
I am setting up various zfs file systems for a variety of purposes, each with different options and properties. I wanted to see a list of all that I just did. zfs list shows a list with default properties like NAME USED AVAIL REFER MOUNTPOINT. I wanted to see more and zfs -? gave a long list like:
        type             NO       NO   filesystem | volume | snapshot
        creation         NO       NO   <date>
        used             NO       NO   <size>
        available        NO       NO   <size>
        referenced       NO       NO   <size>
        compressratio    NO       NO   <1.00x or higher if compressed>
        mounted          NO       NO   yes | no | -
        origin           NO       NO   <snapshot>
        quota           YES       NO   <size> | none
        reservation     YES       NO   <size> | none
        volsize         YES       NO   <size>
        .....
You can run
zfs list -o name,available,compressratio
to just list filesystem name, available space and compression. Instead of just copy pasting the properties from the above list, I tried
zfs list -o all
to my greatest surprise it worked! It listed all the properties! I really didn't expect it to be this user friendly (for example ps which doesn't understand ps -o all)
Comments:

Post a Comment:
Comments are closed for this entry.
About


sayings of an hearer

Search

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