Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing ZFS on Debian Jessie 8.9

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bookie
Posts: 370
Joined: 2007-12-07 11:49

Installing ZFS on Debian Jessie 8.9

#1 Post by bookie »

Hi guys!
I am having problems installing ZFS on Debian 8.9....
If I go to the zfsonlinux github repository I see things have been updated...

Installation

For Debian Stretch, ZFS packages are included in contrib repository.

For Debian Jessie, ZFS packages are provided by backports.

Install kernel headers:

# apt install linux-headers-$(uname -r)

Install zfs packages:

# apt-get install zfs-dkms

If you want to boot from ZFS, you'll need zfs-initramfs package too:

# apt-get install zfs-initramfs
Ok....I thought...I went to the jessie backports instructions and I get told to add the following to my sources.list:

Code: Select all

deb http://ftp.debian.org/debian jessie-backports main
No problems....
I then run...

Code: Select all

#apt-get update....(no errors)
I then proceed with the installation of linux-headers:

Code: Select all

#apt-get install linux-headers-$(uname -r)
I get the following readout:

Code: Select all

root@debian:/home/martyn# apt install linux-headers-$(uname -r)
Läser paketlistor... Färdig
Bygger beroendeträd         
Läser tillståndsinformation... Färdig
linux-headers-3.16.0-4-amd64 är redan den senaste versionen.
0 att uppgradera, 0 att nyinstallera, 0 att ta bort och 20 att inte uppgradera.
root@debian:/home/martyn# 
Sorry about the Swedish...but it is saying that linux-headers is the latest version....

I then proceed to run the installation of the dkms as described here...

Code: Select all

#apt-get -t jessie-backports install zfs-kms
I get the following output:

Code: Select all

root@debian:/home/martyn# apt-get -t jessie-backports install zfs-dkms
Läser paketlistor... Färdig
Bygger beroendeträd         
Läser tillståndsinformation... Färdig
E: Kunde inte hitta paketet zfs-dkms
root@debian:/home/martyn# 
Basically I am getting that the package couldn't be found?

It must be something simple I am missing here....

Any suggestions?

bookie32

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Installing ZFS on Debian Jessie 8.9

#2 Post by Bulkley »

I am having problems installing ZFS on Debian 8.9....
You have to help me here. ZFS is a file system. Right? An operating system is installed on a file system not the other way around. I have heard of converting a file system underneath a running file system but it is fraught with risks. The better way is to format the drive with your ZFS and then install Debian on top of it. I suggest Debian 9 (Stable).

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Installing ZFS on Debian Jessie 8.9

#3 Post by Head_on_a_Stick »

@OP: I think you need to run the backported kernel and headers to use zfs in Debian.

Try:

Code: Select all

# apt install module-assistant
# m-a prepare
But be sure to boot from the backported kernel first.

@Bulkley, zfs is weird so you don't "format the disk" as such, the zfs pool is simply exported to the device and everything should be handled automagically, I think.

Not that I've ever tried it myself :D
deadbang

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Installing ZFS on Debian Jessie 8.9

#4 Post by Bulkley »

Head_on_a_Stick wrote:@Bulkley, zfs is weird so you don't "format the disk" as such, the zfs pool is simply exported to the device and everything should be handled automagically, I think.
Thanks. I suspected something like that. I would definitely do a complete backup before trying anything like that. I'd also read the instructions several times until I understood them.

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: Installing ZFS on Debian Jessie 8.9

#5 Post by bookie »

Hi guys!
What I hadn't noticed until I took a look in the kernel packages for jessie-backports that I need to add "contrib" to my sources.list...with that done I get the following readout:

Code: Select all

Hämtade 86,8 kB på 2s (36,6 kB/s)                       
Läser paketlistor... Färdig
root@debian:/home/martyn# apt-get -t jessie-backports install zfs-dkms
Läser paketlistor... Färdig
Bygger beroendeträd         
Läser tillståndsinformation... Färdig
Följande paket har installerats automatiskt och är inte längre nödvändiga:
  libfreerdp-rail1.1 libgles1-mesa liblivemedia23 libpostproc52
  libusageenvironment1 vlc-plugin-samba
Use 'apt-get autoremove' to remove them.
Följande ytterligare paket kommer att installeras:
  dkms libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms
  zfs-zed zfsutils-linux
Föreslagna paket:
  python3-apport nfs-kernel-server samba-common-bin zfs-initramfs zfs-dracut
Följande NYA paket kommer att installeras:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms
  zfs-dkms zfs-zed zfsutils-linux
Följande paket kommer att uppgraderas:
  dkms
1 att uppgradera, 9 att nyinstallera, 0 att ta bort och 161 att inte uppgradera.
Behöver hämta 2 557 kB arkiv.
Efter denna åtgärd kommer ytterligare 15,8 MB utrymme användas på disken.
Vill du fortsätta? [J/n] 

So, the installation went ahead after updating sources.list with "contrib"

Is there anything else I should be aware of?

I am testing this in VMWare work station at the moment....VMWare is installed on my work station....

Here is the whole process:

Code: Select all

root@debian:/home/martyn# apt-get -t jessie-backports install zfs-dkms
Läser paketlistor... Färdig
Bygger beroendeträd         
Läser tillståndsinformation... Färdig
Följande paket har installerats automatiskt och är inte längre nödvändiga:
  libfreerdp-rail1.1 libgles1-mesa liblivemedia23 libpostproc52
  libusageenvironment1 vlc-plugin-samba
Use 'apt-get autoremove' to remove them.
Följande ytterligare paket kommer att installeras:
  dkms libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms
  zfs-zed zfsutils-linux
Föreslagna paket:
  python3-apport nfs-kernel-server samba-common-bin zfs-initramfs zfs-dracut
Följande NYA paket kommer att installeras:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl spl-dkms
  zfs-dkms zfs-zed zfsutils-linux
Följande paket kommer att uppgraderas:
  dkms
1 att uppgradera, 9 att nyinstallera, 0 att ta bort och 161 att inte uppgradera.
Behöver hämta 2 557 kB arkiv.
Efter denna åtgärd kommer ytterligare 15,8 MB utrymme användas på disken.
Vill du fortsätta? [J/n] j
Läs:1 http://ftp.debian.org/debian/ jessie-backports/main dkms all 2.3-2~bpo8+1 [75,4 kB]
Läs:2 http://ftp.debian.org/debian/ jessie-backports/main spl-dkms all 0.6.5.9-1~bpo8+1 [374 kB]
Läs:3 http://ftp.debian.org/debian/ jessie-backports/contrib zfs-dkms all 0.6.5.9-2~bpo8+1 [1 079 kB]
Läs:4 http://ftp.debian.org/debian/ jessie-backports/contrib libuutil1linux amd64 0.6.5.9-2~bpo8+1 [48,1 kB]
Läs:5 http://ftp.debian.org/debian/ jessie-backports/contrib libnvpair1linux amd64 0.6.5.9-2~bpo8+1 [44,9 kB]
Läs:6 http://ftp.debian.org/debian/ jessie-backports/contrib libzpool2linux amd64 0.6.5.9-2~bpo8+1 [404 kB]
Läs:7 http://ftp.debian.org/debian/ jessie-backports/contrib libzfs2linux amd64 0.6.5.9-2~bpo8+1 [127 kB]
Läs:8 http://ftp.debian.org/debian/ jessie-backports/main spl amd64 0.6.5.9-1~bpo8+1 [19,7 kB]
Läs:9 http://ftp.debian.org/debian/ jessie-backports/contrib zfsutils-linux amd64 0.6.5.9-2~bpo8+1 [340 kB]
Läs:10 http://ftp.debian.org/debian/ jessie-backports/contrib zfs-zed amd64 0.6.5.9-2~bpo8+1 [43,4 kB]
Hämtade 2 557 kB på 1s (2 404 kB/s) 
Läser förändringsloggar... Klar   
Förkonfigurerar paket ...
(Läser databasen ... 151372 filer och kataloger installerade.)
Förbereder att packa upp .../dkms_2.3-2~bpo8+1_all.deb ...
Packar upp dkms (2.3-2~bpo8+1) över (2.2.0.3-2) ...
Väljer tidigare ej valt paket spl-dkms.
Förbereder att packa upp .../spl-dkms_0.6.5.9-1~bpo8+1_all.deb ...
Packar upp spl-dkms (0.6.5.9-1~bpo8+1) ...
Hanterar utlösare för man-db (2.7.0.2-5) ...
Ställer in dkms (2.3-2~bpo8+1) ...
Installerar ny version av konfigurationsfilen /etc/dkms/framework.conf ...
Ställer in spl-dkms (0.6.5.9-1~bpo8+1) ...
Loading new spl-0.6.5.9 DKMS files...
Building for 3.16.0-4-amd64
Building initial module for 3.16.0-4-amd64
Done.

