Received: with ECARTIS (v1.0.0; list xfs); Wed, 02 Jan 2008 09:47:57 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m02HlnEc030673 for ; Wed, 2 Jan 2008 09:47:52 -0800 X-ASG-Debug-ID: 1199296085-27d8025f0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp117.sbc.mail.sp1.yahoo.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with SMTP id 93B0B1226F2E for ; Wed, 2 Jan 2008 09:48:05 -0800 (PST) Received: from smtp117.sbc.mail.sp1.yahoo.com (smtp117.sbc.mail.sp1.yahoo.com [69.147.64.90]) by cuda.sgi.com with SMTP id XU2xxIODbJ2xMKEC for ; Wed, 02 Jan 2008 09:48:05 -0800 (PST) Received: (qmail 47676 invoked from network); 2 Jan 2008 17:48:05 -0000 Received: from unknown (HELO stupidest.org) (cwedgwood@sbcglobal.net@24.5.75.45 with login) by smtp117.sbc.mail.sp1.yahoo.com with SMTP; 2 Jan 2008 17:48:04 -0000 X-YMail-OSG: zmIVVaUVM1mnW9heZzeeaqwl..vMiZ2p.mvrrHn8nZ9UedFT Received: by tuatara.stupidest.org (Postfix, from userid 10000) id C73C4282F2B9; Wed, 2 Jan 2008 09:48:05 -0800 (PST) Date: Wed, 2 Jan 2008 09:48:05 -0800 From: Chris Wedgwood To: Carsten Aulbert Cc: xfs@oss.sgi.com X-ASG-Orig-Subj: Re: How to damage a XFS-Filesystem? Subject: Re: How to damage a XFS-Filesystem? Message-ID: <20080102174805.GA32592@puku.stupidest.org> References: <477B8EAB.8000703@welcomes-you.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <477B8EAB.8000703@welcomes-you.com> X-Barracuda-Connect: smtp117.sbc.mail.sp1.yahoo.com[69.147.64.90] X-Barracuda-Start-Time: 1199296085 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=3.0 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.38382 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/5342/Wed Jan 2 08:47:10 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14072 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: cw@f00f.org Precedence: bulk X-list: xfs On Wed, Jan 02, 2008 at 02:16:27PM +0100, Carsten Aulbert wrote: > A file server with a 10 TB large xfs file system running on a RAID6 > SATA array, the server has 16 GB of memory. I want to test how long > it would take to run xfs_repair on it and if the amount of memory is > enough for that. It depends on how fast the IO is and also how many files there are. If you have a small number of really large files it's fairly fast, if you have a large number of really small files (ie. email maildir) then it tends to be much slower. > (2) Damage the file sytem > (3) Run xfs_repair xfs_repair will run without having to damage the filesystem (though if/when damaged it will probably be a little slower). > Otherwise: How can a damage a xfs file system to make the job harder > for xfs_repair. Google for fsfuzzer. > I guess a simple dd if=/dev/random of=/dev/sdb1 with some offsets > will not be very effective, right? If it misses the metadata, xfs_repair won't even notice. If you whack large chunks of metadata you might see considerable data loss.