Stuck, old jail folder. How to delete?

Status
Not open for further replies.

Jeff H

Cadet
Joined
Feb 17, 2014
Messages
7
I was having major problems with my jail folders that I resolved by removing the ZFS volume. Reinstalling freenas on the USB stick and then auto importing the volume back in. Everything is working as it should now except I have two folders that I am unable to delete.

plexmediaserver and plexmediaserver_1

Located at /mnt/higg-data/plexmediaserver

Here is a pastebin of the error I get when I try to do rm -rf plexmediaserver

http://pastebin.com/cxmBhwFK

I'm in using SSH. Thanks for any help, I'm not super savvy but if you point me in the right direction I should be able to figure it out.

-Jeff
 

Yatti420

Wizard
Joined
Aug 12, 2012
Messages
1,437
Do you see it in the "Active Volumes Tab"? They are from jails right?
 

Jeff H

Cadet
Joined
Feb 17, 2014
Messages
7
I don't see anything referencing these two folders anywhere except when I take a look at the folder structure in windows. I am unable to delete them there and unable to delete them using ssh and a root login.

Dlavigne, I don't believe this is the same problem as that has stated. I don't see the jail located anywhere but in the files. Am I wrong?

Edit: It should also be said that I have a valid and working plex running. So I don't know if I want to nuke all my jail information.
 
D

dlavigne

Guest
The reason why you are getting the error that you pasted is due to file flags being set on the directory you are trying to remove. Using warden delete as mentioned in those instructions should bypass those file flags automatically. It sounds like you don't have to do any of the sql stuff, just the warden stuff.
 

Jeff H

Cadet
Joined
Feb 17, 2014
Messages
7
Ok, so I'm partially an idiot. Plexmediaserver_1 is valid as it is the one currently running. Although plexmediaserver isn't listed under warden list or warden template list, so I can't delete it there.

Any other ideas?
 
D

dlavigne

Guest
As root (or from the web shell) try this:

Code:
chflags -R noschg plexmediaserver
rm -rf plexmediaserver


Does that fix it?
 

Jeff H

Cadet
Joined
Feb 17, 2014
Messages
7
yep that did it! Thank you for your help. I'll look into the chflags mod to see what we actually did. Thanks again. =)
 
D

dlavigne

Guest
The -R flag isn't very clear in the man page (this came up on the forums last week), but it does a recursive through the directory.
 
Status
Not open for further replies.
Top