Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226649 > unrolled thread

Access ZFS pool in debian 10 single user mode

Started byJames Allsopp <jamesaallsopp@googlemail.com>
First post2020-09-02 22:50 +0200
Last post2020-09-04 05:40 +0200
Articles 6 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  Access ZFS pool in debian 10 single user mode James Allsopp <jamesaallsopp@googlemail.com> - 2020-09-02 22:50 +0200
    Re: Access ZFS pool in debian 10 single user mode Dan Ritter <dsr@randomstring.org> - 2020-09-02 23:10 +0200
      Re: Access ZFS pool in debian 10 single user mode James Allsopp <jamesaallsopp@googlemail.com> - 2020-09-03 10:40 +0200
        Re: Access ZFS pool in debian 10 single user mode Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-09-03 12:00 +0200
        Re: Access ZFS pool in debian 10 single user mode David Christensen <dpchrist@holgerdanske.com> - 2020-09-04 00:50 +0200
          Netiquette Guidelines (was: Re: Access ZFS pool in debian 10 single  user mode) Charles Curley <charlescurley@charlescurley.com> - 2020-09-04 05:40 +0200

#226649 — Access ZFS pool in debian 10 single user mode

FromJames Allsopp <jamesaallsopp@googlemail.com>
Date2020-09-02 22:50 +0200
SubjectAccess ZFS pool in debian 10 single user mode
Message-ID<AKHRE-5zD-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,
Just trying to move var to a zfs partition. Rebooted into recovery mode,
but could access the zfs pool. I tried to modprobe zfs, but still nothing.
Is there something else I should be doing?

Thanks
James

[toc] | [next] | [standalone]


#226650

FromDan Ritter <dsr@randomstring.org>
Date2020-09-02 23:10 +0200
Message-ID<AKIaZ-5Vc-1@gated-at.bofh.it>
In reply to#226649
James Allsopp wrote: 
> Hi,
> Just trying to move var to a zfs partition. Rebooted into recovery mode,
> but could access the zfs pool. I tried to modprobe zfs, but still nothing.
> Is there something else I should be doing?
> 

Does your recovery mode have the zfs kernel modules and zfsutil?

Without it, you'll never mount things.

-dsr-

[toc] | [prev] | [next] | [standalone]


#226660

FromJames Allsopp <jamesaallsopp@googlemail.com>
Date2020-09-03 10:40 +0200
Message-ID<AKSWJ-4TX-3@gated-at.bofh.it>
In reply to#226650

[Multipart message — attachments visible in raw view] — view raw

This is just debian grub recovery mode so on the same machine, so hopefully
zfsutil will be there. Looked at this;
zfs                  4214784  9
zunicode              335872  1 zfs
zlua                  172032  1 zfs
zavl                   16384  1 zfs
icp                   331776  1 zfs
zcommon                98304  2 zfs,icp
znvpair                90112  2 zfs,zcommon
spl                   122880  5 zfs,icp,znvpair,zcommon,zavl

So if I just modprobe those from the column on the left, it should work?

Thanks,
James

On Wed, 2 Sep 2020 at 22:06, Dan Ritter <dsr@randomstring.org> wrote:

> James Allsopp wrote:
> > Hi,
> > Just trying to move var to a zfs partition. Rebooted into recovery mode,
> > but could access the zfs pool. I tried to modprobe zfs, but still
> nothing.
> > Is there something else I should be doing?
> >
>
> Does your recovery mode have the zfs kernel modules and zfsutil?
>
> Without it, you'll never mount things.
>
> -dsr-
>

[toc] | [prev] | [next] | [standalone]


#226661

FromAlex Mestiashvili <amestia@rsh2.donotuse.de>
Date2020-09-03 12:00 +0200
Message-ID<AKUc9-5Bm-3@gated-at.bofh.it>
In reply to#226660
may be you need to import zpool before?

try zpool import

Best,
Alex

On 9/3/20 10:34 AM, James Allsopp wrote:
> This is just debian grub recovery mode so on the same machine, so 
> hopefully zfsutil will be there. Looked at this;
> zfs                  4214784  9
> zunicode              335872  1 zfs
> zlua                  172032  1 zfs
> zavl                   16384  1 zfs
> icp                   331776  1 zfs
> zcommon                98304  2 zfs,icp
> znvpair                90112  2 zfs,zcommon
> spl                   122880  5 zfs,icp,znvpair,zcommon,zavl
> 
> So if I just modprobe those from the column on the left, it should work?
> 
> Thanks,
> James
> 
> On Wed, 2 Sep 2020 at 22:06, Dan Ritter <dsr@randomstring.org 
> <mailto:dsr@randomstring.org>> wrote:
> 
>     James Allsopp wrote:
>      > Hi,
>      > Just trying to move var to a zfs partition. Rebooted into
>     recovery mode,
>      > but could access the zfs pool. I tried to modprobe zfs, but still
>     nothing.
>      > Is there something else I should be doing?
>      >
> 
>     Does your recovery mode have the zfs kernel modules and zfsutil?
> 
>     Without it, you'll never mount things.
> 
>     -dsr-
> 

[toc] | [prev] | [next] | [standalone]


#226686

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2020-09-04 00:50 +0200
Message-ID<AL6dj-4MR-3@gated-at.bofh.it>
In reply to#226660
> On Wed, 2 Sep 2020 at 22:06, Dan Ritter <dsr@randomstring.org> wrote:
> 
>> James Allsopp wrote:
>>> Hi,
>>> Just trying to move var to a zfs partition. Rebooted into recovery mode,
>>> but could access the zfs pool. I tried to modprobe zfs, but still
>> nothing.
>>> Is there something else I should be doing?
>>>
>>
>> Does your recovery mode have the zfs kernel modules and zfsutil?
>>
>> Without it, you'll never mount things.

On 2020-09-03 01:34, James Allsopp wrote:
 > This is just debian grub recovery mode so on the same machine, so 
hopefully
 > zfsutil will be there. Looked at this;
 > zfs                  4214784  9
 > zunicode              335872  1 zfs
 > zlua                  172032  1 zfs
 > zavl                   16384  1 zfs
 > icp                   331776  1 zfs
 > zcommon                98304  2 zfs,icp
 > znvpair                90112  2 zfs,zcommon
 > spl                   122880  5 zfs,icp,znvpair,zcommon,zavl
 >
 > So if I just modprobe those from the column on the left, it should work?


[Top posted reply moved to bottom.]


I am unable to find a canonical Debian policy on the subject of posting 
style for Debian mailing lists:

https://www.debian.org/MailingLists/#codeofconduct

https://www.debian.org/code_of_conduct


Most readers of this list seem to prefer attributed, indented, trimmed, 
interleaved posting style, but this response is bottom posted:

https://en.wikipedia.org/wiki/Posting_style


This is a popular essay on the subject:

http://www.catb.org/~esr/faqs/smart-questions.html


[Back to the technical discussion.]


I appears that Debian single-user mode does not load the kernel modules 
you need.  I assume this is by design, so that you can boot the system 
when you have a bad module.


Loading modules by hand in single user mode might work, but there is the 
chicken-and-egg question starting with "can you boot into single user 
mode without a /var filesystem?".


I find it is very useful to have a complete Debian installation on a USB 
flash drive with all the software I need to do system administration on 
Debian machines.  Using such, I could easily move /var to ZFS.  But, I 
don't know if the target system would work correctly.


If I wanted /var on ZFS on a Debian system, I would "go the whole way" 
and STFW for a guide on building a Debian system with ZFS-on-root.  Or, 
I would look for a Linux distribution (Ubuntu?) that can do ZFS-on-root 
OOTB.  But, the best answer I have found for ZFS is FreeBSD.


David

[toc] | [prev] | [next] | [standalone]


#226688 — Netiquette Guidelines (was: Re: Access ZFS pool in debian 10 single user mode)

FromCharles Curley <charlescurley@charlescurley.com>
Date2020-09-04 05:40 +0200
SubjectNetiquette Guidelines (was: Re: Access ZFS pool in debian 10 single user mode)
Message-ID<ALaJX-7Oh-5@gated-at.bofh.it>
In reply to#226686
On Thu, 3 Sep 2020 15:46:07 -0700
David Christensen <dpchrist@holgerdanske.com> wrote:

> https://en.wikipedia.org/wiki/Posting_style
> 
> 
> This is a popular essay on the subject:
> 
> http://www.catb.org/~esr/faqs/smart-questions.html

You may also want to look at RFC 1855 "Netiquette Guidelines". ESR
recommends it. https://www.ietf.org/rfc/rfc1855.txt It's not just a good
idea, it's an RFC. :-)

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web