Port-xen archive

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

Re: Xen DomU zvol disk sizes



Am 2025-12-20 13:50, schrieb mlelstv%serpens.de@localhost:
To verify if this matches the internal ZFS data you
can dump the vdev labels on the ZFS disks like:

zdb -l /dev/rwd0

Hmm the zdb shows a ashift=12, but it should be 9

bash-5.3# zdb -l /dev/rdk1
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'zredpool'
    vdev_children: 2
    vdev_tree:
        type: 'mirror'
        ashift: 12
        asize: 549751095296


With netbsd-10.1 this should all be correct, but maybe
ZFS was set up with an earlier version ?

No I created the zfs with NetBSD 10.1. I retried creating a zfs from scratch with the same result:

bash-5.3# gpt add -l tankred -s 50G wd0
/dev/rwd0: Partition 6 added: 49f48d5a-b10e-11dc-b99b-0019d1879648 2672300032 104857600
bash-5.3# zpool create tankred /dev/dk14
bash-5.3# zdb -l /dev/rdk14
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'tankred'
    state: 0
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        ashift: 12
        asize: 53682372608

But if I repeat the zfs pool creation on a different external attached USB disk, then I get ashift=9 and all is working as expected:

bash-5.3# gpt add -l tankusb -s 50G sd0
/dev/rsd0: Partition 10 added: 49f48d5a-b10e-11dc-b99b-0019d1879648 5272244224 104857600
bash-5.3# zpool create tankusb /dev/dk15
bash-5.3# zdb -l /dev/rdk15
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'tankusb'
    state: 0
    vdev_tree:
        type: 'disk'
        ashift: 9
        asize: 53682372608


Home | Main Index | Thread Index | Old Index