remove jail

Status
Not open for further replies.

Ice-T

Cadet
Joined
Jun 9, 2013
Messages
4
I have installed freenas 9.1 ALPHA and created a jail but I later found out that the plugins are not forward compatible from 8.3.1 so I had to revert back to using 8.3.1
Now when I mounted the zpool I had the jail folder from the freenas 9.1 installation so I wanted to remove it but it looks like it doesn't allow me to do it even if I login as root.

Do you have any ideea how can I remove this folder?

I tried chmod but it does not allow me to change permissions, chown returns the same error.

[root@freenas] /mnt/FreeNAS# rm -R jail
override r--r--r-- root/wheel schg for jail/usr/lib/librt.so.1? y
rm: jail/usr/lib/librt.so.1: Operation not permitted
rm: jail/usr/lib: Directory not empty
override r-sr-xr-x root/wheel schg for jail/usr/bin/su?
override r-sr-xr-x root/wheel schg for jail/usr/bin/ypchfn? y
rm: jail/usr/bin/ypchfn: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/ypchsh? y
rm: jail/usr/bin/ypchsh: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/opiepasswd? y
rm: jail/usr/bin/opiepasswd: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/passwd? y
rm: jail/usr/bin/passwd: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/opieinfo? y
rm: jail/usr/bin/opieinfo: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/yppasswd? y
rm: jail/usr/bin/yppasswd: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/ypchpass? y
rm: jail/usr/bin/ypchpass: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/chpass? y
rm: jail/usr/bin/chpass: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/login?
override r-sr-xr-x root/wheel schg for jail/usr/bin/rsh? y
rm: jail/usr/bin/rsh: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/crontab? y
rm: jail/usr/bin/crontab: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/chfn? y
rm: jail/usr/bin/chfn: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/rlogin? y
rm: jail/usr/bin/rlogin: Operation not permitted
override r-sr-xr-x root/wheel schg for jail/usr/bin/chsh? y
rm: jail/usr/bin/chsh: Operation not permitted
rm: jail/usr/bin: Directory not empty
override r--r--r-- root/wheel schg for jail/usr/lib32/libc.so.7? y
rm: jail/usr/lib32/libc.so.7: Operation not permitted
override r--r--r-- root/wheel schg for jail/usr/lib32/libcrypt.so.5? y
rm: jail/usr/lib32/libcrypt.so.5: Operation not permitted
 

Ice-T

Cadet
Joined
Jun 9, 2013
Messages
4
I figured it out.
I deleted the dataset associated with jail and the folder was removed.
 

brbubba

Dabbler
Joined
May 14, 2013
Messages
12
Thanks for this. Something got majorly corrupted in the jail during the last few updates. Couldn't clear any messages on my pool. Had to force destroy the jail dataset and then scrub the pool and it worked. Just recreated the jail from the GUI this time and it seems ok.

BTW, when you remove a jail from the gui it doesn't actually remove the dataset. Is this a bug?
 
Status
Not open for further replies.
Top