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

cannot create '<pool>/<volume>': no such parent '<pool>' #2077

Closed
thehaven opened this issue Jan 24, 2014 · 3 comments
Closed

cannot create '<pool>/<volume>': no such parent '<pool>' #2077

thehaven opened this issue Jan 24, 2014 · 3 comments
Labels
Type: Building Indicates an issue related to building binaries
Milestone

Comments

@thehaven
Copy link

zfs list shows me that the pool exists, when I try and create an additional volume on the pool I get the message:

cannot create '<pool>/<volume>': no such parent '<pool>'

Not sure if this is related to: #46 or not but here are the details.

I have the latest zfs/spl from git both in userland tools and compiled into the kernel.
SPL: commit 4c99541
ZFS: commit 01b738f

I was previously using 0.6.2 but just upgraded to master.

Here's a run down of commands showing the existing volumes as well as what happens when I try and create a new volume:

root@dell01:~# zfs list
NAME                  USED  AVAIL  REFER  MOUNTPOINT
storage               436G  3.68T    41K  /storage
storage/frontdc02-0  30.9G  3.69T  18.1G  -
storage/frontdc02-1  10.3G  3.68T  7.78G  -
storage/mysql         215G  3.68T   215G  -
storage/pxeboot      51.6G  3.69T  33.1G  -
storage/services01   13.2G  3.68T  13.2G  -
storage/ubuntu       20.6G  3.70T  22.5K  -
storage/vhosts       37.7G  3.68T  37.7G  -
storage/web01        3.99G  3.68T  3.99G  -
storage/web02          16K  3.68T    16K  -
storage/windows7     51.6G  3.70T  29.2G  -
root@dell01:~# zfs create storage/test
cannot create 'storage/test': no such parent 'storage'
root@dell01:~# which zfs
/usr/local/sbin/zfs
root@dell01:~# ldd /usr/local/sbin/zfs
    linux-vdso.so.1 (0x00007fff44479000)
    libnvpair.so.1 => /usr/local/lib/libnvpair.so.1 (0x00007f48d2488000)
    libuutil.so.1 => /usr/local/lib/libuutil.so.1 (0x00007f48d2276000)
    libzpool.so.2 => /usr/local/lib/libzpool.so.2 (0x00007f48d1f46000)
    libzfs.so.2 => /usr/local/lib/libzfs.so.2 (0x00007f48d1d08000)
    libzfs_core.so.1 => /usr/local/lib/libzfs_core.so.1 (0x0000003a9c800000)
    libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x0000003ca2200000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000003ca1600000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x0000003ca1200000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000003ca0600000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x0000003ca2400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003ca0200000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000003ca0e00000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x0000003ca0a00000)
    libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x0000003ca2800000)
root@dell01:~# zpool list -v
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
storage  4.16T   350G  3.82T     8%  1.46x  ONLINE  -
  mirror  1.81T   202G  1.62T         -
    ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0123143-part1      -      -      -         -
    ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0123785-part1      -      -      -         -
  mirror  1.81T   124G  1.69T         -
    ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0110406-part1      -      -      -         -
    ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0057191-part1      -      -      -         -
  vol-storage--zfs   546G  24.3G   522G         -
root@dell01:~# which zpool
/usr/local/sbin/zpool
root@dell01:~# ldd /usr/local/sbin/zpool
    linux-vdso.so.1 (0x00007fff53f6a000)
    libnvpair.so.1 => /usr/local/lib/libnvpair.so.1 (0x00007f5f70d33000)
    libuutil.so.1 => /usr/local/lib/libuutil.so.1 (0x00007f5f70b21000)
    libzpool.so.2 => /usr/local/lib/libzpool.so.2 (0x00007f5f707f1000)
    libzfs.so.2 => /usr/local/lib/libzfs.so.2 (0x00007f5f705b3000)
    libzfs_core.so.1 => /usr/local/lib/libzfs_core.so.1 (0x0000003a9c800000)
    libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x0000003ca2800000)
    libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x0000003ca2200000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000003ca1600000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x0000003ca1200000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000003ca0600000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x0000003ca2400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003ca0200000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000003ca0e00000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2(0x0000003ca0a00000)

Any help appreciated, please let me know if you need additional info.

@dweeezil
Copy link
Contributor

Although your ``ldd` output looks OK at first glance, this exact error is what you expect to get when the userland and kernel modules are mismatched or you've got stale shared libraries laying around.

Since you've apparently compiled the code yourself, go into the build directory and try running cmd/zfs/zfs create <pool>/<fs>. If that fails, your kernel module is out of sync. If it works, your installed programs and libraries are out of sync.

@thehaven
Copy link
Author

Looks like for some reason when I run make install for the userland utilieis its not copying the updated zfs binary into place. Manually copying it fixed the issue. I'll close this for now as its likely something I've missed in the build process.

Thanks for the helpful feedback.

@behlendorf
Copy link
Contributor

@thehaven Remember the default --prefix for configure is /usr/local, make sure you run ./configure --prefix=/usr if your just doing a 'make install' on your system and not using the packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

No branches or pull requests

3 participants