From: Volker Armin Hemmann <volkerarmin@googlemail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] preserving zpool mountpoint on boot?
Date: Mon, 14 Sep 2015 07:30:35 +0200 [thread overview]
Message-ID: <55F65B7B.4020305@googlemail.com> (raw)
In-Reply-To: <CADqA9uYQzALXgQokCinL=MdjFU9NFcdLBe5DS5A9-Me=NYVrsg@mail.gmail.com>
Am 13.09.2015 um 21:20 schrieb Nuno Magalhães:
> Greetings,
>
> If i export/import a zpool, the altroot property is not preserved so
> it always gets mounted at /.
>
> In /etc/init.d/zfs, the import line reads
> $ZPOOL import -c $ZPOOL_CACHE -aN 2>/dev/null || true
> so no -options there.
>
> I've also tried with
> zpool import -o altroot=/mnt -o cachefile=/etc/zfs/zpool.cache poolname
> which works, but the cache file only lives until export, so i assume
> it's not some kind of configuration save point. A simple import
> afterwards will place the pool at / again. Same for -R.
>
> Is there some option i can put in /etc/modprobe.d/zfs.conf (which
> currently doesn't exist)?
>
no
man zfs
Mount Points
Creating a ZFS file system is a simple operation, so the number
of file systems per system is likely to be numerous. To cope with this, ZFS
automatically manages mounting and unmounting file systems
without the need to edit the /etc/fstab file. All automatically managed
file sys-
tems are mounted by ZFS at boot time.
By default, file systems are mounted under /path, where path
is the name of the file system in the ZFS namespace. Directories are created
and destroyed as needed.
A file system can also have a mount point set in the mountpoint
property. This directory is created as needed, and ZFS automatically mounts
the file system when the zfs mount -a command is invoked
(without editing /etc/fstab). The mountpoint property can be inherited,
so if
pool/home has a mount point of /export/stuff, then pool/home/user
automatically inherits a mount point of /export/stuff/user.
A file system mountpoint property of none prevents the file
system from being mounted.
If needed, ZFS file systems can also be managed with traditional
tools (mount, umount, /etc/fstab). If a file system's mount point is set to
legacy, ZFS makes no attempt to manage the file system, and the
administrator is responsible for mounting and unmounting the file system.
next prev parent reply other threads:[~2015-09-14 5:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-13 19:20 [gentoo-user] preserving zpool mountpoint on boot? Nuno Magalhães
2015-09-14 5:30 ` Volker Armin Hemmann [this message]
2015-09-14 15:38 ` Nuno Magalhães
2015-09-14 20:27 ` Volker Armin Hemmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F65B7B.4020305@googlemail.com \
--to=volkerarmin@googlemail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox