Author |
Message |
sparky.watson
|
Posted: Wed Feb 13, 2008 10:00 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
I first started to notice a problem when some of my recordings would show:
"the file for this recording can not be found"
when I tried to watch them.
After going into setup and exiting, I got a message something like cannot create /myth/tv/.test
Even though df -h shows free space it seems there really wasn't any. I couldn't even touch a file without it saying there wasn't any space. I deleted a couple of video files and free space on /myth went from 17G to 18G and now I can create a file.
I deleted both pvr150 and pvr250 from the setup and readded them now both seem to record and I dont' get the not found message but I'm concerned about the free space reported by df vs what might be different in reality.
At this point I'll just stop because I'm about to start rambling, well continue rambling, I'm tired!!!
Thanks
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
slowtolearn
|
Posted: Thu Feb 14, 2008 7:11 am |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
What does Code: df -i show? Sounds like you are running out of inodes, not space.
|
|
Top |
|
|
sparky.watson
|
Posted: Thu Feb 14, 2008 7:23 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
Right, df -i shows:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda1 500992 101588 399404 21% /
/dev/hda3 58240 58219 21 100% /myth
tmpfs 64171 3 64168 1% /dev/shm
What can I do now?
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
slowtolearn
|
Posted: Thu Feb 14, 2008 8:18 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
sparky.watson wrote: Right, df -i shows:
Filesystem Inodes IUsed IFree IUse% Mounted on /dev/hda1 500992 101588 399404 21% / /dev/hda3 58240 58219 21 100% /myth tmpfs 64171 3 64168 1% /dev/shm
What can I do now? /myth was setup to deal with large files (thus the smaller available number of inodes). At this point you have ~58219 files within your /myth hierarchy, I would spend some time to go through each of the directories to see what you have ( ls -lR can help with that, as well as du) and clear out unnecessary files - Take a look at /myth/tmp first.
|
|
Top |
|
|
sparky.watson
|
Posted: Thu Feb 14, 2008 9:35 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
Let's see if I might be onto something or if I'm about to delete something very important:
In /myth/video, there are some directories that concern me. In particular, /myth/video/myth seems as though I may have copied something incorrectly:
root@mythtv:/myth/video# ls -lrt
total 100
lrwxrwxrwx 1 root root 10 Sep 12 20:36 cdrom -> /mnt/cdrom
drwxr-xr-x 2 mythtv mythtv 4096 Sep 12 20:36 archive
drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:49 boot
dr-xr-xr-x 2 mythtv mythtv 4096 Jan 29 23:50 initrd
drwxr-xr-x 4 mythtv mythtv 4096 Jan 29 23:50 home
drwxr-xr-x 3 mythtv mythtv 4096 Jan 29 23:51 mnt
drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:51 media
drwx------ 2 mythtv mythtv 4096 Jan 29 23:51 lost+found
drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:59 opt
drwxr-xr-x 23 mythtv mythtv 4096 Jan 29 23:59 myth
dr-xr-xr-x 62 mythtv mythtv 4096 Jan 30 00:00 proc
drwxr-xr-x 2 mythtv mythtv 4096 Jan 30 00:00 srv
drwxr-xr-x 13 mythtv mythtv 4096 Feb 3 15:13 root
drwxr-xr-x 11 mythtv mythtv 4096 Feb 3 15:14 sys
drwxr-xr-t 27 mythtv mythtv 4096 Feb 3 15:15 tmp
drwxr-xr-x 13 mythtv mythtv 4096 Feb 3 15:18 usr
drwxrwxr-x 2 mythtv mythtv 8192 Feb 13 23:23 motion
-rw-r--r-- 1 mythtv mythtv 0 Feb 13 23:30 0
drwxr-xr-x 2 mythtv mythtv 4096 Feb 13 23:30 bin
drwxr-xr-x 13 mythtv mythtv 4096 Feb 13 23:30 dev
drwxr-xr-x 116 mythtv mythtv 4096 Feb 13 23:30 etc
-rw-r--r-- 1 mythtv mythtv 2561 Feb 13 23:31 knoppmyth-sata
-rw-r--r-- 1 mythtv mythtv 2518 Feb 13 23:31 knoppmyth
drwxr-xr-x 15 mythtv mythtv 4096 Feb 13 23:31 lib
drwxr-xr-x 2 mythtv mythtv 8192 Feb 14 00:50 sbin
lrwxrwxrwx 1 mythtv mythtv 26 Feb 14 00:55 vmlinuz -> boot/vmlinuz-2.6.18-chw-13
Looks like I've go some recursive directory structures:
root@mythtv:/myth/video# ls -l /myth/video/myth/video
total 48
-rw-r--r-- 1 mythtv mythtv 0 Feb 14 00:43 0
drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:59 archive
drwxr-xr-x 2 mythtv mythtv 4096 Feb 14 00:43 bin
drwxr-xr-x 2 mythtv mythtv 4096 Feb 3 15:11 boot
lrwxrwxrwx 1 mythtv mythtv 10 Feb 14 00:43 cdrom -> /mnt/cdrom
drwxr-xr-x 13 mythtv mythtv 4096 Feb 14 00:43 dev
drwxr-xr-x 116 mythtv mythtv 4096 Feb 14 00:43 etc
drwxr-xr-x 4 mythtv mythtv 4096 Feb 3 15:12 home
dr-xr-xr-x 2 mythtv mythtv 4096 Feb 3 15:12 initrd
-rw-r--r-- 1 mythtv mythtv 2518 Feb 14 00:44 knoppmyth
-rw-r--r-- 1 mythtv mythtv 2561 Feb 14 00:44 knoppmyth-sata
drwxr-xr-x 13 mythtv mythtv 4096 Feb 14 00:44 lib
drwxr-xr-x 2 mythtv mythtv 8192 Feb 14 00:43 motion
lrwxrwxrwx 1 mythtv mythtv 26 Feb 14 00:44 vmlinuz -> boot/vmlinuz-2.6.18-chw-13
root@mythtv:/myth/video#
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
mjl
|
Posted: Thu Feb 14, 2008 10:14 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi,
Just as a suggestion, you may want to look at your /myth/gallery and your /myth/music folders. This is assuming that you haven't been doing "other things" to your box in the myth partition.
As was pointed out previously, the entire /myth partition is set to be expecting very large tv recordings and therefore have a reduced number of inodes (little markers so to speak) that are used to keep track of what is where. Now if you throw a "few hundred ~ thousand?" jpg's or mp3's into the myth partition you consume those markers, at least one per file at an alarming rate and you basically have a full partition very quickly.
This becomes really apparent on a smaller drive ~ 40 gig or so can fill in the blink of the eye. You could just experiment with moving /myth/music and - or the /myth/gallery on to an external usb drive and then recheck your inode count. Actually if you only have a few hundred meg in those two folders, simply move them to the /home folder to see if it resolves the issue.
If that seems to be the solution, there are tricks you can do to keep both worlds happy. The easiest is to use gparted to resize the myth partition by a couple of gig. There is a downloadable live gparted iso available. Shrink the /myth by a couple or three gig and do a standard format to the new space. Now your /myth has the space for big files and your new space has the room for a lot of little files There are a few more steps needed to make it all work but this at least is food for thought.
Also this is not good, /myth/video/myth/video There was flaw in something that caused that in that it copied things it wasn't suppose to copy. Sorry I don't recall the details however you will want to remove the extra stuff. I use something like rm -rf /myth/video/myth Notice that I am very specific of what I am about to destroy. Everything including the second myth folder and everything under it will be gone which should leave you with just /myth/video and the video files that are in it. I have seen this also happen in /myth/music with the "echoing" of the folder.
If you do any of the steps above be very careful of what and how you type it. Check before pressing Enter as there is no "oops" button.
Mike
|
|
Top |
|
|
slowtolearn
|
Posted: Fri Feb 15, 2008 8:40 am |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
sparky.watson wrote: ...Looks like I've go some recursive directory structures:
root@mythtv:/myth/video# ls -l /myth/video/myth/video total 48 -rw-r--r-- 1 mythtv mythtv 0 Feb 14 00:43 0 drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:59 archive drwxr-xr-x 2 mythtv mythtv 4096 Feb 14 00:43 bin drwxr-xr-x 2 mythtv mythtv 4096 Feb 3 15:11 boot... Yep, the "Import video files" script has an issue - See http://knoppmyth.net/phpBB2/viewtopic.php?t=17750 for the discussion and a link to the solution.
Use Mike's rm -rf /myth/video/myth command to clear up the recursive directories, then see what you have.
|
|
Top |
|
|
sparky.watson
|
Posted: Fri Feb 15, 2008 6:54 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
Yep, rm -rf /myth/video/myth left me with:
# df -i /myth;df -h /myth
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda3 58240 51370 6870 89% /myth
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 228G 68G 160G 30% /myth
Both of those were are 100% used before.
I also replace the /usr/local/bin/importfiles.sh based on the post at:
http://knoppmyth.net/phpBB2/viewtopic.php?t=16484
Thanks for the help!!! Hopefully that has everything cleaned up again.
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
sparky.watson
|
Posted: Fri Feb 15, 2008 7:53 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
I had a couple of videos that I could see when I went to "media library" -> "watch video". Now, the title entries are still there but they don't play. I've searched and can't find the actual video files on disk.
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
slowtolearn
|
Posted: Fri Feb 15, 2008 9:34 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
sparky.watson wrote: I had a couple of videos that I could see when I went to "media library" -> "watch video". Now, the title entries are still there but they don't play. I've searched and can't find the actual video files on disk. Probably those videos that were copied over via the original "Import video files" script? Try copying them over again since you've made the changes to the importfiles.sh script.
|
|
Top |
|
|
sparky.watson
|
Posted: Fri Feb 15, 2008 9:40 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
Actually, I think they have all been deleted (while I was trying to get space back). So I can't actually replace them, is there some way to remove the entries?
Now when I try to go to the "video manager", it just hangs with an empty box on the screen. I either end up killing the frontend or wait long enough for it to die.
In the future, where should I put video files that I download? I'm thinking of .mpg, .flv, those types?
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
tjc
|
Posted: Sat Feb 16, 2008 8:41 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Just rerun the scan for new videos. It should detect the deleted ones and remove them.
|
|
Top |
|
|
sparky.watson
|
Posted: Sat Feb 16, 2008 10:37 am |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
The only place I know to do that is from Utilities/Setup->Video Manager which then hangs.
I'm looking at still getting the /myth/video directory cleaned up, how do I know if something in that directory should be there or not? I think I still have a lot that shouldn't:
Code: # ls -l /myth/video total 100 -rw-r--r-- 1 mythtv mythtv 0 Feb 13 23:30 0 drwxr-xr-x 2 mythtv mythtv 4096 Sep 12 20:36 archive drwxr-xr-x 2 mythtv mythtv 4096 Feb 13 23:30 bin drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:49 boot lrwxrwxrwx 1 root root 10 Sep 12 20:36 cdrom -> /mnt/cdrom drwxr-xr-x 13 mythtv mythtv 4096 Feb 13 23:30 dev drwxr-xr-x 116 mythtv mythtv 4096 Feb 13 23:30 etc drwxr-xr-x 4 mythtv mythtv 4096 Jan 29 23:50 home dr-xr-xr-x 2 mythtv mythtv 4096 Jan 29 23:50 initrd -rw-r--r-- 1 mythtv mythtv 2518 Feb 13 23:31 knoppmyth -rw-r--r-- 1 mythtv mythtv 2561 Feb 13 23:31 knoppmyth-sata drwxr-xr-x 15 mythtv mythtv 4096 Feb 13 23:31 lib drwx------ 2 mythtv mythtv 4096 Jan 29 23:51 lost+found drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:51 media drwxr-xr-x 3 mythtv mythtv 4096 Jan 29 23:51 mnt drwxrwxr-x 2 mythtv mythtv 8192 Feb 16 10:36 motion drwxr-xr-x 2 mythtv mythtv 4096 Jan 29 23:59 opt dr-xr-xr-x 62 mythtv mythtv 4096 Jan 30 00:00 proc drwxr-xr-x 13 mythtv mythtv 4096 Feb 3 15:13 root drwxr-xr-x 2 mythtv mythtv 8192 Feb 14 00:50 sbin drwxr-xr-x 2 mythtv mythtv 4096 Jan 30 00:00 srv drwxr-xr-x 11 mythtv mythtv 4096 Feb 3 15:14 sys drwxr-xr-t 27 mythtv mythtv 4096 Feb 3 15:15 tmp drwxr-xr-x 13 mythtv mythtv 4096 Feb 3 15:18 usr drwxrwxr-x 2 mythtv mythtv 4096 Feb 16 12:52 vids lrwxrwxrwx 1 mythtv mythtv 26 Feb 14 00:55 vmlinuz -> boot/vmlinuz-2.6.18-chw-13
I just don't want to remove anything that should be there. The only file I added to this directory on purpose was the vids directory. I'm guessing a lot of the rest isn't suppose to be there.
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|
sparky.watson
|
Posted: Sat Feb 16, 2008 4:36 pm |
|
Joined: Mon Oct 23, 2006 1:11 pm
Posts: 74
Location:
San Antonio, Texas
|
Ah, what the heck, I removed a bunch of directories that didn't belong here (bin, boot, etc, sbin, sys, etc...) and now scan works and all the old entries are removed.
Thanks all!
_________________ AMD 3000+ MSI K8MM-V 512MB PC3200, 2TB SATA HD, GeForce 256MB 6200, DVD-RW, Hauppauage WinTV-PVR 150 (flakey with terrible video?) & 250 -- R7.4 (rdt) --
|
|
Top |
|
|