ZFS mount fails after upgrade to 11.0

Erwan Legrand freebsd at erwanlegrand.com
Mon Dec 26 22:17:01 UTC 2016


On Fri, Dec 23, 2016 at 8:00 PM, Vladislav Prodan <universite at ukr.net> wrote:
> Sorry for the unhurried response.

No worries!

> Please show output:
>
> zfs list
> gpart show
> camcontrol devlist
> diskinfo -v /dev/diskid/DISK-Z1E7725Jp2
> diskinfo -v /dev/diskid/DISK-Z1E75J4Kp2

I have installed FreeBSD 11 on a spare disk. I can mount my old pool
with "-o altroot=/mnt" without any trouble. But for some reason,
/dev/diskid is gone. I wonder why it is so and I want it back.

In the following output the spare disk I have installed FreeBSD 11 on
is "ada0" and "zroot" is a new pool. "tank" is my old pool, which is
mirrored on "ada1" and "ada2". I plan to move my data to the new pool
and then remove the disks one by one from the old pool to add them to
the new. The freebsd-boot partitions on these disk are too small
nowadays anyway. Thus, repartitioning them sounds like a good idea.

Thanks,

Erwan

# zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
tank                 256G  1.51T    18K  none
tank/root            351M  1.51T   297M  /mnt
tank/swap           4.26G  1.51T   138M  -
tank/tmp             114K  1.51T   102K  /mnt/tmp
tank/usr             242G  1.51T   237G  /mnt/usr
tank/var            9.26G  1.51T  9.26G  /mnt/var
zroot                226G   673G    96K  /zroot
zroot/ROOT           759M   673G    96K  none
zroot/ROOT/default   759M   673G   759M  /
zroot/tmp            116K   673G   116K  /tmp
zroot/usr            225G   673G    96K  /usr
zroot/usr/home       225G   673G   225G  /usr/home
zroot/usr/ports       96K   673G    96K  /usr/ports
zroot/usr/src         96K   673G    96K  /usr/src
zroot/var            644K   673G    96K  /var
zroot/var/audit       96K   673G    96K  /var/audit
zroot/var/crash       96K   673G    96K  /var/crash
zroot/var/log        164K   673G   164K  /var/log
zroot/var/mail        96K   673G    96K  /var/mail
zroot/var/tmp         96K   673G    96K  /var/tmp
# gpart show
=>        40  1953525088  ada0  GPT  (932G)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048     4194304     2  freebsd-swap  (2.0G)
     4196352  1949327360     3  freebsd-zfs  (930G)
  1953523712        1416        - free -  (708K)

=>        34  3907029101  ada1  GPT  (1.8T)
          34           6        - free -  (3.0K)
          40         128     1  freebsd-boot  (64K)
         168  3907028960     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5K)

=>        34  3907029101  ada2  GPT  (1.8T)
          34           6        - free -  (3.0K)
          40         128     1  freebsd-boot  (64K)
         168  3907028960     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5K)

# camcontrol devlist
<ST31000528AS CC49>                at scbus0 target 0 lun 0 (pass0,ada0)
<ST2000VX000-1CU164 CV23>          at scbus1 target 0 lun 0 (pass1,ada1)
<ST2000VX000-1CU164 CV23>          at scbus2 target 0 lun 0 (pass2,ada2)
<AHCI SGPIO Enclosure 1.00 0001>   at scbus4 target 0 lun 0 (pass3,ses0)
# diskinfo -v /dev/diskid/DISK-Z1E7725Jp2
diskinfo: /dev/diskid/DISK-Z1E7725Jp2: No such file or directory
# diskinfo -v /dev/diskid/DISK-Z1E75J4Kp2
diskinfo: /dev/diskid/DISK-Z1E75J4Kp2: No such file or directory
# ls /dev/diskid
ls: /dev/diskid: No such file or directory
# diskinfo -v /dev/ada1
/dev/ada1
        512             # sectorsize
        2000398934016   # mediasize in bytes (1.8T)
        3907029168      # mediasize in sectors
        4096            # stripesize
        0               # stripeoffset
        3876021         # Cylinders according to firmware.
        16              # Heads according to firmware.
        63              # Sectors according to firmware.
        Z1E75J4K        # Disk ident.
        Not_Zoned       # Zone Mode

# diskinfo -v /dev/ada2
/dev/ada2
        512             # sectorsize
        2000398934016   # mediasize in bytes (1.8T)
        3907029168      # mediasize in sectors
        4096            # stripesize
        0               # stripeoffset
        3876021         # Cylinders according to firmware.
        16              # Heads according to firmware.
        63              # Sectors according to firmware.
        Z1E7725J        # Disk ident.
        Not_Zoned       # Zone Mode

# zpool status
  pool: tank
 state: ONLINE
status: One or more devices are configured to use a non-native block size.
        Expect reduced performance.
action: Replace affected devices with devices that support the
        configured block size, or migrate data to a properly configured
        pool.
  scan: resilvered 13.5K in 0h0m with 0 errors on Mon Dec 26 02:07:35 2016
config:

        NAME        STATE     READ WRITE CKSUM
        tank        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada1p2  ONLINE       0     0     0  block size: 512B
configured, 4096B native
            ada2p2  ONLINE       0     0     0  block size: 512B
configured, 4096B native

errors: No known data errors

  pool: zroot
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          ada0p3    ONLINE       0     0     0

errors: No known data errors
#


More information about the freebsd-questions mailing list