Bug 224456 - ZFS ZVOL with org.freebsd:swap=on is not mounted at boot
Summary: ZFS ZVOL with org.freebsd:swap=on is not mounted at boot
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-19 14:19 UTC by Slawomir Wojciech Wojtczak
Modified: 2019-10-14 13:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2017-12-19 14:19:15 UTC
As in topic, relevant data below.


# grep zfs_enable /etc/rc.conf
zfs_enable=YES

# swapinfo                          
Device          1K-blocks     Used    Avail Capacity

# zfs get org.freebsd:swap local/SWAP
NAME        PROPERTY          VALUE             SOURCE
local/SWAP  org.freebsd:swap  on                local

# service -e | grep zvol
/etc/rc.d/zvol

# /etc/rc.d/zvol start

# swapinfo                           
Device          1K-blocks     Used    Avail Capacity
/dev/zvol/local/SWAP   4194304        0  4194304     0%


Regards.
Comment 1 Andriy Gapon freebsd_committer 2017-12-19 14:30:06 UTC
Try running
> rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
Check if there is anything in stderr.
Check if zvol is listed in stdout.
Comment 2 Slawomir Wojciech Wojtczak 2017-12-20 09:42:55 UTC
(In reply to Andriy Gapon from comment #1)

> Check if there is anything in stderr.
# rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 1> /dev/null
# (none)

> Check if zvol is listed in stdout.
# rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | grep zvol 
/etc/rc.d/zvol
# (yes it is)

I assumed that this is enought to show that 'zvol' script is enabled:
> # service -e | grep zvol
> /etc/rc.d/zvol

Regards.