Jail deleted, but still shows in jails

Status
Not open for further replies.

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
Im at a loss here, after removing a failed plex install im now stuck with a jail listed under the jails tab, but that jail doesnt exist with the jls command as shown in the attachment.
upload_2015-2-6_18-3-17.png


How do I go about removing this?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
jls is not doing what you think its doing. jls only shows running jails. If the jail isn't running, it won't be listed. ;)

What you want to do is delete the dataset that your jails are being stored in. So if your jails are being placed in /mnt/tank/jails/plexmediaserver_1 then you should delete /mnt/tank/jails. Then reboot your machine and it should be fixed.
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
I cant delete the dataset. Im getting a "Device Busy" error
Im doing it in the shell using rm -rf jails
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
reboot
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
Rebooted and tried twice. Went to the shell from the ipmi first thing and it says its still busy.

If I try it from the gui I get this error:
Feb 6 19:13:16 HomeNAS manage.py: [middleware.exceptions:38] [MiddlewareError: jail not found]
 
Last edited:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You can't rm -rf jails.. it's a dataset silly! Gotta delete the dataset from the WebGUI!
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
You can't rm -rf jails.. it's a dataset silly! Gotta delete the dataset from the WebGUI!
The webgui won't let me destroy the dataset. I keep getting "this device is busy errors"
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
zfs destroy -f jails.

Edit: Might have to add -r to do recursive if you have datasets inside the jails dataset. ;)
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
Why did your Plex install fail? That might give you a clue as to what's going on.
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
zfs destroy -f jails.

Edit: Might have to add -r to do recursive if you have datasets inside the jails dataset. ;)

[root@HomeNAS ~]# zfs destroy -f jails
cannot open 'jails': dataset does not exist

Clearly its still in the gui though

I tried creating a new jail so it would download something to that dataset, then tried removing it from the gui and I get this:
Feb 7 08:32:25 HomeNAS manage.py: [middleware.exceptions:38] [MiddlewareError: jail not found]
upload_2015-2-7_8-35-2.png
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
The pool was FUBAR'd. Wiped it and started from scratch. All seems good now.
 
Last edited:

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
I have same problem... How'd you wipe the pool and did you loose your data?
zpool destroy and yes I wiped the disks clean and did a fresh freenas install.
 

Allan_Guy

Dabbler
Joined
Feb 20, 2015
Messages
19
[root@freenas ~]# zppol status
bash: zppol: command not found
[root@freenas ~]# zpool status
pool: MainRaid
state: ONLINE
scan: scrub in progress since Fri Feb 20 10:23:14 2015
540G scanned out of 3.19T at 227M/s, 3h24m to go
0 repaired, 16.55% done
config:

NAME STATE READ WRITE CKS
UM
MainRaid ONLINE 0 0
0
raidz1-0 ONLINE 0 0
0
gptid/22caf9a5-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0
gptid/23385d5a-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0
gptid/23a93fbb-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
gptid/7d73ec11-b87b-11e4-97da-d050995bdd92 ONLINE 0 0 0

errors: No known data errors
[root@freenas ~]#
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
[root@freenas ~]# zppol status
bash: zppol: command not found
[root@freenas ~]# zpool status
pool: MainRaid
state: ONLINE
scan: scrub in progress since Fri Feb 20 10:23:14 2015
540G scanned out of 3.19T at 227M/s, 3h24m to go
0 repaired, 16.55% done
config:

NAME STATE READ WRITE CKS
UM
MainRaid ONLINE 0 0
0
raidz1-0 ONLINE 0 0
0
gptid/22caf9a5-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0
gptid/23385d5a-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0
gptid/23a93fbb-b886-11e4-90dd-d050995bdd92 ONLINE 0 0
0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
gptid/7d73ec11-b87b-11e4-97da-d050995bdd92 ONLINE 0 0 0

errors: No known data errors
[root@freenas ~]#

Im confused, what are you trying to show us?
 

Allan_Guy

Dabbler
Joined
Feb 20, 2015
Messages
19
errors: No known data errors... When I try to delete a jails I get jail does not exist but it is listed, and when I try to delete dataset I get errors: No known data errors. Oddly, all the data is there and working, but I can't expand the volume or do any other setup on it. Should I start over. It will cost me hours but not data?
 
Status
Not open for further replies.
Top