Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Eric Schrock
On Thu, Sep 13, 2007 at 07:54:12PM +0100, Peter Tribble wrote:
> 
> Hm. I tried this earlier, and it didn't work. (Pretty much the first thing
> I tried). Something like 'no such pool' when I tried the export.
> 
> However, I just tried again and it worked. But I have been poking at it and
> it's had a reboot or two along the way.
> 
> So thanks - I have my data back!
> 
> There must be a better way of handling this. It should have just
> brought it online first time around, without all the fiddling around
> (that feels like voodoo to me).

Yes, the devid should have prevented this from occurring in the first
place.  One interesting thing would be to run 'zdb -C' and see if the
devid of the disk is now different from the email you sent previously.

- Eric

--
Eric Schrock, Solaris Kernel Development   http://blogs.sun.com/eschrock
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Peter Tribble
On 9/13/07, Eric Schrock <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 13, 2007 at 07:54:12PM +0100, Peter Tribble wrote:
> >
> > There must be a better way of handling this. It should have just
> > brought it online first time around, without all the fiddling around
> > (that feels like voodoo to me).
>
> Yes, the devid should have prevented this from occurring in the first
> place.  One interesting thing would be to run 'zdb -C' and see if the
> devid of the disk is now different from the email you sent previously.

It is. Previously:

guid=12723054067535078074
path='/dev/dsk/c1t0d0s7'
devid='id1,[EMAIL PROTECTED]/h'

whereas now:

guid=12723054067535078074
path='/dev/dsk/c1t0d0s7'
devid='id1,[EMAIL PROTECTED]/h'

So everything looks the same but the devid has changed. Is this
a consequence of having changed the raid controller?

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Asif Iqbal
zpool import -a -f should do the trick

On 9/13/07, Peter Tribble <[EMAIL PROTECTED]> wrote:
> On 9/13/07, Eric Schrock <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 13, 2007 at 06:36:33PM +0100, Peter Tribble wrote:
> > >
> > > Doesn't work. (How can you export something that isn't imported
> > > anyway?)
> > >
> >
> > The pool is imported, or else 'zpool status' wouldn't show it at all.
> > It's just faulted.  So when you say "doesn't work", does that mean that
> > the "zpool export" failed, or that it doesn't find the pool when doing
> > the subsequent "zpool import"?
>
> Hm. I tried this earlier, and it didn't work. (Pretty much the first thing
> I tried). Something like 'no such pool' when I tried the export.
>
> However, I just tried again and it worked. But I have been poking at it and
> it's had a reboot or two along the way.
>
> So thanks - I have my data back!
>
> There must be a better way of handling this. It should have just
> brought it online first time around, without all the fiddling around
> (that feels like voodoo to me).
>
> --
> -Peter Tribble
> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
> ___
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Peter Tribble
On 9/13/07, Eric Schrock <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 13, 2007 at 06:36:33PM +0100, Peter Tribble wrote:
> >
> > Doesn't work. (How can you export something that isn't imported
> > anyway?)
> >
>
> The pool is imported, or else 'zpool status' wouldn't show it at all.
> It's just faulted.  So when you say "doesn't work", does that mean that
> the "zpool export" failed, or that it doesn't find the pool when doing
> the subsequent "zpool import"?

Hm. I tried this earlier, and it didn't work. (Pretty much the first thing
I tried). Something like 'no such pool' when I tried the export.

However, I just tried again and it worked. But I have been poking at it and
it's had a reboot or two along the way.

So thanks - I have my data back!

There must be a better way of handling this. It should have just
brought it online first time around, without all the fiddling around
(that feels like voodoo to me).

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Solaris
Ok, I guess I misunderstood the status of your pool.  If you can do a zpool
status then your zpool is configured, and should be exportable, even if the
pool is inoperable, right?  If you do a zpool status and it says no pools
available (just like the zpool import command you had shown), then my
suggestion would not be applicable to your situation.

On 9/13/07, Peter Tribble <[EMAIL PROTECTED]> wrote:
>
> On 9/13/07, Solaris <[EMAIL PROTECTED]> wrote:
> > Try exporting the pool then import it.  I have seen this after moving
> disks
> > between systems, and on a couple of occasions just rebooting.
>
> Doesn't work. (How can you export something that isn't imported
> anyway?)
>
> --
> -Peter Tribble
> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
>
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Marion Hakanson
[EMAIL PROTECTED] said:
> # zpool clear storage
> cannot open 'storage': pool is unavailable
> 
> Bother... 

Greetings,

It looks to me like maybe the device names changed with the controller
swap you mentioned.  Possibly the "new" device has not been fully
recognized by the OS yet.  Maybe a "cfgadm -al" will trigger a rescan
of disk devices, and/or show if anything is awry.

Once you've confirmed that the OS actually sees the disks, you might
try removing /etc/zfs/zpool.cache and then doing "zpool import".

Regards,

Marion


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Eric Schrock
On Thu, Sep 13, 2007 at 06:36:33PM +0100, Peter Tribble wrote:
> 
> Doesn't work. (How can you export something that isn't imported
> anyway?)
> 

The pool is imported, or else 'zpool status' wouldn't show it at all.
It's just faulted.  So when you say "doesn't work", does that mean that
the "zpool export" failed, or that it doesn't find the pool when doing
the subsequent "zpool import"?

- Eric

--
Eric Schrock, Solaris Kernel Development   http://blogs.sun.com/eschrock
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Peter Tribble
On 9/13/07, Mike Lee <[EMAIL PROTECTED]> wrote:
>
>  have you tried zpool clear?
>

Not yet. Let me give it a try:

# zpool clear storage
cannot open 'storage': pool is unavailable

Bother...

Thanks anyway!

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Mike Lee

have you tried zpool clear?

Peter Tribble wrote:

On 9/13/07, Solaris <[EMAIL PROTECTED]> wrote:
  

Try exporting the pool then import it.  I have seen this after moving disks
between systems, and on a couple of occasions just rebooting.



Doesn't work. (How can you export something that isn't imported
anyway?)

  


--
  * Michael Lee *
Area System Support Engineer

*Sun Microsystems, Inc.*
Phone x40782 / 866 877 8350
Email [EMAIL PROTECTED]


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Peter Tribble
On 9/13/07, Solaris <[EMAIL PROTECTED]> wrote:
> Try exporting the pool then import it.  I have seen this after moving disks
> between systems, and on a couple of occasions just rebooting.

Doesn't work. (How can you export something that isn't imported
anyway?)

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How do I get my pool back?

2007-09-13 Thread Solaris
Try exporting the pool then import it.  I have seen this after moving disks
between systems, and on a couple of occasions just rebooting.

On 9/13/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Date: Thu, 13 Sep 2007 15:19:02 +0100
> From: "Peter Tribble" <[EMAIL PROTECTED]>
> Subject: [zfs-discuss] How do I get my pool back?
> To: zfs-discuss@opensolaris.org
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> After having to replace an internal raid card in an X2200 (S10U3 in
> this case), I can see the disks just fine - and can boot, so the data
> isn't completely missing.
>
> However, my zpool has gone.
>
> # zpool status -x
>   pool: storage
> state: FAULTED
> status: One or more devices could not be opened.  There are insufficient
> replicas for the pool to continue functioning.
> action: Attach the missing device and online it using 'zpool online'.
>see: http://www.sun.com/msg/ZFS-8000-D3
> scrub: none requested
> config:
>
> NAMESTATE READ WRITE CKSUM
> storage UNAVAIL  0 0 0  insufficient replicas
>   c1t0d0s7  UNAVAIL  0 0 0  cannot open
>
> Note that this is just a slice on my boot drive. So the device
> is physically accessible.
>
> How do I get my pool back?
>
> (And how can this sort of thing happen?)
>
> # zpool import
> no pools available to import
>
> # zdb
> storage
> version=3
> name='storage'
> state=0
> txg=4
> pool_guid=2378224617566178223
> vdev_tree
> type='root'
> id=0
> guid=2378224617566178223
> children[0]
> type='disk'
> id=0
> guid=12723054067535078074
> path='/dev/dsk/c1t0d0s7'
> devid='id1,[EMAIL PROTECTED]/h'
> whole_disk=0
> metaslab_array=13
> metaslab_shift=32
> ashift=9
> asize=448412778496
>
>
> --
> -Peter Tribble
> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
>
>
>
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] How do I get my pool back?

2007-09-13 Thread Peter Tribble
After having to replace an internal raid card in an X2200 (S10U3 in
this case), I can see the disks just fine - and can boot, so the data
isn't completely missing.

However, my zpool has gone.

# zpool status -x
  pool: storage
 state: FAULTED
status: One or more devices could not be opened.  There are insufficient
replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-D3
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
storage UNAVAIL  0 0 0  insufficient replicas
  c1t0d0s7  UNAVAIL  0 0 0  cannot open

Note that this is just a slice on my boot drive. So the device
is physically accessible.

How do I get my pool back?

(And how can this sort of thing happen?)

# zpool import
no pools available to import

# zdb
storage
version=3
name='storage'
state=0
txg=4
pool_guid=2378224617566178223
vdev_tree
type='root'
id=0
guid=2378224617566178223
children[0]
type='disk'
id=0
guid=12723054067535078074
path='/dev/dsk/c1t0d0s7'
devid='id1,[EMAIL PROTECTED]/h'
whole_disk=0
metaslab_array=13
metaslab_shift=32
ashift=9
asize=448412778496


-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss