ZFS zroot : UNAVAIL insufficient replicas...

Look closely, you've added a dot as an extra argument.
Not part of the command, it's the end of the sentence. The dot at the end is outside of the [cmd]..[/cmd]. That's why formatting is important here.
 
Forcefully unmount,
Code:
zfs unmount -f nomadbsd-zroot/usr/ports/packages
zfs unmount -f nomadbsd-zroot/usr/ports

To check if somethings open,
Code:
lsof | grep /usr/ports
 
Wrong order. And don't force an unmount if you can avoid it.

Code:
zfs unmount nomadbsd-zroot/usr/ports/packages
zfs unmount nomadbsd-zroot/usr/ports
 
Correct order.The order to unmount is the reverse of the order to mount. From deepest level to shallow level.
Verify also there is not a shell open on directory /usr/ports.
 
The order to unmount is the reverse of the order to mount.
Yes, /usr/ports is mounted before /usr/ports/packages. Thus /usr/ports/packages needs to be unmounted before /usr/ports can be unmounted. If you unmount /usr/ports/ then /usr/ports/packages would cease to exist (that mountpoint is on the filesystem you just unmounted).
 
fixed with :

Code:
# zfs umount -f nomadbsd-zroot/usr/ports/packages
# zfs umount -f nomadbsd-zroot/usr/ports/distfiles
# zfs umount -f nomadbsd-zroot/usr/ports
# zfs umount -f nomadbsd-zroot
# zpool export nomadbsd-zroot
# zpool import -R /mnt/nomadbsd-zroot nomadbsd-zroot
# zfs mount nomadbsd-zroot/ROOT/default
# cd /mnt/nomadbsd-zroot/

# ls
.cshrc          boot            libexec         proc            tmp             var
.profile        compat          media           rescue          unionfs
COPYRIGHT       dev             mnt             root            usr
VERSION         etc             net             sbin            usr.local.etc
bin             lib             nvidia          sys             uzip

thanks to everyone.
 
SideNote if the kernel of nomadbsd is the same as freebsd you can even try chroot into it. Can be interesting.
For NomadBSD 131R-20221130 this is FreeBSD 13.1-RELEASE-p5.
 
Chroot is limited. I prefer to virtualize it with bhyve. But for what I need to do,I don't need it. For the moment I want only copy some files there. But later I will try to patch the source code to check if bhyve will work there and if I can pass thru my Intel gpu booting nomadBSD physically.
 
Another behavior to understand. If I do :

Code:
zpool import nomadbsd_zroot nomadbsd-zroot
zpool import -f -R /mnt nomadbsd-zroot
zfs mount nomadbsd-zroot/ROOT/default
nothing is inside /mnt/nomadbsd-zroot

but it I use this command,I see all the files,why ?

zpool import -f -R /mnt/nomadbsd-zroot nomadbsd-zroot
 
Normally you want to mount into a directory which contains no files or subdirectories
zpool import -f -R /mnt nomadbsd-zroot is a bad idea because /mnt normally contains subdirectories.
 
Normally you want to mount into a directory which contains no files or subdirectories
zpool import -f -R /mnt nomadbsd-zroot is a bad idea because /mnt normally contains subdirectories.

There is a command that I give,that produces this situation :

Code:
# ls /mnt/nomadbsd-zroot/

home            nomadbsd-zroot  usr             var

two nested folders called "nomadbsd-zroot" and I don't know what is it. Probably it is :

Code:
zpool import -f -R /mnt/nomadbsd-zroot nomadbsd-zroot

so,I tried to do :

Code:
zpool import -f -R /mnt nomadbsd-zroot

but in this case no files are inside /mnt/nomadbsd-zroot even if inside this folder is not created another "nomadbsd-zroot" folder.

I don't want to have two nested "nomadbsd-zroot" folders. I want that it mounts every file inside /mnt/nomadbsd-zroot.
 
Back
Top