Pages:
Author

Topic: Building a rock solid multi-gpu linux mining rig with CEntOS 6.0 - page 3. (Read 49496 times)

hero member
Activity: 924
Merit: 501
so you make these changes on the usb stick right?  then you reboot and the ati drivers work from the usb?

so you have a
/home/miner

on the usb and not on any drive?  do you have a drive?
sr. member
Activity: 462
Merit: 250
Free World
well.. because I think it is cheaper than buying hdd... and also easier to duplicate.. if ever I decide to increase the number of rigs...

hero member
Activity: 924
Merit: 501
That's a nice box and exactly how I would build if building from scratch.

>>my monitor goes into a KVM SWITCH... then from KVM SWITCH goes into the gpu...

that should not matter


* Viceroy scratches head

I wonder if this is because of the live usb. 

What are you doing with the USB?
sr. member
Activity: 462
Merit: 250
Free World
I did a little google search and found this:

Quote
Re: No GPUs detected!
« Reply #2 on: April 16, 2013, 04:31:17 am »
Thankyou very much for the reply.

I am - I actually managed to get it sorted by booting the system with a monitor connected to the graphics card (Ubuntu 12.04 Desktop). I was using the onboard port out of habit and I had read that *nix didn't require dummy plugs or additional monitors so I hadn't actually thought to test that. It's repeatable - if I boot the system without anything plugged into the graphics card, no dice. Boot with a monitor plugged in and it recognises the cards just fine.


Where you able to read that my monitor was not "DIRECTLY" connected to one of my gpu?

my monitor goes into a KVM SWITCH... then from KVM SWITCH goes into the gpu...


I also saw this images:



they have to put dummy plugs to the gpus...

sr. member
Activity: 462
Merit: 250
Free World
still the same... but was able to make user miners file accessible to newguy1

Code:
[root@livecd Desktop]# cd /home/miner
[root@livecd miner]# chmod a+rx *
[root@livecd miner]# su -l newguy1
[newguy1@livecd ~]$ cd /home/miner/cgminer
[newguy1@livecd cgminer]$ ./cgminer -n
-bash: ./cgminer: is a directory
[newguy1@livecd cgminer]$ ls
ADL_SDK  cgminer
[newguy1@livecd cgminer]$ cd cgminer
[newguy1@livecd cgminer]$ ./cgminer -n
No protocol specified
 [2013-04-25 09:17:16] CL Platform 0 vendor: Advanced Micro Devices, Inc.       
 [2013-04-25 09:17:16] CL Platform 0 name: AMD Accelerated Parallel Processing 
 [2013-04-25 09:17:16] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 09:17:16] Error -1: Getting Device IDs (num)
 [2013-04-25 09:17:16] clDevicesNum returned error, no GPUs usable             
 [2013-04-25 09:17:16] 0 GPU devices max detected
[newguy1@livecd cgminer]$


btw.. i have uploaded a screenshot about opening a terminal on user newguy1.. is this correct? and yeah.. i am doing all the work via remote sshd...
as root/miner/centoslive/newguy



hero member
Activity: 924
Merit: 501
$ cd /home/miner/cgminer
-bash: cd: /home/miner/cgminer: Permission denied

hold tight....

become root
su -l miner
cd /home
chmod a+rx *
#ignore warnings


 try again as newguy
hero member
Activity: 924
Merit: 501
x is x-windows operating system
it is the software required to run graphics on the linux machine

*** I do all this stuff remotely with putty

do this as root...
make a new user...

adduser newguy
passwd newguy  
#pick a password


then log into that machine as that user


as that user open a terminal window by using the pull down menu
in that terminal window do this, as user newguy

cd /home/miner/cgminer
./cgminer -n

sr. member
Activity: 462
Merit: 250
Free World

In the guide. open terminal on top left..

so I click -> applications -> system tools -> terminal

then terminal opens right? it login as centoslive

is this right? or X is a actually a different user? centoslive user is the main user when I first started... and just added the miner user...







Quote
and if I still get:
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)

It's because I haven't started X as the user (by opening an xterm window as user at the head).
fwiw I do not run the program as miner, I have another user ... my "main"... who actually has a password.
hero member
Activity: 924
Merit: 501
so that is exactly what I get before I set display.  

using other drivers from AMD I get that problem before AND after the set display.

So I logged into remote machine with putty (not through kvm)

I get this:

$ ./cgminer -n
 [2013-04-25 10:22:41] CL Platform 0 vendor: Advanced Micro Devices, Inc.      
 [2013-04-25 10:22:41] CL Platform 0 name: AMD Accelerated Parallel Processing  
 [2013-04-25 10:22:41] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)
 [2013-04-25 10:22:41] clDevicesNum returned error, no GPUs usable              
 [2013-04-25 10:22:41] 0 GPU devices max detected


I set display
$ export DISPLAY=:0
 and voila:

$ ./cgminer -n
 [2013-04-25 10:23:19] CL Platform 0 vendor: Advanced Micro Devices, Inc.      
 [2013-04-25 10:23:19] CL Platform 0 name: AMD Accelerated Parallel Processing  
 [2013-04-25 10:23:19] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 10:23:19] Platform 0 devices: 2
 [2013-04-25 10:23:19]  0       Barts
 [2013-04-25 10:23:19]  1       Barts
 [2013-04-25 10:23:19] GPU 0 AMD Radeon HD 6800 Series hardware monitoring enabled
 [2013-04-25 10:23:19] GPU 1 AMD Radeon HD 6800 Series hardware monitoring enabled
 [2013-04-25 10:23:19] 2 GPU devices max detected

and if I still get:
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)

It's because I haven't started X as the user (by opening an xterm window as user at the head).
fwiw I do not run the program as miner, I have another user ... my "main"... who actually has a password.

sr. member
Activity: 462
Merit: 250
Free World
ah okay.. now im back to this display protocol problem... but hey.. cgminer was installed... Cheesy

Code:
[miner@livecd cgminer]$ ./cgminer -n
No protocol specified
 [2013-04-25 08:10:48] CL Platform 0 vendor: Advanced Micro Devices, Inc.       
 [2013-04-25 08:10:48] CL Platform 0 name: AMD Accelerated Parallel Processing 
 [2013-04-25 08:10:48] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 08:10:48] Error -1: Getting Device IDs (num)
 [2013-04-25 08:10:48] clDevicesNum returned error, no GPUs usable             
 [2013-04-25 08:10:48] 0 GPU devices max detected
[miner@livecd cgminer]$

Quote

keep going....


 in cgminer directory:
as user: make
as root: make install
as user: ./cgminer -n
hero member
Activity: 924
Merit: 501
btw.. do you know how to make this OS boot at persistent mode? It is defaulted to live mode... and when i make changes they are not saved..

I did put 4gb persistence on this thumb drive when I burnt the .iso

I do not, that would be a nice thing to be able to do.  Just change grub.conf?  I don't know.
hero member
Activity: 924
Merit: 501
it downloads and installs

and now I got 2 makes?
Code:
make[2]: Leaving directory `/home/miner/cgminer/cgminer'
make[1]: Leaving directory `/home/miner/cgminer/cgminer'
[miner@livecd cgminer]$

what happens with this command as root?

yum install libcurl-devel


Is what I get (i think) ...

?did you run this as root?
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*   
?

keep going....


 in cgminer directory:
as user: make
as root: make install
as user: ./cgminer -n
sr. member
Activity: 462
Merit: 250
Free World
it downloads and installs

and now I got 2 makes?
Code:
make[2]: Leaving directory `/home/miner/cgminer/cgminer'
make[1]: Leaving directory `/home/miner/cgminer/cgminer'
[miner@livecd cgminer]$

what happens with this command as root?

yum install libcurl-devel


btw.. do you know how to make this OS boot at persistent mode? It is defaulted to live mode... and when i make changes they are not saved..

I did put 4gb persistence on this thumb drive when I burnt the .iso
hero member
Activity: 924
Merit: 501
this line *should* have taken care of that

Code:
#### if you see an error about yum being locked be patient it will unlock in a minute
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*

what happens with this command as root?

yum install libcurl-devel
hero member
Activity: 924
Merit: 501
Yes.. I used the old school drivers like the tutorial said...

i think i messed up with basic libraries.. i also can't install cgminer properly.

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
[miner@livecd cgminer]$

If I re-do everything.. it will be my 5th time.. lol..

so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?

do not rebuild.  hold tight.
hero member
Activity: 924
Merit: 501
ok, Im at my head... let's get this chumpy working....  logging in

sr. member
Activity: 462
Merit: 250
Free World
btw...

if I do this properly on this thumb drive...

can I just copy the entire thumb drive and paste it into another thumb drive and it is going to be a clone?

or I have to re-do everything on each thumb drive?

sr. member
Activity: 462
Merit: 250
Free World
Yes.. I used the old school drivers like the tutorial said...

i think i messed up with basic libraries.. i also can't install cgminer properly.

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
[miner@livecd cgminer]$

If I re-do everything.. it will be my 5th time.. lol..

so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?
hero member
Activity: 924
Merit: 501
so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?
sr. member
Activity: 462
Merit: 250
Free World
I already did this.. but no success...

also my current setup is with 2 pc.. 1 monitor/1keyboard/1mouse... and using KVM to switch to different pc/monitor...

but I can already see all 2 gpus...

Code:
[root@livecd ~]# aticonfig --lsa
No protocol specified
* 0. 01:00.0 AMD Radeon HD 6900 Series
  1. 02:00.0 AMD Radeon HD 6900 Series

* - Default adapter


ok, you look awfully close to success....

What I do, and I cannot explain why this works, is I go to the machine directly (the head) and I log in as a regular user.  Then I open a "terminal window" by pulling down from the menu on the top left.    This must cause the X system to turn on as that user because doing that step then allows me to log in remotely and set my display (export DISPLAY=:0).  Once that is done I can use all the X tools. 

If I use xming on my PC the gears pop up on my local (remotely connected) machine.  IF I am at the head, or am not using an x-windows emulator on my pc the gears program pops up on the "head" of the linux box.

If you can see the gears, you can probably mine.
Pages:
Jump to: