Help wanted, jails gone after a delete of only 1 jail

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Hey guys!

In desperate need of some help/advise.

I had a bunch of jails, and i wanted to clean up a not used jail:

The cli output is pretty straight forward, a bunch of jails gone after the destroy command. The --recursive should only be about snaps/clones of the aforementioned jail. https://github.com/iocage/iocage/issues/443

root@freenas:~ # iocage list
+-----+----------+-------+--------------+------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+==========+=======+==============+======+
| 3 | HTPC | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| - | PlexPass | down | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 30 | backuppc | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 10 | guac | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| - | influxdb | down | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 2 | nginx | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 6 | organizr | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 8 | plex | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+

root@freenas:~ # iocage start influxdb
* Starting influxdb
+ Started OK
+ Configuring VNET OK
+ DHCP Address: 192.168.3.134/24
+ Starting services OK

root@freenas:~ # iocage destroy PlexPass

This will destroy jail PlexPass

Are you sure? [y/N]: y

PlexPass has dependent jails (who may also have dependents), use --recursive to destroy:
PlexPass
auto-20190130.0000-4d
auto-20190130.0900-1m
auto-20190131.0000-4d
auto-20190201.0000-4d
auto-20190202.0000-4d

root@freenas:~ # iocage destroy PlexPass --recursive

This will destroy jail PlexPass

Are you sure? [y/N]: y
Destroying PlexPass

root@freenas:~ # iocage list
+-----+----------+-------+--------------+------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+==========+=======+==============+======+
| 30 | backuppc | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 10 | guac | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 31 | influxdb | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+
| 8 | plex | up | 11.2-RELEASE | DHCP |
+-----+----------+-------+--------------+------+

I still have the config of the jails in a backup, but i'd like to know if there's a magic trick to spawn the jails back up as they where, because its a headache to install everything like i did, 2 years ago...

Thanks!
 
Last edited:

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Please check the pasted code, commands are all there. I did the same thing few days back with another jail, thought better not continue with —recursive. So i deleted the jail via Webui, nothing wrong there and worked as expected. Anyway ive rebuild the jails and still had the config. Though id like to know whats different between —recursive cli and what the webui does deleting with dependant items.
 
D

dlavigne

Guest
Sorry, I thought that was the iocage list after the fact :smile:

Check in Storage -> Snapshots. There should be snapshots for the original installs (if they were done on 11.2).
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Yeah, like i mentioned, I still have the config. Just rebuilding is a pain. But, its done already. Just like to know what the difference is between gui/cli doing this since the conditions are the same.
 
Top