From owner-freebsd-geom@FreeBSD.ORG Mon Mar 20 14:23:04 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC41316A41F for ; Mon, 20 Mar 2006 14:23:04 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B330443D5C for ; Mon, 20 Mar 2006 14:23:03 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k2KEN2Qn082849; Mon, 20 Mar 2006 08:23:02 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <441EBAC6.5000406@centtech.com> Date: Mon, 20 Mar 2006 08:23:02 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5 (X11/20060112) MIME-Version: 1.0 To: "Jeremy C. Reed" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1345/Mon Mar 20 06:03:16 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-geom@freebsd.org Subject: Re: gconcat, growfs followed by fsck and errors X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 14:23:04 -0000 Jeremy C. Reed wrote: > I don't know if this is geom related. Feel free to point me elsewhere. > > I used gconcat to grow a volume. Then I used growfs. It appeared to be > fine and usable. > > But I read that using fsck is a good idea. But fsck complained: > > fsck: Could not determine filesystem type > > So I used fsck_ufs and it showed many, many errors, such as > UNKNOWN FILE TYPE I=124802 > and many others. > > I now notice that fsck "fsck: Could not determine filesystem type" even > after a newfs of a /dev/label/MYVOLUME. fsck_ufs completed fine. > > After converting new /dev/label/MYVOLUME using: > > glacier# gconcat label MYVOLUME /dev/ad0s2 /dev/md1 > glacier# growfs /dev/concat/MYVOLUME > We strongly recommend you to make a backup before growing the Filesystem > > Did you backup your data (Yes/No) ? Yes > new file systemsize is: 568919 frags > Warning: 138716 sector(s) cannot be allocated. > growfs: 1043.4MB (2136960 sectors) block size 16384, fragment size 2048 > using 14 cylinder groups of 74.53MB, 4770 blks, 9600 inodes. > super-block backups (for fsck -b #) at: > 610720, 763360, 916000, 1068640, 1221280, 1373920, 1526560, 1679200, 1831840, > 1984480 > glacier# fsck /dev/concat/MYVOLUME > fsck: Could not determine filesystem type > glacier# fsck_ufs /dev/concat/MYVOLUME > ** /dev/concat/MYVOLUME > ** Last Mounted on > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > UNREF FILE I=126527 OWNER=1227754098 MODE=62157 > SIZE=0 MTIME=Dec 31 16:00 1969 > RECONNECT? [yn] > > > > CLEAR? [yn] n > > UNREF FILE I=126553 OWNER=538976266 MODE=25453 > SIZE=0 MTIME=Dec 31 16:00 1969 > RECONNECT? [yn] n > > > CLEAR? [yn] n > > UNREF FILE I=127462 OWNER=1327525490 MODE=62562 > SIZE=0 MTIME=Dec 31 16:00 1969 > RECONNECT? [yn] ^C > ***** FILE SYSTEM MARKED DIRTY ***** > > > What can I use to see what these unreferenced files are? > > What is strange is in this example above, I did a newfs and fsck > immediately before using gconcat and growfs. So in other words, these > should be empty filesystems with no inodes. > > By the way, is using /dev/md* as a geom provider a bad idea? > You can use fsdb against the filesystem to get at the information about the inode, amongst other things. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------