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
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!
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: