Re: RHEL6 + mysql-server

2011-07-12 bef zés Gabor HALASZ
On 7/12/2011 11:54 PM, BORBELY Zoltan wrote:
>   Sziasztok!
> 
> On Tue, Jul 12, 2011 at 11:29:05PM +0200, Gabor HALASZ wrote:
>> [...] ezert csinalni valamit illetlen dolgot a 21921-es
>> processel, tudtommal ugyanis SIG0 nincs.
> 
> Ez egy elég régi trükk, hogy az adott PID létezik-e még (kill(2)):
> 
> "If  sig  is 0, then no signal is sent, but error checking is still per‐
>  formed; this can be used to check for the existence of a process ID  or
>  process group ID."

Ah, ertem (bar az en man-ombol ez hianyzik, de a feature mukodik).

-- 
Gabor HALASZ 
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

Re: RHEL6 + mysql-server

2011-07-12 bef zés BORBELY Zoltan
Sziasztok!

On Tue, Jul 12, 2011 at 11:29:05PM +0200, Gabor HALASZ wrote:
> [...] ezert csinalni valamit illetlen dolgot a 21921-es
> processel, tudtommal ugyanis SIG0 nincs.

Ez egy elég régi trükk, hogy az adott PID létezik-e még (kill(2)):

"If  sig  is 0, then no signal is sent, but error checking is still per‐
 formed; this can be used to check for the existence of a process ID  or
 process group ID."

Üdv
Bozo
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

Re: RHEL6 + mysql-server

2011-07-12 bef zés Gabor HALASZ
On 7/12/2011 10:51 PM, Papp Tamas wrote:
> hi!
> 
> Szepen telepitve, ahogy kell:
> 
> mysql-server-5.1.52-1.el6_0.1.i686
> 
> 
> Ha siman startolom, akkor nem indul el:
> 

Ez mit jelent?

> + TIMEOUT=120
> + '[' 120 -gt 0 ']'
> + /usr/bin/mysqld_safe --datadir=/var/lib/mysql 
> --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid 
> --basedir=/usr --user=mysql
> ++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
> --user=UNKNOWN_MYSQL_USER ping
> + RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
> failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + grep -q 'Access denied for user'
> + /bin/kill -0 21921
> + sleep 1
> + let TIMEOUT=120-1
> + '[' 119 -gt 0 ']'
> ++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
> --user=UNKNOWN_MYSQL_USER ping
> + RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
> failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + grep -q 'Access denied for user'
> + echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
> error: '\''Can'\''t connect to local MySQL server through socket 
> '\''/var/lib/mysql/mysql.sock'\'' (2)'\''
> Check that mysqld is running and that the socket: 
> '\''/var/lib/mysql/mysql.sock'\'' exists!'
> + /bin/kill -0 21921
> + echo 'MySQL Daemon failed to start.'
> MySQL Daemon failed to start.
> 
> 
> Azaz ha jol ertelmezem, a process fut, de meg azelott elszall, hogy 
> lehetne a service-hez kapcsolodni.

Nem. A mysqladmin kimenetebol arra kovetkeztet, hogy nem fut a mysqld,
de ott van a sokcket, ezert csinalni valamit illetlen dolgot a 21921-es
processel, tudtommal ugyanis SIG0 nincs.
A mysqld low memory konfiggal nagyon lassan indul el, ezert probalna ket
percig kapcsolodni, de mar a masodik probalkozas utan abbahagyja.

Nem tul jo otlet a dbdirbe public socketet rakni, mert a dbirnek illene
mysql:mysql 700-nak lennie, akkor meg nem fersz hozza a sockethez.

> 
> Ellenben, ha a sh -x /etc/init.d/mysqld-vel startolom, akkor rendben 
> elindul. Vajon mi baja lehet?
> 

Nem sikerult korrekt initscriptet irni.

-- 
Gabor HALASZ 
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


RHEL6 + mysql-server

2011-07-12 bef zés Papp Tamas
hi!

Szepen telepitve, ahogy kell:

mysql-server-5.1.52-1.el6_0.1.i686


Ha siman startolom, akkor nem indul el:

+ TIMEOUT=120
+ '[' 120 -gt 0 ']'
+ /usr/bin/mysqld_safe --datadir=/var/lib/mysql 
--socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid 
--basedir=/usr --user=mysql
++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
--user=UNKNOWN_MYSQL_USER ping
+ RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
failed
error: '\''Can'\''t connect to local MySQL server through socket 
'\''/var/lib/mysql/mysql.sock'\'' (2)'\''
Check that mysqld is running and that the socket: 
'\''/var/lib/mysql/mysql.sock'\'' exists!'
+ echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
error: '\''Can'\''t connect to local MySQL server through socket 
'\''/var/lib/mysql/mysql.sock'\'' (2)'\''
Check that mysqld is running and that the socket: 
'\''/var/lib/mysql/mysql.sock'\'' exists!'
+ grep -q 'Access denied for user'
+ /bin/kill -0 21921
+ sleep 1
+ let TIMEOUT=120-1
+ '[' 119 -gt 0 ']'
++ /usr/bin/mysqladmin --socket=/var/lib/mysql/mysql.sock 
--user=UNKNOWN_MYSQL_USER ping
+ RESPONSE='/usr/bin/mysqladmin: connect to server at '\''localhost'\'' 
failed
error: '\''Can'\''t connect to local MySQL server through socket 
'\''/var/lib/mysql/mysql.sock'\'' (2)'\''
Check that mysqld is running and that the socket: 
'\''/var/lib/mysql/mysql.sock'\'' exists!'
+ grep -q 'Access denied for user'
+ echo '/usr/bin/mysqladmin: connect to server at '\''localhost'\'' failed
error: '\''Can'\''t connect to local MySQL server through socket 
'\''/var/lib/mysql/mysql.sock'\'' (2)'\''
Check that mysqld is running and that the socket: 
'\''/var/lib/mysql/mysql.sock'\'' exists!'
+ /bin/kill -0 21921
+ echo 'MySQL Daemon failed to start.'
MySQL Daemon failed to start.


Azaz ha jol ertelmezem, a process fut, de meg azelott elszall, hogy 
lehetne a service-hez kapcsolodni.

Ellenben, ha a sh -x /etc/init.d/mysqld-vel startolom, akkor rendben 
elindul. Vajon mi baja lehet?


10x

tompos
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: SCSI gond

2011-07-12 bef zés Gabor HALASZ
On 7/12/2011 1:34 PM, Pápai Balázs wrote:
> Gabor HALASZ írta:
>> On 7/11/2011 9:57 PM, Pápai Balázs wrote:
>>> Gyakorlatilag működik, mert ír és vissza is sikerült olvasni azt amit
>>> kiírt, de napjában legalább egyszer ezt logolja a kernel.
>>> Mit érdemes megpróbálni a queue depth értékeként?
>>
>> Kisebbet a jelenleginel. tape-nel akar nulla is lehet.
>>
> És hogy tudom ezt beállítani?
> 

Nem tudom, es nem is erdekel :) Evekkel ezelotti emlekeim szerint
driverenkent es releasonkent random modon, kernelkonfig, bootparameter,
moduleparameter, procfs, sysfs, vagy ha ez sem, akkor Mekka iranyaba
hajladozas; de ahogyan neztem az internetet, ez azota sem valtozott.
Szoval olvasgass kernelforrast, meg modinfo (ha van meg), meg a
virtualis fs-eken is kellene nyoma legyen. Lehet, tobbre mesz azzal, ha
vegiggondolod, milyen valtozasok voltak a gepben akkor, amikor eloszor
jelentkezett az problema, ha voltak egyaltalan. Ha nem, akkor vergodik a
tape (ez amugy is valoszinu, mert a 0x01 elviekben a command timeout).

-- 
Gabor HALASZ 
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: SCSI gond

2011-07-12 bef zés Pápai Balázs
Gabor HALASZ írta:
> On 7/11/2011 9:57 PM, Pápai Balázs wrote:
>> Gyakorlatilag működik, mert ír és vissza is sikerült olvasni azt amit
>> kiírt, de napjában legalább egyszer ezt logolja a kernel.
>> Mit érdemes megpróbálni a queue depth értékeként?
> 
> Kisebbet a jelenleginel. tape-nel akar nulla is lehet.
> 
És hogy tudom ezt beállítani?



_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: Xorg Nvidia GeForce 6200 & dual head

2011-07-12 bef zés Kovács Attila
2011.07.12. 9:03 keltezéssel, Kis János Tamás írta:
> A kívánt hatást valóban el lehet érni a xrandr segítségével:
>
...
> de nem lehetne mindezt inkább "kultúrált" módon valami konfig fájlnak
> beadagolni...?
Elvileg igen, a hatása esetleges (nem tudni miért néha "meggondolja 
magát" és
a monitor szekcióban - most hirtelen meg nem mondom neked hogy milyen
fájlban, mert ugyan szenvedtem vele eleget, de az xrandr mellett kötöttem
ki én is - található bejegyzést felülírja),
legalábbis gnome alatt nekem úgy tűnik -> gyakorlatilag nem.

-- 
k-atti-
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

Re: Xorg Nvidia GeForce 6200 & dual head

2011-07-12 bef zés Kis János Tamás
2011/7/11 Kovács Attila :
> 2011.07.11. 15:03 keltezéssel, Kis János Tamás írta:
>>
>> Adott a tárgybeli eszköz, mellyel 2 db monitort szeretnék vezérelni,
>> (jelenleg) az alábbi beállítások szerint:
>>
> xrandr a te barátod.
>

A kívánt hatást valóban el lehet érni a xrandr segítségével:

 kjt@c05:~$ xrandr -s 1600x1200 -r 85 --verbose
 SZ:Pixels  Physical   Refresh
*0   1600 x 1200   ( 350mm x 262mm )  *85   75
...
Current rotation - normal
Current reflection - none
Rotations possible - normal left inverted right
Reflections possible - X Axis Y Axis
Setting size to 0, rotation to normal
Setting reflection on neither axis
kjt@c05:~$ xrandr -s 1600x1200 -r 85 --verbose --output DVI-I-2
--right-of DVI-I-1 --auto
screen 0: 3200x1200 845x316 mm  96.15dpi
crtc 1:1600x1200   85.0 +1600+0 "DVI-I-2"
kjt@c05:~$  xrandr
Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 4096 x 4096
DVI-I-1 connected 1600x1200+0+0 (normal left inverted right x axis y
axis) 350mm x 262mm
   1600x1200  85.0*+   75.0
...
DVI-I-2 connected 1600x1200+1600+0 (normal left inverted right x axis
y axis) 350mm x 262mm
   1600x1200  85.0*+   75.0
...
kjt@c05:~$

de nem lehetne mindezt inkább "kultúrált" módon valami konfig fájlnak
beadagolni...?

Köszönettel:
kjt
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux