From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 09:36:26 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 0114B326 for ; Sun, 6 Jul 2014 09:36:26 +0000 (UTC) Received: from avasout08.plus.net (avasout08.plus.net [212.159.14.20]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6B72168 for ; Sun, 6 Jul 2014 09:36:24 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout08 with smtp id NxcG1o005516WCc01xcJZq; Sun, 06 Jul 2014 10:36:18 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=fOK33Pqe c=1 sm=1 tr=0 a=lfSX4pPLp9EkufIcToJk/A==:117 a=lfSX4pPLp9EkufIcToJk/A==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=NmrU6LgK5G8A:10 a=M5qlZ259lr0A:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=tLcGSSWqRJhjMxlu3EgA:9 a=wPNLvfGTeEIA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.82) (envelope-from ) id 1X3irl-0000xc-Vh for freebsd-questions@freebsd.org; Sun, 06 Jul 2014 10:36:16 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sun, 06 Jul 2014 10:36:07 +0100 Message-ID: <1589340.EJfV1hpdGW@curlew.lan> User-Agent: KMail/4.12.5 (FreeBSD/9.1-RELEASE-p14; KDE/4.12.5; amd64; ; ) In-Reply-To: References: <41313663.OOGA20ln3i@curlew.lan> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: Problem with "gpart add" Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 09:36:26 -0000 On Saturday 05 July 2014 23:16:05 Warren Block wrote: > MBR is touchy about CHS values. It might be complaining about the > starting location or size. Without those options, it should use all > of the first available space, rounding for CHS values. So (after > a backup) try: > > gpart add -t freebsd-zfs ada2 I still get the error. The following extract from "truss gpart add -t freebsd-zfs ada2" might be relevant open("/dev/geom.ctl",O_RDONLY,00) = 3 (0x3) ioctl(3,GEOM_CTL,0x1418040) = 0 (0x0) close(3) = 0 (0x0) gpart: write(2,"gpart: ",7) = 7 (0x7) stat("/usr/share/nls/C/libc.cat",0x7fffffff8910) ERR#2 'No such file or directory' stat("/usr/share/nls/libc/C",0x7fffffff8910) ERR#2 'No such file or directory' stat("/usr/local/share/nls/C/libc.cat",0x7fffffff8910) ERR#2 'No such file or directory' stat("/usr/local/share/nls/libc/C",0x7fffffff8910) ERR#2 'No such file or directory' madvise(0x801420000,0x1000,0x5,0x1f,0x7fffffff8000,0xffffffff) = 0 (0x0) madvise(0x801421000,0x1000,0x5,0x20,0x7fffffff8000,0x7fffffff7fa0) = 0 (0x0) Invalid argument write(2,"Invalid argument\n",17) = 17 (0x11) Checking the relevant directories gives the following: curlew:/root# ls -l /usr/share/nls/C total 6 -r--r--r-- 1 root wheel 7924 26 Oct 2012 ee.cat curlew:/root# ls -l /usr/share/nls/libc ls: /usr/share/nls/libc: No such file or directory curlew:/root# ls -l /usr/local/share/nls/C total 0 curlew:/root# ls -l /usr/local/share/nls/libc ls: /usr/local/share/nls/libc: No such file or directory > A 320G drive is not likely to use 4K blocks, but that's worth > checking. Block misalignment is very easy with MBR, and can make > for terrible write performance. Checking with smartctl shows 512 bytes logical/physical -- Mike Clarke