Bug #7086
closedstale zfs file systems
100%
Description
I am not sure if this is a bug or a feature. Seems the 'Auto install'-values are used from the native FreeBSD while pfSense installs only in a part of it. anyways: executing a 'zfs mount -a' could cause a problem...
While after boot this is the situation:
- df
Filesystem 1K-blocks Used Avail Capacity Mounted on
zroot/ROOT/default 233633892 613456 233020436 0% /
devfs 1 1 0 100% /dev
/dev/md0 3484 120 3088 4% /var/run
devfs 1 1 0 100% /var/dhcpd/dev
devfs 1 1 0 100% /cf/named/dev
But: There are some unused file systems in the pool...
#zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 601M 222G 96K /zroot
zroot/ROOT 599M 222G 96K none
zroot/ROOT/default 599M 222G 599M /
zroot/tmp 96K 222G 96K /tmp
zroot/usr 384K 222G 96K /usr
zroot/usr/home 96K 222G 96K /usr/home
zroot/usr/ports 96K 222G 96K /usr/ports
zroot/usr/src 96K 222G 96K /usr/src
zroot/var 604K 222G 96K /var
zroot/var/audit 96K 222G 96K /var/audit
zroot/var/crash 96K 222G 96K /var/crash
zroot/var/log 124K 222G 124K /var/log
zroot/var/mail 96K 222G 96K /var/mail
zroot/var/tmp 96K 222G 96K /var/tmp
Updated by Renato Botelho almost 8 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
I've reviewed which volumes are created during install on ZFS and also made changes on rc script to mount /var and /tmp from ZFS or memory depending of the MFS config option.
It's necessary a fresh install to test it
Updated by Anonymous almost 8 years ago
Tried a fresh install, maybe there is a problem with this change?
It gave me
pkg: No package(s) matching pfSense-kernel-*
More info here:
https://forum.pfsense.org/index.php?topic=123616.msg686279#msg686279
Updated by Renato Botelho almost 8 years ago
- Status changed from Feedback to Assigned
Yes, it broke ZFS install and I see why. I'll push a fix soon
Updated by Renato Botelho almost 8 years ago
- Status changed from Assigned to Feedback
A fresh install using next round of snapshots is required to validate the fix. Thanks!
Updated by Anonymous almost 8 years ago
Fresh install worked without problems. Can't say anything about the original problem, not enough knowledge in that area, sorry.
The System Information Widget seems to show unnecessary partitions now, though. More on an updated install, less on a fresh install, but I don't think they should show at all.
Do we need to reinstall old ZFS installations or can we fix them manually regarding the problems in this bug?
Updated by Renato Botelho almost 8 years ago
Tobias Wigand wrote:
Fresh install worked without problems. Can't say anything about the original problem, not enough knowledge in that area, sorry.
The System Information Widget seems to show unnecessary partitions now, though. More on an updated install, less on a fresh install, but I don't think they should show at all.
Do we need to reinstall old ZFS installations or can we fix them manually regarding the problems in this bug?
Unfortunately they need to be reinstalled
Updated by Vladimir Suhhanov almost 8 years ago
What are the risks to continue using updated versions without reinstall?
Updated by Renato Botelho almost 8 years ago
Vladimir Putin wrote:
What are the risks to continue using updated versions without reinstall?
There are no risks, it will only show a lot of different partitions. If you install a snapshot with my first attempt to fix, that didn't work, you will have the problem reported in https://redmine.pfsense.org/issues/7086#note-3
Updated by Jim Pingle almost 8 years ago
- Status changed from Feedback to Resolved
Looks good now, only has a few expected entries.