Register a domain and help support LQ
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.


  Search this Thread
Old 03-16-2012, 11:44 AM   #1
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Break ZFS Mirror

Hi guys is it possible to break a ZFS mirror, im testing to remove mirror with fool1 and fool2.

bash-3.00# zpool status
  pool: zfspool
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
 scrub: resilver completed after 0h0m with 0 errors on Fri Mar 16 23:34:21 2012

        NAME           STATE     READ WRITE CKSUM
        zfspool        ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            /zfsfool2  ONLINE       0     0    24  66.5K resilvered
            /zfsfool1  ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            /zfsfool   ONLINE       0     0     0
            /zfsfool3  ONLINE       0     0     0

errors: No known data errors
Old 03-18-2012, 09:49 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,571

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
It is possible to break a mirror as long as there is still a copy of the data.

You can for example remove zfsfool1 for the first mirror and zfsfool3 from the second one:
zpool detach /zfsfool1 zfspool
zpool detach /zfsfool3 zfspool
However, you can't remove both zfsfool1 and zfsfool2 as they hold non redundant data.
Old 03-19-2012, 07:59 AM   #3
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
ok... now thats clear.. thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Article ZFS data integrity testing and more random ZFS thoughts. LXer Syndicated Linux News 0 05-15-2010 01:51 PM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 06:33 PM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 05:13 AM
break raid1 mirror hoover93 Linux - Software 0 10-05-2005 11:55 AM
How to Break a Highpoint Mirror killerfish Linux - General 5 02-12-2003 09:24 PM

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration