[Top] [All Lists]

Re: [PATCH][RESEND] xfstests: add a test for btrfs device replace operat

To: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>
Subject: Re: [PATCH][RESEND] xfstests: add a test for btrfs device replace operation
From: Josef Bacik <jbacik@xxxxxxxxxxxx>
Date: Fri, 23 Aug 2013 14:35:10 -0400
Cc: <xfs@xxxxxxxxxxx>, <linux-btrfs@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fusionio.com; s=default; t=1377282912; bh=Pl65zVS63iE1D3/++Fjw+xm57hn4A7EV9LTgTtyD7No=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=h4g9Gd157UTe71ZQxULkr8TNvb0mOYLrMHv7+hVRgLXSK7lfd8xO6YUW2At7hgwki FQjC63zu5qh/1ZWmmUjlih0Yt68uCbl07Dv7lwTF+qkMFi1AnM1is0i9xdtky/2zPx JQ8qh4v6nYgFGjgQh0IuKiV/cMBwPrvdmRzm6Ca0=
In-reply-to: <1377263233-8903-2-git-send-email-sbehrens@xxxxxxxxxxxxxxxx>
References: <1377263233-8903-1-git-send-email-sbehrens@xxxxxxxxxxxxxxxx> <1377263233-8903-2-git-send-email-sbehrens@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2011-07-01)
On Fri, Aug 23, 2013 at 03:07:11PM +0200, Stefan Behrens wrote:
> This test performs btrfs device replace tests with all possible profiles
> (single/dup/mixed/raid0/raid1/raid10), one round with the '-r' option
> to 'btrfs replace start' and one round without this option. The
> cancelation is tested only once and with the dup/single profile for
> metadata/data.
> This test takes 181 seconds on my SSD equiped test box and 237s on
> spinning disks. Almost all the time is spent when the filesystem is
> populated with test data. The replace operation itself takes less than
> a second for all the tests, except for the test that is marked as
> 'thorough' which will run for about 8 seconds on my test box.
> The amount of tests done depends on the number of devices in the
> SCRATCH_DEV_POOL. For full test coverage, at least 5 devices should
> be available (e.g. 5 partitions). With less than 2 entries in
> SCRATCH_DEV_POOL, the test is not executed.
> The source and target devices for the replace operation are arbitrarily
> chosen out of SCRATCH_DEV_POOl. Since the target device mustn't be
> smaller than the source device, the requirement for this test is that
> all devices have _exactly_ the same size. If this is not the case, the
> test terminates with _notrun.
> To check the filesystems after replacing a device, a scrub run is
> performed, a btrfsck run, and finally the filesystem is remounted.
> This commit depends on my other commit:
> "xfstest: don't remove the two first devices from SCRATCH_DEV_POOL"
> Signed-off-by: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>

This worked well, thanks,

Reviewed-by: Josef Bacik <jbacik@xxxxxxxxxxxx>



<Prev in Thread] Current Thread [Next in Thread>