Can't remove logs device

All your general support questions for OpenZFS on OS X.

Can't remove logs device

Postby shuman » Fri Oct 24, 2014 10:10 pm

Log device does not exist anymore, but can't remove it.

Imported pool:
Code: Select all
zpool import -m zdata


Mirrored drives are fine but shows degraded because missing log device:
Code: Select all
  pool: zdata
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
   the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://zfsonlinux.org/msg/ZFS-8000-2Q
  scan: scrub in progress since Sat Oct 25 00:50:11 2014
    166M scanned out of 2.02T at 501K/s, (scan is slow, no estimated time)
    0 repaired, 0.01% done
config:

   NAME                   STATE     READ WRITE CKSUM
   zdata                  DEGRADED     0     0     0
     mirror-0             ONLINE       0     0     0
       disk13             ONLINE       0     0     0
       disk12             ONLINE       0     0     0
   logs
     6032876532717154055  UNAVAIL      0     0     0  was /dev/disk5s6


I've tried to remove the log device two ways:
Code: Select all
cwmacmini:Extensions chris$ sudo zpool remove zdata 6032876532717154055
cannot remove 6032876532717154055: pool already exists


And:
Code: Select all
cwmacmini:Extensions chris$ sudo zpool remove zdata /dev/disk5s6
cannot remove /dev/disk5s6: pool already exists


Same error message both times. Any ideas on how to remove?
shuman
 
Posts: 4
Joined: Thu Mar 13, 2014 12:10 pm

Re: Can't remove logs device

Postby shuman » Sun Nov 23, 2014 8:18 pm

Bueller. . . Bueller. . .
shuman
 
Posts: 4
Joined: Thu Mar 13, 2014 12:10 pm

Re: Can't remove logs device

Postby keithws » Sun Oct 11, 2015 9:17 pm

Did you ever find a solution to this?
keithws
 
Posts: 1
Joined: Sun Oct 11, 2015 9:15 pm

Re: Can't remove logs device

Postby nathansvt » Sat Oct 17, 2015 11:39 am

I ran into this problem and had to use the slash syntax found here:

http://ntmatter.livejournal.com/10276.html
nathansvt
 
Posts: 10
Joined: Mon Jan 19, 2015 10:25 am

Re: Can't remove logs device

Postby ilovezfs » Sat Oct 24, 2015 5:49 am

nathansvt wrote:I ran into this problem and had to use the slash syntax found here:

http://ntmatter.livejournal.com/10276.html

@nathansvt, actually, I think that guy's just doing it wrong:

Code: Select all
Josephs-MacBook-Pro:~ joe$ zpool status
  pool: foo
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
   the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://zfsonlinux.org/msg/ZFS-8000-2Q
  scan: resilvered 0 in 0h0m with 0 errors on Sat Oct 24 06:37:59 2015
config:

   NAME                      STATE     READ WRITE CKSUM
   foo                       DEGRADED     0     0     0
     /Users/joe/foo.bin      ONLINE       0     0     0
   logs
     mirror-1                UNAVAIL      0     0     0  insufficient replicas
       14514836607979344086  UNAVAIL      0     0     0  was /Users/joe/foolog.bin
       11068523132937747915  UNAVAIL      0     0     0  was /Users/joe/foolog2.bin

errors: No known data errors
Josephs-MacBook-Pro:~ joe$ sudo zpool remove foo 14514836607979344086
cannot remove 14514836607979344086: operation not supported on this type of pool
Josephs-MacBook-Pro:~ joe$ sudo zpool remove foo 11068523132937747915
cannot remove 11068523132937747915: operation not supported on this type of pool
Josephs-MacBook-Pro:~ joe$ sudo zpool remove foo mirror-1
Josephs-MacBook-Pro:~ joe$ zpool status
  pool: foo
 state: ONLINE
  scan: resilvered 0 in 0h0m with 0 errors on Sat Oct 24 06:37:59 2015
config:

   NAME                  STATE     READ WRITE CKSUM
   foo                   ONLINE       0     0     0
     /Users/joe/foo.bin  ONLINE       0     0     0

errors: No known data errors
Josephs-MacBook-Pro:~ joe$

The correct syntax, as you can see, is 'sudo zpool remove foo mirror-1' to remove them both at once, which is exactly what the man page says: "A mirrored log device can be removed by specifying the top-level mirror for the log."

@shumancw but I'm not sure why you're seeing "pool already exists." Did you figure out why?
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 31 guests