NetBSD Problem Report #53092

From  Mon Mar 12 12:10:08 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 904127A174
	for <>; Mon, 12 Mar 2018 12:10:08 +0000 (UTC)
Message-Id: <>
Date: Mon, 12 Mar 2018 12:10:07 +0000 (UTC)
Subject: /etc/rc.d/mountall wrong command on import
X-Send-Pr-Version: www-1.0

>Number:         53092
>Category:       misc
>Synopsis:       /etc/rc.d/mountall wrong command on import
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 12 12:15:00 +0000 2018
>Originator:     Rolf Dietze
>Release:        7.1.1
NetBSD sedona 7.1.1 NetBSD 7.1.1 (GENERIC.201712222334Z) amd64

I discoverd a help message output of zfs during startup. After a short
find/grep search in the startup files I found that /etc/rc.d/mountall
is handling zfs/zpool a bit surprising. In 22 of /etc/rc.d/mountall ist
     zfs volinit
This is called in an if clause, checking for the existance of 
/etc/zpool.cache which is a legitimate way of checking if there where 
any pools ever created on the system (so Solaris has this, FreeBSD not).

Well, in fact, there is no such subcommand as volinit on zfs.
What is intended to be done there, importing all zpools found?
A "zpool import -a" would do better.

Another thing... if doing something like zpool import  to see
if there are pools avaiable, the machine returns error messages reporting a missing /dev/dsk and /dev/rdsk. Those are the compatibility pathes on
root@sedona pts/0 ~ 7# zpool import  
cannot open '/dev/dsk/': No such file or directory

Homwever, doing a "mkdir /dev/dsk /dev/rdsk" just solves it on a short
look. I have not gone any deeper in this. 
Also I must admit, this is my 1st NetBSD installation, I come form 
Solaris and am familiar with FreeBSD on a userlevel

Just boot and have a look on the console.

For the second one, just do a "zpool import". A fresh installed system
will answer with 
cannot open '/dev/dsk/': No such file or directory
creating /dev/dsk an repeating zpool import it returnes:
cannot open '/dev/rdsk/': No such file or directory

Well, I did an mkdir /dev/dsk /dev/rdsk for the "zpool import" problem
and replaced "zfs volinit" with "zpool import -a" on line 22 in /etc/rc.d/mountall, cause I thought that this actually was intended to be done there.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.