`<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Jun 8, 2014 at 11:36 PM, Ian Collins <span dir="ltr"><<a href="mailto:ian@ianshome.com" target="_blank">ian@ianshome.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Natxo Asenjo wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Hi Ian,<div class=""><br>
<br>
On Sun, Jun 8, 2014 at 10:30 PM, Ian Collins <<a href="mailto:ian@ianshome.com" target="_blank">ian@ianshome.com</a> <mailto:<a href="mailto:ian@ianshome.com" target="_blank">ian@ianshome.com</a>>> wrote:<br>
<br>
Natxo Asenjo wrote:<br>
<br>
But how do I reimport the zones I had? I have the data on the<br>
same data pool, but I do not have any config files (obviously,<br>
no other backups).<br>
<br>
<br>
Assuming your zone's root filesystems are intact, have you tried<br>
configuring the zones and then attaching them?<br>
<br>
<br>
yes, I tried zonecfg -z zone1 and then<br>
<br>
zonecfg:zone1> create -a /tank/zones/zone1<br>
invalid path to detached zon<br>
<br>
</div></blockquote>
<br>
No, I was referring to "zoneadm -z zone1 attach". Use "create -b" in the config and then attach once the zone is configured.<span class=""><font color="#888888"><br>
<br></font></span></blockquote><div>ok, sorry about that:<br><br> # zoneadm -z zone1 attach<br>Log File: /var/tmp/zone1.attach_log.W.aOmh<br>ERROR: Failed to locate any dataset mounted at /tank/zones/zone1/root. Attach requires a mounted dataset.<br>
Result: Attach Failed.<br>root@zfstank:~# less /var/tmp/zone1.attach_log.W.aOmh<br><br></div><div>but according to mount, the dataset is mounted, though not in /tank/zones/zone1/root but in /tank/zones/zone1<br>
<br>/tank/zones/zone1 on tank/zones/zone1 read/write/setuid/devices/nonbmand/exec/xattr/noatime/dev=185001a on Sun Jun 8 15:01:25 2014<br><br></div><div>Is the zone fubar?<br><br>-- <br></div><div>groet,<br>natxo<br></div>
</div><br></div></div>
`