Updated zfs check (markdown)
33
zfs-check.md
33
zfs-check.md
@ -40,6 +40,10 @@ true 0 f490cefeec06ba345a5e53ec9814a9763a3330e9
|
|||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The 0 in this output means its the checksum of chunk zero of each file. Since the default chunksize is 100MB, all the small files in this example have just one chunk.
|
||||||
|
|
||||||
|
### Comparing with --check
|
||||||
|
|
||||||
The output of this can then be used as input on another zfs-check. In this example we detected an error:
|
The output of this can then be used as input on another zfs-check. In this example we detected an error:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -50,5 +54,34 @@ aa-enabled: Chunk 0 failed: c2a2be25e6c3a5d89005028ea37a61771489710a c2a2be25e6c
|
|||||||
|
|
||||||
It displays the expected sha1sum vs the actual sha1sum)
|
It displays the expected sha1sum vs the actual sha1sum)
|
||||||
|
|
||||||
|
## Using it on ZFS snapshots
|
||||||
|
|
||||||
|
You can just specify a snapshot of a volume or filesystem. zfs-check will mount it and check it just like the above examples. (Use `--debug` if you want to see how it does this.)
|
||||||
|
|
||||||
|
On a ZFS volume:
|
||||||
|
```
|
||||||
|
[root@pve1 ~]# zfs-check rpool/data/vm-101-disk-0@kantoor_offsite-20220308020453
|
||||||
|
0 87a193d73a27aceb38334eca51d180493c9a2348
|
||||||
|
1 92559a75e61b021e6a3a351a6b241d7440b79d55
|
||||||
|
2 6abb3ec919ccbe6ac36580cc43f34af80280ae18
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
On a ZFS dataset:
|
||||||
|
```
|
||||||
|
[root@pve1 ~]# zfs-check rpool/data/subvol-104-disk-0@kantoor_offsite-20220308020453
|
||||||
|
run/resolvconf/resolv.conf 0 c3f9736e9af7bd0885578859a50b205c8fa5fc8e
|
||||||
|
run/resolvconf/interface/original.resolvconf 0 c3f9736e9af7bd0885578859a50b205c8fa5fc8e
|
||||||
|
run/samba/names.tdb 0 3dddf16c3899dcf79c0beb636520cc58c86c4ef2
|
||||||
|
run/samba/gencache_notrans.tdb 0 7c1499d1a78a24d08dbeaeb7bf93ffdc0b0fac41
|
||||||
|
run/samba/mutex.tdb 0 3dddf16c3899dcf79c0beb636520cc58c86c4ef2
|
||||||
|
run/samba/upgrades/smb.conf 0 ffc2469dd94b7772c2f1689a43e5bacf62bdd0d1
|
||||||
|
run/samba/msg.lock/13960 0 21c27e175354df9df55b9b3d3500482b2ea99161
|
||||||
|
run/samba/msg.lock/6124 0 d6b22ab7ca0ac99d3d74eb58499ccfd2fc85c426
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user