Port-xen archive

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

Re: Xen DomU zvol disk sizes




To: port-xen%netbsd.org@localhost

Subject: Re: Xen DomU zvol disk sizes

From: Sebastian <sebastian%xenoserver.net@localhost>

Date: Fri, 19 Dec 2025 10:38:36 +0100


Am 2025-12-18 19:39, schrieb Sebastian:


If I now create a zvol with 10G size and start a NetBSD 10.1 (PV mode)  the zvol appears in the DomU, but the disk size inside the DomU is only  25% (2^2??). I tried with different zvol blockvolsizes but without any  effect.

There is the configuration I tried:

Create a new zvol:

    zfs create -p -V 16G zredpool/test
    newfs -O2 /dev/zvol/rdsk/zredpool/test

zfs list:

    NAME                    USED  AVAIL  REFER  MOUNTPOINT
    zredpool/test          16.5G   322G  3.24M  -


The Xen DomU disk spec looks like this:

    disk = [
 'format=raw, vdev=xvda,  target=
/zredpool/xenstore/test/root.img',
            'vdev=xvdb, target=/dev/zvol/dsk/zredpool/test'
    ]

But in my DomU guest I get

 [ 1.9800368] xbd0 at xenbus0 
id 51712: Xen Virtual Block Device  Interface  [ 1.9903955] xbd1 at xenbus0 id 51728: Xen Virtual Block Device  Interface
    [   1.9903955] xbd0: 10240 MB, 512 bytes/sect x 20971520 sectors
    [   1.9903955] xbd0: backend features 0x1<CACHE-FLUSH>
    [   1.9903955] unknown type vkbd at xenbus0 id 0 not configured
    [   1.9903955] unknown type vfb at xenbus0 id 0 not configured
    [   1.9903955] xbd1: 2048 MB, 512 bytes/sect x 4194304 sectors
    [   1.9903955] xbd1: backend features 0x1<CACHE-FLUSH>

When I try
 to mount the pre-formatted xbd1 it fails because of incorrect  super block size. I also see the same "wrong" disk size in linux DomUs.

Best regards,
Sebastian


Follow-Ups:

Re: Xen DomU zvol disk sizes
From: Michael van Elst

Re: Xen DomU zvol disk sizes
From: Greg Troxel


References:

Xen DomU zvol disk sizes
From: Sebastian




Prev by Date: Re: Xen DomU zvol disk sizes

Next by Date: Re: Xen DomU zvol disk sizes

Previous by Thread: Re: Xen DomU zvol disk sizes

Next by Thread: Re: Xen DomU zvol disk sizes

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index