Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2010 13:17:08 -0500
From:      Pete Erickson <redlamb@redlamb.net>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        questions@freebsd.org
Subject:   Re: Exporting ZFS Pool
Message-ID:  <20100908181708.GA15884@does.not.exist>
In-Reply-To: <20100908164908.GA89940@dan.emsphone.com>
References:  <20100907212501.gt31sgaog0w4g4ko@imp.redlamb.net> <4C872B17.3020606@cyberleo.net> <20100908093648.1vt3q2ut4wkk0g0g@imp.redlamb.net> <20100908164908.GA89940@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
** Dan Nelson <dnelson@allantgroup.com> [2010-09-08 11:49:08 -0500] **
> In the last episode (Sep 08), Pete Erickson said:
> > On Wed Sep  8 01:20:07 2010, CyberLeo Kitsana <cyberleo@cyberleo.net> wrote:
> > > On 09/07/2010 09:25 PM, Pete Erickson wrote:
> > >> I'm relatively new to ZFS and have been playing around with different
> > >> file-backed set ups to determine how I will eventually configure my
> > >> pools. I've recently come across a problem with exporting a pool, but
> > >> I'm not sure if it's a bug or just my poor understanding of ZFS. I
> > >> create a simple pool using 2 128MB files. After exporting the pool, I am
> > >> unable to import it and the pool is not found by the zpool command. Any
> > >> advise would be appreciated. I'm currently running 8.1 STABLE.
> > >
> > > Curious, neither can I (8.1-RELEASE):
> > >
> > > (f84104b2)[cyberleo@akisha /tmp/zp]$ truncate -s 256m d1 d2
> > > (f84104b2)[cyberleo@akisha /tmp/zp]$ sudo zpool create pool /tmp/zp/d1 /tmp/zp/d2
> 
> Try using mdconfig to attach these files as disk devices.  "mdconfig -a -t
> vnode -f /tmp/zp/d1" and "-f /tmp/zp/d2" (you'll get two md# devices), then
> see if the zpool import command is any happier.  It may be looking for disk
> devices and not files.

This seemed to work. I was able to export the pool and reimport it
without a problem. I'll use this for testing, however, correct me if I'm
wrong, but this should still work without attaching it as a disk device,
correct?

Prior to testing this, I tried using the the files again without
mounting and I received the error stating that it was missing one of the
files. It clearly identified disk1.dd as present, but was unable to find
disk2.dd.




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