LinHES Forums http://forums.linhes.org/ |
|
Building a Custom Diskless Image for Diskless Frontends http://forums.linhes.org/viewtopic.php?f=25&t=20655 |
Page 1 of 1 |
Author: | RacerX [ Tue Dec 08, 2009 12:35 am ] |
Post subject: | Building a Custom Diskless Image for Diskless Frontends |
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 two times for some odd reasonpacman -Syu pacman -S firefox rm /usr.info/dir pacman -s xbmc-svn pacman -s diskless-legacy pacman -s diskless-legacy 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 |
Author: | cecil [ Mon Feb 22, 2010 1:35 am ] |
Post subject: | |
Nice write up! |
Author: | Big boy stan [ Sun Mar 14, 2010 1:40 pm ] |
Post subject: | |
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? |
Author: | RacerX [ Sun Mar 14, 2010 3:05 pm ] |
Post subject: | |
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 |
Author: | Greg Frost [ Sun Mar 14, 2010 8:33 pm ] |
Post subject: | |
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. |
Author: | Big boy stan [ Mon Mar 15, 2010 6:59 am ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |