Debian Bug report logs - #618382
zfsutils: Inability to have /usr on a seperate zfs filesystem when using a zroot.

version graph

Package: zfsutils; Maintainer for zfsutils is GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>; Source for zfsutils is src:zfsutils.

Reported by: Tiernan Messmer <Tiernan.Messmer@gmail.com>

Date: Mon, 14 Mar 2011 20:18:05 UTC

Severity: normal

Found in version zfsutils/8.1-4

Done: Robert Millan <rmh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Tiernan.Messmer@gmail.com, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#618382; Package zfsutils. (Mon, 14 Mar 2011 20:18:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tiernan Messmer <Tiernan.Messmer@gmail.com>:
New Bug report received and forwarded. Copy sent to Tiernan.Messmer@gmail.com, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Mon, 14 Mar 2011 20:18:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Tiernan Messmer <Tiernan.Messmer@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: zfsutils: Inability to have /usr on a seperate zfs filesystem when using a zroot.
Date: Tue, 15 Mar 2011 06:15:20 +1000
Package: zfsutils
Version: 8.1-4
Severity: normal
Usertags: kfreebsd

If running Debian/kFreeBSD's root filesystem on zfs, if one attempts to put /usr in a sub filesystem the system will no longer boot.

Example filesystem layout
NAME              MOUNTPOINT
zroot             /zroot
zroot/debian      /
zroot/debian/usr  /usr
zroot/home        /home

By default, the installer will place the entire filesytem in the zroot, without creating any additional sub filesystems. ZFSs flexibility encourages the use of
many filessytems to facilitate the fine grained control of ZFSs more advanced features such as snapshots, compression, deduplication, encryption, etc.

The reason why the system fails to boot is during init, to mount the additional filesystems, /sbin/zfs is called, which depends on /lib/libgeom.so.0, which in
turn depends on /usr/lib/libexpat.so.1. If /usr/lib does not reside on the same filesystem as the kernel mounted for root, /sbin/zfs fails to run, and thus can
not mount the additional filesystems.

On FreeBSD libgeom depends on /lib/libbsdxml instead of libexpat, thus upstream is unaffected by this issue.

-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zfsutils depends on:
ii  libbsd0                       0.2.0-1    utility functions from BSD systems
ii  libc0.1                       2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgeom0                      8.1-5      FreeBSD GEOM library
ii  libnvpair0                    8.1-4      OpenSolaris name-value pair librar
ii  libuutil0                     8.1-4      OpenSolaris userland utility libra
ii  libzfs0                       8.1-4      FreeBSD ZFS library

zfsutils recommends no packages.

zfsutils suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#618382; Package zfsutils. (Tue, 15 Mar 2011 11:54:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Tue, 15 Mar 2011 11:54:09 GMT) Full text and rfc822 format available.

Message #10 received at 618382@bugs.debian.org (full text, mbox):

From: Aurelien Jarno <aurelien@aurel32.net>
To: Tiernan Messmer <Tiernan.Messmer@gmail.com>, 618382@bugs.debian.org
Subject: Re: Bug#618382: zfsutils: Inability to have /usr on a seperate zfs filesystem when using a zroot.
Date: Tue, 15 Mar 2011 12:50:56 +0100
Tiernan Messmer a écrit :
> Package: zfsutils
> Version: 8.1-4
> Severity: normal
> Usertags: kfreebsd
> 
> If running Debian/kFreeBSD's root filesystem on zfs, if one attempts to put /usr in a sub filesystem the system will no longer boot.
> 
> Example filesystem layout
> NAME              MOUNTPOINT
> zroot             /zroot
> zroot/debian      /
> zroot/debian/usr  /usr
> zroot/home        /home
> 
> By default, the installer will place the entire filesytem in the zroot, without creating any additional sub filesystems. ZFSs flexibility encourages the use of
> many filessytems to facilitate the fine grained control of ZFSs more advanced features such as snapshots, compression, deduplication, encryption, etc.
> 
> The reason why the system fails to boot is during init, to mount the additional filesystems, /sbin/zfs is called, which depends on /lib/libgeom.so.0, which in
> turn depends on /usr/lib/libexpat.so.1. If /usr/lib does not reside on the same filesystem as the kernel mounted for root, /sbin/zfs fails to run, and thus can
> not mount the additional filesystems.
> 

It looks like the solution here is to move /usr/lib/libexpat.so.1. to /lib

> On FreeBSD libgeom depends on /lib/libbsdxml instead of libexpat, thus upstream is unaffected by this issue.

libbsdxml is basically the same library than libexpat, which seems to
confirm the solution given above is the right one.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net




Added blocking bug(s) of 618382: 637101 Request was from Robert Millan <rmh@debian.org> to control@bugs.debian.org. (Sat, 22 Oct 2011 08:57:08 GMT) Full text and rfc822 format available.

Reply sent to Robert Millan <rmh@debian.org>:
You have taken responsibility. (Sat, 17 Dec 2011 12:48:04 GMT) Full text and rfc822 format available.

Notification sent to Tiernan Messmer <Tiernan.Messmer@gmail.com>:
Bug acknowledged by developer. (Sat, 17 Dec 2011 12:48:23 GMT) Full text and rfc822 format available.

Message #17 received at 618382-done@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: 618382-done@bugs.debian.org, Tiernan Messmer <Tiernan.Messmer@gmail.com>
Subject: separate /usr now supported
Date: Sat, 17 Dec 2011 13:38:52 +0100
This was caused by bug #637100 in libsbuf and bug #637101 in libexpat,
both of which are fixed now.

I've verified that separate /usr works using latest D-I.

-- 
Robert Millan




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 15 Jan 2012 07:36:19 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 16:50:05 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.