zfsonlinux/zfs — Issue #586: zvol blocksize too small for device
Author: robfantini
Created: 2012-02-27 12:10:42+00:00
State: open

Hello
after following http://zfsonlinux.org/example-zvol.html , the filesystem won't mount:

---------------------------
zfs create -V 100G tank/fish

sfdisk -q /dev/zvol/tank/fish << EOF
> 0,
> EOF

Disk /dev/zvol/tank/fish: 208050 cylinders, 16 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/zvol/tank/fish: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/zvol/tank/fish1 0+ 208049 208050- 104857199+ 83 Linux
/dev/zvol/tank/fish2 0 - 0 0 0 Empty
/dev/zvol/tank/fish3 0 - 0 0 0 Empty
/dev/zvol/tank/fish4 0 - 0 0 0 Empty
Successfully wrote the new partition table

Re-reading the partition table ...

root@homenet-home10 ~ # mkfs.ext2 -q /dev/zvol/tank/fish-part1
/dev/zvol/tank/fish-part1 alignment is offset by 7680 bytes.
This may result in very poor performance, (re)-partitioning suggested.

root@homenet-home10 ~ # mkfs.ext2 -q /dev/zvol/tank/fish-part1
/dev/zvol/tank/fish-part1 alignment is offset by 7680 bytes.
This may result in very poor performance, (re)-partitioning suggested.

root@homenet-home10 ~ #
root@homenet-home10 ~ # mkdir -p /mnt/tank/fish-part1
root@homenet-home10 ~ # mount /dev/zvol/tank/fish-part1 /mnt/tank/fish-part1
mount: wrong fs type, bad option, bad superblock on /dev/zd16p1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@homenet-home10 ~ # dmesg | tail
zd0: p1
EXT2-fs: blocksize too small for device.
EXT2-fs: blocksize too small for device.
VFS: Can't find an ext2 filesystem on dev zd0p1.
zd16: unknown partition table
zd16: unknown partition table
zd16: p1
EXT2-fs: blocksize too small for device.
zd0: p1
EXT2-fs: blocksize too small for device.
---------------------------
If I did something wrong or more data is needed please let me know.

here is the 1-st part of zbd:

root@homenet-home10 ~ # zdb
tank:
version: 28
name: 'tank'
state: 0
txg: 4
pool_guid: 9796518975582185192
hostid: 2831157761
hostname: 'home10'
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 9796518975582185192
create_txg: 4
children[0]:
type: 'raidz'
id: 0
guid: 8603243422274574972
nparity: 1
metaslab_array: 31
metaslab_shift: 37
ashift: 12
asize: 15999795462144
is_log: 0
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 13266098471001962533
path: '/dev/sda1'
whole_disk: 1
create_txg: 4