From owner-freebsd-fs@freebsd.org Wed Jul 5 05:15:05 2017 Return-Path: Delivered-To: freebsd-fs@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 2182DDA1F86 for ; Wed, 5 Jul 2017 05:15:05 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A12DD725F2 for ; Wed, 5 Jul 2017 05:15:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v655Ewf7012928 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 5 Jul 2017 08:14:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v655Ewf7012928 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v655EwVQ012927; Wed, 5 Jul 2017 08:14:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 5 Jul 2017 08:14:58 +0300 From: Konstantin Belousov To: Willem Jan Withagen Cc: FreeBSD Filesystems Subject: Re: newfs returns cg 0: bad magic number Message-ID: <20170705051458.GU1935@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jul 2017 05:15:05 -0000 On Wed, Jul 05, 2017 at 02:00:43AM +0200, Willem Jan Withagen wrote: > Hi, > > I'm able to create a Ceph RBD backed ggate disk, in /dev/ggate0. > It looks like I can: > run dd on it > gpart the disk > create a zpool on it > > But when I try to create a UFS file system on it, newfs complains > straight from the bat. > > # sudo newfs -E /dev/ggate0p1 > /dev/ggate0p1: 1022.0MB (2093056 sectors) block size 32768, fragment > size 4096 > using 4 cylinder groups of 255.53MB, 8177 blks, 32768 inodes. > Erasing sectors [128...2093055] > super-block backups (for fsck_ffs -b #) at: > 192, 523520, 1046848, 1570176 > cg 0: bad magic number > > Googling returns that this is on and off a problem with new devices, but > there is no generic suggestion on how to debug this.... > > Any/all suggestions are welcome, Typically this error means that the drive returns wrong data, not the bytes that were written to it and expected to be read.