From owner-freebsd-questions@freebsd.org Tue Nov 15 13:49:14 2016 Return-Path: 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 ACCCEC43B79 for ; Tue, 15 Nov 2016 13:49:14 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A77B1F1E for ; Tue, 15 Nov 2016 13:49:14 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id uAFDn8qq096811 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 Nov 2016 14:49:08 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id uAFDn7jt096808; Tue, 15 Nov 2016 14:49:07 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 15 Nov 2016 14:49:07 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: "Christoph P.U. Kukulies" cc: "freebsd-questions@freebsd.org" Subject: Re: problem starting dhcpd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 13:49:14 -0000 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: 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 ; 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 ; 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 ) 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 ) 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" 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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.