Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
<<< SNIP >>>
> I'm a little confused: you log in KDE as a regular user, open a
> Konsole, type "su -", and what happens?
> 
> What do you mean with "Konsole won't even try to come up"?
> 
> In the shell that Krusader provides (which I assume you run as a
> regular user), what it's the result of "which su"? And also, what
> happens when (inside the shell from Krusader) you run /bin/su?
> 
> If not for the fact that you say that in a virtual console su works, I
> would be willing to suggest that your initramfs never does the
> switch_root, and so you end up with the minimal / from the initramfs,
> and your normal /usr. That would be beyond bizarre, but if you *can*
> use su in a virtual console, then it should be there.
> 
> I usally log in in GNOME, open a gnome-terminal, and set a fixed
> number of tabs in gnome-terminal where I "su -", and work as root in
> there. I also can run an X11 program as root with "su -lc
> /usr/bin/gedit", but I almost never do that (although it works; I just
> checked).
> 
> I don't think I understand how do you use su. Could you explain it to
> me, please?
> 
> One last thing: create a  directory /tmp/whatever, and inside it
> unpack your initramfs:
> 
> zcat /boot/init-thingie | cpio -i
> 
> Could you do a "ls -R /tmp/whatever" so we can see what actually ends
> up in yout initramfs?
> 
> Regards.


Actually, I log into KDE as a user and when Konsole opens, it asks for
the root password.  I have the KDE session saved so it opens all this on
its own.  Anyway, since I have it set that way, Konsole never opens, I
assume because it can't find the su command.  I have been doing it this
way since back in the KDE3 days.  It has never done this before.

I finally got around to rebooting to check on this, hence the delay in
replying, and found this in the boot up process, the stuff that scrolls
up the screen.  I'm having to type this in since it is NOT in dmesg or
the logs but just printed on the screen.


dracut: switching root
switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
switch_root: forcing unmount of /dev
switch_root: failed to unlink dev: Directory not empty
INIT: version 2.88 booting


Keep in mind, the three middle lines with the problems are NOT shown in
dmesg, messages or anywhere else but the screen.  I had to boot with nox
to even see this.  This is what ticks me on this mess.  With the way it
logs things, you better hope you got video buffer to scroll up with or
you don't get to see the failure.

Also, while booted with the init thingy, I made sure the real /
partition was mounted.  It shows sda3 was mounted and based on the space
used, I believe it.  I got to clean out some old kernels pretty soon.  ;-)

I'm attaching the results from the ls command.  It's a bit lengthy.  o_O

Thanks.  Sorry for the delay.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
root@fireball /tmp/whatever # ls -R /tmp/whatever
/tmp/whatever:
total 22
drwxr-xr-x 15 root root   432 Apr  2 02:33 .
drwxrwxrwt 10 root root   376 Apr  2 02:32 ..
drwxr-xr-x  2 root root   576 Apr  2 02:33 bin
drwxr-xr-x  2 root root48 Apr  2 02:33 dev
drwxr-xr-x  7 root root   432 Apr  2 02:33 etc
-rwxr-xr-x  1 root root 12622 Apr  2 02:33 init
lrwxrwxrwx  1 root root 5 Apr  2 02:33 lib -> lib64
drwxr-xr-x  5 root root  1072 Apr  2 02:33 lib64
drwxr-xr-x  2 root root48 Apr  2 02:33 proc
drwxr-xr-x  2 root root48 Apr  2 02:33 root
drwxr-xr-x  5 root root   128 Apr  2 02:33 run
drwxr-xr-x  2 root root   440 Apr  2 02:33 sbin
-rwxr-xr-x  1 root root  2547 Apr  2 02:33 shutdown
drwxr-xr-x  2 root root48 Apr  2 02:33 sys
drwxr-xr-x  2 root root48 Apr  2 02:33 sysroot
drwxr-xr-x  2 root root48 Apr  2 02:33 tmp
drwxr-xr-x  6 root root   144 Apr  2 02:33 usr
drwxr-xr-x  3 root root   120 Apr  2 02:33 var

/tmp/whatever/bin:
total 1313
drwxr-xr-x  2 root root576 Apr  2 02:33 .
drwxr-xr-x 15 root root432 Apr  2 02:33 ..
-rwxr-xr-x  1 root root  31024 Apr  2 02:33 basename
-rwxr-xr-x  1 root root  55840 Apr  2 02:33 cat
-rwxr-xr-x  1 root root  35216 Apr  2 02:33 chroot
-rwxr-xr-x  1 root root 113440 Apr  2 02:33 cp
-rwxr-xr-x  1 root root 109688 Apr  2 02:33 dash
-rwxr-xr-x  1 root root  22736 Apr  2 02:33 dmesg
-rwxr-xr-x  1 root root  55776 Apr  2 02:33 ln
-rwxr-xr-x  1 root root 113872 Apr  2 02:33 ls
-rwxr-xr-x  1 root root  55760 Apr  2 02:33 mkdir
-rwxr-xr-x  1 root root  35120 Apr  2 02:33 mkfifo
-rwxr-xr-x  1 root root  39248 Apr  2 02:33 mknod
-rws--x--x  1 root root 102984 Apr  2 02:33 mount
-rwxr-xr-x  1 root root 101120 Apr  2 02:33 mv
lrwxrwxrwx  1 root root 16 Apr  2 02:33 pidof -> ../sbin/killall5
-rwxr-xr-x  1 root root  47520 Apr  2 02:33 readlink
-rwxr-xr-x  1 root root  63984 Apr  2 02:33 rm
-rwxr-xr-x  1 root root 134504 Apr  2 02:33 sed
lrwxrwxrwx  1 root root  4 Ap

Re: [gentoo-user] Nginx with PHP-FPM

2012-04-02 Thread Michael Schreckenbauer
On Monday 02 April 2012 04:26:47 siefke_lis...@web.de wrote:
> Hello,
> 
> I try my web hosting environment to mirror locally. On my Rootserver run
> Nginx with PHP-FPM under FreeBSD. So i has installed Nginx, PHP and Mysql
> here local on Gentoo. But something is not correct, it want not really run.
> I has search in web and use the config for Nginx on Gentoo (is other as on
> FreeBSD) but nothing happen. The website (info.php) is blank and in logs i
> find not the way which is my mistake.
> 
> nginx.conf > http://nopaste.info/72a40e9c5e.html
> php-fpm.conf > http://nopaste.info/94a9de62d5.html
> emerge --info php nginx > http://nopaste.info/225b12e106.html

