From owner-freebsd-current@freebsd.org Tue Jul 26 14:13:54 2016 Return-Path: Delivered-To: freebsd-current@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 D073CBA431E for ; Tue, 26 Jul 2016 14:13:54 +0000 (UTC) (envelope-from guru@unixarea.de) 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 93040125A for ; Tue, 26 Jul 2016 14:13:54 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.155.146] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bS37F-0001fK-PA; Tue, 26 Jul 2016 16:13:50 +0200 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u6QEDjtl007897 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jul 2016 16:13:45 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u6QEDh9P007896; Tue, 26 Jul 2016 16:13:43 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 26 Jul 2016 16:13:43 +0200 From: Matthias Apitz To: Mark Millard Cc: FreeBSD Current Subject: Re: seldom crashes on Dell E6330 with 12-CURRENT Message-ID: <20160726141343.GA7857@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Mark Millard , FreeBSD Current References: <20160726055015.GB2981@c720-r292778-amd64> <32C7E9E5-A51C-4836-9939-0D000016808C@dsl-only.net> <20160726084134.GA4295@c720-r292778-amd64> <8951B564-DE07-4D8D-B2D8-E3613EA5D9FE@dsl-only.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8951B564-DE07-4D8D-B2D8-E3613EA5D9FE@dsl-only.net> X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.155.146 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2016 14:13:54 -0000 I have moved swap to its own partition using this commands: ... it turned out, that having swap as a plane file in /usr was not a good decission, we deleted (after making DUMPS) the 'ssdusrfs' again, created swap and re-created 'ssdusrfs'; this must be done while /dev/gpt/ssdusrfs is not mounted! # gpart show -l ada0 => 40 488397088 ada0 GPT (233G) 40 1024 1 ssdboot (512K) 1064 984 - free - (492K) 2048 4194304 2 ssdrootfs (2.0G) 4196352 4194304 3 ssdvarfs (2.0G) 8390656 480006144 4 ssdusrfs (229G) 488396800 328 - free - (164K) be carefully with the correct number of the index, in our case 4; check the output of 'gpart show -l ada0' before doing this: # gpart delete -i 4 ada0 create the swap partition: # gpart add -t freebsd-swap -l ssdswap -a 1m -s 8g ada0 and the rest is our 'ssdusrfs' again: # gpart add -t freebsd-ufs -l ssdusrfs -a 1m ada0 # newfs -U -t /dev/gpt/ssdusrfs the new /etc/fstab should look like this: # Device Mountpoint FStype Options Dump Pass# /dev/gpt/ssdswap none swap sw 0 0 /dev/gpt/ssdrootfs / ufs rw 1 1 /dev/gpt/ssdvarfs /var ufs rw 2 2 tmpfs /tmp tmpfs rw,mode=01777 0 0 /dev/gpt/ssdusrfs /usr ufs rw 2 2 we need gzip and some shared libs (which normaly are in /usr); I copied them on some other system into the externals disk where the DUMP is: # cp -p /usr/bin/gzip /usr/lib/liblzma.so.5 /usr/lib/libbz2.so.4 /mnt now mount and restore the DUMP: # mount tmpfs # mount /usr # cd /usr # mount -o ro /dev/da0s2a /mnt # LD_LIBRARY_PATH=/mnt export LD_LIBRARY_PATH # gzip -dc /mnt/e6330/dumpse6330-20160726/usr.dmp.gz | restore -x -f - # umount /mnt # reboot -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 "Wer übersieht, dass wir uns den anderen weggenommen haben und sie uns wiederhaben wollen, kann von den Kämpfen der letzten Tage keinen verstehen. Und kann natürlich auch keinen dieser Kämpfe bestehen." Hermann Kant in jW 1.10.1989