1

I have a server running ZFS with a ZIL log device. We had a failing drive that I had to replace and the tech that was on-site unplugged the ZIL drive.

I cleared the device but I can't seem to figure out how to reconnect it to the array.

It still says faulted and the array is now in a degraded state of course.

Do I have to export and import the pool?

Is there a better way to reconnect the log device?

2
  • 1
    Can you zpool status -v?
    – ewwhite
    Feb 1, 2017 at 1:02
  • How about hardware details... OS version, etc.
    – ewwhite
    Feb 1, 2017 at 2:01

1 Answer 1

2

From the Solaris Sysadmin guide:

If a separate log device is not mirrored and the device that contains the log fails, storing log blocks reverts to the storage pool.

Log devices can be added, replaced, attached, detached, imported, and exported as part of the larger storage pool. Log devices can be removed starting in the Solaris 10 9/10 release.

So, do as you would normally. Either replace the device with itself

# zpool replace tank c0t0d0 c0t0d0

or remove and add it again:

# zpool remove tank c0t0d0
# zpool add tank log c0t0d0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .