Nas4FREE Recovery (ZFS)

Clash Royale CLAN TAG#URR8PPPNas4FREE Recovery (ZFS)
Been using nas4free for a long time, i have two disks in Raid0 (ZFS Stripe perhaps that what it is called). The nas4free OS was running of a usb drive and today the drive went to hell. Basically i lost my instillation. I don't have the configuration saved which i used to before and now im in water. Is there a simple way for me to mount these two disks togather without loosing the data? I simply used to go to the "mount" menu, and click mount/unmount and the drives used to come back on when ever the power went out. This time though since it is a new instillation over a new liveusb i do not have the option to simply mount it.
Any simple steps i can do to mount them back?
I was reading up and found commands to re-build the zfs pool using
# zpool scrub rex
Before i make any attempts, wondering if any one has any tips.
Thanks
Before you do anything, copy your disks! If you make a mistake it is much better to do it with copy. Apart from that I think it should be straightforward. There should be an option to import an existing ZFS pool. Use it and hopefully you are good to go.
– ewramner
2 days ago
1 Answer
1
Fortunately, each zpool has its own configuration saved on the disk itself, not on the host system. Therefore, if you lost your host, you can just import your pool on your new host without any problems. I assume the pool was not cleanly unmounted and exported, so you may first try
zpool import
to list all available pools while both disks are present and recognized. If your pool is found, a simple
zpool import nameOfYourPool
will suffice. If it does not work, try
zpool import -f nameOfYourPool
to force, and if that still does not work, there also is
zpool import -F nameOfYourPool
which discards (deletes) some data to recover the pool (details in the man page).
Aside from recovery, I strongly suggest not using RAID 0 with ZFS except for really unimportant information (like a RAM disk). Even an unclean shutdown may corrupt some data. Without scrubbing from another redundant copy, you may lose data that is vital to your operating system, applications etc. (although, as Dan correctly said, your pool itself would still be usable and importable).
Unclean shutdowns should not result in a corrupt zpool (the data structures are updated "atomically" so that this cannot happen), but I still agree with your overall point that RAID 0 does not provide sufficient redundancy for workloads where you would be sad if you lost data.
– Dan
14 hours ago
@Dan Thanks for your correction, you are of course right, my words were not precise enough and therefore wrong. I have updated the answer.
– user121391
4 mins ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Great question, but it's a little off-topic for StackOverflow. I recommend you close it and re-ask at SuperUser.com. You might also want to get some advice from the folks in the #freebsd channel at FreeNode.
– ghoti
2 days ago