knoppmyth.net Forum Index knoppmyth.net
The home of KnoppMyth.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Diskless Frontend - NFSroot
Goto page Previous  1, 2, 3 ... , 15, 16, 17  Next
 
Post new topic   Reply to topic    knoppmyth.net Forum Index -> Usage/HowTo
View previous topic :: View next topic  
Author Message
djb61230



Joined: 23 Jun 2006
Posts: 106

PostPosted: Sun Nov 08, 2009 6:36 am    Post subject: Reply with quote

Greg Frost wrote:

Out of interest, how long has your backend been up? The script works by checking /var/log/daemon.log and I just booted one of my frontends and found that the mount logs went to /var/log/daemon.log.1
So it looks like the logs have been rotated, but its still writing to the old log. If this is the case with your system, rebooting the backend may solve your problem (because the logs will go to /var/log/daemon.log again).


Yeah I noticed that yesterday as I added a frontend to our "exercise" room. I just hacked on the config_diskless_frontend.bash to look in the .1 file instead of rebooting. Smile
Back to top
View user's profile Send private message
iscraigh



Joined: 21 Mar 2005
Posts: 384
Location: Nanaimo BC

PostPosted: Sun Nov 08, 2009 10:40 am    Post subject: Reply with quote

Unfortunately that is not my issue. The ip is in the log I rebooted started frontend and checked again.

Craig
Back to top
View user's profile Send private message
Greg Frost



Joined: 10 May 2004
Posts: 1888
Location: Adelaide, Australia

PostPosted: Sun Nov 08, 2009 12:17 pm    Post subject: Reply with quote

Can you pastebin the log or make it available somewhere for download?
Back to top
View user's profile Send private message
yaplej



Joined: 13 Feb 2006
Posts: 124
Location: White City OR

PostPosted: Thu Dec 10, 2009 11:03 pm    Post subject: Reply with quote

Can the DHCP portition of this be disabled like in R5? I recall in R5 I had to comment out "allow booting", and the network router could issue IP address while the KM box would reply to bootp requests.

When I started to run the R6 config_diskless_frontend.bash script it was asking me for a range of IP addresses to assign to the frontends. I cancled it because I dont want it doing DHCP. Can this be disabled in this newer script too?

Thanks.
_________________
[MBE/FE] CoolerMaster CM Media 250, Gigabyte GA-K8N51PVMT-9, AMD Athlon 64 3000+, 512MB Kingston RAM, 2x PVR150, WD 250GB SATA Drive, iMon PAD Remote + VFD.
Back to top
View user's profile Send private message Visit poster's website
yaplej



Joined: 13 Feb 2006
Posts: 124
Location: White City OR

PostPosted: Mon Jan 04, 2010 11:02 pm    Post subject: Reply with quote

Hey all,

I am getting a BE, and diskless FE setup. I have the FE booting after having to fix some video driver problems, but now when I rerun config_diskless_frontend.bash lock the MAC address it says that its unable to automatcially determine the MAC address.

Is there a way to manually specify the MAC address so I can start setting up another diskless FE?

Thanks.
_________________
[MBE/FE] CoolerMaster CM Media 250, Gigabyte GA-K8N51PVMT-9, AMD Athlon 64 3000+, 512MB Kingston RAM, 2x PVR150, WD 250GB SATA Drive, iMon PAD Remote + VFD.
Back to top
View user's profile Send private message Visit poster's website
Greg Frost



Joined: 10 May 2004
Posts: 1888
Location: Adelaide, Australia

PostPosted: Tue Jan 05, 2010 2:03 am    Post subject: Reply with quote

The script is looking for a line in /var/log/daemon.log that looks something like this:
Code:
Jan  4 22:39:55 mythtv mountd[4461]: authenticated mount request from 10.0.0.21:769 for /nfsroot/fedell (/nfsroot/fedell)

from this it gets the IP address that was served.

It then looks for a line like:
Code:
Jan  4 22:39:55 mythtv dhcpd: DHCPACK on 10.0.0.21 to 00:06:5b:7c:8e:5e via eth0
to determine the MAC address. You could put those details in the file so it can find them.
Back to top
View user's profile Send private message
yaplej



Joined: 13 Feb 2006
Posts: 124
Location: White City OR

PostPosted: Tue Jan 05, 2010 1:04 pm    Post subject: Reply with quote

Thanks Greg,

I was able to save the config by renaming the /tftpboot/pxelinux.cfg/default file to 01-00-14-85-11-18-87 this will be the boot file for that particular MAC address. The extra 01- in front means its the ARP type 1 address.
http://syslinux.zytor.com/wiki/index.php/PXELINUX

So this can be used so the DHCP server does not require IP addresses, and the router, or whatever device you have running can provide IP addresses even for PXE booting.

I ran into another problem when trying to run the script again to setup my 2nd FE though. It seems like the script does not like the "-" in the config file name. Maybe that could get fixed?

config_diskless_frontend.bash: line 65: 0x0-: syntax error: operand expected (error token is "-")

Edit: As a workaround I just moved the config file up one directly level, and reran the script to create a new "default" config file. I then booted my 2nd FE, and moved the 1st FE config file back into the pxelinux.cfg directory. After I got the MAC address of my 2nd FE I renamed the new "default" config file to 01-2nd-FE-MAC-Address, and all is well.
_________________
[MBE/FE] CoolerMaster CM Media 250, Gigabyte GA-K8N51PVMT-9, AMD Athlon 64 3000+, 512MB Kingston RAM, 2x PVR150, WD 250GB SATA Drive, iMon PAD Remote + VFD.
Back to top
View user's profile Send private message Visit poster's website
Greg Frost



Joined: 10 May 2004
Posts: 1888
Location: Adelaide, Australia

PostPosted: Wed Jan 13, 2010 4:15 am    Post subject: Reply with quote

I think the reason the script does not map the mac address properly sometimes is a logrotation issue. See this flyspray task:
http://linhes.org/flyspray/index.php?do=details&task_id=611
Back to top
View user's profile Send private message
RacerX



Joined: 05 Sep 2004
Posts: 245

PostPosted: Sun Mar 14, 2010 5:36 pm    Post subject: Reply with quote

Hello

Since I migrated to R6.02 last week I had to redo all of my diskless workstations. Right now I'm able to create a custom image as usual.
It works fine but I have two issues and was wondering if others have a similar issue.

Here is the log from my diskless frontend.

The first issue is that I'm unable to permanently change the theme. It is always Metallurgy Widescreen. Moreover, while I can change this theme to Blootube for my Diskless frontend that's 1024x768 Standard TV. When I change the theme as soon as I exit out of the frontend it rolls the theme back to Metallurgy next time I launch the frontend. It's like I do not have permission to change it permanently. I tested it also launching the frontend as root and it also rolls back the change. Additionally why does it show 1024x768 and then pick a theme that is 1280x720? Furthermore, how does it pick Metallurgy Widescreen Theme when I need a standard width theme like Blootube etc?

Code:
2010-03-14 19:08:54.331 Using screen 0, 1024x768 at 0,0
2010-03-14 19:08:54.385 MythUI Image Cache size set to 20971520 bytes
2010-03-14 19:08:54.386 Enabled verbose msgs:  important general
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-03-14 19:08:54.405 Primary screen: 0.
2010-03-14 19:08:54.406 Using screen 0, 1024x768 at 0,0
2010-03-14 19:08:54.408 Using theme base resolution of 1280x720
2010-03-14 19:08:54.418 LIRC, Error: Failed to connect to Unix socket '/var/run/lirc/lircd'
         eno: No such file or directory (2)
2010-03-14 19:08:54.419 JoystickMenuThread Error: Joystick disabled - Failed to read /home/mythtv/.mythtv/joystickmenurc
2010-03-14 19:08:54.681 Using the Qt painter
2010-03-14 19:08:54.692 Removing stale cache dir: /home/mythtv/.mythtv/themecache/blootube.1024.768
2010-03-14 19:08:54.847 Loaded base theme from /usr/share/mythtv/themes/metallurgy/base.xml
2010-03-14 19:08:55.025 Loaded base theme from /usr/share/mythtv/themes/default-wide/base.xml
2010-03-14 19:08:55.080 Loaded base theme from /usr/share/mythtv/themes/default/base.xml
2010-03-14 19:08:55.097 Current MythTV Schema Version (DBSchemaVer): 1244
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-03-14 19:08:55.699 Desktop video mode: 1024x768 60.006 Hz
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".



The second issue is the path for Lirc. It's calling /var/run/lirc/lircd

Code:
2010-03-14 19:08:54.418 LIRC, Error: Failed to connect to Unix socket '/var/run/lirc/lircd'
         eno: No such file or directory (2)


shouldn't it be?

/nfsroot/Bedroom/var/run/lirc/licd

Any help, comments would be great
Back to top
View user's profile Send private message
Greg Frost



Joined: 10 May 2004
Posts: 1888
Location: Adelaide, Australia

PostPosted: Sun Mar 14, 2010 6:15 pm    Post subject: Reply with quote

From the FEs perspective, it doesnt see /nfsroot/Bedroom/... but its root is actually the contents of that directory. Is the lircd deamon running? I think that error is saying something like "the socket that the lircd deamon uses to send button presses to applications is not present" which would most commonly occur if lircd was not running for some reason.

As for the first prob, I have seen occasions where a host specific setting has been set in the database as a global setting (hostname of null).

Im not home, so im guessing about the syntax, but if you do something like:

Code:
mysqldump --skip-opt mythconverg settings | grep "name of the setting"

where "name of the setting" is the name of the theme setting, and you see an entry without a hostname, that could be your problem.
Back to top
View user's profile Send private message
RacerX



Joined: 05 Sep 2004
Posts: 245

PostPosted: Sun Mar 14, 2010 7:24 pm    Post subject: Reply with quote

Greg

I ran the command
mysqldump --skip-opt mythconverg settings | grep "metallurgy"

