[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xen VM call trace on fstrim: Error: discard_granularity is 0.


  • To: Arthur Borsboom <arthurborsboom@xxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 18 Jan 2021 11:19:15 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N/ygDZen6ZKCMFshcru0CZjHem0w/NfIonG7sZroBXw=; b=kiPfTncOYAdu4HhtbE3NSS5/aFihUn7pUrpcSou51s0PgWSFfqMqpOKGfcd9l9msR0Qs5BIgCf3Qnsaoq1fYkUgKcXHOO/WvelRT+xAkQ3GB4cgXMiEPcY1PEmLgktft9LKFlJbtRpDS4GlVd9+v1k+hd2R5Kr5CIrEpDffKClgbCpkW8GA4M5pQrvpDzWsicHBpZ1XJ+jYlwC3wLqG/ur2tY0p3iA774utOM6zQ6jUG/QWSpwYEfqAL4d2x59U7RW2+aS1oD5FkZK+0w5GT9CcR1Zq1l2C9LuHCFa7xkI0lGX/l8Ljw340GuGUAcg1IlKEbUqUl56mLzQoSFsM/uQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QzXbjF27IbLGcEZhVmCu07hxmp8BdE0VX4c5N7AfyAxkETT8KuQez7Uhc3NThMSCtnunt/feWU9yosqf5ejNPebZQqXQ4qrSE0lKt9DK3yLnBV9wevZxXXO0HGGX+/JEuaAjNiS1bnH+tmF+hfsKMJ1/blUFpxoW4BLSLJcCfABWaj+dL8v+pS/3+Ln7HBtAIrPY3FJSsiKSLlrw2C5K0IQsAqq0rWM/DXq3YwQg3Ojj3E3eexf8criniaykQB8Nwo1fF0uayoIaaf6fiJq8R9apGDJ9AOInoRzac+tWsLdWcW1D97hQNdv68m3xyyDDTP2IXSeZgrqynhUwa9wAiA==
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 18 Jan 2021 10:19:34 +0000
  • Ironport-sdr: yi30PLAosbQ2ZldSMdp4EAKvb8s7al0bg+lXirBetw2PA1z9dkN4YvwXsJ6/QoVjtXp/XrSp+7 Xs+nIb6/TrOlerAJ6TkeZIp31yRdquIyfIeZG46NRGniNGyraP5S0BZ0r70gb5RNXGiDF32QWv oxD22aSSD4GP32gFdXQNWUpCox18qTx3CzP//AO8WaroaQ6BdZNiXhYzrO9cF2+90xHWEBNwnp O/LIViXNDp1nnp2Q2fxdgvyR6lo99QtZ6NOA8tAoooWfUWdKic1q1/0KN5LkIu5FTEbGWsBhr5 LKY=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Jan 13, 2021 at 11:43:50AM +0100, Arthur Borsboom wrote:
> When performing the following command in a Xen VM the call trace below is
> generated.
> 
>     sudo fstrim -v /
> 
> Xen VM host: Xen 4.14.0
> Xen Dom0: Linux 4.19.14
> Xen DomX: Linux 5.10.6
> 
> The code in the kernel triggering this trace is the following.
> 
>         /* In case the discard granularity isn't set by buggy device driver
> */
>         if (WARN_ON_ONCE(!q->limits.discard_granularity)) {
>                 char dev_name[BDEVNAME_SIZE];
> 
>                 bdevname(bdev, dev_name);
>                 pr_err_ratelimited("%s: Error: discard_granularity is
> 0.\n", dev_name);
>                 return -EOPNOTSUPP;
>         }

So it seems like the underlying storage in dom0 doesn't support
discard, and hence the feature don't get setup on the frontend?

Can you print the output of `xenstore-ls -fp` executed from dom0 when
the guest is running? That way I could see which features the backend
is exposing.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.