From owner-freebsd-questions@FreeBSD.ORG Fri May 2 10:47:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0B734B6 for ; Fri, 2 May 2014 10:47:11 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E90E17AE for ; Fri, 2 May 2014 10:47:11 +0000 (UTC) Received: from [82.113.121.48] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1WgAzl-0007fo-HV for freebsd-questions@freebsd.org; Fri, 02 May 2014 12:47:09 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s42Al2Fp002400 for ; Fri, 2 May 2014 12:47:03 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s42Al159002399 for freebsd-questions@freebsd.org; Fri, 2 May 2014 12:47:01 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 2 May 2014 12:47:00 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: output of last(1) stopps in March 25 Message-ID: <20140502104700.GA2354@La-Habana> References: <20140502101941.GA2219@La-Habana> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140502101941.GA2219@La-Habana> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.121.48 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 10:47:11 -0000 El día Friday, May 02, 2014 a las 12:19:42PM +0200, Matthias Apitz escribió: > and I encounter the problem, that the output of last(1) stopps in March: > > # last -5 > shutdown time mar 25 mar 17:30 > guru ttyv1 mar 25 mar 17:28 - shutdown (00:02) > guru ttyv0 mar 25 mar 17:15 - shutdown (00:14) > boot time mar 25 mar 16:13 > shutdown time mar 25 mar 06:53 > > The utmpx(5) file seems to be written uptodate: > > # ls -l /var/log/utx.log* > -rw-r--r-- 1 root wheel 111586 2 may 11:10 /var/log/utx.log > -rw-r--r-- 1 root wheel 17441 1 jun 2013 /var/log/utx.log.0 trussing the last(1) command shows, that it does only read 98304 bytes of the file (3x 32768), while the file size is 111586: open("/var/log/utx.log",0x100000,0666) = 3 (0x3) fstat(3,{ mode=-rw-r--r-- ,inode=160570,size=111586,blksize=32768 }) = 0 (0x0) read(3,"\0\^U\a\0\^D\M-^\^Xr\^Wo\M^H\M-m"...,32768) = 32768 (0x8000) read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000) read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000) close(3) = 0 (0x0) must be a bug :-( matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign