Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-28 Thread Jean-Yves Avenard
Well

Today I added the log device:
zpool add pool log /dev/ada1s1 (8GB slice on a SSD Intel X25 disk)..

then added the cache (32GB)
zpool add pool cache /dev/ada1s2

So far so good.
zpool status - all good.

Reboot : it hangs

booted in single user mode, zpool status:
ZFS filesystem version 5
ZFS storage pool version 28

and that's it no more.. Just like before when I thought that removing
the log disk had failed.

This time no error nothing... just a nasty hang and unusable system again...

:(
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-28 Thread Jean-Yves Avenard
On 28 December 2010 08:56, Freddie Cash fjwc...@gmail.com wrote:

 Is that a typo, or the actual command you used?  You have an extra s
 in there.  Should be log and not logs.  However, I don't think
 that command is correct either.

 I believe you want to use the detach command, not remove.

 # zpool detach pool label/zil

well, I tried the detach command:

server4# zpool detach pool ada1s1
cannot detach ada1s1: only applicable to mirror and replacing vdevs

server4# zpool remove pool ada1s1
server4#

so you need to use remove, and adding log (or cache) makes no
difference whatsoever..
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-28 Thread Freddie Cash
On Tue, Dec 28, 2010 at 8:58 AM, Jean-Yves Avenard jyaven...@gmail.com wrote:
 On 28 December 2010 08:56, Freddie Cash fjwc...@gmail.com wrote:

 Is that a typo, or the actual command you used?  You have an extra s
 in there.  Should be log and not logs.  However, I don't think
 that command is correct either.

 I believe you want to use the detach command, not remove.

 # zpool detach pool label/zil

 well, I tried the detach command:

 server4# zpool detach pool ada1s1
 cannot detach ada1s1: only applicable to mirror and replacing vdevs

 server4# zpool remove pool ada1s1
 server4#

 so you need to use remove, and adding log (or cache) makes no
 difference whatsoever..

Interesting, thanks for the confirmation.  I don't have any ZFS
systems using log devices, so can only go by what's in the docs.

May want to make a note that the man page (at least for ZFSv15 in
FreeBSD 8.1) includes several sections that use zpool detach when
talking about log devices.

If that's still in the man page for ZFSv28, it'll need to be cleaned up.


-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-27 Thread Freddie Cash
On Sun, Dec 26, 2010 at 4:43 PM, Jean-Yves Avenard jyaven...@gmail.com wrote:
 On 27 December 2010 09:55, Jean-Yves Avenard jyaven...@gmail.com wrote:
 Hi there.

 I used stable-8-zfsv28-20101223-nopython.patch.xz from
 http://people.freebsd.org/~mm/patches/zfs/v28/

 I did the following:

 # zpool status
  pool: pool
  state: ONLINE
  scan: none requested
 config:

        NAME            STATE     READ WRITE CKSUM
        pool            ONLINE       0     0     0
          raidz1-0      ONLINE       0     0     0
            ada2        ONLINE       0     0     0
            ada3        ONLINE       0     0     0
            ada4        ONLINE       0     0     0
            ada5        ONLINE       0     0     0
            ada6        ONLINE       0     0     0
            ada7        ONLINE       0     0     0
        cache
          label/zcache  ONLINE       0     0     0

 errors: No known data errors

 so far so good

 [r...@server4 /pool/home/jeanyves_avenard]# zpool add pool log
 /dev/label/zil [r...@server4 /pool/home/jeanyves_avenard]# zpool
 status
  pool: pool
  state: ONLINE
  scan: none requested
 config:

        NAME            STATE     READ WRITE CKSUM
        pool            ONLINE       0     0     0
          raidz1-0      ONLINE       0     0     0
            ada2        ONLINE       0     0     0
            ada3        ONLINE       0     0     0
            ada4        ONLINE       0     0     0
            ada5        ONLINE       0     0     0
            ada6        ONLINE       0     0     0
            ada7        ONLINE       0     0     0
        logs
          label/zil     ONLINE       0     0     0
        cache
          label/zcache  ONLINE       0     0     0

 errors: No known data errors

 so far so good:

 # zpool remove pool logs label/zil
 cannot remove logs: no such device in pool

Is that a typo, or the actual command you used?  You have an extra s
in there.  Should be log and not logs.  However, I don't think
that command is correct either.

I believe you want to use the detach command, not remove.

# zpool detach pool label/zil

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-27 Thread Jean-Yves Avenard
Hi

On Tuesday, 28 December 2010, Freddie Cash fjwc...@gmail.com wrote:
 On Sun, Dec 26, 2010 at 4:43 PM, Jean-Yves Avenard jyaven...@gmail.com 
 wrote:
 On 27 December 2010 09:55, Jean-Yves Avenard jyaven...@gmail.com wrote:
 Hi there.

 I used stable-8-zfsv28-20101223-nopython.patch.xz from
 http://people.freebsd.org/~mm/patches/zfs/v28/

 I did the following:

 # zpool status
  pool: pool
  state: ONLINE
  scan: none requested
 config:

        NAME            STATE     READ WRITE CKSUM
        pool            ONLINE       0     0     0
          raidz1-0      ONLINE       0     0     0
            ada2        ONLINE       0     0     0
            ada3        ONLINE       0     0     0
            ada4        ONLINE       0     0     0
            ada5        ONLINE       0     0     0
            ada6        ONLINE       0     0     0
            ada7        ONLINE       0     0     0
        cache
          label/zcache  ONLINE       0     0     0

 errors: No known data errors

 so far so good

 [r...@server4 /pool/home/jeanyves_avenard]# zpool add pool log
 /dev/label/zil [r...@server4 /pool/home/jeanyves_avenard]# zpool
 status
  pool: pool
  state: ONLINE
  scan: none requested
 config:

        NAME            STATE     READ WRITE CKSUM
        pool            ONLINE       0     0     0
          raidz1-0      ONLINE       0     0     0
            ada2        ONLINE       0     0     0
            ada3        ONLINE       0     0     0
            ada4        ONLINE       0     0     0
            ada5        ONLINE       0     0     0
            ada6        ONLINE       0     0     0
            ada7        ONLINE       0     0     0
        logs
          label/zil     ONLINE       0     0     0
        cache
          label/zcache  ONLINE       0     0     0

 errors: No known data errors

 so far so good:

 # zpool remove pool logs label/zil
 cannot remove logs: no such device in pool

 Is that a typo, or the actual command you used?  You have an extra s
 in there.  Should be log and not logs.  However, I don't think
 that command is correct either.

 I believe you want to use the detach command, not remove.

 # zpool detach pool label/zil

 --
 Freddie Cash
 fjwc...@gmail.com


It was a typo, it should have been log (according to sun's doc). As it
was showing logs in the status I typed this.
According to sun, it zpool remove pool cache/log

A typo should have never resulted in what happened, showing an error
for sure; but zpool hanging and kernel panic?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-26 Thread Jean-Yves Avenard
On 27 December 2010 09:55, Jean-Yves Avenard jyaven...@gmail.com wrote:
 Hi there.

 I used stable-8-zfsv28-20101223-nopython.patch.xz from
 http://people.freebsd.org/~mm/patches/zfs/v28/

I did the following:

# zpool status
  pool: pool
 state: ONLINE
 scan: none requested
config:

NAMESTATE READ WRITE CKSUM
poolONLINE   0 0 0
  raidz1-0  ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0
ada4ONLINE   0 0 0
ada5ONLINE   0 0 0
ada6ONLINE   0 0 0
ada7ONLINE   0 0 0
cache
  label/zcache  ONLINE   0 0 0

errors: No known data errors

so far so good

[r...@server4 /pool/home/jeanyves_avenard]# zpool add pool log
/dev/label/zil [r...@server4 /pool/home/jeanyves_avenard]# zpool
status
  pool: pool
 state: ONLINE
 scan: none requested
config:

NAMESTATE READ WRITE CKSUM
poolONLINE   0 0 0
  raidz1-0  ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0
ada4ONLINE   0 0 0
ada5ONLINE   0 0 0
ada6ONLINE   0 0 0
ada7ONLINE   0 0 0
logs
  label/zil ONLINE   0 0 0
cache
  label/zcache  ONLINE   0 0 0

errors: No known data errors

so far so good:

# zpool remove pool logs label/zil
cannot remove logs: no such device in pool

^C

Great... now nothing respond..

Rebooting the box, I can boot in single user mode.
but doing zpool status give me:

ZFS filesystem version 5
ZFS storage pool version 28

and it hangs there forever...

What should I do :( ?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE: ARRRGG HELP !!

2010-12-26 Thread Jean-Yves Avenard
Rebooting in single-user mode.

zpool status pool
or spool scrub pool

hangs just the same ... and there's no disk activity either ...

Will download a liveCD of OpenIndiana, hopefully it will show me what's wrong :(

Jean-Yves
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org