Code:
INSERT INTO 'settings' VALUES ('OSDTheme', 'metallurgy','Livingroom');
INSERT INTO 'settings' VALUES ('Theme', 'metallurgy', 'Bedroom';

I was reading your other post about the ACER Atom PC and I was thinking about getting one if they worked out so I moved my Livingroom PC up to my Bedroom since it's faster. That created a problem I see because right now I do not have a PC in the Living Room. So how do I get it out of the database?

Also I enabled the snapstream firefly on my Master BE/FE and then rebooted my Bedroom PC but it did not change the error.

Thanks much again for the help Wink
Back to top
View user's profile Send private message
Greg Frost



Joined: 10 May 2004
Posts: 1888
Location: Adelaide, Australia

PostPosted: Mon Mar 15, 2010 2:43 am    Post subject: Reply with quote

what is the theme setting for all hosts?
Code:
mysqldump --skip-opt mythconverg settings | grep Theme

With regard to your remote, you should enter the service menu *on the frontend* not the backend and select the remote for the frontend.

To get rid of settings yo no longer need:
Code:
mysql mythconverg -e "delete from settings where hostname='fename'"


The Revo has worked out brilliantly as a FE, but Im still transitioning to my second revo to replace my backend. I bought a Welland NAS to stick my 1Tb drive from my backend and it is going to be a slow process copying my recordings onto it.
Back to top
View user's profile Send private message
RacerX



Joined: 05 Sep 2004
Posts: 245

PostPosted: Mon Mar 15, 2010 1:08 pm    Post subject: Reply with quote

Greg

Well I sorted both problems out today with this command

Code:
mysql mythconverg -e "delete from settings where hostname='fename'"


Looking at it again since I'm a long time user of the Diskless script I had all the pc's that I've ever setup in there, quite messy. In other words time to do some housekeeping!!! Basically I removed all of them except my Master Be/FE and one that I did not recognize. Then I rebooted my Bedroom frontend and it told me to enter my default language. Now I'm back to normal! I changed it to Blootube and it saves it properly. Better still my Firefly remote now works properly!!!

Outstanding Wink
Back to top
View user's profile Send private message
phisherpryce



Joined: 18 Aug 2010
Posts: 1

PostPosted: Wed Aug 18, 2010 10:44 pm    Post subject: Reply with quote

I setup a Linhes 6.03 backend and followed instructions to install the diskless-legacy package and run the config script. I commented out the 'allow bootp' as I already have another device acting as a dhcp server.

I'm able to network boot my frontend but I get a couple NFS related failures and a video driver issue:

Quote:

fail: nfslock: unable to change to the service directory: file does not exist

No state is present for card NVidia
Unknown hardware: "HDA-Intel" "Generic 10de NVIDIA MCP7A HDMI" "HDA:10ec0662,10438376,00100101 HDA: 10de0007,10de0101,00100100" "0x1043" "0x8376"
Hardware is initialized using a guess method
No state is present for card NVidia

::Mounting Network Filesystems
mount.nfs: /data/var/cache/pacman is busy or already mounted


The bootup process stops at 'Parent daemon running'. I'm not sure if the nfs errors are causing the problem or the video error.

Any ideas? Thanks.
Back to top
View user's profile Send private message
poflynn



Joined: 21 Apr 2007
Posts: 198
Location: CA,USA

PostPosted: Sun Aug 22, 2010 4:45 pm    Post subject: Reply with quote

phisherpryce wrote:

I'm able to network boot my frontend but I get a couple NFS related failures and a video driver issue:

Quote:

fail: nfslock: unable to change to the service directory: file does not exist

No state is present for card NVidia
Unknown hardware: "HDA-Intel" "Generic 10de NVIDIA MCP7A HDMI" "HDA:10ec0662,10438376,00100101 HDA: 10de0007,10de0101,00100100" "0x1043" "0x8376"
Hardware is initialized using a guess method
No state is present for card NVidia

::Mounting Network Filesystems
mount.nfs: /data/var/cache/pacman is busy or already mounted


The machine you built out your mbe on had an nVidia GFX card, this client machine has an intel-based GFX card (I think, please let us know. It may have nVidia on the client too & if so I suspect it is a different nVidia chipset that is not supported by the nVidia driver you have installed currently). You need to manually uninstall the current nVidia drivers & install the correct Intel (or nVidia?) ones.

In a perfect world your FE h/w would match your MBE h/w when setting up a diskless booting system, however this is not necessary but when they don't match you will have to do manual fiddling like this to get the h/w running. Same may apply to your sound card drivers for example.

I also get the pacman nfs error & never tried to debug it as it seems to work fine (I'm assuming the 'already mounted' part of the error is what applies to me).

phisherpryce wrote:

The bootup process stops at 'Parent daemon running'. I'm not sure if the nfs errors are causing the problem or the video error.

Any ideas? Thanks.


No idea why it is hanging here. What's in /var/log/messages (accessible from your MBE under /nfsroot/<<FEName>>/var/log/messages, i.e., no need to boot up the FE to get this log).
_________________
Paul O'Flynn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    knoppmyth.net Forum Index -> Usage/HowTo All times are GMT - 8 Hours
Goto page Previous  1, 2, 3 ... , 15, 16, 17  Next
Page 16 of 17

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group