![]() Check the contents of /etc/zfs/zfs-list.cache/.The ZEDLET will only update the list of filesystems if the file for the pool already exists. You need to create an empty file named after your pool in /etc/zfs/zfs-list.cache.This service is responsible for running the script in the previous step. Enable zfs.target and enable/start the ZFS Event Daemon ( rvice).(This link is created automatically if you are using OpenZFS >= 2.0.0.) # ln -s /usr/lib/zfs/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d Enable the ZFS Event Daemon(ZED) script (called a ZEDLET) required to create a list of mountable ZFS filesystems.Create the /etc/zfs/zfs-list.cache directory.systemd will automatically mount the filesystems based on the mount units without having to use the rvice. You can also use the zfs-mount-generator to create systemd mount units for your ZFS filesystems at boot. See OpenZFS issue #3768 for more information. Instead you should use zfs-mount-generator option. Note: This does not work with separated /var dataset because it does not get mounted early enough. # zpool set cachefile=/etc/zfs/zpool.cache rvice imports the zfs pools reading the file /etc/zfs/zpool.cache.įor each imported pool you want automatically imported by rvice execute: A benefit to this is that it is not necessary to mount ZFS filesystems in /etc/fstab. Configuration is done primarily with two commands: zfs and zpool.įor ZFS to live by its "zero administration" namesake, rvice must be enabled to import the pools and rvice must be enabled to mount the filesystems available in the pools. ZFS is considered a "zero administration" filesystem by its creators therefore, configuring ZFS is very straight forward. ![]() Common tasks like building a RAIDZ array, purposefully corrupting data and recovering it, snapshotting datasets, etc. with no possibility of real data loss are encouraged to see the Experimenting with ZFS article. Users wishing to experiment with ZFS on virtual block devices (known in ZFS terms as VDEVs) which can be simple files like ~/zfs0.img ~/zfs1.img ~/zfs2.img etc. Tip: Add an IgnorePkg entry to nf to prevent these packages from upgrading when doing a regular update. Users can make use of DKMS to rebuild the ZFS modules automatically with every kernel upgrade. See Install Arch Linux on ZFS#Installation. If an "insmod" error is produced, try depmod -a. Test the installation by issuing zpool status on the command line. These packages have a dependency on the zfs-utils package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |