NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/53092: /etc/rc.d/mountall wrong command on import

>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.

Home | Main Index | Thread Index | Old Index