Solved Import zpool from device into specific folder

I'm facing an issue importing an old zpool where I backup data. I want to import it but zpool import and other isn't detect the pool, the only command which answers is zdb list /dev/...

Here is the result: http://pastebin.com/P8YswfPS

No, I try to import it to keep my data safe, but nothing work

I running FreeBSD 10.2 and I'm lost on it,

Sorry for my English, and BTW ... I'm a noob :)
 
Code:
╰─$ zpool import -d /dev/ada6p3 save  1 ↵
cannot open '/dev/ada6p3/': Not a directory
cannot import 'save': no such pool available

Code:
zpool import -d /dev/diskid/DISK-JG40006PGLZJ9Cp3 save  1 ↵
cannot open '/dev/diskid/DISK-JG40006PGLZJ9Cp3/': Not a directory
cannot import 'save': no such pool available

I missed mentioning something, /dev/gptid/ does't exist, only /dev/ada6 exit and /dev/diskid/...

I ran out of solutions and nothing works for now.
 
zpool import -d /dev save

Code:
zpool import -d /dev save
cannot import 'save': no such pool available
Zpool isn't detected at all, the only command detect on my test was zdb directly on the partition,

EDIT:

I made a mistake, I missed sudo(8) ... with sudo(8) commands here's the result:

Code:
The devices below are missing, use '-m' to import the pool anyway:
    diskid/DISK-S0VYNYAC306418p1 [log]

cannot import 'save': one or more devices is currently unavailable

I'll remember to add a log and cache file at first on this pool.
 
Code:
sudo zpool import -dm /dev/diskid/DISK-JG40006PGLZJ9Cp3 save  1 ↵
cannot open 'm': must be an absolute path
cannot import '/dev/diskid/DISK-JG40006PGLZJ9Cp3': no such pool available

I try but it doesn't work.
 
There's a lot of simple mistakes here.
First off you obviously need to be using sudo, or be root to import the pool.
Secondly, the -d option takes an absolute directory path to look for devices, not an actual device, so /dev or /dev/diskid would be reasonable, not /dev/diskid/somedisk.

Lastly, one of your commands seemed to have worked, but suggests you have a log device missing and need to import using the -m option. Unfortunately you messed up the order of the options in the last command:

Code:
# spool import -dm /dev/diskid/disk pool

The -d option needs a value after it (the directory to look in), -m doesn't. So, what you've done is ask it to look in a directory called m for disks, which is what the first line of the error refers to, and then because -m doesn't take a value*, it's assuming /dev/diskid/disk is the pool name, which is what the second line of the error is going on about. All this has little to do with ZFS, just basic command line usage.

I can't see why you should really need to specify to look in /dev, this option is usually used when you want to force ZFS to use specific disk labels. Try the following - as root:
Code:
zpool import -m save

*Edit: In fact it doesn't process -m as an option at all, just as the directory to look in for the -d option.
 
That's would really helpful, iI cannot think how simple it is!

Thanks to you :)

zpool import -m -R /mnt save
 
Back
Top