Hello Community ,
last year I had a drive failure and I just replaced the disk and for me everything was ok. Yesterday I tried did a update to freebsd13 but after the update I was not able to import my Storage Pool.
I did a rollback to 12.2 and luckily my Storage Pool mounted successfully , but zpool list -v shows a weird status.
What I don't understand how my pool actually work at the moment.
It looks like that ada2 is in raidz1 , but geli was not able to encrypt the drive , so gpart is not able to see the partition table .
Still
How to deal with this situation ?
I would remove /dev/ada2 from raidz1
Wipe it and start from scratch ?
last year I had a drive failure and I just replaced the disk and for me everything was ok. Yesterday I tried did a update to freebsd13 but after the update I was not able to import my Storage Pool.
Code:
freebsd# geli attach -k /root/geli.key /dev/ada2
geli: Cannot read metadata from /dev/ada2: Invalid argument.
geli: There was an error with at least one provider.
freebsd# geli attach -j -k /root/geli.key /dev/ada2
geli: Cannot read metadata from /root/geli.key: Inappropriate file type or format.
geli: Cannot read metadata from /dev/ada2: Invalid argument.
geli: There was an error with at least one provider.
freebsd# geli attach -j - -k /root/geli.key /dev/ada2
geli: Cannot read metadata from /dev/ada2: Invalid argument.
geli: There was an error with at least one provider.
freebsd# gpart show ada2
gpart: No such geom: ada2.
I did a rollback to 12.2 and luckily my Storage Pool mounted successfully , but zpool list -v shows a weird status.
What I don't understand how my pool actually work at the moment.
Code:
╰─ zpool list -v
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Storage 10.9T 7.60T 3.27T - - 10% 69% 1.00x ONLINE -
raidz1 10.9T 7.60T 3.27T - - 10% 69.9%
ada2 - - - - - - -
ada3p2.eli - - - - - - -
ada1p2.eli - - - - - - -
bootpool 1.98G 835M 1.17G - - 46% 41% 1.00x ONLINE -
ada0p3 1.98G 835M 1.17G - - 46% 41.1%
zroot 228G 173G 55.2G - - 69% 75% 1.00x ONLINE -
ada0p5.eli 228G 173G 55.2G - - 69% 75.8%
It looks like that ada2 is in raidz1 , but geli was not able to encrypt the drive , so gpart is not able to see the partition table .
Code:
╰─ sudo gpart show ada2
gpart: No such geom: ada2.
╰─ sudo gpart show ada1
=> 34 7814037101 ada1 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
BSD sharky@freebsd ~ 9015
╰─ sudo gpart show ada3
=> 34 7814037101 ada3 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
Still
Code:
freebsd# geli attach -k /root/geli.key /dev/ada2
geli: Cannot read metadata from /dev/ada2: Invalid argument.
geli: There was an error with at least one provider.
How to deal with this situation ?
I would remove /dev/ada2 from raidz1
Wipe it and start from scratch ?