Port-xen archive

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

Re: Xen DomU zvol disk sizes



sebastian%xenoserver.net@localhost (Sebastian Ponitka) writes:

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

>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



My guess is that wd0 is a 512e disk (4k physical sectors, but emulates
512byte/sector) and that isn't handled consistently. Apparently the
vdev code uses the physical sector size and the zvol code uses the
logical sector size.

Can you please verify that wd0 is such a disk ?



Home | Main Index | Thread Index | Old Index