Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 14:49:07 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        "Christoph P.U. Kukulies" <kuku@kukulies.org>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: problem starting dhcpd
Message-ID:  <alpine.BSF.2.20.1611151441490.1016@mail.fig.ol.no>
In-Reply-To: <d67a20d9-5217-dc75-e4fc-0ce3fc4b3155@kukulies.org>
References:  <d67a20d9-5217-dc75-e4fc-0ce3fc4b3155@kukulies.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, 15 Nov 2016 12:06+0100, Christoph P.U. Kukulies wrote:

> /usr/local/etc/rc.d # ./isc-dhcpd start
> chown: dhcpd: illegal user name
> ./isc-dhcpd: WARNING: unable to change permissions of /var/run/dhcpd
> ./isc-dhcpd: WARNING: safe_run: chown dhcpd:dhcpd /var/db/dhcpd
> ./isc-dhcpd: WARNING: unable to change permissions of /var/db/dhcpd
> chown: dhcpd: illegal user name
> ./isc-dhcpd: WARNING: unable to change permissions of
> /var/db/dhcpd/dhcpd.leases
> Starting dhcpd.
> ./isc-dhcpd: WARNING: failed to start dhcpd
> 
> 
> 
> /etc/passwd:
> 
> dhcpd:*:136:136::0:0:ISC DHCP daemon:/nonexistent:/usr/sbin/nologin

Does /etc/master.passwd contain the dhcpd user? Are the hash tables, 
/etc/pwd.db and /etc/spwd.db up to date?

Here's one way of ensuring this using csh syntax, the default shell 
for the root user:

  setenv EDITOR ee # choose the ee editor over the vi editor

  vipw

Make a small change, say entering a space on the first line, then 
remove said space, save the file using esc, enter, enter in rapid 
succession.

> /etc/group:
> 
> dhcpd:*:136:

The group file seems correct, and it doesn't have a hash table 
counterpart unlike the /etc/{master.,}passwd files.

Next, try running the chown command manually, e.g.:

chown dhcpd:dhcpd /var/db/dhcpd /var/run/dhcpd

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Tue Nov 15 14:50:05 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id C90ABC4301E
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue, 15 Nov 2016 14:50:05 +0000 (UTC) (envelope-from dr.klepp@gmx.at)
Received: from vie01a-qmta-at50-2.mx.upcmail.net
 (vie01a-qmta-at50-2.mx.upcmail.net [62.179.121.167])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 8B9D5138
 for <freebsd-questions@freebsd.org>; Tue, 15 Nov 2016 14:50:04 +0000 (UTC)
 (envelope-from dr.klepp@gmx.at)
Received: from [172.31.218.14] (helo=vie01a-dmta-at50-2.mx.upcmail.net)
 by vie01a-pqmta-at50.mx.upcmail.net with esmtps
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87)
 (envelope-from <dr.klepp@gmx.at>) id 1c6ero-0004Kk-21
 for freebsd-questions@freebsd.org; Tue, 15 Nov 2016 15:37:44 +0100
Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50)
 by vie01a-dmta-at50.mx.upcmail.net with esmtp (Exim 4.87)
 (envelope-from <dr.klepp@gmx.at>) id 1c6erh-0007aG-RK
 for freebsd-questions@freebsd.org; Tue, 15 Nov 2016 15:37:37 +0100
Received: from t60.lan ([85.126.97.210])
 by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net
 id 8Edd1u00Z4YLlkt0BEddvw; Tue, 15 Nov 2016 15:37:37 +0100
X-SourceIP: 85.126.97.210
X-CNFS-Analysis: v=2.2 cv=FpZHxCjq c=1 sm=2 tr=0
 a=/Ac8Q0O/YFE5LOLfUiYZVw==:117 a=/Ac8Q0O/YFE5LOLfUiYZVw==:17
 a=Q9fys5e9bTEA:10 a=_l7E8anwVUUi-cjw9G0A:9 a=PUjeQqilurYA:10 a=bxiaV7ZPRDEA:10
From: "Dr. Nikolaus Klepp" <dr.klepp@gmx.at>
To: freebsd-questions@freebsd.org
Subject: zfs: how to find out when a disk failed
Date: Tue, 15 Nov 2016 15:37:37 +0100
User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748)
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201611151537.37907.dr.klepp@gmx.at>
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Nov 2016 14:50:05 -0000

Hi all!

I have a server with a zfs raid-z1 (3 disks). One disk failed/was removed some time ago and was not replaced till now. 

Is there a way to find out when the  disk failed/was removed?

Nik


-- 
Please do not email me anything that you are not comfortable also sharing with the NSA.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1611151441490.1016>