From owner-freebsd-fs@FreeBSD.ORG Wed Feb 24 09:29:02 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E26AD106566B for ; Wed, 24 Feb 2010 09:29:02 +0000 (UTC) (envelope-from escholtz@argonsoft.de) Received: from coyote.quickmin.net (coyote.quickmin.net [217.14.112.24]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE968FC14 for ; Wed, 24 Feb 2010 09:29:02 +0000 (UTC) Received: (qmail 34710 invoked from network); 24 Feb 2010 10:02:20 +0100 Received: by simscan 1.4.0 ppid: 34707, pid: 34708, t: 0.0165s scanners: clamav: 0.95.2/m:49/d:8609 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=argonsoft.de; b=PwZC9yBOgElJvHFOkk0pdw6jhAyc61ajH4iwmSjBi3OBaMRjA/fyBiFLzmMacom6uOWHLoENxdUCqmZ1465/sG6nLpnFvNbTyDG03/o7WmSgqkWa/DIaT9x1P10jWwdnPwjzbBas1vV8pNVcr2+SlTKJyHXPB+AkHIKoWNQhTzo= ; Received: from dialbs-213-023-239-142.static.arcor-ip.net (HELO erik-scholtzs-macbook-pro-15.fritz.box) (00000150@213.23.239.142) by coyote.quickmin.net with SMTP; 24 Feb 2010 10:02:20 +0100 Message-ID: <4B84EB1C.1080700@argonsoft.de> Date: Wed, 24 Feb 2010 10:02:20 +0100 From: "Erik Scholtz, ArgonSoft GmbH" User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problem with writing an UFS2 to iStore Storage System / can't find block in cyl 0 / bad magic number X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 09:29:03 -0000 Hi, I'm working on the problem I'm describing below since 12/2008. In Dec. 2008 I was trying to connect an iStor iSCSI-Storage-System to my FreeBSD (tested with all releases 6.4, 7.1, 7.2 and 8.0), which did not work. After having many tests and working together with Danny from the iSCSI Development Team, I'm now pretty sure the problem is in the UFS-tools and neither in the SCSI nor in the iSCSI-driver. I come to this conclusion, since I was able to get a filesystem working, after extending my Kernel with ext-3 and using ext-3 as filesystem - so SCSI and iSCSI seem to work properly. When trying to create the filesystem on an auto-build partitionmap ("use entire disk) I get: ********************************************************************************** |(create the filesystem) |newfs -O2 /dev/da0s1 |/dev/da0s1: 782023.5MB (1601584044 sectors) block size 16384, fragment |size 2048 | using 4256 cylinder groups of 183.77MB, 11761 blks, 23552 |inodes. |super-block backups (for fsck -b #) at: | 160, 376512, 752864, ... ... ... | 1601377920 |internal error: can't find block in cyl 0 ********************************************************************************** Trying to write the filesystem in dangerously dedicated mode results in: ********************************************************************************** |(create the filesystem) |newfs -O2 /dev/da0 | |..., ..., ... |419256288 |cg 0: bad magic number ********************************************************************************** After this, I tried to write the UFS to a partitionmap created by OS X. I was able to write a working UFS to this partitionmap (ignoring all warnings). The filesystem was stable and could be used; Running fsck to check the filesystem repairs the filesystem dead and destroys all data. The partitionmap I used was: ********************************************************************************** |geometry: 121403/255/63 [1950351360 sectors] | | 0 40 39 - 12 unused 0 | 40 409600 409639 da0p1 5 unknown 0 | 409640 1928708016 1929117655 da0p2 5 unknown 0 |1929117656 262184 1929379839 - 12 unused 0 ********************************************************************************** So does anybody out there have an idea how to get an UFS working on the storage? Greetings, Erik --- My blog: http://blog.elitecoderz.net