Unix Technical Forum

hang at zpool status after drive removed, was Re: SVM newbie question ... testing mirror

This is a discussion on hang at zpool status after drive removed, was Re: SVM newbie question ... testing mirror within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> toby wrote: > terry433iid@yahoo.com wrote: > > I'm trying to put together a README for SVM (basic stuff). I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 09:45 AM
toby
 
Posts: n/a
Default hang at zpool status after drive removed, was Re: SVM newbie question ... testing mirror

toby wrote:
> terry433iid@yahoo.com wrote:
> > I'm trying to put together a README for SVM (basic stuff). I did some
> > messing with the metainit() commands to create metadevices....but have
> > no idea how to actually use
> > and test them. I just want to demonstrate how a RAID1 mirror works
> > (e.g. write
> > data to metadevice and then take one underlying disk offline to prove
> > the second disk has the data), ...

>
> I was thinking about something similar this week (fault injection so
> that I could simulate recovery). But I was reasonably satisfied by
> experiments such as
> - taking the submirrors on one disk offline
> - (pulling the disk)
> - replacing the disk later and putting the submirrors online again
> (Similar to a backup scenario. I have two questions for the gurus
> though - why isn't a "lockfs -f" recommended before metaoffline? I
> realise that lockfs on the root filesystem isn't a good idea, but
> doesn't "lockfs -f" just flush without taking a lock? The man page did
> not seem to clarify.)
>
> I also tried a "recovery" sequence, similar to:
> - detach submirrors
> - delete metadbs
> - (pull disk and replace)
> - format/layout slices
> - recreate metadbs
> - metareplace -e (my actual test used metadetach+metaclear before
> format, and metainit here)
> - metattach
>
> I need to redo the recovery test with a brand new disk.
>
> Corrections from SVM savants welcome. I now have to work out how a ZFS
> mirrored pool affects the recovery steps.


Okay, I see that if I want to remove a disk experimentally I can simply
offline that side of the pool's mirror - zpool offline. And if I'm
replacing a failed disk, zpool replace. (Offline failed mirror before
removing it?)

But in my tests, I found that after offline'ing the ZFS mirror, then
yanking the drive, the X2100 hangs at zpool status. Both of the SVM
mirrors were offlined before removing the drive. (Do I also need to
delete the metadbs from that drive before pulling it? I tried that too,
did not help.) Can an expert tell me what I'm missing here?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com