Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If previous zpool data exists, new zpool creation fails due to the gnop device disappearing #92

Open
cb22 opened this issue Oct 15, 2015 · 0 comments
Assignees

Comments

@cb22
Copy link

cb22 commented Oct 15, 2015

When configuring a fresh host for the first time, everything worked perfectly. However, after playing around a bit more, and later re-bootstrapping and attempting to reconfigure, ploy configure would fail with:

< TASK: jails_host | Setup data zpool >
 ------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


failed: [sarah] => {"failed": true}
msg: Failed to create zpool with the following arguments:
create -o version=28 -m none tank mirror gpt/tank_ada0.nop gpt/tank_ada1.nop                                                         
cannot open 'gpt/tank_ada1.nop': no such GEOM provider                                                                               
must be a full path or shorthand device name                                                                                         


FATAL: all hosts have already failed -- aborting                                                                                     

This seemed to correspond with the tank_ada1.nop device disappearing (on the kernel messages). Debugging a little bit, it seems like it was caused by the zpool import -f call in the zpool module.

It seems like that call triggers a write, or some sort of access which causes FreeBSD to remove the gnop device, and thus the later call that tries to create the pool to fail. A simple way to fix this is to zero out the first few and last few sectors of the partition, and verify that zpool can't find any pools by running zpool import manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants