Hi all,
I broke a gmirror that used to consist of two 12TB disks (ada2 + ada4). The UFS2 filesystem lived on /dev/mirror/mirror0.
After tearing down the mirror, the system recreated it once on reboot, I removed the metadata again, and now:
ada4p1 (the other half of the mirror) was overwritten as ZFS (freebsd-zfs partition), so only ada2p1 remains with UFS data.
It looks like the UFS superblock is intact, but the cylinder group / alternate superblock area is no longer readable, possibly due to geometry changes during the mirror break + a growfs attempt.
Questions:
I broke a gmirror that used to consist of two 12TB disks (ada2 + ada4). The UFS2 filesystem lived on /dev/mirror/mirror0.
After tearing down the mirror, the system recreated it once on reboot, I removed the metadata again, and now:
- ada2p1 still shows a valid UFS2 superblock (file -s looks normal, clean flag set)
- but mounting fails with:
mount: /dev/ada2p1: Input/output error - fsck_ufs -n can read the primary superblock but gives I/O errors trying to check it
- alternate superblocks are unreadable — fsck just prints their locations and exits
- geom mirror list shows no mirror now
- gpart show ada2 shows a normal 11TB freebsd-ufs partition
ada4p1 (the other half of the mirror) was overwritten as ZFS (freebsd-zfs partition), so only ada2p1 remains with UFS data.
It looks like the UFS superblock is intact, but the cylinder group / alternate superblock area is no longer readable, possibly due to geometry changes during the mirror break + a growfs attempt.
Questions:
- Is it possible to regenerate alternate superblocks or CG metadata from the valid primary?
- Is there a method to force UFS to walk the disk even if some CG headers are unreadable?
- did I lose all of my data?