Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2022 17:53:01 -0600 (CST)
From:      Dan The Man <dan@sunsaturn.com>
To:        freebsd-current@FreeBSD.org
Subject:   vfs.zfs.vol.recursive hang makes it impossible to mount zvol
Message-ID:  <da17977d-b37e-aa79-372f-326b2698f418@sunsaturn.com>

next in thread | raw e-mail | index | archive | help

router:~ # uname -a
FreeBSD router.sunsaturn.com 14.0-CURRENT FreeBSD 14.0-CURRENT #1 
main-n259058-105019e0d6c: Sat Nov  5 05:37:28 CDT 2022 
dan@router.sunsaturn.com:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL amd64
router:~ # zfs create -V30G -o volmode=full zroot/asterisk2
(install a ZFS guest on it and call zroot testing)
router:~ # gpart show /dev/zvol/zroot/asterisk2
=>      40  62914480  zvol/zroot/asterisk2  GPT  (30G)
         40    532480                     1  efi  (260M)
     532520      2008                        - free -  (1.0M)
     534528  16777216                     2  freebsd-swap  (8.0G)
   17311744  45600768                     3  freebsd-zfs  (22G)
   62912512      2008                        - free -  (1.0M)

router:~ # gdisk -l /dev/zvol/zroot/asterisk2
GPT fdisk (gdisk) version 1.0.9

Partition table scan:
   MBR: protective
   BSD: not present
   APM: not present
   GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/zvol/zroot/asterisk2: 62914560 sectors, 30.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): 8ACD2112-5EBF-11ED-8F56-00A098E3C14E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 40, last usable sector is 62914519
Partitions will be aligned on 8-sector boundaries
Total free space is 4016 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1              40          532519   260.0 MiB   EF00  efiboot0
    2          534528        17311743   8.0 GiB     A502  swap0
    3        17311744        62912511   21.7 GiB    A504  zfs0
router:~ # zpool import
    pool: testing
      id: 8013833172609421701
   state: UNAVAIL
status: One or more devices are missing from the system.
  action: The pool cannot be imported. Attach the missing
         devices and try again.
    see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-3C
  config:

         testing                   UNAVAIL  insufficient replicas
           zvol/zroot/asterisk2p3  UNAVAIL  cannot open
router:~ # sysctl vfs.zfs.vol.recursive=1
vfs.zfs.vol.recursive: 0 -> 1
router:~ # zpool import
    pool: testing
      id: 8013833172609421701
   state: ONLINE
  action: The pool can be imported using its name or numeric identifier.
  config:

         testing                   ONLINE
           zvol/zroot/asterisk2p3  ONLINE
router:~ # zpool import -fR /mnt testing

This hangs forever....
The only way to import that pool from the zvol that I know of.....



Dan


--
Dan The Man
CEO & Founder
Websites, Domains and Everything else
http://www.SunSaturn.com/aboutus.php
Email: Dan@SunSaturn.com
PGP Key: https://SunSaturn.com/pgp.txt
A1A7 6E84 FB0B 8994 C3B5  A1BA FF6F 4997 7311 C386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?da17977d-b37e-aa79-372f-326b2698f418>