Comprehensive diagram of the ZFS structure

Status
Not open for further replies.

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
As someone has asked questions about ZFS structure and as I'm a fan of ASCII art...
Code:
 +-------+  +-------+  +-------+  +-------+  +-------+  +-------+  +-------+  +-------+
 | drive |  | drive |  | drive |  | drive |  | drive |  | drive |  | drive |  | drive |
 +-------+  +-------+  +-------+  +-------+  +-------+  +-------+  +-------+  +-------+
     |          |          |          |          |          |          |          |
     |          '----.,----'          |          |          '----.,----'          |
     '--------------.||,--------------'          '--------------.||,--------------'
                    ||||                                        ||||
                +----------+                                +----------+
                |   vdev   |                                |   vdev   |
                +----------+                                +----------+
                      |                                          |
                      '-------------------.  ,-------------------'
                                          |  |
                                  +------------------+
                                  |       pool       |
                                  +------------------+
                                       |  |  |  |
     ,---------------------------------'  |  |  '-------------------.
     |                     ,--------------'  '-.                    |
     |                     |                   |                    |
+---------+           +---------+           +------+           +---------+
| dataset |           | dataset |           | zvol |           | dataset |
+---------+           +---------+           +------+           +---------+
     |                     |                                      | | |
     |                     |                           ,----------' | '----------.
     |                     |                           |            |            |
 +-------+              +------+                  +---------+  +---------+  +---------+
 | share |              | zvol |                  | dataset |  | dataset |  | dataset |
 +-------+              +------+                  +---------+  +---------+  +---------+
                           |                           |            |
                           |                           |            |
                           |                           |            |
                       +-------+                   +-------+     +------+
                       | share |                   | share |     | zvol |
                       +-------+                   +-------+     +------+
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Just to be a pedantic PIA, what about the ZFS dataset that's created automatically and shares the same name as your pool?

Otherwise:
Code:
★░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░███░██░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░██░░░█░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░██░░░██░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░░██░░░███░░░░░░░░░░░░░░░░░★
★░░░░░░░░░░░██░░░░██░░░░░░░░░░░░░░░░★
★░░░░░░░░░░░██░░░░░███░░░░░░░░░░░░░░★
★░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░★
★░░░░░░░███████░░░░░░░██░░░░░░░░░░░░★
★░░░░█████░░░░░░░░░░░░░░███░██░░░░░░★
★░░░██░░░░░████░░░░░░░░░░██████░░░░░★
★░░░██░░████░░███░░░░░░░░░░░░░██░░░░★
★░░░██░░░░░░░░███░░░░░░░░░░░░░██░░░░★
★░░░░██████████░███░░░░░░░░░░░██░░░░★
★░░░░██░░░░░░░░████░░░░░░░░░░░██░░░░★
★░░░░███████████░░██░░░░░░░░░░██░░░░★
★░░░░░░██░░░░░░░████░░░░░██████░░░░░★
★░░░░░░██████████░██░░░░███░██░░░░░░★
★░░░░░░░░░██░░░░░████░███░░░░░░░░░░░★
★░░░░░░░░░█████████████░░░░░░░░░░░░░★
★░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░★
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
It's just a dataset and as datasets can be nested it's not a problem.

Thanks :)
 
Joined
Jan 9, 2015
Messages
430
Just to be a pedantic PIA, what about the ZFS dataset that's created automatically and shares the same name as your pool?

Otherwise:
Code:
★░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░███░██░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░██░░░█░░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░██░░░██░░░░░░░░░░░░░░░░░░░★
★░░░░░░░░░░██░░░███░░░░░░░░░░░░░░░░░★
★░░░░░░░░░░░██░░░░██░░░░░░░░░░░░░░░░★
★░░░░░░░░░░░██░░░░░███░░░░░░░░░░░░░░★
★░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░★
★░░░░░░░███████░░░░░░░██░░░░░░░░░░░░★
★░░░░█████░░░░░░░░░░░░░░███░██░░░░░░★
★░░░██░░░░░████░░░░░░░░░░██████░░░░░★
★░░░██░░████░░███░░░░░░░░░░░░░██░░░░★
★░░░██░░░░░░░░███░░░░░░░░░░░░░██░░░░★
★░░░░██████████░███░░░░░░░░░░░██░░░░★
★░░░░██░░░░░░░░████░░░░░░░░░░░██░░░░★
★░░░░███████████░░██░░░░░░░░░░██░░░░★
★░░░░░░██░░░░░░░████░░░░░██████░░░░░★
★░░░░░░██████████░██░░░░███░██░░░░░░★
★░░░░░░░░░██░░░░░████░███░░░░░░░░░░░★
★░░░░░░░░░█████████████░░░░░░░░░░░░░★
★░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░★
ANSI Art. Reminds me of my BBSing days.....years ago.....:)
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
It's cheating, but anyway I'm sure I'm faster with a text editor than with this software where you move chars with the mouse... And Mac only? no, thanks :P
 
Joined
Apr 9, 2015
Messages
1,258
As someone as asked questions about ZFS structure and as I'm a fan of ASCII art...


Very nice, Cyberjock should probably add that into his guide as it will probably help explain to the noobs how it all works visually.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I already have a visual representation in my guide.

Also a dataset does NOT have to contain a share, nor does a share *have* to go on a dataset. It's a very good idea though.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Totally forgot about that, I'll edit to add zvols and co when I've the time ;)
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I might suggest that the "pool" box be vastly larger, just for psychological reasons.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Ok, why not ;)
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
I edited to make the changes ;)
 

Fuganater

Patron
Joined
Sep 28, 2015
Messages
477
This needs to be a sticky.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Thanks ;)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I'm actually against this being a sticky. Some changes are being made in FreeNAS 10 that will break that ASCII art. In fact, it will be incorrect in 10. Sorry, but I won't go into more detail at this time as things aren't 100% decided on how it will work.

Thanks.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
I'm actually against this being a sticky. Some changes are being made in FreeNAS 10 that will break that ASCII art. In fact, it will be incorrect in 10. Sorry, but I won't go into more detail at this time as things aren't 100% decided on how it will work.

Thanks.
Delphic much? :)
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Well, I can always add "9.3" in the title and/or make another version for FreeNAS 10 ;)

But I don't understand why it would be different because it's the ZFS structure, not the FreeNAS structure.
 

Fuganater

Patron
Joined
Sep 28, 2015
Messages
477
I'm actually against this being a sticky. Some changes are being made in FreeNAS 10 that will break that ASCII art. In fact, it will be incorrect in 10. Sorry, but I won't go into more detail at this time as things aren't 100% decided on how it will work.

Thanks.

Well 10 is not offical yet so that does not matter. This is accurate to the current version. When 10 comes out, by all means unstick it.
 
Status
Not open for further replies.
Top