I'm not really an expert with ngingx and php-fpm, but afaict the error is in 
the location line in nginx.conf.
You have:
location ~ .php$ {
...
Afaik this only matches the exact file ".php"

Try changing it to
location ~ ^(.*)\.php$ {
...
This would match all files ending in ".php"

> Regards
> Silvio

Hth,
Michael




Re: [gentoo-user] Tips for saving power needed...

2012-04-02 Thread Robert David
Hi,

maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs
(size, speed, type) and others. 

Also provide lspci output and /proc/cpuinfo.

Then this is a server, maybe with more than one GB nic. If you dont use
spare nics disable them in bios. Do the same with other unneeded stuff.

If you can access your server and replace cards, remove everything you
dont need. Do not lower fans or dont play with cpu voltage. If you want
to run this server 24/7 it can cause serious problems. It will not save
you much power. Paradoxly this could lead to higher power usage in
some cases, because of hotter devices.

Remove spare memory cards, if you dont need much memory, etc.

Robert.

V Sun, 01 Apr 2012 17:04:58 +0200
Jarry  napsáno:

> Hi,
> 
> admin of a colo-center keeps complaining my server is going
> a little over power-limit (which they have set as ~120W per
> 24h/avg, while my server needs ~130-135W). So I need to find
> a way to save at least those 15W, or I will be moved to
> higher tarif (which means higher costs for server-housing).
> 
> Before going hard(ware) way, I would like to try first
> all possible software solutions. What I tried up to now is
> cpufreqd, CONFIG_NO_HZ=y, and spindown. In addition to that
> I adjusted fan-speeds to a little lower values and turned
> off some unneeded peripherials (in bios).
> 
> Is there anything else I could do? Any tips would be greatly
> welcomed...
> 
> Jarry
> 




Re: [gentoo-user] Tips for saving power needed...

2012-04-02 Thread Pandu Poluan
On Apr 2, 2012 5:00 PM, "Robert David" 
wrote:
>
> Hi,
>
> maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs
> (size, speed, type) and others.
>
> Also provide lspci output and /proc/cpuinfo.
>
> Then this is a server, maybe with more than one GB nic. If you dont use
> spare nics disable them in bios. Do the same with other unneeded stuff.
>
> If you can access your server and replace cards, remove everything you
> dont need. Do not lower fans or dont play with cpu voltage. If you want
> to run this server 24/7 it can cause serious problems. It will not save
> you much power. Paradoxly this could lead to higher power usage in
> some cases, because of hotter devices.
>
> Remove spare memory cards, if you dont need much memory, etc.
>
> Robert.
>
> V Sun, 01 Apr 2012 17:04:58 +0200
> Jarry  napsáno:
>
> > Hi,
> >
> > admin of a colo-center keeps complaining my server is going
> > a little over power-limit (which they have set as ~120W per
> > 24h/avg, while my server needs ~130-135W). So I need to find
> > a way to save at least those 15W, or I will be moved to
> > higher tarif (which means higher costs for server-housing).
> >
> > Before going hard(ware) way, I would like to try first
> > all possible software solutions. What I tried up to now is
> > cpufreqd, CONFIG_NO_HZ=y, and spindown. In addition to that
> > I adjusted fan-speeds to a little lower values and turned
> > off some unneeded peripherials (in bios).
> >
> > Is there anything else I could do? Any tips would be greatly
> > welcomed...
> >
> > Jarry
> >
>
>

I'd rather have *more* RAM than causing unnecessary swaps.

Try using a smaller swapfile to reduce swap tendencies. You can always push
a larger swapfile into service when needed.

There's also a kernel knob to set 'swappiness', but I forget what exactly.
Try 'sysctl -a | grep swap'

Rgds,


Re: [gentoo-user] Tips for saving power needed...

2012-04-02 Thread Michael Mol
On Mon, Apr 2, 2012 at 7:57 AM, Pandu Poluan  wrote:
>
> On Apr 2, 2012 5:00 PM, "Robert David" 
> wrote:
>>
>> Hi,
>>
>> maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs
>> (size, speed, type) and others.
>>
>> Also provide lspci output and /proc/cpuinfo.
>>
>> Then this is a server, maybe with more than one GB nic. If you dont use
>> spare nics disable them in bios. Do the same with other unneeded stuff.
>>
>> If you can access your server and replace cards, remove everything you
>> dont need. Do not lower fans or dont play with cpu voltage. If you want
>> to run this server 24/7 it can cause serious problems. It will not save
>> you much power. Paradoxly this could lead to higher power usage in
>> some cases, because of hotter devices.
>>
>> Remove spare memory cards, if you dont need much memory, etc.
>>
>> Robert.
>>
>> V Sun, 01 Apr 2012 17:04:58 +0200
>> Jarry  napsáno:
>>
>> > Hi,
>> >
>> > admin of a colo-center keeps complaining my server is going
>> > a little over power-limit (which they have set as ~120W per
>> > 24h/avg, while my server needs ~130-135W). So I need to find
>> > a way to save at least those 15W, or I will be moved to
>> > higher tarif (which means higher costs for server-housing).
>> >
>> > Before going hard(ware) way, I would like to try first
>> > all possible software solutions. What I tried up to now is
>> > cpufreqd, CONFIG_NO_HZ=y, and spindown. In addition to that
>> > I adjusted fan-speeds to a little lower values and turned
>> > off some unneeded peripherials (in bios).
>> >
>> > Is there anything else I could do? Any tips would be greatly
>> > welcomed...
>> >
>> > Jarry
>> >
>>
>>
>
> I'd rather have *more* RAM than causing unnecessary swaps.
>
> Try using a smaller swapfile to reduce swap tendencies. You can always push
> a larger swapfile into service when needed.
>
> There's also a kernel knob to set 'swappiness', but I forget what exactly.
> Try 'sysctl -a | grep swap'

Swappiness is the knob you want to set if you want to reduce
swappiness. I set mine to 0; swap only when absolutely necessary.

In /etc/sysctl.conf:
vm.swappiness = 0

On the command line:
sysctl -w vm.swappiness=0

-- 
:wq



Re: [gentoo-user] Nginx with PHP-FPM

2012-04-02 Thread Silvio Siefke
Hello,

On Mon, 02 Apr 2012 11:01:46 +0200
Michael Schreckenbauer  wrote:

> I'm not really an expert with ngingx and php-fpm, but afaict the error is in 
> the location line in nginx.conf.
> You have:
> location ~ .php$ {
> ...
> Afaik this only matches the exact file ".php"
> 
> Try changing it to
> location ~ ^(.*)\.php$ {
> ...
> This would match all files ending in ".php"

thanks for advice. But nothing happen the result is same like before. 
Blank website, no phpinfo output. 

In logs stand only "closed keepalive connection, can it be that something
in php-fpm.conf not correct is set?


Regards
Silvio



Re: [gentoo-user] Nginx with PHP-FPM

2012-04-02 Thread Michael Schreckenbauer
On Monday 02 April 2012 14:17:47 Silvio Siefke wrote:
> Hello,
> 
> On Mon, 02 Apr 2012 11:01:46 +0200
> 
> Michael Schreckenbauer  wrote:
> > I'm not really an expert with ngingx and php-fpm, but afaict the error is
> > in the location line in nginx.conf.
> > You have:
> > location ~ .php$ {
> > ...
> > Afaik this only matches the exact file ".php"
> > 
> > Try changing it to
> > location ~ ^(.*)\.php$ {
> > ...
> > This would match all files ending in ".php"
> 
> thanks for advice. But nothing happen the result is same like before.
> Blank website, no phpinfo output.
> 
> In logs stand only "closed keepalive connection, can it be that something
> in php-fpm.conf not correct is set?

to get more info from nginx, try to increase the log level, eg
error_log /var/log/nginx/error_log debug;
php-fpm.conf looks correct to me.
You include fastcgi.conf. Could you post the contents?

> Regards
> Silvio

Best,
Michael




Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 2:41 AM, Dale  wrote:
> Canek Peláez Valdés wrote:
> <<< SNIP >>>
>> I'm a little confused: you log in KDE as a regular user, open a
>> Konsole, type "su -", and what happens?
>>
>> What do you mean with "Konsole won't even try to come up"?
>>
>> In the shell that Krusader provides (which I assume you run as a
>> regular user), what it's the result of "which su"? And also, what
>> happens when (inside the shell from Krusader) you run /bin/su?
>>
>> If not for the fact that you say that in a virtual console su works, I
>> would be willing to suggest that your initramfs never does the
>> switch_root, and so you end up with the minimal / from the initramfs,
>> and your normal /usr. That would be beyond bizarre, but if you *can*
>> use su in a virtual console, then it should be there.
>>
>> I usally log in in GNOME, open a gnome-terminal, and set a fixed
>> number of tabs in gnome-terminal where I "su -", and work as root in
>> there. I also can run an X11 program as root with "su -lc
>> /usr/bin/gedit", but I almost never do that (although it works; I just
>> checked).
>>
>> I don't think I understand how do you use su. Could you explain it to
>> me, please?
>>
>> One last thing: create a  directory /tmp/whatever, and inside it
>> unpack your initramfs:
>>
>> zcat /boot/init-thingie | cpio -i
>>
>> Could you do a "ls -R /tmp/whatever" so we can see what actually ends
>> up in yout initramfs?
>>
>> Regards.
>
>
> Actually, I log into KDE as a user and when Konsole opens, it asks for
> the root password.  I have the KDE session saved so it opens all this on
> its own.  Anyway, since I have it set that way, Konsole never opens, I
> assume because it can't find the su command.  I have been doing it this
> way since back in the KDE3 days.  It has never done this before.

Oh, I see; so you always use an X terminal as a root session. You
never use a terminal as a regular user? I have never been able to do
that.

> I finally got around to rebooting to check on this, hence the delay in
> replying, and found this in the boot up process, the stuff that scrolls
> up the screen.  I'm having to type this in since it is NOT in dmesg or
> the logs but just printed on the screen.
>
>
> dracut: switching root
> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
> switch_root: forcing unmount of /dev
> switch_root: failed to unlink dev: Directory not empty
> INIT: version 2.88 booting

Do you have /dev listed in your fstab? Actually, can you show us your
/etc/fstab file?

> Keep in mind, the three middle lines with the problems are NOT shown in
> dmesg, messages or anywhere else but the screen.  I had to boot with nox
> to even see this.  This is what ticks me on this mess.  With the way it
> logs things, you better hope you got video buffer to scroll up with or
> you don't get to see the failure.

Add this to your kernel command line:

rd.debug rd.udev.debug

Also, remove quiet and splash (if any) from the kernel command line.
All this info is in the dracut man pages:

man dracut
man dracut.cmdline

> Also, while booted with the init thingy, I made sure the real /
> partition was mounted.  It shows sda3 was mounted and based on the space
> used, I believe it.  I got to clean out some old kernels pretty soon.  ;-)

Yeah, but it is mounted as it should? As I said last mail, could you
check if in the shell that Krusader provides, what it's the result of
"which su"? And also, what happens when (inside the shell from
Krusader) you run /bin/su?

Also, an "ls -l /bin/su" would be helpful (even from the virtual
console: Ctrl+Alt+F1); it may be a permissions related thing. I think
you can make that "ls /bin/su"; it seems that you have "ls" aliased to
"ls -l".

The listing of your initramfs seems fine; therefore, probably the
problem is elsewhere. Again, please show us your fstab, and lets also
see your kernel command line (in either GRUB, GRUB2 or LILO, whichever
you use). And, I repeat, if you want to see the dracut output in
dmesg, add the following to your kernel command line:

rd.debug rd.udev.debug

and remove "splash" and "quiet" from it, if they are set.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Tips for saving power needed...

2012-04-02 Thread Simon
There's "powertop" that I use, which shows a listing of things that are
keeping the computer busy.  And it gives recommendations on how to lower
power usage (including setting kernel options, enabling/disabling stuff in
/sys, etc...).  It also estimates power consumption in Watts and gives you
approx time left.

Many recomendations already posted in this emails will be suggested by
powertop.

Simon

On Mon, Apr 2, 2012 at 8:10 AM, Michael Mol  wrote:

> On Mon, Apr 2, 2012 at 7:57 AM, Pandu Poluan  wrote:
> >
> > On Apr 2, 2012 5:00 PM, "Robert David" 
> > wrote:
> >>
> >> Hi,
> >>
> >> maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs
> >> (size, speed, type) and others.
> >>
> >> Also provide lspci output and /proc/cpuinfo.
> >>
> >> Then this is a server, maybe with more than one GB nic. If you dont use
> >> spare nics disable them in bios. Do the same with other unneeded stuff.
> >>
> >> If you can access your server and replace cards, remove everything you
> >> dont need. Do not lower fans or dont play with cpu voltage. If you want
> >> to run this server 24/7 it can cause serious problems. It will not save
> >> you much power. Paradoxly this could lead to higher power usage in
> >> some cases, because of hotter devices.
> >>
> >> Remove spare memory cards, if you dont need much memory, etc.
> >>
> >> Robert.
> >>
> >> V Sun, 01 Apr 2012 17:04:58 +0200
> >> Jarry  napsáno:
> >>
> >> > Hi,
> >> >
> >> > admin of a colo-center keeps complaining my server is going
> >> > a little over power-limit (which they have set as ~120W per
> >> > 24h/avg, while my server needs ~130-135W). So I need to find
> >> > a way to save at least those 15W, or I will be moved to
> >> > higher tarif (which means higher costs for server-housing).
> >> >
> >> > Before going hard(ware) way, I would like to try first
> >> > all possible software solutions. What I tried up to now is
> >> > cpufreqd, CONFIG_NO_HZ=y, and spindown. In addition to that
> >> > I adjusted fan-speeds to a little lower values and turned
> >> > off some unneeded peripherials (in bios).
> >> >
> >> > Is there anything else I could do? Any tips would be greatly
> >> > welcomed...
> >> >
> >> > Jarry
> >> >
> >>
> >>
> >
> > I'd rather have *more* RAM than causing unnecessary swaps.
> >
> > Try using a smaller swapfile to reduce swap tendencies. You can always
> push
> > a larger swapfile into service when needed.
> >
> > There's also a kernel knob to set 'swappiness', but I forget what
> exactly.
> > Try 'sysctl -a | grep swap'
>
> Swappiness is the knob you want to set if you want to reduce
> swappiness. I set mine to 0; swap only when absolutely necessary.
>
> In /etc/sysctl.conf:
> vm.swappiness = 0
>
> On the command line:
> sysctl -w vm.swappiness=0
>
> --
> :wq
>
>


Re: [gentoo-user] Nginx with PHP-FPM

2012-04-02 Thread Silvio Siefke
Hello,

On Mon, 02 Apr 2012 14:30 +0200
Michael Schreckenbauer  wrote:

> to get more info from nginx, try to increase the log level, eg
> error_log /var/log/nginx/error_log debug;
> php-fpm.conf looks correct to me.
> You include fastcgi.conf. Could you post the contents?


The fastcgi.conf
fastcgi_param  SCRIPT_FILENAME$document_root$fastcgi_script_name;
fastcgi_param  QUERY_STRING   $query_string;
fastcgi_param  REQUEST_METHOD $request_method;
fastcgi_param  CONTENT_TYPE   $content_type;
fastcgi_param  CONTENT_LENGTH $content_length;

fastcgi_param  SCRIPT_NAME$fastcgi_script_name;
fastcgi_param  REQUEST_URI$request_uri;
fastcgi_param  DOCUMENT_URI   $document_uri;
fastcgi_param  DOCUMENT_ROOT  $document_root;
fastcgi_param  SERVER_PROTOCOL$server_protocol;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWAREnginx/$nginx_version;

fastcgi_param  REMOTE_ADDR$remote_addr;
fastcgi_param  REMOTE_PORT$remote_port;
fastcgi_param  SERVER_ADDR$server_addr;
fastcgi_param  SERVER_PORT$server_port;
fastcgi_param  SERVER_NAME$server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS200;


I have write debug not info in error log. 


2012/04/02 17:59:24 [info] 21288#0: *4 client closed prematurely connection 
while reading client request line, client: 192.168.0.20, server: localhost



192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET / HTTP/1.1" 200 633 "-" 
"Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) 
Chrome/18.0.1025.142 Safari/535.19" "-"

192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET /favicon.ico HTTP/1.1" 200 
1650 
"-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) 
Chrome/18.0.1025.142 Safari/535.19" "-"

192.168.0.20 - - [02/Apr/2012:17:59:21 +0200] "GET /info.php HTTP/1.1" 200 289 
"-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) 
Chrome/18.0.1025.142 Safari/535.19" "0.47"

192.168.0.20 - - [02/Apr/2012:17:59:24 +0200] "-" 400 0 "-" "-" "-"


No phpinfo output. Its strange. 


Regards
Silvio



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
> On Mon, Apr 2, 2012 at 2:41 AM, Dale  wrote:
<< SNIP >>
>> Actually, I log into KDE as a user and when Konsole opens, it asks for
>> the root password.  I have the KDE session saved so it opens all this on
>> its own.  Anyway, since I have it set that way, Konsole never opens, I
>> assume because it can't find the su command.  I have been doing it this
>> way since back in the KDE3 days.  It has never done this before.
> 
> Oh, I see; so you always use an X terminal as a root session. You
> never use a terminal as a regular user? I have never been able to do
> that.

It is rare that I login as a user then su to root in Console.  I do that
all the time tho when in KDE.  KDE no longer allows a person to login as
root and I think it is a good idea as well.  So, when I need to emerge
something, edit a config file or do other things as root, then su or
kdesu comes in handy.  ;-)   I am able to open about anything as root if
needed.  Konsole and some sort of file manager, Konqueror or Krusaderm
is my biggest tools.


> 
>> I finally got around to rebooting to check on this, hence the delay in
>> replying, and found this in the boot up process, the stuff that scrolls
>> up the screen.  I'm having to type this in since it is NOT in dmesg or
>> the logs but just printed on the screen.
>>
>>
>> dracut: switching root
>> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
>> switch_root: forcing unmount of /dev
>> switch_root: failed to unlink dev: Directory not empty
>> INIT: version 2.88 booting
> 
> Do you have /dev listed in your fstab? Actually, can you show us your
> /etc/fstab file?
> 


LABEL=boot  /boot   ext2defaults1 2
LABEL=root  /   reiserfsdefaults0 1
LABEL=swap  noneswapsw  0 0
LABEL=var   /varext3defaults0 2
LABEL=portage   /usr/portageext3defaults0 2
LABEL=home  /home   reiserfsdefaults0 2
LABEL=data  /data   ext4defaults0 2
tmpfs   /var/tmp/portage tmpfs  noatime   0 0
shm /dev/shmtmpfs   nodev,nosuid,noexec 
0 0

I have never had /dev in fstab that I recall.  I also removed all the
things that were commented out since they should be ignored anyway.   I
have a lot of old lines that are no longer needed, CD drive, old
partitions and such.

>> Keep in mind, the three middle lines with the problems are NOT shown in
>> dmesg, messages or anywhere else but the screen.  I had to boot with nox
>> to even see this.  This is what ticks me on this mess.  With the way it
>> logs things, you better hope you got video buffer to scroll up with or
>> you don't get to see the failure.
> 
> Add this to your kernel command line:
> 
> rd.debug rd.udev.debug


Got that added.   Let me know what to look for.  Right now I plan to use
nox so that I can look for myself, since boo boos are not logged to
dmesg or messages.


> 
> Also, remove quiet and splash (if any) from the kernel command line.
> All this info is in the dracut man pages:
> 
> man dracut
> man dracut.cmdline

I don't use the quiet or the splash stuff.  I like it simple remember?
I watch the stuff scroll up and that is how I saw the errors posted.  If
I wasn't watching real close, I would have never noticed them since I
was using dmesg, messages and grep.


> 
>> Also, while booted with the init thingy, I made sure the real /
>> partition was mounted.  It shows sda3 was mounted and based on the space
>> used, I believe it.  I got to clean out some old kernels pretty soon.  ;-)
> 
> Yeah, but it is mounted as it should? As I said last mail, could you
> check if in the shell that Krusader provides, what it's the result of
> "which su"? And also, what happens when (inside the shell from
> Krusader) you run /bin/su?
> 
> Also, an "ls -l /bin/su" would be helpful (even from the virtual
> console: Ctrl+Alt+F1); it may be a permissions related thing. I think
> you can make that "ls /bin/su"; it seems that you have "ls" aliased to
> "ls -l".

I have ls aliased to ls -al.  You noticed huh?  lol

I can't show that because it won't let me get that far.  When I tell
Krusader to open as root, a pop up window comes up and asks for the root
password.  When I type in the password, it complains about su not being
in the path or missing then goes away.  So, I can't post that one.

That said, I did a mount >>  and then did the same while
booted without the init thingy.  Here it is then I'll explain.  Take
note of the / partition which is sda3 here:


rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime

Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 2:54 PM, Dale  wrote:
> Canek Peláez Valdés wrote:
>> On Mon, Apr 2, 2012 at 2:41 AM, Dale  wrote:
> << SNIP >>
>>> Actually, I log into KDE as a user and when Konsole opens, it asks for
>>> the root password.  I have the KDE session saved so it opens all this on
>>> its own.  Anyway, since I have it set that way, Konsole never opens, I
>>> assume because it can't find the su command.  I have been doing it this
>>> way since back in the KDE3 days.  It has never done this before.
>>
>> Oh, I see; so you always use an X terminal as a root session. You
>> never use a terminal as a regular user? I have never been able to do
>> that.
>
> It is rare that I login as a user then su to root in Console.  I do that
> all the time tho when in KDE.  KDE no longer allows a person to login as
> root and I think it is a good idea as well.  So, when I need to emerge
> something, edit a config file or do other things as root, then su or
> kdesu comes in handy.  ;-)   I am able to open about anything as root if
> needed.  Konsole and some sort of file manager, Konqueror or Krusaderm
> is my biggest tools.
>
>
>>
>>> I finally got around to rebooting to check on this, hence the delay in
>>> replying, and found this in the boot up process, the stuff that scrolls
>>> up the screen.  I'm having to type this in since it is NOT in dmesg or
>>> the logs but just printed on the screen.
>>>
>>>
>>> dracut: switching root
>>> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
>>> switch_root: forcing unmount of /dev
>>> switch_root: failed to unlink dev: Directory not empty
>>> INIT: version 2.88 booting
>>
>> Do you have /dev listed in your fstab? Actually, can you show us your
>> /etc/fstab file?
>>
>
>
> LABEL=boot              /boot           ext2            defaults        1 2
> LABEL=root              /               reiserfs        defaults        0 1
> LABEL=swap              none            swap            sw              0 0
> LABEL=var               /var            ext3            defaults        0 2
> LABEL=portage           /usr/portage    ext3            defaults        0 2
> LABEL=home              /home           reiserfs        defaults        0 2
> LABEL=data              /data           ext4            defaults        0 2
> tmpfs                   /var/tmp/portage tmpfs          noatime   0 0
> shm                     /dev/shm        tmpfs           nodev,nosuid,noexec   
>   0 0
>
> I have never had /dev in fstab that I recall.  I also removed all the
> things that were commented out since they should be ignored anyway.   I
> have a lot of old lines that are no longer needed, CD drive, old
> partitions and such.
>
>>> Keep in mind, the three middle lines with the problems are NOT shown in
>>> dmesg, messages or anywhere else but the screen.  I had to boot with nox
>>> to even see this.  This is what ticks me on this mess.  With the way it
>>> logs things, you better hope you got video buffer to scroll up with or
>>> you don't get to see the failure.
>>
>> Add this to your kernel command line:
>>
>> rd.debug rd.udev.debug
>
>
> Got that added.   Let me know what to look for.  Right now I plan to use
> nox so that I can look for myself, since boo boos are not logged to
> dmesg or messages.
>
>
>>
>> Also, remove quiet and splash (if any) from the kernel command line.
>> All this info is in the dracut man pages:
>>
>> man dracut
>> man dracut.cmdline
>
> I don't use the quiet or the splash stuff.  I like it simple remember?
> I watch the stuff scroll up and that is how I saw the errors posted.  If
> I wasn't watching real close, I would have never noticed them since I
> was using dmesg, messages and grep.
>
>
>>
>>> Also, while booted with the init thingy, I made sure the real /
>>> partition was mounted.  It shows sda3 was mounted and based on the space
>>> used, I believe it.  I got to clean out some old kernels pretty soon.  ;-)
>>
>> Yeah, but it is mounted as it should? As I said last mail, could you
>> check if in the shell that Krusader provides, what it's the result of
>> "which su"? And also, what happens when (inside the shell from
>> Krusader) you run /bin/su?
>>
>> Also, an "ls -l /bin/su" would be helpful (even from the virtual
>> console: Ctrl+Alt+F1); it may be a permissions related thing. I think
>> you can make that "ls /bin/su"; it seems that you have "ls" aliased to
>> "ls -l".
>
> I have ls aliased to ls -al.  You noticed huh?  lol
>
> I can't show that because it won't let me get that far.  When I tell
> Krusader to open as root, a pop up window comes up and asks for the root
> password.  When I type in the password, it complains about su not being
> in the path or missing then goes away.  So, I can't post that one.
>
> That said, I did a mount >>  and then did the same while
> booted without the init thingy.  Here it is then I'll explain.  Take
> note of the / partition which is sda3 here:
>
>
> rootfs / rootfs rw 0 0
> proc /proc proc rw,nosuid,node

[gentoo-user] Advice about ati-drivers?

2012-04-02 Thread walt

Hi list.  I think some of you have Radeon video cards, right?  I'm having
trouble getting my built-in video card to work:

00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 12h Processor Root 
Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 
BeaverCreek [Radeon HD 6530D]

The problem is that the screen goes black during boot if KMS is enabled,
but works just fine when disabled.

I found an error in dmesg, but I don't know how to fix it:

[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to kernel modesetting.
[drm] radeon kernel modesetting enabled.
[drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x17AA:0x3625).
[drm] register mmio base: 0xFEB0
[drm] register mmio size: 262144
ATOM BIOS: General
radeon :00:01.0: VRAM: 512M 0x - 0x1FFF (512M 
used)
radeon :00:01.0: GTT: 512M 0x2000 - 0x3FFF
[drm] Detected VRAM RAM=512M, BAR=256M
[drm] RAM width 32bits DDR
[TTM] Zone  kernel: Available graphics memory: 1766482 kiB
[TTM] Initializing pool allocator
[TTM] Initializing DMA pool allocator
[drm] radeon: 512M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
radeon :00:01.0: irq 42 for MSI/MSI-X
radeon :00:01.0: radeon: using MSI.
[drm] radeon: irq initialized.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] radeon: ib pool ready.
[drm] Loading SUMO Microcode
r600_cp: Failed to load firmware "radeon/SUMO_pfp.bin"
[drm:evergreen_startup] *ERROR* Failed to load firmware!
radeon :00:01.0: disabling GPU acceleration


BTW, I did compile in all three SUMO firmware files, and SUMO_pfp.bin
is one of them.  Should I see messages for the other two *if* they did
load okay?  I don't know if they did or not.




Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
<<>>
> Well damn. Why you do not have devtmpfs? In all the machines I have
> access to (with or without initramfs, with either systemd or OpenRC),
> they have devtmps:
> 
> devtmpfs on /dev type devtmpfs
> (rw,nosuid,relatime,size=2023140k,nr_inodes=505785,mode=755)
> devtmpfs on /dev type devtmpfs
> (rw,nosuid,relatime,size=506680k,nr_inodes=126670,mode=755)
> devtmpfs on /dev type devtmpfs
> (rw,nosuid,relatime,size=1939288k,nr_inodes=484822,mode=755)
> devtmpfs on /dev type devtmpfs
> (rw,relatime,size=257224k,nr_inodes=64306,mode=755) < The one with
> OpenRC, no initramfs
> 
> I don't see that one in your mount output. It seems kinda relevant, I
> think. Please, can you attach your /boot/grub/grub.cfg file? I still
> haven't seen the kernel command line, and I suppose that it's
> relevant. Also, I know it's a lot, but could you please include your
> kernel /usr/src/linux/.config file? Both dracut and udev need some
> specific kernel config options that maybe you don't have.
> 
> Regards.


Here is my grub lines:

title=Initramfs-new_kernel
root (hd0,0)
kernel /boot/bzImage-3.2.11-1 root=/dev/sda3 init=/sbin/init  rd.debug
rd.udev.debug
initrd /initramfs-3.2.11.img

title Gentoo
kernel (hd0,0)/bzImage-3.2.11-1 root=/dev/sda3
acpi_enforce_resources=lax raid=noautodetect iommu=noaperture

The stuff on the end without the init thingy was added to make sure
gkrellm worked.  I think it is fixed now and can be removed but I just
haven't done it yet.

I added that debug stuff to the line for the init thngy but have not
booted it yet.

Now what?

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 4:21 PM, Dale  wrote:
> Canek Peláez Valdés wrote:
> <<>>
>> Well damn. Why you do not have devtmpfs? In all the machines I have
>> access to (with or without initramfs, with either systemd or OpenRC),
>> they have devtmps:
>>
>> devtmpfs on /dev type devtmpfs
>> (rw,nosuid,relatime,size=2023140k,nr_inodes=505785,mode=755)
>> devtmpfs on /dev type devtmpfs
>> (rw,nosuid,relatime,size=506680k,nr_inodes=126670,mode=755)
>> devtmpfs on /dev type devtmpfs
>> (rw,nosuid,relatime,size=1939288k,nr_inodes=484822,mode=755)
>> devtmpfs on /dev type devtmpfs
>> (rw,relatime,size=257224k,nr_inodes=64306,mode=755) < The one with
>> OpenRC, no initramfs
>>
>> I don't see that one in your mount output. It seems kinda relevant, I
>> think. Please, can you attach your /boot/grub/grub.cfg file? I still
>> haven't seen the kernel command line, and I suppose that it's
>> relevant. Also, I know it's a lot, but could you please include your
>> kernel /usr/src/linux/.config file? Both dracut and udev need some
>> specific kernel config options that maybe you don't have.
>>
>> Regards.
>
>
> Here is my grub lines:
>
> title=Initramfs-new_kernel
> root (hd0,0)
> kernel /boot/bzImage-3.2.11-1 root=/dev/sda3 init=/sbin/init  rd.debug
> rd.udev.debug
> initrd /initramfs-3.2.11.img
>
> title Gentoo
> kernel (hd0,0)/bzImage-3.2.11-1 root=/dev/sda3
> acpi_enforce_resources=lax raid=noautodetect iommu=noaperture
>
> The stuff on the end without the init thingy was added to make sure
> gkrellm worked.  I think it is fixed now and can be removed but I just
> haven't done it yet.
>
> I added that debug stuff to the line for the init thngy but have not
> booted it yet.

Why do you have /boot/bzImage-3.2.11-1 in the initramfs kernel, but
(hd0,0)/bzImage-3.2.11-1 in the other one? You have /boot in another
partition, so in both cases you should have something similar to

root (hd0,0)
kernel (hd0,1)/bzImage-3.2.11-1 ...

isn't? (where "(hd0,1)" is your /boot partition, since you do use
labels, I don't know the exact number).

Could it be possible that you are booting with an older kernel when
using the initramfs entry without noticing it? Can you "umount /boot"
in your machine and see if there is a kernel in there, and if it's
different from the one in the actual /boot partition?

In any case, the two grub entries are certainly not "identical"
besides the initrd line (maybe they should be?). Also, can a have a
look at your /usr/src/linux/.config file?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Neil Bothwick
On Mon, 02 Apr 2012 02:41:12 -0500, Dale wrote:

> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild
> argument

Do you have DEVTMPFS support in your kernel? What do you get from

zgrep DEVTMP /proc/config.gz


-- 
Neil Bothwick

After all is said and done let there not be more said than done.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Neil Bothwick wrote:
> zgrep DEVTMP /proc/config.gz


Ooops, it sort of snipped a bit much.  lol   Here you go:

root@fireball / # zgrep DEVTMP /proc/config.gz
# CONFIG_DEVTMPFS is not set
root@fireball / #

Looks like a nope to me.  ;-)

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
> Neil Bothwick wrote:
>> zgrep DEVTMP /proc/config.gz
>
>
> Ooops, it sort of snipped a bit much.  lol   Here you go:
>
> root@fireball / # zgrep DEVTMP /proc/config.gz
> # CONFIG_DEVTMPFS is not set
> root@fireball / #
>
> Looks like a nope to me.  ;-)

That was the reason for asking for your /usr/src/linux/.config file.
The udev ebuild ask for:

CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
~!SYSFS_DEPRECATED_V2"

The dracut ebuild ask for:

CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"

So please check that you have all those options (and don't have the
ones with !), recompile your kernel, and reboot.

Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
your grub could be causing  funny things. Check that also.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



[gentoo-user] Re: Advice about ati-drivers? [50% SOLVED]

2012-04-02 Thread walt

On 04/02/2012 01:37 PM, walt wrote:

Hi list. I think some of you have Radeon video cards, right? I'm having
trouble getting my built-in video card to work:

00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 12h Processor Root 
Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 
BeaverCreek [Radeon HD 6530D]

The problem is that the screen goes black during boot if KMS is enabled,
but works just fine when disabled.

I found an error in dmesg, but I don't know how to fix it:

r600_cp: Failed to load firmware "radeon/SUMO_pfp.bin"
[drm:evergreen_startup] *ERROR* Failed to load firmware!
radeon :00:01.0: disabling GPU acceleration


I want to strangle me a kernel dev for this one.  Please tell me why these two
kernel configs shouldn't be equivalent.

This one works:
CONFIG_EXTRA_FIRMWARE="radeon/SUMO_pfp.bin radeon/SUMO_me.bin 
radeon/SUMO_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

but this one doesn't work:
CONFIG_EXTRA_FIRMWARE="SUMO_pfp.bin SUMO_me.bin SUMO_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/radeon"

I finally spotted a (non-fatal) kernel compile error that zooms by so fast on
this quad-core machine that I didn't see it the first dozen times.

When I finally noticed the error I googled it and found an irate gentoo user on
the gentoo forums who wasted his time solving it with the change I quoted above.

However, now that the firmware loading problem is fixed, my screen still goes
black on bootup.  But now it's instantaneous instead of 60 seconds delayed :(

I'm back to functioning vesa mode if I boot with radeon.memset=0, but that's
not really my goal...yet :p




Re: [gentoo-user] Re: Advice about ati-drivers? [50% SOLVED]

2012-04-02 Thread Michael Hampicke
> However, now that the firmware loading problem is fixed, my screen still
> goes
> black on bootup.  But now it's instantaneous instead of 60 seconds
> delayed :(
> 
> I'm back to functioning vesa mode if I boot with radeon.memset=0, but
> that's
> not really my goal...yet :p

Last time I reinstalled gentoo, I tried kms too (with my Radeon HD2600
card). And I had lots of problems with it - in combination with
ati-drivers fglrx module (blank on boot, freeze while starting X,
generell crashes and kernel panics, low performence...,...). So I
finally decided not to use kms disable everything related to kms. Since
then everything is running smoothly. Two weeks ago, I purchased an new
video card (Radeon HD7770) and gave kms another shot. And again,
everything went down the crapper. So disabled it. I can live without it
for the time being. But still, I would be interested in the "why?".



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
> On Mon, Apr 2, 2012 at 4:21 PM, Dale  wrote:

>>
>> Here is my grub lines:
>>
>> title=Initramfs-new_kernel
>> root (hd0,0)
>> kernel /boot/bzImage-3.2.11-1 root=/dev/sda3 init=/sbin/init  rd.debug
>> rd.udev.debug
>> initrd /initramfs-3.2.11.img
>>
>> title Gentoo
>> kernel (hd0,0)/bzImage-3.2.11-1 root=/dev/sda3
>> acpi_enforce_resources=lax raid=noautodetect iommu=noaperture
>>
>> The stuff on the end without the init thingy was added to make sure
>> gkrellm worked.  I think it is fixed now and can be removed but I just
>> haven't done it yet.
>>
>> I added that debug stuff to the line for the init thngy but have not
>> booted it yet.
> 
> Why do you have /boot/bzImage-3.2.11-1 in the initramfs kernel, but
> (hd0,0)/bzImage-3.2.11-1 in the other one? You have /boot in another
> partition, so in both cases you should have something similar to
> 
> root (hd0,0)
> kernel (hd0,1)/bzImage-3.2.11-1 ...
> 
> isn't? (where "(hd0,1)" is your /boot partition, since you do use
> labels, I don't know the exact number).
> 
> Could it be possible that you are booting with an older kernel when
> using the initramfs entry without noticing it? Can you "umount /boot"
> in your machine and see if there is a kernel in there, and if it's
> different from the one in the actual /boot partition?
> 
> In any case, the two grub entries are certainly not "identical"
> besides the initrd line (maybe they should be?). Also, can a have a
> look at your /usr/src/linux/.config file?
> 
> Regards.


I unmounted /boot and there was nothing there.  I'll remove that extra
/boot but I doubt it will matter.  After all, it just symlinks to
itself.  At least mine does here anyway.  ;-)

As to the kernel, it boots the exact same kernel.  That is the only
kernel I have for that version.  If grub was pointing to anything else,
it wouldn't be there to even try to boot.

What should I add to fstab for /dev?  This is a desktopy rig.

Thanks.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
> On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
>> Neil Bothwick wrote:
>>> zgrep DEVTMP /proc/config.gz
>>
>>
>> Ooops, it sort of snipped a bit much.  lol   Here you go:
>>
>> root@fireball / # zgrep DEVTMP /proc/config.gz
>> # CONFIG_DEVTMPFS is not set
>> root@fireball / #
>>
>> Looks like a nope to me.  ;-)
> 
> That was the reason for asking for your /usr/src/linux/.config file.
> The udev ebuild ask for:
> 
> CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
> ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
> ~!SYSFS_DEPRECATED_V2"
> 
> The dracut ebuild ask for:
> 
> CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
> 
> So please check that you have all those options (and don't have the
> ones with !), recompile your kernel, and reboot.
> 
> Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
> your grub could be causing  funny things. Check that also.
> 
> Regards.


OK.  I hate modules.  Can they be built into the kernel?  The only
module I have is nvidia for my video card.

Also, if you can put this in one email, what about the /dev line in fstab?

I didn't check the ebuild but I don't recall seeing anything when I
emerged dracut either.  o_O   Maybe we are on to something here.  ^_O

Thanks

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Pandu Poluan
On Apr 3, 2012 7:26 AM, "Dale"  wrote:
>
> Canek Peláez Valdés wrote:
> > On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
> >> Neil Bothwick wrote:
> >>> zgrep DEVTMP /proc/config.gz
> >>
> >>
> >> Ooops, it sort of snipped a bit much.  lol   Here you go:
> >>
> >> root@fireball / # zgrep DEVTMP /proc/config.gz
> >> # CONFIG_DEVTMPFS is not set
> >> root@fireball / #
> >>
> >> Looks like a nope to me.  ;-)
> >
> > That was the reason for asking for your /usr/src/linux/.config file.
> > The udev ebuild ask for:
> >
> > CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
> > ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
> > ~!SYSFS_DEPRECATED_V2"
> >
> > The dracut ebuild ask for:
> >
> > CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
> >
> > So please check that you have all those options (and don't have the
> > ones with !), recompile your kernel, and reboot.
> >
> > Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
> > your grub could be causing  funny things. Check that also.
> >
> > Regards.
>
>
> OK.  I hate modules.  Can they be built into the kernel?  The only
> module I have is nvidia for my video card.
>
> Also, if you can put this in one email, what about the /dev line in fstab?
>
> I didn't check the ebuild but I don't recall seeing anything when I
> emerged dracut either.  o_O   Maybe we are on to something here.  ^_O
>

