Linux Clusters Institute:�ZFS Hands On Exercise
J.D. Maloney | Lead HPC Storage Engineer
Storage Enabling Technologies Group (SET)
National Center for Supercomputing Applications (NCSA)
malone12@illinois.edu
Mississippi State, August 21st – 25th 2023
Goal of Hands on Exercises
2
Aug 21st - 25th 2023
ZFS Install
3
Aug 21st - 25th 2023
[root@head ~]# zpool status
no pools available
[root@head ~]# /sbin/modprobe zfs
[root@head ~]# systemctl enable zfs-import-cache zfs-import-scan zfs-mount zfs-share zfs-sed zfs.target
[root@head ~]# yum install zfs kernel-devel
[root@head ~]# rpm -ivh zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
[root@head ~]# wget https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
Creating vdev_id.conf file
4
Aug 21st - 25th 2023
[root@head ~]# fdisk -l | grep "/dev/sd"
Creating vdev_id.conf file
5
Aug 21st - 25th 2023
Creating zpools
6
Aug 21st - 25th 2023
[root@head ~]# zpool create lci mirror slot_0 slot_1 mirror slot_2 slot_3 –f
[root@head ~]# zpool create lci raidz2 slot_0 slot_1 slot_2 slot_3 -f
[root@head ~]# zpool create lci draid2:2d:0s:4c slot_0 slot_1 slot_2 slot_3 -f
[root@head ~]# zpool destroy lci
ZFS Compression
7
Aug 21st - 25th 2023
ZFS Snapshots
8
Aug 21st - 25th 2023
ZFS Scrubs
9
Aug 21st - 25th 2023
Wrap Up
10
Aug 21st - 25th 2023