the last word in file systems september, 2005 · zfs – the last word in filesystems zfs – the...

36
OPG Leadership Series Kickoff, September, 2005 ZFS THE LAST WORD IN FILE SYSTEMS

Upload: others

Post on 27-May-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

OPG Leadership Series Kickoff,September, 2005

ZFSTHE LAST WORDIN FILE SYSTEMS

��� � � �� � � ���

� � � �� � ���� � � � �� ��� � � � � � �� � � � �� �

��� � ��� � �� �� � �� � � � ���

Page 2: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Overview

� ��� �� � �� � � � �� � � � � ���

� ��� �� � ��� �� � �� � �� � ��� � �� � � � � � � � �� � �� � � � �

� ! " " # $ �% �$ � ��

� &' � (� �� �) � * � �� � +,- . / � � * �� � �0 � �� 1

� 2 � " % � � " � � # �� � � � �

� 34 � � ) �� 5 � � � 5 �� � � � � � � � * � � � � � � � � * (� � 687 9

: ; � �� � ; � � � � �=< >? @ / � � � � � � �� 1 � �

Page 3: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Trouble With Existing Filesystems

� � � � # �� � � # � # � � � � � �$ �� � � % � � �

� �� 0 � � *� � � � � � � � 6< �� � � �� � � � �< � � /� �< � � ��� � �< � � * � � 1 ( � �� � ��

�� � �� � � � � � � �� � � ��0 � � � 6� �� � � � � 5 � � � �� � � ( � �' � � � � � � 1 � 1 � �0

� �� � � �� � � " � ��

� � /�� � �< � � � � � � � � �< � � � � 1 � �< �� � � � � � � � � 5< 5 �� ( �� ' � � � 6< �� � � �� *� � � / 7 7 7

� � ��� � * � � 1 � ���� * �� � �0 � �� 1 �� � � � 1 � � �� �< * �� � � � �< � � 1 /�� � � * * �� � �<* �� � � � � � � �� � �� �0 < � � 1 /�� � � * � � � � ' � ���< 7 7 7

� � � � � � � � /� � /�� � (� � � � � � *� � 1 � �� 7 5 7 �- � �� � * �� 1 @� �� ��

� � �� # � � �

� � � � � � . � � 1 � � �� � ��< * � � � � � 6 �< * � �� � /� � � 6 � � �< � � �� � �� *� � � '<

� � � ( � �� � � 1 ( � � �� �< � � � �0 �� 5 � � � � � 5 5 � � 5

Page 4: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

You Can't Get There From Here

� � � � � � � � � � � � � � � # � � � � # �$ � " % � �$ � �

� � � � � � � � �� � �� # � � � � # �� � � # # � " % � � � #

� � # � � � �� � � � � � # � # � " �� � " #$ � � �$ �

Free Your Mind

Page 5: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Design Principles

� � � � � # � �� ��

� � � 1 � � �� �0 � � � 1 � � � �� � �' � �� � ��� � � � � � � � � � * � � � � 1 � �

� � � � � *� � � �� � � 5 � (' � � �� � � � *� � 1 � 1 � �0

� � �� � �� � � � �� � � � � ���

� � � � �� � � � �� �0 �� � � � � � �� � 3 �� � � � � � � � � � 9

� & � �� � � � �< � � � � � � � ) �

� �� � �' � �� �� �� � � � � � � � � � � � �� � � /� �

� �� � # �$ � � � �� � % � � � � �

� � � � �' � � 5 � �� ( �0 � �� � � � � �� � � � � � � � 6

� � � 1 � � � � �� 1 � � � �� � �� � � � � � � � ��� � � �� � � � � �

� �� � � (� � � ��� 5 � � ' � 5 � � � *� � 1 �� �� ( � � �

Page 6: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Why Volumes Exist

� � � ��� �� � � � � � � �

� �� � �� � �� � �� �

� � � � �� � � � � � �� �

� � � ���

� ��� � ��� � � � � � � � �� � � � �� �� � � � � � � � � � � � � �� � � � � �� � ��

� "!# $&% # ' $ '( )"* + , )- '( .( / '0 ( /21 ( 1 -&3 ' / 4 '( '5 # 1 6- '0 ( 7 '- -

� 8! ( .% ) + ( '# / ! - ) / /- ' ( 4 ) 0 9: 3 1 -&; 0 ' < = /21 > 1 6 6- ' $ ) ( ?( / 1 * ' / 4 '#

� @ � � � � � � � �� � �� � � � � �� � � � � � � A BC�D � � � �� � � �� �

� E )- '( .( / '0 (GF 3 1 -; 0 ' 0 ! +! * '# ( ( 1 - $ ! ( ( '5 ! # ! / ' 5 # 1 $; > /(

� H + 4 '# ' + /5 # 1 6- '0 ( ) + E IJ3 1 -&; 0 ' ) + / '# ,! > ' >! + K / 6 ' , )&L ' $

Page 7: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

FS/Volume Model vs. ZFS

�� � � � � � �� � � � � " #

� @ � � � � � � � � � �� D � � �� �� � � � �

� � � � � � � � � � CD � � � �� � � � � � � A B

� � �� �C � � � � � � �� � � � �

� � �� � A B � � � � � � � �� � � � � � � � � � �

� B ��� � � �� � � � � � �� � �� �� � � � � � �� �

� � 2 � � � � 2 � �� ��

� @ � � � � � � � � � �� � �� � � � C �� �

� � � � � � � � � � � � � � � � � � � ��

� � �� �C � � � � � � �� ��� � � � � � �� � �

� @� � � � � � � � � � � �� � �� � �D � �� � �� �

� @� � � ��� � � �� � � � ��� � � � � � � � � � �� �

Page 8: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

FS/Volume Model vs. ZFS

� 2� � � � � " ! � 2 � �$ �? @

�� � � 1 �

���� � �� � � �� � � ��� �

� �� � � � � � ��� ��� � ���� � � � � � ���� � ���� � � �

� �� � � � ��� � � � ��� � � � �

� "! # ��� � �� � ��� � �$

� � � � � � � � % #'& (� % � � � � ) �� � � � � ��� � ��� � * �� +� � ,

>? @@ �� � � 5 �

� � � �

���� � �� � � �� � � ��� �

� � � � � � � � � �� � � �� � � �

# �� � � + + # � � � � $ �� � �

+ � � � � � � � � $ �

� �� � � � ��� � � � � � $ �

� - $ � � � � � %� � # � �� �

. � ( � �! � � � #/ � � � � � � �� �

� �0 � � � � � 1 � � � ) �

�� � � � 2� � ( � �� �

� 3� �! � �! � � � � )

/ � � � � � � �� 4 � � %� � � � � � � 5 .

� - � � # % � � � ) ) � ) � � �� # ��� � % � 5 . � � � � � �

� 6� � � $ � � � � � � � �� � �

� 7 % � � � � � � � � � � � #

� � 2 ! � 2 � �$ �� � 8/ � � � � � � �� 4 � � %� 9� + + � �

� 3 ) � � � � � �! � �! � � � �� )

� 3� � � $ � �� � �� � �� # ��� �

� 6� (� % � � �;: � � # #

Page 9: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Data Integrity Model

� � � � � � � � � � # $ � % � � � � �� � �

� � � � � � � � � � ( � � �� � � � � � � � �

� � � . � � � 6 � � � �� �� ( �0 � � �� � � : � � 3 ( � � � � (� � * � � � � � � � / �� � �0 9

� � � � � � � *� � *� � 6 � + � �

� � � � � � � � � � # �� � # �$ � � � � �

� � � � � �� � � ' �� 5 � � � � � �� � � � � * � �� � � � (' � � �

� � � � � � � *� � � � � �� �� � � 5

� � � � � � � � � � # $ � $ � # � " "

� � � � �� � � � � � � � �� � �� � � � �

� � � �� � � � � � � �� � �� � � ��0 �� � �� �� � 1 � � � � � � �

Page 10: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Copy-On-Write Transactions

�� � � �� ��� � � � � � � � �� �� ��� � � � � ��

�� �� � �� � � � � � � �� � � � � ��� �� � � � � � � � � � � ��

Page 11: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

� � �� � � � � � � � � �� �� � � � � � � � �� �� ���

� ��� ��� �� ��� � �� �! " �$# � � % � �& � ! � � # � � � �& & # � '

( & �! � � # �" # # � ) *�+ " # # �

Bonus: Constant-Time Snapshots

Page 12: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

End-to-End Data Integrity

�� � � �� �� � � � � �� � �

���� � ���� � � ��� � ��� � �� ��� �� ��� � �

��� �� � !#" �� � � � � �� � � � �� � �� � � ��$ � � �

�� � % �� &� � �� �� � � � �� � � � � �� �

' � �� � � � � ( )* &� �� �� � � �� � !� �� � � � � �� � �� �

+-, ., +-, .,/0 0123 34526 73 8 9 4526 73 8 9/0 012 3 3

:� ��4526 73 8 9

:� ��4526 73 8 9

;< = �?> @> A� @ B @� � > @� �B

���� � � �� � � ��� � � � � $ �� � � � ��� � �$ � � � �� �

(� � � � � � � � � � �� � �� �� � � � ��� �� � � � ��� � � �� �

C � � �� � � ��� �D � $ � � � � � ��� � !" &� � � � � � � � D E� � ��� �� � �

FG ( + �� *H � � � � � & � *" I JK ! � � �

L MN .OP .L QR ,S .P TU O N .VWL X NW Y N O VZ .V Y O V , YW ,S YU O N .VWL + X[-\ , O N .-] V O OP O WL +O N_^ V O `_a bWL [ Z Z N Y VS ., cP ^ V O U O N .V

/0 012 3 3 4526 73 8 9 4526 73 8 9/0 012 3 3

d * � % � � � % � � e # & ��� + �� *H � � � e H * �

L M N . OP .f QR ,S .P TU O N .VWf X NW Y N O VZ .V Y O V , YW ,S YU O N .VWf + X[\ , O N .-] V O OP O Wf +O N_^ V O `_a bWf [ Z Z N Y VS ., cP ^ V O U O N .V

Page 13: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Traditional Mirroring

���

�$ $ � � �� � �� � � � �� � � �� � � ���E �� � �� � � � � � ��� ! �� � � � � � ���� � � �� � � � � ��� � � $ � � �� � ��' � �� � % � �� � ��

��

�� �� �� �� � � D � � $ � � �� ��� � ��� � �� $ �� ! � �� � � �� ��' ! � � % � � �� �� ��� �� � ��� � ��

���! � �� � � �� �$ � � � � ��

' ! � � �� � �

��

( � �� � � �� �� � �� � � � �� � �� ���� ��� � $ $ � � �� � �� ��

Page 14: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Self-Healing Data in ZFS

���

�$ $ � � �� � �� � � � �� � � �� � � ��

� ( ) � �� � � � �� �� � ��� ! �� � � � � � ����� � � �� �� � &� � � � �� � � ������ � � � � ��� � � $ �� � � � � �

��

� ( ) �� �� � ��� �� �� � � � � � ������ � � �� � � � � � �� �� � �� � � ������ � � � � D � � �

��

� ( )� � �� � � � D � � � � � ���� ��� � $ $ � � �� � �� � � � �

� � $ � �� � ��� ��� �� D � � � �� � ��

Page 15: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Traditional RAID-4 and RAID-5

� ��� �� �� � � � � �� � ��� �� � �� � � � � � �� � �

� � � � �� � � �� � � �� �� � � � �� � � �� �

� ���� ���� � � � � ��� � � � � �� � �� � � �! "# � � $� %� ���� & � ' # % (

) *,+- .,/ 0 . .- 1- - 2 . / 0 .,3 -4 5 176 8 179 / : 6 2; <4 / 2/= : . 5 : >4 + - . : ?

) @/ A3= 1+ 2 + 9 3 - 4 5 1 6 B 2 + 9 .- 1- C/ 0 . .- 1- C/ 0 . 3 -4 5 16

) D4 5 1 + 2 + 9 .- 1- - 2 . 2 + 9 3 -4 5 16

� E � $ $� � � $� # "F G HI�J K�L MJN

) O/ : :/ P3 / 9 +4 Q + 1 9 + + 2 .- 1- - 2 .,3 -4 5 16 94 5 1 + : 9 5 0 0 ; /4 4 = 3 1 .- 1-

) D/4 >- 4 /= 2 .SR T T TU V *WX 5 2 <- 4 . 9 -4 + 8 5ZY + Y[ ./ 2 \ 1 0/ : + 3 / 9 +4 ] ?

� �� � � � � �� � �_^ � ^ � � � � � � � � � � � � � � ^ � �� ^ �

` ` ` ` a b �� c�� b�

` ` ` ` a d

Page 16: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

RAID-Z

� � � � �� � � � � �� �� � � �

� � �� � ' # b �� � ' c ' # � � � � �� � # % � ��� � ��

) � : + ; 1/4 : 8 0/ 5 ; - 0 ? B � .- 1- Q 0/ ; > : � 3 -4 5 1 6 Q 0/ ; >[ + 1; Y) � 2 1+ 4 - 1 + . : 1- ; > 5 : > + 6 R A + 1- .- 1- .4 5� + :4 + ; / 2 : 14 = ; 1 5/ 2

) @= 4 4 + 2 1 0 6 : 5 2 0 +�� 3 -4 5 176� ./= Q 0 +� 3 -4 5 1 6 +4 : 5/ 2 5 2 1 < + 9 /4 > :

� � � � � �� � � � � ��� � � � �� � � �� �

� � ' � " � � � � � �� � � � " # � � $� %� ���� & �� � � $� �� (

� � ' � " � � � � � � � �� ��� � � %� ���� �# '� &� # � ��# � �� �� � �� � �� � (

� � � �� � � � �� � � ^ � � �� � � � � � � � � � � � ^ � �� ^ �

� � �� � � � � " �� ��� � �� # " c � � � � # � � � '� � � # � ��� �� � � # �

� ^ � �� � � �� � � � � � � ! " � � � ^ �� � � � � � � �� � ���

Page 17: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Disk Scrubbing

� �� � � � � � �� � � � ^ � � � � � � � � � � � � �� � � � ^ � � � � �� �

� � � � "� "# � � �� � � c c � � b $# � � � � � �

� �� � � � � � � � � � �� � � � ^ �� � � � � �

� �� � � � � �� � �# # ' "� � � � � � � � # � � � �� � � � � � # �� # $� � � � � c ' # � �

� �� � � $ �� �� �� �� # �� � b � � � �� �� � � � � c �� � �� � � � � "

� E� ' $ �� � ' � � b � � �� b# � �

� � ^ �� � � � � � � �� � � � � � �� � � � � � �� � � �

� �� � � �� � # � � '� � � � '� � � � % � # '� � � � �� # �� � � # � � ' � � ��� � �� � �

� �� E� � � � '�� � � � ' ��� � � � � � � # �� �� � � � � � � � � b� �� � � � � " "� �

� � ' ' � � � � � � �� �� � # �� � �� � � �� � � "� � � ' � � c '� "� � � � � � � "

)X 54 4 /4 4 + : 5 0� +4 [ *W � � 4 + : 5 0 +4 [ - 1 1- ; <[4 + 3 0- ; + [ :;4 = Q

Page 18: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Scalability

� � � � � � � � � � � �� � � � � �� � �� � �

� �# # � � � � �� % � �� � � � �� � c �� � � � d � �� � � � �

� �� � � � c� � � a � d c �� &� c � ' ' � # � � (

� �� E� � ��� ��� � � � � � � � �� � ' ' � # � �

� ��� � � � � � � � �� � " ' � " �� # $ ���� � � c�� �� � �� # � � b�

) � + 1 < O 0/ 6 .[ � 0 1 5 A- 1+ 3 < 6 : 5 ; - 0 0 5 A 5 1 : 1/ ; / A3= 1- 1 5/ 2 Y

U - 1= 4 + �� �[ � � �� � � � � � 8� � � � ?

� � � � � � � �� � � � � � � � � �

� � # ' � " �� � # � $ � '� � �� �� � � � # � � � ��� �� � �� �� �

� � # %� � �� � � # c � &� � b � � � # �� � �� b (

� ^ � �� � �� � � � �� � � � � � �

� ���� � ' '� '� � � � � %� ���� � �� � � ' '� '� # � �� � �� � � "� � �� � � � # � � # �� � � � � # � � �� �� �

Page 19: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Performance

� � � �� ��� ��� � �� � �� � � � �

� ��� ��� �� � ��� � � ��� � � �� �� ��� � � �� �� �! " � � � #

� $ � � � � ��% � &' (

� ) � � � � � � �! � * � �! # � #+ ,.-� ��/ �0 �0 � � � � � � � �1 �2 # �0 �� # �� � � / ! � 0 ��

� 3�4 � � � � 0 �� � � * � �1 � 2 0 �! � � � � � �� �

� 5! � �! � ��76 # �� # � � � �� � � � # � � � � / 6 � � �- � 8- �! # �! �� � � �6 � �! � � � / 6 �/ / ! �/ � � � � �

� 9 : % ;< � � � � � � � ��% � ; � � � � ; � � &�� = � �� �

� 3�4 � � ��> �� � �! � �/ �0 � �

Page 20: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Dynamic Striping

� � � < ;� � � ; � � : & �� � � � � � � � � �� ; & ; � � � � ; � � &�� = � �� �

� ���! �/ � 5 � � �

� ) � � ) � � ) �

� ���! �/ � 5 � � �

� ) � � ) � � ) �

�� �� �� �� �� �� �� �� ��

� � ��� �� �� �� �� � � � �� � � �� � � � � �

� � � � �� � � � � � �� � � �� � � �� �� �

� � �� � � � �� �� � �� � � � � � �! �� � � � � ��

� "� � � � �� !

� # �� �� � � $ �� � � �!&% � � '

� ( � �� � $ � ) � � � � � � � '

� � ��� �� �� �� �� � � � �� � � � � � � � � �

� � � � �� � � � � � �� � � �� � � �� �� �

� *� � � � � � � ) � � + � �� � � ) �� � �

� , � � �� � � �� �� �� � � � � �.- /

� * � �� � � �� �� �� � � � � �- 0

� " , � ) �� � ! � � �� �� � �� � � �� � �

� # # 3 �! ! �! 1� # # 3 �! ! �! 1

Page 21: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Copy-on-Write and Performance

� �� � & � � �� �

� � 2 � � �! � � ! � � # � � ! � � �� � � � � � �� � �� � � � � ! � � ��

� �� � � ; & � � �� �

� � 2 � � �! � � � � � � �� � � � �! �� #� � � ��� ! � � # � �! �� #�

� �� � �� � � % �

� 1 � � � � � �/ �� � 5! � 8 � �� �

�� � � � � # � � � � � 8 * � 8 8 �! � � /

Page 22: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Intelligent Prefetch

� � �� ��� ��� ��% &� � � % &� % � � �� �� � � � � � �� ;< �

� �! � � � � � 8�! � � � � �! �� � � � / � �! � ��� �0 ! � � � # �!

� � < ;� � � ��� % �� � ;% & � � � � &� &�� � � �� � %

� �! �� � 8�! � 5 � � 0 0 � �� � � � � � �

� � ) � � � # �! � �� � #� � � �

�� �! �4 � � � � �0 � � 0 ! � * � � �

� �� 1� 1�� � � 0� � � �

� � � � 1 1� � �

� �� � � � � � � � � � � �

� � � 3� �! �4 �+ � � �! � 6 �� � � � � � �� �

� � � � "! # $� 0 0 ! % % & 1 1 ' ! ()

� � � 3 � �! �4

� �* 3! � � 6

�* 3 � � � � � � � �

+� �-, . / � � � � �

0 � 021 . � ,

. / � �

� 1� � 3 �

Page 23: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Administration

� $ � � & � � � ;� � � % < � � = � < �� �

� � � �� � �! �/ � �� � � �! � #�� � � �� � � #� 0 � � �6 � � �� � � # *� � # � # � �

� � � ; � �� � ; � � � �� : � � � < � � �� % � � � � � & � � � � � � ��

� ) � � �� �� � � �� * �� � � � � # � � � �� �! � � � � � � � � �! � � 0 � � � ��

� �� � , � 1 � � 1 �� � �! � � � � � � 1 ��� � . � � � � � � � � � � �1 � � � �� ��� � � 3 � � � � 1 ��

� � � � � � 1 � � � 3 1 � � � � � � �21 � ' � 1 �� � �� � � � � �� �1 1 � � � ' & � � � � � � 1 � 1 �

� 3� � � / � � � / �� � � � � ! � � � � � # 8 � � �� � � � � �� �� � / ! � � 0

� � � � �! � � � � �0 ! �� � � � � 6 � � �� "� � �� 6 � � � ��� 6 ! �� �! �� � � � � � 6 � � # � �! �

� 3 � � � � � � #� � �! � 8 � � �� �� � � �� � � � � � � � � �� � � 8� �� * �! � � �� � # 8� � # 8� �� *

� 1 � � �! � �� � � � �� " �� � �! / �-� � � � � � # � � � �� �! � � � � � � � � � 0

� % � % � � = � �: �� % �

Page 24: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Creating Pools and Filesystems

� ��� �� � � � � � � � � � �� �� � � � � �� � ��

� � �� � � �� �� � � � � � � � � � � � � � � ! � " � !

� ��� �� � � # � � � � �$ � � % & � �' %' � � �)( � * � � � � � + �, � � � + # � �

� � -/. �� �� � � � � � �0 1 � � �

� � -/. . � � � � 2 � � �� � � �43 0 �5 �� � � 0 1 � � � � � � �0 1 � � �

� ��� �� � � # � � � � �$ � � � �' & � ' �6 �� � * ' �� '

798 :<;= >? :8 @ > : A9B > C CED @8 ? F :<; G > : H;I J8K : HL 8 @ ; HM > LK ; FN�

O8 FP AB Q�

O A C C @ R : L > F QN :8 A F L ;K A : > FB ;

� � -/. �� �� � � � � � �0 1 � � � 0 � 1� � � .

� � -/. �� �� � � � � � �0 1 � � � 0 S� �T � � �

� � -/. �� �� � � � � � �0 1 � � � 0 S � � � �

� U � � � ' � � $ � � � # ��

� � �� � � � ! ! � � � � � � � � � � � V � ! � W � !

Page 25: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Setting Properties

� U* � � � � � $ � % �� ��� �, � � � � # � � � � �$ � � � �'

� � -/. . � � . 1 � � � � -. 3 � T � � � �0 1 � � �

� �* � � � $ �� � � ' ' � � & � �6 �� % � # �� � �� � # ��

� � -/. . � � � � � �� � . . � � �3 � � � � � �

� � � � � � � � � $ � � * �� & � �

� � -/. . � � � 2 � � � 3 " � � � � �0 1 � � � 0 � . � 1� � � �

� � * � � � � � � � �� ��� ��� � � �' �� 6 � � � � &� � �

� � -/. . � � � � . �� �� � � � �3 V � � � � 0 1 � � � 0 � � S� � �

Page 26: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Snapshots

� ��� � ��� � �� � � �� � � � � � � � � � � � � � � � �� � ��� �

� ���� ��� � ��� �� ��� !� � � " ��$# � � % "�& " �� ' � � & (� !

� ) � � ' ' " � " �� � %� * � � �� � ',+ ( % � -� � * "� ' �� %/. 0 1� � � 1� . 1 � �2 �

� 3 � � � " ( %� � 1 ! ��2 154 6 7� 8� � � *� 1 � � " � ! � � � � 7� � 1 7 " %� � .� �� &

9 :; ;=< > ?@ ?AB ? C< B AD <E A B FG ; A ? > G C H< @ C ?I ?J K=L G=M G M CAB E A M C G< M

N OQP RQS P TU P V T WQX Y X Z[ P\ R] T WX ^ S _`\ S a YX \ b

c d egf fh ij f kml n n ih op kml qr p q is o f t nvu r f w ix

N yX z z � P a R YX P V\ S {` X | T TU P V T WQX Y

c d egf s l } }~ i� o n ih op kml qr p j r s s �h t ql h w ix

N OQP RQS P zX X R P Y �S _ U S T _ P b ] T {S\ T` X U X Z ZX X�� a

� � i n�� q i x ~ r r p�� d ef p f h ij f k l n pg� r wh r f w i x p el l � �

Page 27: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Clones

� � � � � � � � � � � � � � � � � � �

� ���� ��� � ��� �� ��� !� � � " ��$# � � % "�& " �� ' � � & (� !

� � '� � % 7 � ! � � � ! " � 2 & � � . * ! "�� � �� � * "� � � 7 & �� � %/. �� 1 � !� ' ' � ��

9 �< F C >J B A G M ? CJ ; ; J C G< M ?

9 �< B � ? J D A ?

9 G ? � ; A ? ?D ; G A M C ?

N �\ S P Y S P a z X U S X Z bX |\ � V S U X z P\ ` T TX |\ a S aX _ S

c d egf � } l h r n ih o p f l } is � f t ql h w ix n ih o p � f p } l s � p e ���

Page 28: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Send/Receive

� � � �� �� � �� � � � � � � �

� � � % % � *.� � � . � � � *� 1 � �

� ��� !� & � � �� % � *.� � � . � � � *� 1 � � '� % ��

9 �A B I FJ ? C�� D < ? C B < < B C G< M J ; C< K J CJ D H J M� A K

� � � � � � � � � � � � � � � � � � � �� � � � � �� � � � � � �

N � S U S\ P YS P Z | z z\ S V z ` aP

c d egf f r h w n ih o p ef t� p ~ i � ou j p �

N � S U S\ P YS P U ` U a\ S ^ S U YP z\ S V z ` aP

c d egf f r h w�� � n ih o p egf t � n ih op ef t� p ~ i� ou j p � � �

N yS ^X YS \ S V z ` aP Y` X U� T S U _ ` U a\ S ^ S U YP z X U a S V S\ ^ ` U | Y S

c d egf f r h w�� � n ih o p egf t " "�� � " n ih o p egf t " "�� �� �

f f k k l f n d egf s r � r ��� r � w p n ih op ef

Page 29: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Data Migration

� � � � �� � � � � � � � � � � � � � � � � �

� � 1 � �2 � � � ! �� ! 7! �& � �� � � � 3 �# " � � �� � 0 � ! -�

� 3 ' � * � "��� � � ' " � � �� � � � �� " � 1� ! * % � � 7 � ! & * � .� � �� �

9 �B G CA ? J ; >J I ?@ ?A M J C GE A A M K G J M M A ? ? � ?A C � G C G M � ; < D � < G=M CA B

9 �A J K ? �I CA ? >J < M ; I G F H< ? C A M K G J M M A ? ? ��� � ; < D � A M K G J M M A ? ?

� �� � � � � � � � � �� � � � � �� � � � �

� � �!2 � � � ( �� � '� � " � * � � 1� # �� 7 "2 7 " %� � # 8� � 8� 7� �� (# � � 4

� � � � 0 " % %� 1 � !� 8� � � 1 � !� # & �� � � 8� � & �� � �# � � 4 �� �� � � � � ! .

N ��� VX \ Y VX X z Z\ X ^ Y W S X z _ T S\ {S\

l } w c d j l l } r � j l s n n ih o

N � W b T` a P z z b ^X { S _ ` T R T P U _ ` ^ VX \ Y VX X z YX Y W S U S � T S\ { S\

h r � c d j l l } � q j l s n n ih o

Page 30: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Data Security

� � � � � � �� � � �� � � �

� 3 % % � 0 8 '� � . 0 " � 1 "�� 1� ! " �� � �

� � � � � � � � � � � � � � � �� � � � � � � � � � � � � � � � � �

� �� � ! �� � %� �� ( %� �� � � ( " � 1� -� � & � %2 � ! " � 1& � # " � % � ' " � 2 �� 3 � � � �

� � �� � � � (� 7 �!2 � ',+ 1� -� � & � '� �� � " �

� � (� ! ( % � - 1� -� � & * ! �� " '� � ' "2 " �� %� "2 � � �� !� 7 � ! � � � " !� * � � %

� � � �� � � � � � � � � � � � �

� ! � �� �� �2 � " �� �� *. " � 2 # � 3 )� � � � * " � 2 # * 1.� " � % '� � " � � 1� 7 �

� ��� � � �� � � � � � � � � � � � � � � �

� � 1 � ! ��2 1 %. � ! �� � � 7!� � ' ( % � -�

Page 31: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Root (S10 Update 4)

� � � � � � � � � � �� � � � � � � � � � � �

� � 1� -� � & � # �& * !� � � " �� # !� * % " � � " �� # � � � *� 1 � �� � � ' % ��� �

� � � � � 7! �& � � . ' � ��� � �

� � � � � � � � �� � � � � � � � ��

� �� -� � � � *� 1 � �# � * * %/. * � � 14 4 4 ! � % % ( � - " 7 . �� ' �� � % " -� " �

� � � � � � � � � � �� � � � � � � � � �

� � !� � �� % ��� � " � � �� � � �# � *2 ! � '� # ( � � � 7! �& % ���

� ) � �� � �! � * � ! � " � " �� �

� � � �� � � � � � � � � � � � � � � � � � � � �� � � � ��

� � � � � � � �� " %/. !� � �� & � % � " * %� ( � � �� � � " ! �� & � � ��

� � � � � � � �� " %. & � � �2 � � 1� &

Page 32: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Object-Based Storage

� � �� � �� � � � �� � � � � �� � �� �� � � � � � � �� � � � � � � ��

� � " %� � .� �� & �

� � �� ( �� � �

� � 0� *� * � �

� � * � !� � � � % � & � � & � % � � " ��

� � 1 " ! ' � * � ! �. � * * % " � � " ���

� � � � � ��

�� .� ! ) � �

" � � � �

� �� � � � �2 � & � � � � � " � � � � �

� � � ! �2 � � � % 3 % % � � � � ! � � 3 �

� � � � � �� � �� ��� � � ��� � � �

� � � ��� � �

� � �� �� ��� �

� �

Page 33: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS Test Methodology

� � �� � � � � ��� � � � � � � � � � � � � �� �� � � � � � ��

� � � � �� ��� � ��� �� �� �� � � � � � �� � � � � � � � �� �� � �� �� � �� � !�

� " ��� �� �$# %$& � � � � '�( � �� � �) � �� � � � � � *� � � * � � � � � � �� � �( �� � � � � �$+

, �.- / 0 � 1 2 34 - � 5 2- /4 - � /6 0 0 - 7 - 4 - 8 3 7 -9 /6 0 0 3 2- 54;: 2 3 -9

, < 2- /4 - / 6 0 0 -9 4 2: = - 6 4 3 2- 8 3 7 -9 =9 4 - >9 /6 09 4 : 2 /? - @: : 79

, ACB 26 5: > @ 2-9 9 3: 6 : 6 / 6 0: 8 8D 1 E 3 7 - 8 3 7 -9 =9 4 - > 39 / 54 3CF - G

, < E /6 ? - 5 E - 5 H9 B > / 7 ? : 2 3 4 E > D 1 E 3 7 - 8 3 7 -9 =9 4 - > 39 / 54 3 F - G

, I 0 0 /6 0 2- >: F - 0 - F 3 5 -9 D 1 E 3 7 - @: : 7 39 / 54 3 F - G

, < E /6 ? - J KL 5 / 5 E 3 6 ? /6 09 5 E - 0 B 7 3 6 ? @: 7 3 5 3 -9 D 1 E 3 7 - @: : 7 39 / 54 3 F - G

, M 5 2 3N N 7 - 2 /6 0: > ? / 2N /? - : 6 : 6 - 9 3 0 - : 8 7 3 F - > 3 2 2: 2 4 : 4 -9 4 9 - 7 8PO E - / 7 3 6 ? 0 /4 /

, Q: 2 5 - F 3: 7 - 6 4 5 2 /9 E -9 4 : 9 3 > B 7 /4 - @: 1 - 2 7: 9 9 R 4 E - 6 F - 2 3 8 = @: : 7 3 6 4 - ? 2 3 4 =

� S� � T � T �$# ) �� � � T � � � � � UV � � � � � � � � � � # � � W � � � � � � � � � *� � � ) �

� � � � � � T� � � � � TX � � � �� � �Y � � � ) � � � � � � * �� � �[Z Y � � � � �� � � � ��� � � �� � � �� � � � � ��

� �� � � �� � � � �� # �� � � � � � �� � � � �� � � T � � �

Page 34: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

ZFS SummaryEnd the Suffering � Free Your Mind

� � � � � ��, <: 6 5 39 - 7 = -� @ 2-9 9 -9 4 E - B 9 - 2 �9 3 6 4 - 6 4

� � � � � � , �: : 7 - 09 4;: 2 /? - R9 6 / @9 E: 49 R 5 7: 6 -9 R 5: > @ 2-9 9 3: 6 R9 5 2B N N 3 6 ? R � I J� O �

� ��� ��

, � - 4 - 549 / 6 0 5: 2 2- 549 9 3 7 - 6 4 0 /4 / 5: 2 2B @4 3: 6

� ��� � �, � =6 / > 3 59 4 2 3 @ 3 6 ? R 3 6 4 - 7 7 3 ? - 6 4 @ 2- 8- 4 5 E R @ 3 @ - 7 3 6 - 0 J K L

� �� �, E 4 4 @� K K 1 1 1��: @ - 6 9 : 7 / 2 39 �: 2? K: 9 K 5: > > B 6 3 4 = K�� 89

� � � �

Page 35: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFS – The Last Word in FilesystemsZFS – The Last Word in File Systems

Page 36: THE LAST WORD IN FILE SYSTEMS September, 2005 · ZFS – The Last Word in Filesystems ZFS – The Last Word in File Systems Trouble With Existing Filesystems # $ % 0 * 6 < / 1 ( 0

ZFSTHE LAST WORDIN FILE SYSTEMS

��� � ��� � � �� �� � �� � � � �

� � ��� �� �� � � ��� � � � � � � ! � � !�" �# # $ � �%'& !)( * �