Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird bug in creating pool #5075

Closed
luxflow opened this issue Sep 8, 2016 · 3 comments
Closed

weird bug in creating pool #5075

luxflow opened this issue Sep 8, 2016 · 3 comments

Comments

@luxflow
Copy link

luxflow commented Sep 8, 2016

zpool create -m "/media/test" "test" raidz1 ata-QEMU_HARDDISK_QM00004 ata-QEMU_HARDDISK_QM00003 ata-QEMU_HARDDISK_QM00002 ata-QEMU_HARDDISK_QM00001 && zpool export test && zpool import test not works
zpool create "test" raidz1 ata-QEMU_HARDDISK_QM00004 ata-QEMU_HARDDISK_QM00003 ata-QEMU_HARDDISK_QM00002 ata-QEMU_HARDDISK_QM00001 && zpool export test && zpool import test works
only difference is changing mountpoint

If you curious why I export and import after create
It is because there is issue, when create new pool, blkid dosen't show properly. so I have to fix that with export and import

version info
ii debian-zfs 7~jessie amd64 Native ZFS filesystem metapackage for Debian.
ii libzfs2 0.6.5.7-8-jessie amd64 Native ZFS filesystem library for Linux
ii openmediavault-zfs 3.0.3 amd64 OpenMediaVault plugin for ZFS
ii zfs-dkms 0.6.5.7-8-jessie all Native ZFS filesystem kernel modules for Linux
ii zfsonlinux 8 all archive.zfsonlinux.org trust package
ii zfsutils 0.6.5.7-8-jessie amd64 command-line tools to manage ZFS filesystems

@kingneutron
Copy link

--Using a slightly different test environment (vmware workstation 11.1.4 for Linux) and Ubuntu 16.04.1--LTS-64, I do not get an error when doing virtually the same command:

$ zpool create -m "/media/test" "test" raidz1
pci-0000:02:05.0-scsi-0:0:0:0 pci-0000:02:05.0-scsi-0:0:1:0 pci-0000:02:05.0-scsi-0:0:2:0 pci-0000:02:05.0-scsi-0:0:3:0

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
zmirpool1/dvcompr 1332864 128 1332736 1% /zmirpool1/dvcompr
test 3514112 0 3514112 0% /media/test

--Package version:
ii zfsutils-linux 0.6.5.6-0ubuntu12 amd64 Native OpenZFS management utilities for Linux

--Kernel:
$ uname -a
Linux xubuntu1604zfsvm 4.4.0-36-generic #55-Ubuntu SMP

--I pre-labeled the disks with a GPT label (even re-using disks from a previous test pool after running 'zpool labelclear' on them) and it worked fine... vSCSI Disk size is 1200MB, I have 2GB RAM and 2 vCPUs allocated to the VM.

(example commandline GPT label)
$ parted -s /dev/disk/by-path/pci-0000:02:05.0-scsi-0:0:0:0 mklabel gpt || exit 99

--In fact, I replicated your exact command to the best of my ability and even threw in some debugging, and it is working fine for me:

zpool create -m "/media/test" "test" raidz1 pci-0000:02:05.0-scsi-0:0:0:0 pci-0000:02:05.0-scsi-0:0:1:0 pci-0000:02:05.0-scsi-0:0:2:0 pci-0000:02:05.0-scsi-0:0:3:0 && echo '1' && zpool export test && echo '2' && zpool import test && echo '3'

1
2
3

--The only thing I can think of to recommend is that you try:
a) Ubuntu 14.04 or 16.04 instead of Debian, and/or
b) Vmware Player (free) or Virtualbox (free) instead of Qemu...

@luxflow
Copy link
Author

luxflow commented Sep 9, 2016

After trying Ubuntu 16.04 with same hypervisor (qemu) (only os change)
It works..
but I'm not sure what is the cause
here are, cause I can think
debian (os change) or zfs-package change(debian 0.6.5.7, ubuntu 0.6.5.6) or kernel change(debian backports use 4.6, ubuntu use 4.4)

@loli10K
Copy link
Contributor

loli10K commented Aug 17, 2017

only difference is changing mountpoint

Likey caused by a non-empty mountpoint, closing.

@loli10K loli10K closed this as completed Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants