Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  7 Sep 2010 21:25:01 -0500
From:      Pete Erickson <redlamb@redlamb.net>
To:        freebsd-questions@freebsd.org
Subject:   Exporting ZFS Pool
Message-ID:  <20100907212501.gt31sgaog0w4g4ko@imp.redlamb.net>

next in thread | raw e-mail | index | archive | help
I'm relatively new to ZFS and have been playing around with different =20
file-backed set ups to determine how I will eventually configure my =20
pools. I've recently come across a problem with exporting a pool, but =20
I'm not sure if it's a bug or just my poor understanding of ZFS. I =20
create a simple pool using 2 128MB files. After exporting the pool, I =20
am unable to import it and the pool is not found by the zpool command. =20
Any advise would be appreciated. I'm currently running 8.1 STABLE.

ratchet# dd if=3D/dev/zero of=3D/disk1.dd bs=3D1m count=3D128
128+0 records in
128+0 records out
134217728 bytes transferred in 2.852547 secs (47051891 bytes/sec)
ratchet# dd if=3D/dev/zero of=3Ddisk2.dd bs=3D1m count=3D128
128+0 records in
128+0 records out
134217728 bytes transferred in 2.740976 secs (48967128 bytes/sec)
ratchet# zpool create pool /usr/tmp/disk1.dd /usr/tmp/disk2.dd
ratchet# zpool list
NAME   SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
pool   246M    75K   246M     0%  ONLINE  -
ratchet# zpool status
   pool: pool
  state: ONLINE
  scrub: none requested
config:

=09NAME                 STATE     READ WRITE CKSUM
=09pool                 ONLINE       0     0     0
=09  /usr/tmp/disk1.dd  ONLINE       0     0     0
=09  /usr/tmp/disk2.dd  ONLINE       0     0     0

errors: No known data errors
ratchet# zpool export pool
ratchet# zpool import -d .

If I then attempt to recreate the pool, I get an error indicating that =20
one of the files is a part of an exported pool.

ratchet# zpool create z /usr/tmp/disk1.dd /usr/tmp/disk2.dd
invalid vdev specification
use '-f' to override the following errors:
/usr/tmp/disk1.dd is part of exported pool 'pool'

--=20
Pete Erickson
redlamb _at_ redlamb _dot_ net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100907212501.gt31sgaog0w4g4ko>