LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-16-2012, 10:44 AM   #1
SBN
Member
 
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.

Code:
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'.
   see: http://www.sun.com/msg/ZFS-8000-9P
 scrub: resilver completed after 0h0m with 0 errors on Fri Mar 16 23:34:21 2012
config:

        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
bash-3.00#
 
Old 03-18-2012, 08:49 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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:
Code:
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, 06:59 AM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

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


Reply


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 12:51 PM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM
break raid1 mirror hoover93 Linux - Software 0 10-05-2005 10:55 AM
How to Break a Highpoint Mirror killerfish Linux - General 5 02-12-2003 08:24 PM


All times are GMT -5. The time now is 07:40 PM.

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