User Tools

Site Tools


nas:zfs

This is an old revision of the document!


Table of Contents

ZFS

Erstellen

Zunächst das Device-File herausfinden. Am besten mit dmesg

# dmesg | grep -i da1
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <ST31500341AS SD1B> ATA8-ACS SATA 2.x device
ada1: Serial Number 9VS0GRVC
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 1430799MB (2930277168 512 byte sectors)
da1 at umass-sim1 bus 1 scbus9 target 0 lun 0
da1: <Intenso SCSI 0209> Fixed Direct Access SPC-4 SCSI device
da1: Serial Number 2019141381642
da1: 400.000MB/s transfers
da1: 3815447MB (976754646 4096 byte sectors)
da1: quirks=0x2<NO_6_BYTE>

Hier ist da1 die gesuchte USB-Platte (ada1 ist eine interne Festplatte). Jetzt kann der zpool erstellt werden

 # zpool create backup /dev/da1

Dann das Dateisystem erstellen mit

 # zfs create backup/`uname -n | cut -f1 -d'.'`

Lesen unter Linux

Zum Einbinden eines vorhandenen Geräts mit ZFS reicht die installation

 # apt install zfsutils-linux

Das installiert einen Daemon der mit den bekannten Werkzeugen gesteuert werden kann.

 # systemctl {start|stop|status} zfs-fuse
nas/zfs.1639678071.txt.gz · Last modified: 2021/12/16 18:07 by Martin