Re: ZFS legacy mount fails
- Date: Wed, 3 Jan 2018 22:02:35 +0500
- From: Илья Валеев <ilya-valeev@xxxxxxxxx>
- Subject: Re: ZFS legacy mount fails
03.01.2018 21:42, Dan Ritter пишет:
> On Wed, Jan 03, 2018 at 08:26:45PM +0500, Илья Валеев wrote:
>> I'm trying to mount ZFS dataset with /etc/fstab file. Added string in it:
>> doublediskpool/systemlog /mnt zfs relatime,defaults 0 2
>> Rebooted, and system fails to boot. In boot log I see that spl and zfs
>> modules loaded, than:
>> systemd: mnt.mount: Mount process exited, code=exited status=1
>> systemd: Failes to mount /mnt.
>> After this zfs.target successfully starts, and system fall into
>> emergency mode.
>> Tryed to add in [Install] section of /lib/systemd/system/zfs.target such
>> but it does not help.
>> If I enter command (that systemd fail to execute) in emergency mode or
>> booted system:
>> # mount doublediskpool/systemlog /mnt -t zfs -o relatime,defaults
>> than mount executed successfully.
>> Nothing changes if I set another mountpoint.
>> How this can be fixed?
> What does
> zfs get mountpoint doublediskpool/systemlog
> tell you?
> If it doesn't say /mnt as the value, try
> zfs set mountpoint doublediskpool/systemlog /mnt
# zfs get mountpoint doublediskpool/systemlog
NAME PROPERTY VALUE SOURCE
doublediskpool/systemlog mountpoint legacy local
For empty /mnt folder it works, yes. What if I want to mount it to
/var/log? It will return error than mountpoint is not empty.