Software >> OS >> Unix >> Solaris >> How to recover corrupted files in zfs pool

Still in DRAFT

symptom:

# zpool status -v <poolname>

will show a list of file(s) with permanent error.

boot from Solaris CDROM, exit the installer to get to shell prompt

# zpool import <poolname>

# zfs list

# zfs set mountpoint=/mnt dataset

e.g.

# zfs set mountpoint=/mnt rpool/ROOT/Solaris10_6

# zfs mount

this will mount the filesystem into /mnt

plumb up network interface on the machine and connect it to another server to copy the uncorrupted file

use ftp to get the files and deposit into /mnt/path-to-corrupted-file

if necessary set ACL where necessary

reboot the machine

try clearing the error

# zpool clear <poolname>

check the file whether still corrupted.