View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Dec 08, 2009 12:35 am 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
Here is short howto to create a custom image in R601.00 for your diskless frontend if your backend hardware varies quite a bit like mine.

1.) Install a drive into your frontend.
2.) Boot the Linhes Cd and perform a Full Installation
3.) Create a Second User with a unique name during the install
3.) Once the system is up add your packages

Code:
As root
pacman -Syu
pacman -S firefox

rm /usr.info/dir
pacman -s xbmc-svn
pacman -s diskless-legacy
pacman -s diskless-legacy
two times for some odd reason

4.) Capture the custom image, setup your ip to be the ip that you want when it's running diskless. Setup the Name in this case I will use Livingroom
Code:
cd /usr/local/bin/
./config_diskless_front.bash


5.) Pack up your image with Tar
Code:
cd /nfsroot/
su
tar cvzf Livingroom.tgz Livingroom


6.) Assuming that you have a place on your backend and a valid user account to access the share. I will use Test user and /mnt/transfer as
example. Move the tar file to your backend.
Code:
scp -r Livingroom.tgz Test@Mythbackend:/mnt/transfer/
Are you sure you want to connect: YES
Password: Type your password


7. On your backend run the diskless script and create an image
In this example I use the Livingroom and setup the IP as the one I used for my diskless image.

8.) Move your custom image Livingroom.tgz to /nfsroot. Delete the image that you created in step 7.
Code:
cd /nfsroot
rm -R Livingroom


9.) Unpack your custom image in the /nfsroot directory
Code:
tar xvzf Livingroom.tgz


10.) Edit your custom image fstab so that nfs points to your backend
Code:
su
xedit /nfsroot/Livingroom/etc/fstab


11.) If you have a storage group
Add addition drives to fstab
Code:
cd /Livingroom/etc/fstab

Also create Shares for you storage group
Code:
mkdir Myth2

Setup mythtv as owner of the directories
Code:
chown mythtv:mythtv /myth2


12.) Change the bios in your frontend to boot to the nic

13.) Test you your new custom diskless frontend and thanks to Greg for creating the diskless script!!! Nice work :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 22, 2010 1:35 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2657
Location: Whittier, Ca
Nice write up!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 14, 2010 1:40 pm 
Offline
Joined: Wed Jan 04, 2006 10:20 am
Posts: 368
Location: South New Jersey, USA
My nfsroot is located on my root partition which is not large enough to hold more then one image of mythtv. In R5.5 I thought that nfsroot was moved to the /myth partition.
I ran the config script and it completed without any problems. How can I move it to /myth?

_________________
LINHES 8.3 BE/FE - MSI K9N6SGM-V with AMD A64 X2 4600+, 1GB Ram. 1.5TB WD. HDHR Prime & PVR150. Nvidia GT210. Silver remote.
FrontEnd - Dell Vostro 400 3.0GHz Core2Duo NVidia GeForce210. MCE Remote


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 14, 2010 3:05 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
Hello

I would recommend using GParted to expand the size of your boot partition out to around 15-20gb.

http://gparted.sourceforge.net/livecd.php

http://knoppmyth.net/phpBB2/viewtopic.php?t=20275&highlight=gparted


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 14, 2010 8:33 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I concur. Better to have it on the root partition otherwise a runaway log file will result in all of your recordings auto-expiring (instead of a full root partition which is also bad, but recoverable).

I achieved expanding my root partition by:

doing a backup
copying the contents of /myth to another drive
reinstalling the box as a full install selecting a larger root partition
copy the contents of /myth which includes the backup back
doing an auto-upgrade.

I think I did this back in the R5.5 days, but the same approach should work on R6.

If gparted can safely do it without damaging the partition that shrinks, that may be much easier, but I have no experience with that technique.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 15, 2010 6:59 am 
Offline
Joined: Wed Jan 04, 2006 10:20 am
Posts: 368
Location: South New Jersey, USA
Before getting your replies, I reran the script and found the entry for location of the frontend file system (which defaults to /nfsroot/xxx). I changed this to /myth/nfsroot/xxx and then ran into a problem where the tar failed due an insufficient number of free inodes (ugh!). I then re-ran it and put it on /myth2/nfsroot/xxx and it worked fine.

I do appreciated your comments about filling up the myth partitions and that along with the inodes problem, a fresh install might be in order.

I wonder if the best way might be a separate partition for diskless frontend roots. This would have to be done as part of a fresh install but since this option seems to be getting more and more popular, I would think that having the LINHES install script create a 10GB partition could be wise.

Thanks to both of you.

_________________
LINHES 8.3 BE/FE - MSI K9N6SGM-V with AMD A64 X2 4600+, 1GB Ram. 1.5TB WD. HDHR Prime & PVR150. Nvidia GT210. Silver remote.
FrontEnd - Dell Vostro 400 3.0GHz Core2Duo NVidia GeForce210. MCE Remote


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu