SOLVED Can't find my media!

Status
Not open for further replies.

Schnurdle

Cadet
Joined
Mar 4, 2015
Messages
6
After my system drive ran out of space, and finding out that you can't expand it without doing a fresh install, I decided to try moving my jails to the Media volume.

/Media/Stuff contained folders for "_Film", "_TV" and "_Music", so I created a new folder, "_Jails", and switched the Freenas Jails configuration over, then all my jails magically disappeared!

After various attempts at "rsync"ing the existing jails over, I have now got nearly where I want to be (apart from a plugin that can't be removed because its jail doesn't exist), only to find that over a terabyte of media has disappeared along the way!

Here is a dump of zfs mount points:

[root@freenas /]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
Media 1.28T 4.40T 1.26T /mnt/Media
Media/.system 10.9M 4.40T 244K /mnt/Media/.system
Media/.system/cores 7.46M 4.40T 7.46M /mnt/Media/.system/cores
Media/.system/samba4 1.06M 4.40T 1.06M /mnt/Media/.system/samba4
Media/.system/syslog 2.13M 4.40T 2.13M /mnt/Media/.system/syslog
Media/Stuff 18.4G 4.40T 221K /mnt/Media/Stuff
Media/Stuff/_Jails 18.4G 4.40T 16.6G /mnt/Media/Stuff/_Jails
Media/Stuff/_Jails/.warden-template-pluginjail 1.26G 4.40T 1.26G /mnt/Media/Stuff/_Jails/.warden-template-pluginjail
Media/Stuff/_Jails/plexmediaserver_1 565M 4.40T 1.80G /mnt/Media/Stuff/_Jails/plexmediaserver_1
system 1.60G 15.5G 61.5M /mnt/system
system/.system 2.77M 15.5G 244K /mnt/system/.system
system/.system/cores 552K 15.5G 552K /mnt/system/.system/cores
system/.system/samba4 564K 15.5G 564K /mnt/system/.system/samba4
system/.system/syslog 1.44M 15.5G 1.44M /mnt/system/.system/syslog
system/.warden-template-pluginjail 772M 15.5G 766M /mnt/system/.warden-template-pluginjail
system/jails 777M 15.5G 285K /mnt/system/jails
system/jails/.warden-template-pluginjail 777M 15.5G 766M /mnt/system/jails/.warden-template-pluginjail

mnt/Media seems to contain 1.28T of data that I can't see.
How can I get it back?
 

Schnurdle

Cadet
Joined
Mar 4, 2015
Messages
6
Nope.
Found some other posts mentioning a bug that deleted the contents of whatever folder/mount you reconfigure the jails to use, but other than that, nothing.
Any ideas?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I'm going to guess that you had a directory of Media/Stuff, and you then created a dataset of Media/Stuff. When you do that, the directory disappears. Its contents are still there, but you can't see it any more. Try this:
  • Stop all your plugins and other jails
  • From the cli, do "zfs unmount Media/Stuff/_Jails", then "zfs unmount Media/Stuff"
  • See if your media subdirectories have reappeared.
 

Schnurdle

Cadet
Joined
Mar 4, 2015
Messages
6
All jails stopped.

[root@freenas ~]# zfs unmount Media/Stuff/_Jails
cannot unmount '/mnt/Media/Stuff/_Jails': Device busy

Suggestions please!
 

Schnurdle

Cadet
Joined
Mar 4, 2015
Messages
6
[root@freenas ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
Media 1.28T 4.40T 1.26T /mnt/Media
Media/.system 10.9M 4.40T 244K /mnt/Media/.system
Media/.system/cores 7.46M 4.40T 7.46M /mnt/Media/.system/cores
Media/.system/samba4 1.06M 4.40T 1.06M /mnt/Media/.system/samba4
Media/.system/syslog 2.13M 4.40T 2.13M /mnt/Media/.system/syslog
Media/Stuff 18.5G 4.40T 221K /mnt/Media/Stuff
Media/Stuff/_Jails 18.5G 4.40T 16.6G /mnt/Media/Stuff/_Jails
Media/Stuff/_Jails/.warden-template-pluginjail 1.26G 4.40T 1.26G /mnt/Media/Stuff/_Jails/.warden-template-pluginjail
Media/Stuff/_Jails/plexmediaserver_1 634M 4.40T 1.87G /mnt/Media/Stuff/_Jails/plexmediaserver_1
system 1.60G 15.5G 61.5M /mnt/system
system/.system 2.98M 15.5G 244K /mnt/system/.system
system/.system/cores 552K 15.5G 552K /mnt/system/.system/cores
system/.system/samba4 564K 15.5G 564K /mnt/system/.system/samba4
system/.system/syslog 1.65M 15.5G 1.65M /mnt/system/.system/syslog
system/.warden-template-pluginjail 772M 15.5G 766M /mnt/system/.warden-template-pluginjail
system/jails 777M 15.5G 285K /mnt/system/jails
system/jails/.warden-template-pluginjail 777M 15.5G 766M /mnt/system/jails/.warden-template-pluginjail
 

Schnurdle

Cadet
Joined
Mar 4, 2015
Messages
6
Did you figure this out?


Yes.

http://doc.freenas.org/9.3/freenas_storage.html

I opened up the Storage page in Figure 8.1k, then deleted all the jail related datasets from Media, and all my media came back!
Then I trashed all the system datasets and recreated the system volume after provisioning more storage.
After a few times resetting to factory defaults and reloading a previous config that I had conveniently saved earlier, the jail warden dataset magically reappeared in the new system volume and I was able to reinstall all my plugins one by one.
A couple of plugins originally had to be installed as customplugin_1 and 2, but now seemed to install okay via the plugin route.
I created the missing custom jails just to delete them again to tidy up the plugin list, and everything is back to working order.

Hope this helps.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Thanks for reporting back, it could be helpful if I have a similar problem!
 
Status
Not open for further replies.
Top