AFAIK DEVTMPFS is not a module. You either turn it on or off. Of course,
you'll need a whole-kernel compile, but that's it.

If you use menuconfig, IIRC there's another option right under DEVTMPFS'
one that offers to mount devtmpfs on boot. If you turn that on, you *might*
get away without a /dev in fstab.

Rgds,


Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 7:19 PM, Dale  wrote:
> Canek Peláez Valdés wrote:
>> On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
>>> Neil Bothwick wrote:
 zgrep DEVTMP /proc/config.gz
>>>
>>>
>>> Ooops, it sort of snipped a bit much.  lol   Here you go:
>>>
>>> root@fireball / # zgrep DEVTMP /proc/config.gz
>>> # CONFIG_DEVTMPFS is not set
>>> root@fireball / #
>>>
>>> Looks like a nope to me.  ;-)
>>
>> That was the reason for asking for your /usr/src/linux/.config file.
>> The udev ebuild ask for:
>>
>> CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
>> ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
>> ~!SYSFS_DEPRECATED_V2"
>>
>> The dracut ebuild ask for:
>>
>> CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
>>
>> So please check that you have all those options (and don't have the
>> ones with !), recompile your kernel, and reboot.
>>
>> Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
>> your grub could be causing  funny things. Check that also.
>>
>> Regards.
>
>
> OK.  I hate modules.  Can they be built into the kernel?  The only
> module I have is nvidia for my video card.

MODULES is only for the kernel to be *able* to load modules, not to
*make* modules. If you use nvidia.ko, you must already have it. All
the options can be compiled into the kernel; I had them like that:

$ grep 
"BLK_DEV_BSG\\|DEVTMPFS\\|HOTPLUG\\|INOTIFY_USER\\|NET=\\|PROC_FS\\|SIGNALFD\\|SYSFS"
/usr/src/linux/.config
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_HOTPLUG=y
CONFIG_SIGNALFD=y
CONFIG_BLK_DEV_BSG=y
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_MEMORY_HOTPLUG is not set
CONFIG_HOTPLUG_CPU=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_HOTPLUG_PCI is not set
CONFIG_NET=y
CONFIG_INET=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_SCSI_PROC_FS is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
CONFIG_ETHERNET=y
CONFIG_USB_USBNET=y
CONFIG_RTC_INTF_SYSFS=y
# CONFIG_DMI_SYSFS is not set
CONFIG_INOTIFY_USER=y
CONFIG_PROC_FS=y
CONFIG_SYSFS=y


>
> Also, if you can put this in one email, what about the /dev line in fstab?

/dev should not be in /etc/fstab; but since you had this error:

> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
> switch_root: forcing unmount of /dev
> switch_root: failed to unlink dev: Directory not empty

I thought that it was maybe because you had /dev  on fstab. Now we
know it was because you didn't compile DEVTMPFS in your kernel.

> I didn't check the ebuild but I don't recall seeing anything when I
> emerged dracut either.  o_O   Maybe we are on to something here.  ^_O

The messages appear for sure; CONFIG_CHECK is defined in
/usr/portage/eclass/linux-info.eclass, and if a config option is
missing, a non-fatal warning will appear. If you have them, check your
emerge logs:

cat /var/log/portage/sys-fs\:udev-* | less

You can look for the string:

 * Checking for suitable kernel configuration options...
 [ ok ]

(Obviously that's in my case).

You could also reemerge udev and dracut; if you haven't changed your
kernel config options, they will complain loudly about it.

I think that will solve the mistery; however, we will not know until
you reboot and actually test it (after recompiling your kernel, of
course).

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 7:35 PM, Pandu Poluan  wrote:
>
> On Apr 3, 2012 7:26 AM, "Dale"  wrote:
>>
>> Canek Peláez Valdés wrote:
>> > On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
>> >> Neil Bothwick wrote:
>> >>> zgrep DEVTMP /proc/config.gz
>> >>
>> >>
>> >> Ooops, it sort of snipped a bit much.  lol   Here you go:
>> >>
>> >> root@fireball / # zgrep DEVTMP /proc/config.gz
>> >> # CONFIG_DEVTMPFS is not set
>> >> root@fireball / #
>> >>
>> >> Looks like a nope to me.  ;-)
>> >
>> > That was the reason for asking for your /usr/src/linux/.config file.
>> > The udev ebuild ask for:
>> >
>> > CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
>> > ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
>> > ~!SYSFS_DEPRECATED_V2"
>> >
>> > The dracut ebuild ask for:
>> >
>> > CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
>> >
>> > So please check that you have all those options (and don't have the
>> > ones with !), recompile your kernel, and reboot.
>> >
>> > Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
>> > your grub could be causing  funny things. Check that also.
>> >
>> > Regards.
>>
>>
>> OK.  I hate modules.  Can they be built into the kernel?  The only
>> module I have is nvidia for my video card.
>>
>> Also, if you can put this in one email, what about the /dev line in fstab?
>>
>> I didn't check the ebuild but I don't recall seeing anything when I
>> emerged dracut either.  o_O   Maybe we are on to something here.  ^_O
>>
>
> AFAIK DEVTMPFS is not a module. You either turn it on or off. Of course,
> you'll need a whole-kernel compile, but that's it.
>
> If you use menuconfig, IIRC there's another option right under DEVTMPFS' one
> that offers to mount devtmpfs on boot. If you turn that on, you *might* get
> away without a /dev in fstab.

Dale doesn't need /dev on fstab (nobody does); I only asked about it
since I had no information about the dracut failure trying to mount
/dev.

Now I think we have enough information, and I hope that when Dale
recompiles his kernel and reboots, everything will work.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
> On Mon, Apr 2, 2012 at 7:19 PM, Dale  wrote:
>> Canek Peláez Valdés wrote:
>>> On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
 Neil Bothwick wrote:
> zgrep DEVTMP /proc/config.gz


 Ooops, it sort of snipped a bit much.  lol   Here you go:

 root@fireball / # zgrep DEVTMP /proc/config.gz
 # CONFIG_DEVTMPFS is not set
 root@fireball / #

 Looks like a nope to me.  ;-)
>>>
>>> That was the reason for asking for your /usr/src/linux/.config file.
>>> The udev ebuild ask for:
>>>
>>> CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
>>> ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
>>> ~!SYSFS_DEPRECATED_V2"
>>>
>>> The dracut ebuild ask for:
>>>
>>> CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
>>>
>>> So please check that you have all those options (and don't have the
>>> ones with !), recompile your kernel, and reboot.
>>>
>>> Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
>>> your grub could be causing  funny things. Check that also.
>>>
>>> Regards.
>>
>>
>> OK.  I hate modules.  Can they be built into the kernel?  The only
>> module I have is nvidia for my video card.
> 
> MODULES is only for the kernel to be *able* to load modules, not to
> *make* modules. If you use nvidia.ko, you must already have it. All
> the options can be compiled into the kernel; I had them like that:
> 
> $ grep 
> "BLK_DEV_BSG\\|DEVTMPFS\\|HOTPLUG\\|INOTIFY_USER\\|NET=\\|PROC_FS\\|SIGNALFD\\|SYSFS"
> /usr/src/linux/.config
> # CONFIG_SYSFS_DEPRECATED is not set
> CONFIG_HOTPLUG=y
> CONFIG_SIGNALFD=y
> CONFIG_BLK_DEV_BSG=y
> # CONFIG_BLK_DEV_BSGLIB is not set
> # CONFIG_MEMORY_HOTPLUG is not set
> CONFIG_HOTPLUG_CPU=y
> CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
> CONFIG_ACPI_HOTPLUG_CPU=y
> # CONFIG_HOTPLUG_PCI is not set
> CONFIG_NET=y
> CONFIG_INET=y
> CONFIG_WIRELESS_EXT_SYSFS=y
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y
> # CONFIG_SCSI_PROC_FS is not set
> # CONFIG_ISCSI_BOOT_SYSFS is not set
> CONFIG_ETHERNET=y
> CONFIG_USB_USBNET=y
> CONFIG_RTC_INTF_SYSFS=y
> # CONFIG_DMI_SYSFS is not set
> CONFIG_INOTIFY_USER=y
> CONFIG_PROC_FS=y
> CONFIG_SYSFS=y
> 
> 
>>
>> Also, if you can put this in one email, what about the /dev line in fstab?
> 
> /dev should not be in /etc/fstab; but since you had this error:
> 
>> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
>> switch_root: forcing unmount of /dev
>> switch_root: failed to unlink dev: Directory not empty
> 
> I thought that it was maybe because you had /dev  on fstab. Now we
> know it was because you didn't compile DEVTMPFS in your kernel.
> 
>> I didn't check the ebuild but I don't recall seeing anything when I
>> emerged dracut either.  o_O   Maybe we are on to something here.  ^_O
> 
> The messages appear for sure; CONFIG_CHECK is defined in
> /usr/portage/eclass/linux-info.eclass, and if a config option is
> missing, a non-fatal warning will appear. If you have them, check your
> emerge logs:
> 
> cat /var/log/portage/sys-fs\:udev-* | less
> 
> You can look for the string:
> 
>  * Checking for suitable kernel configuration options...
>  [ ok ]
> 
> (Obviously that's in my case).
> 
> You could also reemerge udev and dracut; if you haven't changed your
> kernel config options, they will complain loudly about it.
> 
> I think that will solve the mistery; however, we will not know until
> you reboot and actually test it (after recompiling your kernel, of
> course).
> 
> Regards.


I think I got it all sorted and am building a new kernel.  It will have
a -2 on the end instead of a -1.  I'll test it in a bit.  I got some
things to prepare for tomorrow plus we have storms coming in tonight.
The rain is already on the radar and it is a bit windy here.  May take a
bit before I reboot.  Just depends.  ;-)

I'm hoping to get this sorted so I can then move on to more issues, and
maybe a new thread. lol

Will reply in a bit on what blows up.  ROFL

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



[gentoo-user] trouble understanding a slot conflict

2012-04-02 Thread Allan Gottlieb
A normal update world turned up the error below
(~amd64, gnome profile)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-apps/pciutils:0

  (sys-apps/pciutils-3.1.9-r1::gentoo, installed) pulled in by
>=sys-apps/pciutils-3.1.9-r1[-compress-db] required by 
(sys-fs/udev-171-r5::gentoo, installed)

  (sys-apps/pciutils-3.1.9-r2::gentoo, ebuild scheduled for merge) pulled in by
(no parents that aren't satisfied by other packages in this slot)


I certainly see where -r1 and -r2 would be a slot conflict but

1.  The comment with -r1 says it needs >= -r1, so why would -r2 work?

2.  The comment with -r2 seems to say -r2 is not really needed and -r1
would work.

The first one seems to say -r2 would be fine for everything; the second
that -r1 would be fine for everything.  But clearly neither is fine for
everything since I have a slot conflict with both versions needed.

Could someone please explain this?

thanks,
allan



Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Canek Peláez Valdés wrote:
> On Mon, Apr 2, 2012 at 7:35 PM, Pandu Poluan  wrote:
>>
>> On Apr 3, 2012 7:26 AM, "Dale"  wrote:
>>>
>>> Canek Peláez Valdés wrote:
 On Mon, Apr 2, 2012 at 5:21 PM, Dale  wrote:
> Neil Bothwick wrote:
>> zgrep DEVTMP /proc/config.gz
>
>
> Ooops, it sort of snipped a bit much.  lol   Here you go:
>
> root@fireball / # zgrep DEVTMP /proc/config.gz
> # CONFIG_DEVTMPFS is not set
> root@fireball / #
>
> Looks like a nope to me.  ;-)

 That was the reason for asking for your /usr/src/linux/.config file.
 The udev ebuild ask for:

 CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
 ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
 ~!SYSFS_DEPRECATED_V2"

 The dracut ebuild ask for:

 CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"

 So please check that you have all those options (and don't have the
 ones with !), recompile your kernel, and reboot.

 Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
 your grub could be causing  funny things. Check that also.

 Regards.
>>>
>>>
>>> OK.  I hate modules.  Can they be built into the kernel?  The only
>>> module I have is nvidia for my video card.
>>>
>>> Also, if you can put this in one email, what about the /dev line in fstab?
>>>
>>> I didn't check the ebuild but I don't recall seeing anything when I
>>> emerged dracut either.  o_O   Maybe we are on to something here.  ^_O
>>>
>>
>> AFAIK DEVTMPFS is not a module. You either turn it on or off. Of course,
>> you'll need a whole-kernel compile, but that's it.
>>
>> If you use menuconfig, IIRC there's another option right under DEVTMPFS' one
>> that offers to mount devtmpfs on boot. If you turn that on, you *might* get
>> away without a /dev in fstab.
> 
> Dale doesn't need /dev on fstab (nobody does); I only asked about it
> since I had no information about the dracut failure trying to mount
> /dev.
> 
> Now I think we have enough information, and I hope that when Dale
> recompiles his kernel and reboots, everything will work.
> 
> Regards.


Storm seems to have slowed down so Dale is about to reboot.  Dale hopes
this init thingy works too.  < crosses fingers, toes, eyes and anything
else crossable >

I also saved the old line that works, just in case.  This is me after
all.  lol

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Nginx with PHP-FPM

2012-04-02 Thread Silvio Siefke
Hello,


i have now setup a Freebsd box in Vmware and build the environment, has
no problem, run without any problems. Strange that not run on Gentoo.

I have changed the Gentoo Nginx config to Freebsd Nginx config, but the 
result is the same. Blank white page. 

nginx.conf > http://nopaste.info/98104d56da.html

In log can only read:

192.168.0.20 - - [03/Apr/2012:03:55:07 +0200] "GET /info.php HTTP/1.1" 200 29 
"-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) 
Chrome/18.0.1025.142 Safari/535.19" "-"



2012/04/03 03:55:25 [info] 4055#0: *2 client closed prematurely connection 
while reading client request line, client: 192.168.0.20, server: localhost



[03-Apr-2012 03:56:25.988472] DEBUG: pid 3825, 
fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 
0 active children, 1 spare children, 1 running children. Spawning rate 1


Has someone a idea?


Thx, Regards
Silvio



[gentoo-user] Re: trouble understanding a slot conflict

2012-04-02 Thread walt
On 04/02/2012 07:20 PM, Allan Gottlieb wrote:
> A normal update world turned up the error below
> (~amd64, gnome profile)
> 
> !!! Multiple package instances within a single package slot have been pulled
> !!! into the dependency graph, resulting in a slot conflict:
> 
> sys-apps/pciutils:0
> 
>   (sys-apps/pciutils-3.1.9-r1::gentoo, installed) pulled in by
> >=sys-apps/pciutils-3.1.9-r1[-compress-db] required by 
> (sys-fs/udev-171-r5::gentoo, installed)

I've been through this one already ;)  The ~amd64 keyword wants a newer
version of udev (182-r3) than you have.  The question is why you still
have the old version of udev.  Did you maybe mask the newer udev to avoid
the infamous separate-usr-partition-is-deprecated problem?




Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Canek Peláez Valdés
On Mon, Apr 2, 2012 at 9:08 PM, Dale  wrote:
> Dale wrote:
>
>>
>> I think I got it all sorted and am building a new kernel.  It will have
>> a -2 on the end instead of a -1.  I'll test it in a bit.  I got some
>> things to prepare for tomorrow plus we have storms coming in tonight.
>> The rain is already on the radar and it is a bit windy here.  May take a
>> bit before I reboot.  Just depends.  ;-)
>>
>> I'm hoping to get this sorted so I can then move on to more issues, and
>> maybe a new thread. lol
>>
>> Will reply in a bit on what blows up.  ROFL
>>
>> Dale
>>
>> :-)  :-)
>>
>
>
> Well, I rebooted.  I'm also back to my old kernel.  The new kernel broke
> all sorts of things.  I thought about writing down the errors until I
> saw how many there was. It was PAGES of problems.  It booted to a prompt
> tho.  One thing I noticed, LVM failed.  I have a drive that has LVM on
> it and it would not mount although LVM service was started.  I even
> restarted it and it reported no errors when starting.  I dunno.
>
> So, this appears to be nowhere close to fixed.  Right now, this is on my
> nerves again.  Let me know what you want me to post but right now, I'm
> going to go have a sit down.  I'll count those things hanging from the
> ceiling or something.  I can't recall what they call them but I count
> them sometimes.
>
> If I was eyeball to eyeball with the dev that started this, I could
> patent and new color of purple/blue.  You know, hands around the neck
> and all.  :/
>
> I'm attaching the dmesg from the failed attempt.  It's a whopper.  I'm
> not sure all the errors are in there either.  Here's grub line:
>
> title=Initramfs-new_kernel
> root (hd0,0)
> kernel /bzImage-3.2.11-2 root=/dev/sda3 init=/sbin/init  rd.debug
> rd.udev.debug nox
> initrd /initramfs-3.2.11.img
>
> I also tried other settings for the root line but that was the only one
> that worked.
>
> Thoughts?  Should I just switch and save myself the aggravation?
>
> Back to my hole.

Actually, the initramfs finished without a single error: between

[1.962007] dracut: + source_conf /etc/conf.d

and

[2.395576] dracut: Switching root

there is not a single error. The initramfs did what it needed to do;
the user space failed *after* initramfs switched root.

Did you recreated the initramfs after the kernel recompilation? 1st
rule of non-trivial initramfs: you need to recreate it everytime you
change kernels.

Which partition is the LVM one? /home or /data? Either way, either
partition should not matter to boot the system correctly. We need to
see the errors *after* the initramfs switched root; maybe you can
delete /var/log/messages, reboot, and post it?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: trouble understanding a slot conflict

2012-04-02 Thread Allan Gottlieb
On Mon, Apr 02 2012, walt wrote:

> On 04/02/2012 07:20 PM, Allan Gottlieb wrote:
>> A normal update world turned up the error below
>> (~amd64, gnome profile)
>> 
>> !!! Multiple package instances within a single package slot have been pulled
>> !!! into the dependency graph, resulting in a slot conflict:
>> 
>> sys-apps/pciutils:0
>> 
>>   (sys-apps/pciutils-3.1.9-r1::gentoo, installed) pulled in by
>> >=sys-apps/pciutils-3.1.9-r1[-compress-db] required by 
>> (sys-fs/udev-171-r5::gentoo, installed)
>
> I've been through this one already ;)  The ~amd64 keyword wants a newer
> version of udev (182-r3) than you have.  The question is why you still
> have the old version of udev.  Did you maybe mask the newer udev to avoid
> the infamous separate-usr-partition-is-deprecated problem?

