upgraded from 11.2 to 12.1 - how to destroy old non-iocage jails?

deastick

Dabbler
Joined
Dec 27, 2013
Messages
26
During the upgrade, I already knew that old warden-based jails would not run on 12.1. Now I'd just like to delete the folders in /mnt/tank/jails/jailname..... so as system-root I went to /mnt/tank/jails and tried "rm -rf sickbeard_1". But I get the following error.

Code:
root@lexi:/mnt/panam/jails # rm -rf sickbeard_1/
rm: sickbeard_1/lib/libcrypt.so.5: Operation not permitted
rm: sickbeard_1/lib/libc.so.7: Operation not permitted
rm: sickbeard_1/lib/libthr.so.3: Operation not permitted
rm: sickbeard_1/lib: Directory not empty
rm: sickbeard_1/usr/lib/librt.so.1: Operation not permitted
rm: sickbeard_1/usr/lib: Directory not empty
rm: sickbeard_1/usr/bin/su: Operation not permitted
rm: sickbeard_1/usr/bin/login: Operation not permitted
rm: sickbeard_1/usr/bin/chpass: Operation not permitted
..... etc


On 12.1 I see that most of the "jail" commands relate to iocage's now (i.e. "jls" only lists iocages). So, how can I delete old 11.2 jails to recover the disk space?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Those are datasets, so can't be deleted with rm.

try zfs destroy tank/jails/sickbeard_1

You may also want zfs destroy -r tank/jails/sickbeard_1
 

deastick

Dabbler
Joined
Dec 27, 2013
Messages
26
sretalla - thank you. yes, I've done some jails from the command line, and I've also done some now through the GUI (Storage...... destroy).
 
Top