From owner-freebsd-stable@freebsd.org Sat May 13 10:53:23 2017 Return-Path: Delivered-To: freebsd-stable@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 E7F99D69CFB for ; Sat, 13 May 2017 10:53:23 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 470C41ED9 for ; Sat, 13 May 2017 10:53:22 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mandree.no-ip.org ([77.181.128.133]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LmKOI-1di0OS3cX4-00Zv4W; Sat, 13 May 2017 12:47:59 +0200 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id D00DB23CF5A; Sat, 13 May 2017 12:47:46 +0200 (CEST) Subject: Re: Formatting a 4k disk on FreeBSD with ext2 To: HSR Hackspace Cc: freebsd-stable@freebsd.org, Theodore Ts'o References: From: Matthias Andree Message-ID: Date: Sat, 13 May 2017 12:47:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:3QWUiqeiMKdiHuDLOgEOD1sQXIBiDhNrycN1rqu9WV+okzL6hop RuPAoKaGq9DQrK/fipAT9a2I/kHGyqo0bgFYUi9vfaBtw86M9hkWiwMBvw1VjUbkvIS5ENj lLegGcVbggI4kyXJHBsZ4Cy4kf83rH+gmu1VXHwotgg1BpSHEjab//agIzVUryW6OL3uk5B fS6iF9YX6GA9/Qo3uLmcg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JFULLNuDscI=:FqLzUrkmll34gJxvAcNsWY fLyj4svMK3lBZ7G3//JIiZbub58hwaOKd1X3UGk+LwlKoMMjbfJHd8t/He6HspRa1QZVBe4rM RbFih+zCmz7KbZkmoYRAHjM4D/dkNzNpSk4zP7Cc2OHccOOyqwPghT8CBATXEvVRYh2bB9fta t4/2F5uDxnMfMm9QPVREt9eQCaCcfEVYrkWjlJ5gO161k7Cm0qIcaJPgeYQSlVscrkF8c7D4L 7kmdO22G/cEsgHmO/i10zvPyBl6RhgxWYih6G3xyZPQUBU1FjByzPAhM+yHf0zBKmR1HDJlHo 3qd+oeTVV0xTEPdoXoYn5gk3lc/NGFvdvl64o6FcNjPgeTLQ/bemji35slONM7V9i0WlCigF8 KBpsDTDrhRK3scobUO0ZI1E3ZIYd+0FaT1mbI09NYh3Kw0il5RBdHuropiRkY2FOv3lcE6OcM +mbqa85MHDiv4e2B6kqPuxN8PPAxamorlNVP2He7Odop8ZAAbFB8rvsz5jsa9SJJfFd3T5I5W jUjfjiN96KjzszX4SUlXVBS7qwlVkVmXUTxZSYkh/JIAuud3KLFLZJZpcD4Q5lEpvmvyifJqO WmQOomv6jRv4p27RG6Vup6pGyk2sO+IZuyvZx9+1H70QpqpfFy6A7vwRv36ErBdSPu5Z5dBGM RVmyJynHEtn1HUOvUkLeGCYUWJ/ae0QMFMVm/aLNTnuLLUs+jx/ewS9H0NlXGB9ZJZvrA46c5 I14CioGf6vOyFtDBRcKWv3PuXW3CmRUrnw8RbHlUD+420YauOfzIkp4w9eUZvCQCd9MIMge8b 6aU4Sn9 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2017 10:53:24 -0000 Am 08.05.2017 um 17:42 schrieb HSR Hackspace: > Hi folks; > > I'm trying to format a 300 GB partition on x86_64 box running running > BSD 10.1 with HW RAID configuration. All my attempt so far have > failed. Below are the logs for same. > > Logs: > > 1. pod1208-wsa07:rtestuser 106] ./mkfs.ext3 /dev/da0p7 > mke2fs 1.43.4 (31-Jan-2017) > Warning: could not erase sector 2: Invalid argument---------> Please show the output of $ env LANG=3D LANGUAGE=3D LC_ALL=3DC mkfs.ext3 -V It should print 1.43.4 for the program _and the library_ (the latter isn't shown above). Then, please run mkfs.ext3 under truss, or under ktrace, and upload the truss or kdump log somewhere and post the URL. Do not mail the log, it's gonna be too big. "Invalid argument" aka EINVAL looks like misaligned access. Now, diskinfo provided the right sectorsize (4096), which it - as of FreeBSD 10.3 - obtains with ioctl(fd, DIOCGSECTORSIZE, §orsize), where sectorsize is a u_int, and unsigned int. Which RAID device is it, what's its structure?