zpool status
). Next I would run a scrub so ZFS will check all data and search for corruptions (zpool scrub rpool
).zpool status
again after scrub has finished to see if it encountered any errors. If your pool is a mirror or raidz it will be automatically repaired. If it is just a single disk/stripe or you aren't using ECC RAM ZFS can't do anything to repair it. In that case you might want to create a backup first (zfs send command or PVEs vzdump). You can move zvols by using "zfs send | zfs receive". I would only work with the copy to rescue stuff so you don't do more harm to the zvol.Done it with no errors... I am pretty desperate to get the data back from that machine and it got corrupted after a rebootFirst I would check if your pool is healthy (zpool status
). Next I would run a scrub so ZFS will check all data and search for corruptions (zpool scrub rpool
).
Runzpool status
again after scrub has finished to see if it encountered any errors. If your pool is a mirror or raidz it will be automatically repaired. If it is just a single disk/stripe or you aren't using ECC RAM ZFS can't do anything to repair it. In that case you might want to create a backup first (zfs send command or PVEs vzdump). You can move zvols by using "zfs send | zfs receive". I would only work with the copy to rescue stuff so you don't do more harm to the zvol.
You need to wait some hours/days for the scrub to finish. Only after that you will see if there are errors found.Scrub in process. 272 hours to go.
ok thanksYou need to wait some hours/days for the scrub to finish. Only after that you will see if there are errors found.
A zvol is a block device like physical harddisk. So you can't mount a zvol but use it as a device to mount the partitions and its filesystems that are stored on that zvol. You could for example create a new VM, add a new zvol with the same size, useDo you mean I could create a volume and mount it to extract data? Please laborate and THANKS A MILLION!
dd
to copy everything on block level from the old zvol to the new zvol, start the VM and try to mount it there.So if I understood correctly:A zvol is a block device like physical harddisk. So you can't mount a zvol but use it as a device to mount the partitions and its filesystems that are stored on that zvol. You could for example create a new VM, add a new zvol with the same size, usedd
to copy everything on block level from the old zvol to the new zvol, start the VM and try to mount it there.