ZFS unter Linux

1,957 views
1,699 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,957
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ZFS unter Linux

  1. 1. ZFS unter Linux Lenz Grimmer <lenz@grimmer.com> < http://lenzg.net/ 2010-08-22 | FrOSCon 2010 | Sankt Augustin, DE
  2. 2. $ whoami 1998 2002 2008 2010
  3. 3. ZFS Features (1) ● 128bit POSIX-Dateisystem ● Volume Management ● Copy on write (COW) Transaktionen ● „End-to-end“ Checksummen ● RAID-Level: 0/1/5 (aka RAIDZ/Z2/Z3) ● Hot spares ● Snapshots & Clones
  4. 4. ZFS Features (2) ● Quotas & Reservierungen ● Kompression ● Deduplizierung ● Striping ● Dateisysteme wachsen dynamisch ● Nur zwei Tools: zpool(1M), zfs(1M)
  5. 5. FUSE ● File System in User Space ● Linux-Kernel-Modul (fuse.ko) ● User Space Bibliothek (libfuse.so) ● Zugriff auf Dateisysteme im „User Space“ (z.B. NTFS) ● Zugriff auf andere Resourcen (z.B. WebDAV, SSH, Google Mail)
  6. 6. ZFS-FUSE ● Mai 2006: GSoC Projekt (Ricardo Correia) ● Nov. 2009: ● Neue Website (http://zfs-fuse.net/) ● Neue Maintainer ● Neue Releases/Features ● Umzug von Mercurial nach git
  7. 7. zfs-fuse Architektur Quelle: http://en.wikipedia.org/wiki/File:FUSE_structure.svg
  8. 8. zfs-fuse Architektur zfs-fuse glibc User Space Kernel VFS XFS blkdev sda sdb
  9. 9. XFS auf LVM/RAID5 # Create the RAID mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda /dev/sdb /dev/sdc # Create the physical and logical volumes pvcreate /dev/md0 vgcreate volgroup /dev/md0 lvcreate -L 200M -n lvol volgroup # Create file system and mount it mkfs.xfs /dev/volgroup/lvol mkdir /lvol mount -t xfs /dev/volgroup/lvol /lvol vi /etc/fstab
  10. 10. ZFS mit RAIDZ # Create a pool named „mypool“, using three # disk drives in a RAID-Z configuration # and mount it to /mypool by default zpool create mypool raidz /dev/sda /dev/sdb /dev/sdc # (Optional) Create and mount file system # „myfiles“ zfs create mypool/myfiles
  11. 11. ZFS Live Demo ● Zpool anlegen ● ZFS anlegen ● Snapshots erstellen ● ZFS send/receive ● Zpool mirror
  12. 12. Fragen / Diskussion Vielen Dank! Lenz Grimmer <lenz@grimmer.com> http://lenzg.net/

×