Yes indeed I have it masked for exactly that reason.  I will be going to
a combined / + /usr when the semester ends.  I use this machine for my
lectures and assignments so prefer to break it from late may through
august.

I just tried masking the -r2 (and higher) pciutils.
But this conflicts with a newly-required hwids-2012-0401.
The later is required by a new usbutils-005-r1

This led me to mask >=usbutils-005-r1.

Now the proposed update world leaves portage happy, but me worried.  I
haven't actually done the update world.  It is reasonably to have so
much masking? (The output of the update --ask world is below)

I am wondering if it would be safer to not update at all for 6 weeks.
Then, with the semester over, try the huge update and if it is too hard
to get working, do a reinstall.  That certainly doesn't sound appealing.
Does the following seem like too much masking or does it seem
reasonable?

in /etc/portage/package.mask (a directory) I have.

README

# First masked udev-181 to postpone needing to combine / and /usr
# This then required masking consolekit
# At that point things were  OK for a while
#
# Now (2 april) I need to mask the new pciutils since the new one
# causes a mysterious-to-me slot conflict.
# This mask blocks hwids, which a new usbutils requires.
# So I mask the new usbutils.
# Now portage is willing to do the update.  Success??

# The lvm mask is related but is probably a bug in lvm
# (https://bugs.gentoo.org/show_bug.cgi?id=409921) so I have
# that one in a separate file

udev-181

>=sys-fs/udev-181
>=sys-auth/consolekit-0.4.5-r3
>=sys-apps/pciutils-3.1.9-r2
>=sys-apps/usbutils-005-r1

lvm-2.01.95

>=sys-fs/lvm2-2.02.95

allan

PS.  I still don't understand the two error msgs from portage given in my
previous msg, neither of which indicate to me a real problem.  But that
is more for my education and ability to decipher them better in the
future than for fixing any problem.

PPS.  Here is the pre-update output from update --ask world

ajglap gottlieb # mount /mnt/junk; PORTAGE_TMPDIR=/mnt/junk/portage-tmpdir 
emerge --keep-going --update --newuse --with-bdeps=y  world; umount /mnt/junk

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge   ] gnome-base/gnome-3.2.1  USE="cdr cups extras fallback 
-accessibility" 
[nomerge   ]  gnome-base/gnome-core-apps-3.2.1  USE="bluetooth cdr cups 
networkmanager" 
[nomerge   ]   net-im/empathy-3.2.2  USE="eds geoloc gnome-online-accounts 
map networkmanager spell v4l -call -debug -sendto -test" 
[nomerge   ]app-misc/geoclue-0.12.0_p20110307  USE="gtk -geonames -gps 
-gsmloc -hostip -manual -networkmanager -nominatim -plazes -skyhook -yahoo-geo" 
[nomerge   ] dev-util/gtk-doc-1.18-r1  USE="-debug -doc -emacs 
-highlight -test -vim" 
[nomerge   ]  app-text/openjade-1.3.2-r3  USE="-static-libs" 
[ebuild U  ]   app-text/opensp-1.5.2-r3 [1.5.2-r2] USE="nls -doc 
-static-libs -test" 1,486 kB
[nomerge   ] www-client/chromium-18.0.1025.142  USE="cups gnome 
gnome-keyring -bindist -custom-cflags -kerberos (-pulseaudio) -test" 
LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil 
-fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl 
-pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN 
-zh_TW" 
[ebuild U  ]  dev-lang/nacl-toolchain-newlib-0_p8034 [0_p7311] 0 kB
[ebuild U  ] app-text/texlive-2011-r1 [2011] USE="X png truetype xml -cjk 
-context -detex -doc -dvi2tty -dvipdfm -epspdf% -extra -games -graphics 
-humanities -jadetex -luatex -music -omega -pdfannotextractor -pstricks 
-publishers -science -tex4ht -xetex -xindy" LINGUAS="en -af -ar -as -bg -bn -bo 
-ca -cs -cy -da -de -el -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi 
-hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb 
-nl -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr 
-uk -vi -zh" 0 kB
[ebuild U  ] www-servers/apache-2.4.1-r2 [2.2.22] USE="ldap ssl -debug -doc 
(

Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?

2012-04-02 Thread Dale
Dale wrote:

> 
> So the init thingy is going to print all that stuff each time?  Or is
> that the debug stuff you had me add to the grub line?  Please say it is
> so.  It's one reason I checked my email.  I was counting and realized
> the debug stuff that was added may haver done all that.  Taking a deep
> breath helped tho.  ;-)  I still want my hands on that neck tho.  lol
> 
> When I booted into the new kernel and got what I thought was errors, I
> did run dracut -H -f /boot/init and rebooted with it.  When
> it got booted, I could not get LVM to work.  It is /data that has LVM
> for now.  I plan to add /usr and /var later on tho.  The /data partition
> has my videos and such on it.  I plan to reorganize all this under
> /home, which will be on LVM too, later on.  Also, while I was booted in
> the new kernel, I re-emerged lvm2 and then restarted the service.  Still
> a no go.  Attaching kernel config file this time, since it could be the
> issue.  Maybe I added something I shouldn't have?
> 
> Got to get shower and such for tomorrow so back in a bit.  No plans to
> count things right now.
> 
> Dale
> 
> :-)  :-)
> 


OK.  I notice this when I build the init thingy with dracut:

root@fireball / # dracut -H -f /boot/init-thingy
E: Dracut module "lvm" cannot be found.
E: Dracut module "lvm" cannot be found.
I: *** Including module: dash ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be
optional
I: *** Including modules done ***
I: Wrote /boot/init-thingy:
I: -rw-r--r-- 1 root root 2406253 Apr  3 00:03 /boot/init-thingy
root@fireball / #

So, it is not able to find the lvm module and honestly, I didn't know
there was one.  Anyway, I googled and only found one reference on this
and it has no fix for it.  So, if I put /usr on lvm, how is dracut going
to be able to find /usr?  This is my current versions:

root@fireball / # emerge -vp dracut lvm2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-fs/lvm2-2.02.95-r1  USE="lvm1 readline udev (-clvm)
(-cman) (-selinux) -static -static-libs" 0 kB
[ebuild   R   ~] sys-kernel/dracut-017-r3  USE="device-mapper -debug
-net (-selinux)" DRACUT_MODULES="lvm -biosdevname -btrfs -caps -crypt
-crypt-gpg -dmraid -dmsquash-live -gensplash -iscsi -livenet -mdraid
-multipath -nbd -nfs -plymouth -ssh-client -syslog" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
root@fireball / #

I have tried all I know to try.  I'm note sure what is broke now.  If
the init thingy is working, then I guess the new kernel is messing up
lvm.  Speaking of, I have to boot with my old kernel for lvm to work.
It won't work with the kernel I built for the init thingy.  I'm thinking
there is a conflict somewhere.  I just don't know where.  Based on the
fact the new kernel breaks whether I use a init thingy or not, I'm
thinking kernel this time.

Ideas?  Thoughts?  Making sense yet?

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



[gentoo-user] sys-boot/plymouth could not work

2012-04-02 Thread 张春江
Does anybody in the list have used plymouth.
I installed and configured plymouth 
as http://dev.gentoo.org/~aidecoe/doc/en/plymouth.xml told.
my grub.conf is 

title Gentoo Linux
root (hd0,13)
kernel /boot/kernel-3.2.1-gentoo-r2 root=/dev/sda10 video=radeon:1366x768 quiet 
splash                                 
initrd /boot/initramfs-3.2.1-gentoo-r2.img

While I rebooting my machine, it shows "[plymouth] could not create 
/run/plymouth" and there is no splash.
Then I created /run/plymouth directory in the initrd file system manually, but 
it seems that this doesn't change anything.
And then I created /run/plymouth in my root file system, while this time system 
shows
"plymouthd could not start boot splash: No such file or directory".

I checked my Ubuntu virtual machine, which plymouth works well, there is no 
/run/plymouth directory in initram file system or real root file system.

I googled this problem and found some guys had faced the same problem with me, 
but nobody have a solution.
This is my first time to ask for help in the list, and this is even my first 
time to use a mailing list.
Sorry for my poor English.



[gentoo-user] Apache upgrade to 2.4 error AH00027: Buggy authn provider failed to set user

2012-04-02 Thread Adam Carter
I've just upgraded to 2.4 and am using mod_access_compat, so I can use
the existing auth config in the short term. I've fixed a few things
and now the daemon loads cleanly, however, when i try to get the
anonymously available front page, it returns a 500 and error.log
shows;

[Tue Apr 03 16:13:33.595505 2012] [core:error] [pid 20896:tid
139858125358848] [client u.x.y.z:16567] AH00027: Buggy authn provider
failed to set user for /

At a password protected directory (there's an .htaccess) it also
returns 500 and the log is;
[Tue Apr 03 16:15:50.244851 2012] [core:alert] [pid 20895:tid
139858125358848] [client u.x.y.z:20702] /blah/blah/.htaccess: Invalid
command 'Require', perhaps misspelled or defined by a module not
included in the server configuration

Shouldn't "Require" from the .htaccess file be recognised by
mod_access_compat? Any ideas about the AH00027 error?