Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2012 17:33:39 +0200
From:      Karolis Eigelis <karolis.eigelis@gmail.com>
To:        Matthias Fechner <idefix@fechner.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ZFS and zpool mistake
Message-ID:  <CA%2BcNU31T2j2WCJeFMJRd_VXRYA193u8=xFu_y%2BS3nNTbaxScTg@mail.gmail.com>
In-Reply-To: <5072F16A.70505@fechner.net>
References:  <5072F16A.70505@fechner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
if you want a mirror you need to do "attach" a new disk :)

On Mon, Oct 8, 2012 at 5:29 PM, Matthias Fechner <idefix@fechner.net> wrote:

> Dear list,
>
> I installed a freebsd with freebsd on a zfs root and only one disk:
>   pool: zroot
>  state: ONLINE
>   scan: none requested
> config:
>
>         NAME         STATE     READ WRITE CKSUM
>         zroot        ONLINE       0     0     0
>           ada0p3     ONLINE       0     0     0
>
> This disk was now insterted into the computer and boots fine.
> The next step I wanted was to setup a mirror with a second disk.
>
> So I inserted a second disk, configured everything with gpart and added
> the disk to the zroot with:
> zpool add zroot gpt/disk1
> (I think I had to execute zpool add zroot mirror gpt/disk1, this is not
> clear from the man page)
>
> And now I have a problem, it seems not to be a mirror but a stripe:
>         NAME         STATE     READ WRITE CKSUM
>         zroot        ONLINE       0     0     0
>           ada0p3     ONLINE       0     0     0
>           gpt/disk1  ONLINE       0     0     0
>
> Is there any chance to get it into a mirror?
>
> I don't think there was anything written to the second disk but I cannot
> remove it anymore.
>
> Has anyone a tip for me, howto convert the stripe to a mirror?
>
> Thanks,
> Matthias
>
> --
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs, and the universe trying to
> produce bigger and better idiots. So far, the universe is winning." --
> Rich Cook
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BcNU31T2j2WCJeFMJRd_VXRYA193u8=xFu_y%2BS3nNTbaxScTg>