spl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

splat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

depmod...

DKMS: install completed.
Väljer tidigare ej valt paket zfs-dkms.
(Läser databasen ... 151669 filer och kataloger installerade.)
Förbereder att packa upp .../zfs-dkms_0.6.5.9-2~bpo8+1_all.deb ...
Packar upp zfs-dkms (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket libuutil1linux.
Förbereder att packa upp .../libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp libuutil1linux (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket libnvpair1linux.
Förbereder att packa upp .../libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp libnvpair1linux (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket libzpool2linux.
Förbereder att packa upp .../libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp libzpool2linux (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket libzfs2linux.
Förbereder att packa upp .../libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp libzfs2linux (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket spl.
Förbereder att packa upp .../spl_0.6.5.9-1~bpo8+1_amd64.deb ...
Packar upp spl (0.6.5.9-1~bpo8+1) ...
Väljer tidigare ej valt paket zfsutils-linux.
Förbereder att packa upp .../zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp zfsutils-linux (0.6.5.9-2~bpo8+1) ...
Väljer tidigare ej valt paket zfs-zed.
Förbereder att packa upp .../zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb ...
Packar upp zfs-zed (0.6.5.9-2~bpo8+1) ...
Hanterar utlösare för man-db (2.7.0.2-5) ...
Ställer in zfs-dkms (0.6.5.9-2~bpo8+1) ...
Loading new zfs-0.6.5.9 DKMS files...
Building for 3.16.0-4-amd64
Building initial module for 3.16.0-4-amd64
Done.

zavl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

zcommon.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

znvpair.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

zpios.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

zunicode.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

zfs.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

depmod...

DKMS: install completed.
Ställer in libuutil1linux (0.6.5.9-2~bpo8+1) ...
Ställer in libnvpair1linux (0.6.5.9-2~bpo8+1) ...
Ställer in libzpool2linux (0.6.5.9-2~bpo8+1) ...
Ställer in libzfs2linux (0.6.5.9-2~bpo8+1) ...
Ställer in spl (0.6.5.9-1~bpo8+1) ...
Ställer in zfsutils-linux (0.6.5.9-2~bpo8+1) ...
Ställer in zfs-zed (0.6.5.9-2~bpo8+1) ...
Hanterar utlösare för libc-bin (2.19-18+deb8u10) ...
root@debian:/home/martyn# 

bookie32

tynman
Posts: 131
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 1 time

Re: Installing ZFS on Debian Jessie 8.9

#6 Post by tynman »

I don't read/write/speak Swedish, but it looks to me like your zfs install is OK. As soon as you create your first zpool, you'll find out if it's working OK - but it should be fine.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Installing ZFS on Debian Jessie 8.9

#7 Post by Head_on_a_Stick »

To get the command to "speak" English, prepend it with LC_ALL=C, like this:

Code: Select all

# LC_ALL=C apt-get -t jessie-backports install zfs-dkms
deadbang

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: Installing ZFS on Debian Jessie 8.9

#8 Post by bookie »

Hi guys :D
Thanks for the info....I will remember that one about getting it to speak English....
I try to remember to write the equivalent of what is in Swedish in English...don't always remember....lol
Going to run some tests....

Thanks

bookie32

Post Reply