Hi,
I have a problem with disappearing datasets.
They don't completely disappear, but they are not doing what they should.
The first time it happened, a simple zfs umount and zfs mount sorted it out.
Now, I have a running jail, with its root at the start of the dataset.
If I enter the jail, all of the files are visible.
If I look from outside the jail, they are not.
This is the third time this has happened, for 3 different datasets/jails.
The last time it happened, I completely stopped the jail, umounted and mounted, and all was well.
But that's not going to be a long term solution when this system is live.
Any help appreciated,
Danny
I have a problem with disappearing datasets.
They don't completely disappear, but they are not doing what they should.
The first time it happened, a simple zfs umount and zfs mount sorted it out.
Now, I have a running jail, with its root at the start of the dataset.
If I enter the jail, all of the files are visible.
If I look from outside the jail, they are not.
This is the third time this has happened, for 3 different datasets/jails.
Code:
root@currawong:/m/.zfs/snapshot # uname -a
FreeBSD currawong 12.1-STABLE FreeBSD 12.1-STABLE r354424 GENERIC amd64
root@currawong:/m/jails/wp.example.com.au # zfs mount | grep wp
m/jails/wp.example.com.au /m/jails/wp.example.com.au
m/db/wpdb /m/jails/wp.example.com.au/var/db
root@currawong:/m/jails/wp.example.com.au # ls -la /m/jails/wp.example.com.au
total 3
drwxr-xr-x 3 root wheel 3 Dec 17 07:36 .
drwxr-xr-x 19 root wheel 19 Dec 19 14:56 ..
drwxr-xr-x 3 root wheel 3 Dec 17 07:36 var
root@currawong:/m/jails/wp.example.com.au # jls
JID IP Address Hostname Path
1 2.3.4.5 wp.example.com.au /m/jails/wp.example.com.au
root@currawong:/m/jails/wp.example.com.au # jexec 1 ls -la /
total 221
drwxr-xr-x 21 root wheel 22 Dec 11 07:40 .
drwxr-xr-x 21 root wheel 22 Dec 11 07:40 ..
drwxr-xr-x 2 root wheel 47 Sep 29 2017 bin
dr-xr-xr-x 18 root wheel 512 Dec 11 02:41 dev
drwxr-xr-x 25 root wheel 113 Oct 24 16:28 etc
drwxr-xr-x 4 root wheel 4 Sep 12 2018 home
drwxr-xr-x 3 root wheel 52 Sep 29 2017 lib
drwxr-xr-x 3 root wheel 4 Sep 29 2017 libexec
drwxr-xr-x 2 root wheel 2 Sep 29 2017 media
drwxr-xr-x 2 root wheel 2 Sep 29 2017 mnt
drwxr-xr-x 11 root wheel 18 Aug 21 2018 old
drwxr-xr-x 2 root wheel 2 Oct 16 15:14 oldvhosts
dr-xr-xr-x 1 root wheel 0 Dec 19 15:24 proc
drwxr-xr-x 2 root wheel 148 Sep 29 2017 rescue
drwxr-xr-x 7 root wheel 30 Dec 19 14:37 root
drwxr-xr-x 2 root wheel 134 Sep 29 2017 sbin
lrwxr-xr-x 1 root wheel 11 Sep 29 2017 sys -> usr/src/sys
drwxrwsrwt 17 root wheel 744 Dec 19 03:39 tmp
drwxr-xr-x 16 root wheel 16 Sep 12 2018 usr
drwxr-xr-x 25 root wheel 25 Sep 4 2018 var
drwxrwx--x 54 root wheel 55 Dec 5 11:34 vhosts
drwxr-xr-x 2 root wheel 11 Oct 22 13:17 whosts
root@currawong:/ # cd /m/jails/wp.example.com.au/.zfs/snapshot
/m/jails/wp.example.com.au/.zfs/snapshot: No such file or directory.
root@currawong:/m/.zfs/snapshot # zfs get all m/jails/wp.example.com.au | grep mount
m/jails/wp.example.com.au mounted yes -
m/jails/wp.example.com.au mountpoint /m/jails/wp.example.com.au default
m/jails/wp.example.com.au canmount on default
root@currawong:/m/.zfs/snapshot # zfs mount m/jails/wp.example.com.au
cannot mount 'm/jails/wp.example.com.au': filesystem already mounted
root@currawong:/m/.zfs/snapshot # zfs umount m/jails/wp.example.com.au
cannot unmount '/m/jails/wp.example.com.au': Device busy
root@currawong:/m/.zfs/snapshot # zfs mount m/jails/wp.example.com.au
cannot mount 'm/jails/wp.example.com.au': filesystem already mounted
The last time it happened, I completely stopped the jail, umounted and mounted, and all was well.
But that's not going to be a long term solution when this system is live.
Any help appreciated,
Danny