[mythtv-users] Fixed: Raid1 home prevents mythbackend from starting.

Douglas Peale Douglas_Peale at comcast.net
Mon May 23 15:11:12 UTC 2011


On 05/23/2011 01:43 AM, Anthony Giggins wrote:
> On 23 May 2011 16:45, Simon Hobson <linux at thehobsons.co.uk> wrote:
>
>> Douglas Peale wrote:
>>
>>> ... so I had the raid mount at a different location than /home
>>> (/media/raid1), created a home directory on it, and made a soft link
>> >from /home to the home directory on my mirror (/media/raid1/home).
>>> ...
>>> This seems to work fine, except mythbackend won't start anymore.
>>>
>>> This is an excerpt from the backend log:
>>> 2011-05-22 21:58:25.592 mythbackend version: fixes/0.24
>>> [v0.24.1-1-g347cd24] www.mythtv.org
>>> 2011-05-22 21:58:25.594 Using runtime prefix = /usr
>>> 2011-05-22 21:58:25.595 Using configuration directory =
>> /home/mythtv/.mythtv
>>> 2011-05-22 21:58:25.596 Unable to read configuration file mysql.txt
>> My guess is that the Myth code isn't following symlinks properly.
>> What happens if you change the home location in /etc/passwd to match
>> where you have put stuff ?
>>
>> PS - I think your subject is misleading, I doubt this has anything to
>> do with RAID, just a problem in finding a non-standard home directory
>> location.
>>
>> --
>> Simon Hobson
>>
>>
>>
> I'd be guessing its a permissions issue
>
> paste the output from
>
> ls -al /media/raid1
>
> and
>
> ls -al /media/raid1/home
>
> Cheers,
>
> Anthony
>
Good call.

dpeale at Compromise:/media/raid1/home/dpeale$ ls -al /media/raid1
total 32
drwx------ 5 dpeale dpeale  4096 2011-05-22 21:38 .
drwxr-xr-x 4 root   root    4096 2011-05-22 21:37 ..
drwxr-xr-x 3 dpeale dpeale  4096 2011-05-15 12:32 dpeale
drwxr-xr-x 4 root   root    4096 2011-05-22 10:49 home
drwx------ 2 root   root   16384 2011-05-15 12:28 lost+found
dpeale at Compromise:/media/raid1/home/dpeale$ ls -al /media/raid1/home
total 16
drwxr-xr-x  4 root   root   4096 2011-05-22 10:49 .
drwx------  5 dpeale dpeale 4096 2011-05-22 21:38 ..
drwxr-xr-x 33 dpeale dpeale 4096 2011-05-23 07:49 dpeale
drwxr-xr-x  4 mythtv mythtv 4096 2011-05-22 14:33 mythtv
dpeale at Compromise:/media/raid1/home/dpeale$ ls -al /home.old
total 16
drwxr-xr-x  4 root   root   4096 2011-05-22 10:49 .
drwxr-xr-x 24 root   root   4096 2011-05-22 21:54 ..
drwxr-xr-x 33 dpeale dpeale 4096 2011-05-22 14:10 dpeale
drwxr-xr-x  4 mythtv mythtv 4096 2011-05-22 14:33 mythtv
dpeale at Compromise:/media/raid1/home/dpeale$ man chown
dpeale at Compromise:/media/raid1/home/dpeale$ sudo chown root:root /media/raid1/.
dpeale at Compromise:/media/raid1/home/dpeale$ sudo chmod +x /media/raid1/.
dpeale at Compromise:/media/raid1/home/dpeale$ sudo chmod +r /media/raid1/.
dpeale at Compromise:/media/raid1/home/dpeale$ sudo ls -al /media/raid1
total 32
drwxr-xr-x 5 root   root    4096 2011-05-22 21:38 .
drwxr-xr-x 4 root   root    4096 2011-05-22 21:37 ..
drwxr-xr-x 3 dpeale dpeale  4096 2011-05-15 12:32 dpeale
drwxr-xr-x 4 root   root    4096 2011-05-22 10:49 home
drwx------ 2 root   root   16384 2011-05-15 12:28 lost+found
dpeale at Compromise:/media/raid1/home/dpeale$


I was able to start mythbackend after doing the above.

Notice that my prompt shows the absolute path instead of '~' for my home directory. Is this a symptom of something that will
cause me trouble in the future?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110523/dbcfbbdf/attachment.bin 


More information about the mythtv-users mailing list