Попытка установить новейший метод для установки ZFS в Ubuntu и неудачный сбой.
ion@Hades:~$ sudo apt-get install zfsutils-linux
После запуска установки zfs у меня возникают проблемы во время установки, и я не уверен, что делать дальше.
First Installation: checking all kernels...
Building only for 4.2.0-22-generic
Building initial module for 4.2.0-22-generic
configure: error: in `/var/lib/dkms/spl/0.6.4.2/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 4.2.0-22-generic (x86_64)
Consult /var/lib/dkms/spl/0.6.4.2/build/make.log for more information.
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Selecting previously unselected package zfs-dkms.
(Reading database ... 60099 files and directories currently installed.)
Затем в процессе установки я получаю это -
First Installation: checking all kernels...
Building only for 4.2.0-22-generic
Building initial module for 4.2.0-22-generic
configure: error:
*** Please make sure the kmod spl devel <kernel> package for your
*** distribution is installed then try again. If that fails you
*** can specify the location of the spl objects with the
*** '--with-spl-obj=PATH' option.
Error! Bad return status for module build on kernel: 4.2.0-22-generic (x86_64)
Consult /var/lib/dkms/zfs/0.6.4.2/build/make.log for more information.
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libc-dev-bin (2.21-0ubuntu4) ...
Setting up linux-libc-dev:amd64 (4.2.0-22.27) ...
Setting up libc6-dev:amd64 (2.21-0ubuntu4) ...
Setting up manpages-dev (3.74-1ubuntu1) ...
Setting up libuutil1linux (0.6.4.2-0ubuntu1.2) ...
Setting up libnvpair1linux (0.6.4.2-0ubuntu1.2) ...
Setting up libzpool2linux (0.6.4.2-0ubuntu1.2) ...
Setting up libzfs2linux (0.6.4.2-0ubuntu1.2) ...
Setting up spl (0.6.4.2-0ubuntu1) ...
Setting up zfsutils-linux (0.6.4.2-0ubuntu1.2) ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
A dependency job for zfs.target failed. See 'journalctl -xe' for details.
zfs.target couldn't start.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.2.0-22-generic
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
Поэтому, когда я иду импортировать пул, я получаю это, если у кого-то есть идея, что идет не так, пожалуйста, скажите мне.
ion@Hades:~$ sudo zpool import storage
Failed to load ZFS module stack.
Load the module manually by running 'insmod <location>/zfs.ko' as root.
Не уверен, с чем связана проблема, но вот также информация о journalctl -xe
Jan 04 10:05:13 Hades systemd[1]: Dependency failed for ZFS startup target.
-- Subject: Unit zfs.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zfs.target has failed.
--
-- The result is dependency.
Jan 04 10:05:13 Hades systemd[1]: zfs.target: Job zfs.target/start failed with result 'dependency'.
Jan 04 10:05:13 Hades systemd[1]: Dependency failed for ZFS file system shares.
-- Subject: Unit zfs-share.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zfs-share.service has failed.
--
-- The result is dependency.
Jan 04 10:05:13 Hades systemd[1]: zfs-share.service: Job zfs- share.service/start failed with result 'dependency'.
Jan 04 10:05:13 Hades systemd[1]: zfs-mount.service: Unit entered failed state.
Jan 04 10:05:13 Hades systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
Jan 04 10:05:13 Hades sudo[18945]: pam_unix(sudo:session): session closed for user root
Если кто-то подскажет мне, как решить эту проблему, это было бы здорово, так как это в значительной степени потеряно, связано ли это с проблемой systemd или? Это свежая установка Ubuntu 15.10.