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

zpool missing #1957

Closed
lidaof opened this issue Dec 11, 2013 · 3 comments
Closed

zpool missing #1957

lidaof opened this issue Dec 11, 2013 · 3 comments
Labels
Type: Documentation Indicates a requested change to the documentation
Milestone

Comments

@lidaof
Copy link

lidaof commented Dec 11, 2013

Dears,

In the issue I reported before, I encountered frequent 'list directory hang' problem of my file system, so I tried some fix by myself. (I think some of the steps might be stupid, and I wish I didn't do that)

I switched to use daily PPA, ran following command:

add-apt-repository ppa:zfs-native/daily
apt-get remove zfs-dkms
apt-get install zfs-dkms ubuntu-zfs

After reboot, my zpool was missing:

zpool status

no pools available

zpool import

failed to read pool configuration: bad address

Then I re-installed zfs support.
apt-get install --reinstall linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic
dkms status
dkms remove -m zfs -v 0.6.2 --all
dkms remove -m spl -v 0.6.2 --all
dkms add -m spl -v 0.6.2
dkms add -m zfs -v 0.6.2
dkms install -m spl -v 0.6.2
dkms install -m zfs -v 0.6.2
dkms status

I am using 0.6.2 zfs:

dkms status

spl, 0.6.2, 3.2.0-23-generic, x86_64: installed
zfs, 0.6.2, 3.2.0-23-generic, x86_64: installed

I am using Ubuntu 12.04:

uname -a

3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

zpool import -D gives no output.
There is no file '/etc/zfs/zpool.cache'

Any solutions? Thanks a lot.

@solarmicrobe
Copy link

I'm having a simlar problem.

My setup is a gentoo 3.6.11 VM on a VMWare ESXi host. It's been working good since I set it up (except it wouldn't import on start up, had to zpool import -f data).

zpool list

no pools available

zpool import data

cannot import 'data': no such pool available

/etc/init.d/zfs start

  • WARNING: zfs has already been started

/etc/init.d/zfs restart

  • WARNING: you are stopping a boot service
  • Unmounting ZFS filesystems ... [ ok ]
  • Starting ZFS ...
  • Checking if zfs userspace tools present
  • Importing ZFS pools
  • Mounting ZFS filesystems
    failed to read pool configuration: bad address
  • Exporting ZFS filesystems

zpool import -D

uname -a

Linux singularity 3.6.11-gentoo #1 SMP Fri Jan 25 13:11:49 CST 2013 x86_64 Quad-Core AMD Opteron(tm) Processor 2356 AuthenticAMD GNU/Linux

modinfo zfs

filename: /lib/modules/3.6.11-gentoo/addon/zfs/zfs/zfs.ko
license: CDDL
author: Sun Microsystems/Oracle, Lawrence Livermore National Laboratory
description: ZFS
depends: spl,znvpair,zcommon,zunicode,zavl
vermagic: 3.6.11-gentoo SMP mod_unload modversions

Restart again

/etc/init.d/zfs restart

  • WARNING: you are stopping a boot service
  • Unmounting ZFS filesystems ... [ ok ]
  • Starting ZFS ...
  • Checking if zfs userspace tools present
  • Importing ZFS pools
  • Mounting ZFS filesystems
  • Exporting ZFS filesystems

Reinstall

[ebuild R *] sys-fs/zfs-9999 USE="rootfs -bash-completion -custom-cflags -debug (-kernel-builtin) (-selinux) -static-libs -test-suite" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" 0 kB

Reboot

Successful with same results... no pools to import. Of note, I have and still list /etc/zfs/zpool.cache

parted -l

parted -l
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 135MB 134MB primary ext2
2 135MB 672MB 537MB primary linux-swap(v1)
3 672MB 17.2GB 16.5GB primary ext4

Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 34.4GB 34.4GB zfs zfs
9 34.4GB 34.4GB 8372kB Solaris Reserved 1

Model: VMware Virtual disk (scsi)
Disk /dev/sdc: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 34.4GB 34.4GB zfs zfs
9 34.4GB 34.4GB 8372kB Solaris Reserved 1

Model: VMware Virtual disk (scsi)
Disk /dev/sdd: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 34.4GB 34.3GB zfs zfs
9 34.4GB 34.4GB 8389kB Solaris Reserved 1

@FransUrbo
Copy link
Contributor

This might be due to #2145.

@behlendorf
Copy link
Contributor

Closing this was very likely caused by #2145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Indicates a requested change to the documentation
Projects
None yet
Development

No branches or pull requests

4 participants