[mythtv-users] problem mounting a JFS file system for storage

backuppc at sundquist.imapmail.org backuppc at sundquist.imapmail.org
Wed Feb 6 03:35:56 UTC 2008


My mythbuntu setup has been relatively uneventful.  Installing on a new
Dell Vostro with a Core 2 Duo, NV8300GS and a pcHDTV 5500 went great.

I originally just installed in a 40 gig partition on my first drive,
planning on using the second 160 gig drive for storing content.

The "uneventful" part above relates to the single drive.  I am having
problems adding the second drive.

Anticipating possible need for more storage in the future, I wanted to
go with LVM2, which I've had great success with on my home server box. 
I am skipping RAID for now.

I set up the 160 gig as a single partition, did the the whole pvcreate,
vgcreate, lvcreate thing, and then built a JFS file system on it (first
time using JFS for me, maybe that is the problem).  The file system
seems to be fine.  I first mounted it at a temporary mount point and
copied over the directories from /var/lib/mythtv to the temp mount
point, and set the ownership and permissions to match what was in
/var/lib/mythtv.  I could double click on the mpg files in the recording
directory and they played fine with xine.

So them I unmounted and them remounted the volume at /var/lib/mythtv.  I
didn't want to change the settings in mythfrontend, and I shouldn't have
to.  Once mounted, I could still read the files fine with xine, etc.

But the backend will not run.  For example, see the following commands. 
I first show the "native" /var/lib/mythtv and show that I can
sucessfully restart the backend.  Then I stop the backend, mount the JFS
volume, and try to restart the backend.  It starts (supposedly) without
complaining, except it doesn't.  Restarting it tells you it isn't
running.  I could show the same with a `ps -ax | grep myth' if I wanted
to (and have).
----------------
user at mythtv:/etc/init.d$ less ../mtab | grep mythtv
user at mythtv:/etc/init.d$ ls -la /var/lib/mythtv
total 24
drwxr-xr-x  6 root   root   4096 2007-10-21 04:01 .
drwxr-xr-x 51 root   root   4096 2008-02-02 18:39 ..
drwxrwsr-x  2 mythtv mythtv 4096 2007-09-17 18:58 music
drwxrwxr-x  2 mythtv mythtv 4096 2007-09-17 18:58 pictures
drwxrwsr-x  2 mythtv mythtv 4096 2008-02-05 19:27 recordings
drwxrwxr-x  3 mythtv mythtv 4096 2008-01-31 22:51 videos
user at mythtv:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend .
.
user at mythtv:/etc/init.d$ sudo ./mythtv-backend stop
Stopping MythTV server: mythbackend .
user at mythtv:/etc/init.d$ sudo mount /dev/lvm0/lvm0-0 /var/lib/mythtv/
user at mythtv:/etc/init.d$ ls -la /var/lib/mythtv
total 28
drwxr-xr-x  6 root   root     32 2008-02-02 22:59 .
drwxr-xr-x 51 root   root   4096 2008-02-02 18:39 ..
drwxrwsr-x  2 mythtv mythtv    1 2007-09-17 18:58 music
drwxrwxr-x  2 mythtv mythtv    1 2007-09-17 18:58 pictures
drwxrwsr-x  2 mythtv mythtv 4096 2008-02-04 20:29 recordings
drwxrwxr-x  3 mythtv mythtv    8 2008-01-31 22:51 videos
user at mythtv:/etc/init.d$ less ../mtab | grep mythtv
/dev/mapper/lvm0-lvm0--0 /var/lib/mythtv jfs rw 0 0
user at mythtv:/etc/init.d$ sudo ./mythtv-backend start
Starting MythTV server: mythbackend .
user at mythtv:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found
running; none killed.
.
.
user at mythtv:/etc/init.d$  
--------------

As you can see, the volume is recognized as a JFS file system, is
mounted rw, shows the directories, but just won't allow the backend to
run.

I tried renaming /var/lib/mythtv and then creating a new blank such
mount point, but got the same results.

Any idea what gives?


 



More information about the mythtv-users mailing list