Is dreamplug painless?

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Wed Dec 07, 2011 1:14 pm

OK. initial Amahi login (on a plug) is admin/amahi

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Wed Dec 07, 2011 1:45 pm

sometime after installing Amahi, switching off Amahi DNS and DHCP servers, restarting, I have now lost internet access from the DP

[root@fedora-arm ~]# nslookup www.google.com
;; connection timed out; no servers could be reached

wget 173.194.32.19 works

So it looks like the DP cant resolve names. Anyone know how to get this going?

Peter

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Wed Dec 07, 2011 2:18 pm

I have disabled Amahi DHCP and DNS servers, and they even stayed down after reboot! (had problems with this on a previous X86 Amahi server)

It seems that the DP is still configured to use itself for DNS, but this will now not work since the DNS server is disabled

cat /etc/resolv.conf
search myprivatename
nameserver 192.168.0.10

I have tried changing the IP to my router
nameserver 192.168.0.1

but the file gets regenerated by (I believe) amahi when I restart the network, to point back to 192.168.0.10 (and also a bit garbled)

Amahi should not be regenerating resolv.conf when I have stopped the DNS server. This seems like a bug.

Any suggestions how to work around this much appreciated

Peter

service network restart

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Thu Dec 08, 2011 1:21 pm

I worked around the unwanted DNS configuration in resolv.conf with a dirty hack

I edited /usr/bin/hdactl and hardcoded in my router address

# printf $RSLV "nameserver $net.$self\n";
printf $RSLV "nameserver 192.168.0.1\n";

restarted the plug and internet is restored. Hooray!

I suppose I will now find out how often this file gets centrally updated. Because then my hack will disappear and things will stop working again.

I looked at editing the configuration in the DB but there seems to be a problem. Amahi uses the same IP value (in the DB) to identify both itself *and* the DNS server. (ie they will always be the same). So if I change the setting in the DB, I expect I will aslo give the Amahi server the same IP as my router (ie .1), which would be bad. Amahi should really have 2 separate config lines in the DB.

Anyway, everything seems to be working (more or less). Well enough to proceed with the next stage which is moving over my Greyhole disks from the old server

Peter

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Is dreamplug painless?

Postby bigfoot65 » Thu Dec 08, 2011 2:25 pm

Awesome, glad you are making progress. Try admin/admin for login.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Tue Dec 13, 2011 12:44 pm

I have now set up my storage pool and Shares. It is working fairly well however there are a few files on the Landing Zone that have not been replaced by tombstones yet. These files were put there over Samba using Picasa. I have run greyhole --fsck but it does not seem to help. It would be nice if Greyhole could be made to start checking in a particular share directory in order to quickly see what the problem is

I am also having trouble setting up a print server. The HP laserjet 1200 USB can be seen in dmesg

usb 1-1.2: new full speed USB device using orion-ehci and address 9
usblp0: USB Bidirectional printer dev 9 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0317

but that is all that seems to happen.

Any ideas?

Peter

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Wed Dec 14, 2011 11:04 am

It looks like the command lsof is missing on my standard plug installation

[root@fedora-arm ~]# lsof
-bash: lsof: command not found

[root@fedora-arm ~]# uname -a
Linux fedora-arm 2.6.35.4 #3 PREEMPT Mon Sep 20 09:59:29 PDT 2010 armv5tel armv5tel armv5tel GNU/Linux

This command is used by Greyhole to detect if a file is locked. I suspect its part of the reason why I am getting lots of the following

tail -f /var/log/greyhole.log
Dec 14 16:04:16 7 write: Now working on task ID 233863: write Pictures/11 Dec/DSC00376.JPG
Dec 14 16:04:16 6 write: File created: Pictures/11 Dec/DSC00376.JPG - 2.89MB
Dec 14 16:04:16 7 write: Loading tombstones for Pictures/11 Dec/DSC00376.JPG... Got 0 tombstones.
Dec 14 16:04:16 7 write: File is locked by another process. Will wait until it's unlocked to work on it.
Dec 14 16:04:16 7 write: More than 900 tasks queued... Won't queue any more at this time.

Peter

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Is dreamplug painless?

Postby bigfoot65 » Thu Dec 15, 2011 5:47 am

That could be. Also keep in mind the plug version of Amahi was not tested as thoroughly or used by as many as the traditional install. We did most of our dev and testing on a Sheeva Plug.

Sorry to say it appears that this may be the last version supported by Amahi as there just are not sufficient resources to work it for future versions of Fedora. At least for a while, but that could change. Unfortunately, Fedora is not as quick to release ARM versions of their software.

It is a nice alternative to a normal machine, but does not seem as popular. I have one myself, but have not used it in several months.

Hope you get everything sorted out and working. Please feel free to keep sharing your progress. If there is anything you can add to the wiki that might help other users, we would greatly appreciate it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Is dreamplug painless?

Postby rhubarb » Sat Dec 17, 2011 1:24 pm

Hi
I installed lsof and that seemd to fix the locked files problem

It looks like Greyhole is still not running properly so I have started a thread in the greyhole forum

Peter

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Is dreamplug painless?

Postby bigfoot65 » Mon Dec 19, 2011 7:30 am

Interesting that Greyhole is working in this way. Not sure what could be the cause, but hopefully you will get some help in fixing it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 6 guests