From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 07:13:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4AD5346F for ; Wed, 9 Jan 2013 07:13:37 +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]) by mx1.freebsd.org (Postfix) with ESMTP id C6A376F6 for ; Wed, 9 Jan 2013 07:13:36 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.5/8.14.5) with ESMTP id r097DVqH063728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jan 2013 08:13:31 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.5/8.14.5/Submit) with ESMTP id r097DUT8063725; Wed, 9 Jan 2013 08:13:31 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 9 Jan 2013 08:13:30 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Andre Goree Subject: Re: Bash history empty on login In-Reply-To: <50ECB07C.6050603@drenet.info> Message-ID: References: <201301080759.52247.dyioulos@onpointfc.com> <50ECADFF.6080003@drenet.info> <50ECB07C.6050603@drenet.info> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-1503361858-1357715611=:41917" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 07:13:37 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-1503361858-1357715611=:41917 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Tue, 8 Jan 2013 18:49-0500, Andre Goree wrote: > > > I think I've found the culprit, however: > > [agoree@desktop ~]$ echo $HISTFILESIZE > > 1024000 > > [agoree@desktop ~]$ echo $HISTFILE > > /home/agoree/.bash_history > > [agoree@desktop ~]$ ll /home/agoree/.bash_history > > -rw------- 1 agoree agoree 12k Jan 5 14:09 /home/agoree/.bash_history > > [agoree@desktop ~]$ cat /home/agoree/.bash_history > > cat: /home/agoree/.bash_history: Input/output error > > [agoree@desktop ~]$ file /home/agoree/.bash_history > > /home/agoree/.bash_history: ERROR: cannot read > > `/home/agoree/.bash_history' (Input/output error) > > > > I suppose I'm in need of a scrub, eh? Or perhaps just a tweak to > > $HISTFILE until I have the time (or energy) to deal with the scrub -- > > probably not a good idea, but sense all my important data is kept on a > > NAS... :p > > > > > > > So, yeahhh...: > > NAME STATE READ WRITE CKSUM > zroot ONLINE 0 0 586 > ad4s1d ONLINE 0 0 0 > ad8s1d ONLINE 0 0 586 I don't know if this was intentional, but your zroot pool is configured with absolutely no redundancy unless you have set the zfs copies property to a value greater than 1 on selected file systems if not all file systems. The text quoted below does not indicate any of this. You should at the very least mirror your zroot pool between no less than 2 drives/partitions, shouldn't raidz{1,2,3} with the appropriate number of drives/partitions prove tempting or possible hardwarewise. > errors: Permanent errors have been detected in the following files: > > /usr/local/share/icons/hicolor/128x128/apps/vlc.png > zroot/usr:<0x11ae0a> > zroot/usr:<0x109118> > zroot/usr:<0x11ae18> > zroot/usr:<0x11ae19> > zroot/usr:<0x11ae1d> > zroot/usr:<0x11ae1e> > zroot/usr:<0x18b61e> > zroot/usr:<0x18b622> > zroot/usr:<0x18b62e> > zroot/usr:<0x18b637> > > /usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.6/e2fsck/e2fsck.c.bak > zroot/usr:<0x18b63c> > zroot/usr:<0x18b63d> > zroot/usr:<0x18b641> > zroot/usr:<0x18b642> > zroot/usr:<0x109256> > /usr/home/agoree/.opera.bak/icons/www.google.com.idx > /usr/home/agoree/.opera.bak/download.dat > /usr/home/agoree/.cache/chromium/Default/Cache/data_1 > /usr/home/agoree/.opera.bak/typed_history.xml > /usr/home/agoree/.bash_history > zroot/usr:<0x109199> > zroot/usr:<0x11ad9b> > /usr/local/share/locale/fo/LC_MESSAGES/cairo-dock.mo > /usr/local/lib/qt4/plugins/script/libqtscript_core.so.1.0.0 > zroot/var:<0x98bf> I'm very sorry for your loss, but apparently these files aren't critical user data. > I'll probably just go ahead and reinstall -- I've been wanting to give > 9.1 a try anyways. Good luck and don't forget about redundancy! :D -- +-------------------------------+------------------------------------+ | 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. | +-------------------------------+------------------------------------+ --2055831798-1503361858-1357715611=:41917--