Go to file
Brian Behlendorf 504bfc8b49 Fix multihost stale cache file import
When the multihost property is enabled it should be impossible to
import an active pool even using the force (-f) option.  This patch
prevents a forced import from succeeding when importing with a
stale cache file.

The root cause of the problem is that the kernel modules trusted
the hostid provided in configuration.  This is always correct when
the configuration is generated by scanning for the pool.  However,
when using an existing cache file the hostid could be stale which
would result in the activity check being skipped.

Resolve the issue by always using the hostid read from the label
configuration where the best uberblock was found.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6933
Closes #6971
2017-12-18 10:31:01 -08:00
.github Correct cppcheck errors (#6662) 2017-09-20 12:59:21 -07:00
cmd Fix ZTS MMP tests and ztest -M behavior 2017-12-18 10:14:39 -08:00
config Support integration with new QAT products 2017-11-20 16:19:23 -06:00
contrib Add /usr/bin/env to COPY_EXEC_LIST initramfs hook 2017-12-04 17:22:36 -08:00
etc Enable zfs-import.target in systemd preset (#6968) 2017-12-18 09:43:55 -08:00
include Preserve itx alloc size for zio_data_buf_free() 2017-12-04 17:21:39 -08:00
lib Fix column alignment with long zpool names 2017-12-04 17:21:38 -08:00
man zpool(8): Fix "zpool import -t" 2017-12-04 17:21:38 -08:00
module Fix multihost stale cache file import 2017-12-18 10:31:01 -08:00
rpm Add zfs-import.target services in spec file 2017-12-18 09:45:01 -08:00
scripts Enable QAT support in zfs-dkms RPM 2017-12-18 10:02:19 -08:00
tests Fix multihost stale cache file import 2017-12-18 10:31:01 -08:00
udev Fix spelling 2017-01-03 11:31:18 -06:00
.gitignore Improve gitignore 2017-05-25 10:14:13 -07:00
.gitmodules Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
AUTHORS Add a missing > to AUTHORS 2014-09-02 14:18:53 -07:00
autogen.sh build: do not call boilerplate ourself 2013-04-02 10:55:20 -07:00
configure.ac Add zgenhostid utility script 2017-07-25 13:22:03 -04:00
copy-builtin Allow c99 when building ZFS in the kernel tree 2017-03-27 12:31:15 -07:00
COPYRIGHT Update ZED copyright boilerplate 2015-05-11 15:07:00 -07:00
DISCLAIMER Fix minor typos and update marketing copy. 2013-03-21 12:51:06 -07:00
Makefile.am Add DKMS package on Debian-based distributions 2017-10-17 16:49:19 -07:00
META Tag zfs-0.7.4 2017-12-07 10:25:36 -08:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
README.markdown Add CONTRIBUTING information and templates 2016-12-09 12:48:12 -07:00
TEST Retire filebench testing 2017-06-01 06:24:28 -07:00
zfs-script-config.sh.in zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
zfs.release.in Move zfs.release generation to configure step 2012-07-12 12:22:51 -07:00

ZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the Illumos community.

ZFS on Linux, which is also known as ZoL, is currently feature complete. It includes fully functional and stable SPA, DMU, ZVOL, and ZPL layers. And it's native!

Official Resources

Installation

Full documentation for installing ZoL on your favorite Linux distribution can be found at our site.

Contribute & Develop

We have a separate document with contribution guidelines.