Advertisement
Guest User

Matias - ZFS HELP!

a guest
Oct 26th, 2016
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. Hi there, this is a question for Allan aka The Wizard of oZFS, and probably not very interesting for the show.
  2.  
  3. I am not really sure whether this is appropriate or not, so please do not hesitate to not answer, but pretty please just let me know you won't :D
  4.  
  5. I have just f****d up my laptop's root pool. I have a backup of the important data though there are a quite a few scripts and config files it would save me time to get back, but mostly I would like to see whether things can be mended and learn. Though I guess metadata is easier corrupted than mended.
  6.  
  7. I was bothered by the name of my root pool [sys] that bit me in the *ss a couple of times as well as by the base dataset for my BEs [BOOT] as it was not standard and, though unlikely, might be the reason why TrueOS was not recognizing my BEs on installation.
  8.  
  9. So I booted into mfsBSD 10.3 and did the following
  10.  
  11. # zpool import -R /mnt sys tank
  12. # zfs rename tank/BOOT tank/ROOT
  13. # zpool get bootfs
  14. # zfs list
  15. * both showed my datasets mountpoints and pool bootfs had picked the changes nicely
  16. * I edited the value of the bootfs in /boot/loader.conf
  17. # zpool export
  18. # zpool import tank
  19. # shutdown -h now
  20.  
  21. Rebooting seemed to go well, even up to mounting the datasets but though installed apps were failing they were at least being recognized (ezjail, bsdstats, cups etc...)
  22.  
  23. I rebooted into mfsBSD and tried to go back on my changes
  24.  
  25. # zpool import -R /mnt tank sys
  26.  
  27. there the system told me there were about 2 seconds of changes lost irretrievably but I should be ok with a `zpool import -F tank` which I did, not thinking quite right anymore, as I should at least have specified an altroot.
  28.  
  29. Anyway when I try to import tank (or by pool id) I am now getting about 15 `Solaris: WARNING: can't open objset xxx, error 5`
  30. ZFS filesystem is version 5, pool version 5000
  31. `zpool status` returns no error, state online (a fat lot of good it does me, lol)
  32.  
  33. I have seen a few things online I might try, but I am not doing anything until I receive on Wednesday an exact copy of this HDD and byte-copy everything to it. A few questions:
  34.  
  35. - should I use dd for that or do you have any other suggestion?
  36. - any suggestion as to what I should try to do?
  37. - any idea/comment on where/why I f*****d up?
  38.  
  39. As I most definitely will not be adding a plain vanilla FreeBSD 11.0-RELEASE and a TrueOS BEs to my now dead laptop this week-end, I might just get myself Pan Mastery tonight, to keep my mind away from my lost daaaaaaaata.
  40.  
  41.  
  42. All the best,
  43.  
  44. Matías
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement