Re: uname -a output does not change after kernel upgrade

2005-05-22 Thread freebsd-questions

Used the default email when sending this message
and therefore it did not reached [EMAIL PROTECTED]

 Original Message 
Subject: Re: uname -a output does not change after kernel upgrade
Date: Sun, 22 May 2005 00:08:45 +0300
From: Jurgis [EMAIL PROTECTED]
To: Daniel Gerzo [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
References: [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]



Daniel Gerzo wrote:

How can I now which kernel is loaded?

sysctl -a | grep kernel



OK, I have new userland and old kernel.
Those command proves that.

# sysctl -a | grep kernel
kern.bootfile: /boot/kernel/kernel
kern.module_path: /boot/kernel;/boot/modules

# sysctl -a | grep kern.version
kern.version: FreeBSD 5.3-RELEASE #1: Fri Apr 29 23:04:18 EEST 2005




I remembered that I had created /boot.config file
with following content, but now when I checked it,
ir was not there.




--- cat /boot.config ---
1:ad(6,a)/boot/loader



this doesn't have anything with kernel config I think.
actually, I know only one way how to implicitly set the kernel boot
file. One can do so by adding line

kernel=path/to/kernel

into /boot/loader.conf


I have to sata disks ad4 and ad6 and I created /boot.config to boot from
ad6 instedad of ad4. BTW I'm not quite sure about those parameters
in that string 1:ad(6,a)/boot/loader.



Is it better that I start new conversation with new Subject
and describe how I got all this mess?



That's up to you. Personally I don't think it is needed. You should
firstly try to build a new kernel AND install it. If you are using
your own kernel config file, you should add KERNCONF=CONFIGNAME to the
make (build|install)kernel command.


I have built and installed the new kernel.
I added KERNCONF=CONFIGNAME to /etc/make.conf.

There is new kernel and modules in
# ls -la /boot/kernel/kernel
-r-xr-xr-x  1 root  wheel  3328239 May 21 18:45 /boot/kernel/kernel

Here is some file information and gmirror configuration:

-
# df
Filesystem 1K-blocksUsed Avail Capacity  Mounted on
/dev/mirror/gm0s1a253734   5496017847624%/
devfs  1   1 0   100%/dev
/dev/mirror/gm0s1d253678  58233326 0%/tmp
/dev/mirror/gm0s1f 135891276 1911080 123108894 2%/usr
/dev/mirror/gm0s1e  50777034   63142  46651730 0%/var

# gmirror list
Geom name: gm0s1
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
SyncID: 5
ID: 4196295632
Providers:
1. Name: mirror/gm0s1
   Mediasize: 200046518272 (186G)
   Sectorsize: 512
   Mode: r4w4e1
Consumers:
1. Name: ad6s1
   Mediasize: 200046518784 (186G)
   Sectorsize: 512
   Mode: r4w4e2
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   SyncID: 5
   ID: 3302562170

# gmirror status
NameStatus  Components
mirror/gm0s1  DEGRADED  ad6s1

-

--- And a bit from dmesg ---
ad4: 190782MB ST3200826AS/3.01 [387621/16/63] at ata2-master SATA150
ad6: 190782MB ST3200826AS/3.01 [387621/16/63] at ata3-master SATA150
GEOM_MIRROR[2]: Tasting fd0.
GEOM_MIRROR[2]: Tasting ad4.
GEOM_MIRROR[2]: Tasting ad6.
GEOM_MIRROR[2]: Tasting ad4s1.
 magic: GEOM::MIRROR
   version: 1
  name: gm0s1
   mid: 4196295632
   did: 3946315095
   all: 2
syncid: 3
  priority: 0
 slice: 4096
   balance: round-robin
 mediasize: 200046518272
sectorsize: 512
syncoffset: 0
mflags: NONE
dflags: NONE
hcprovider:
  MD5 hash: 4efc7c98de71a4d10b891fd4bc4e2c80
GEOM_MIRROR[1]: Creating device gm0s1 (id=4196295632).
GEOM_MIRROR[0]: Device gm0s1 created (id=4196295632).
GEOM_MIRROR[1]: Adding disk ad4s1 to gm0s1.
GEOM_MIRROR[2]: Adding disk ad4s1.
GEOM_MIRROR[2]: Disk ad4s1 connected.
GEOM_MIRROR[1]: Disk ad4s1 state changed from NONE to NEW (device gm0s1).
GEOM_MIRROR[0]: Device gm0s1: provider ad4s1 detected.
GEOM_MIRROR[2]: Tasting ad6s1.
 magic: GEOM::MIRROR
   version: 1
  name: gm0s1
   mid: 4196295632
   did: 3302562170
   all: 2
syncid: 5
  priority: 0
 slice: 4096
   balance: round-robin
 mediasize: 200046518272
sectorsize: 512
syncoffset: 0
mflags: NONE
dflags: NONE
hcprovider:
  MD5 hash: 9be4ddc54abbe5e0221f020517cac964
GEOM_MIRROR[1]: Adding disk ad6s1 to gm0s1.
GEOM_MIRROR[2]: Adding disk ad6s1.
GEOM_MIRROR[2]: Disk ad6s1 connected.
GEOM_MIRROR[1]: Disk ad6s1 state changed from NONE to NEW (device gm0s1).
GEOM_MIRROR[0]: Device gm0s1: provider ad6s1 detected.
GEOM_MIRROR[1]: Device gm0s1 state changed from STARTING to RUNNING.
GEOM_MIRROR[1]: Disk ad6s1 state changed from NEW to ACTIVE (device gm0s1).
GEOM_MIRROR[2]: Access ad6s1 r0w1e1 = 0
GEOM_MIRROR[2]: Tasting ad4s1a.
GEOM_MIRROR[2]: Access ad6s1 r0w-1e-1 = 0
GEOM_MIRROR[2]: Metadata on ad6s1 updated.
GEOM_MIRROR[0]: Device gm0s1: provider ad6s1 activated.
GEOM_MIRROR[1]: Disk ad4s1 state changed from NEW to SYNCHRONIZING (device 
gm0s1).
GEOM_MIRROR[0]: Device gm0s1: provider mirror/gm0s1 launched.
GEOM_MIRROR[0]: Device gm0s1: rebuilding provider ad4s1

Re: uname -a output does not change after kernel upgrade

2005-05-22 Thread freebsd-questions

I have fixed the problem.
1) Removed the first SATA disk (ad4) and booted from ad6.
Then I got correct kernel and userland (5.4-STABLE)
2) Swapped SATA cables to boot from ad6 (it became ad4).

---
# uname -a
FreeBSD server.example.com 5.4-STABLE FreeBSD 5.4-STABLE #2: Sat May 21 18:45:32 EEST 2005 
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/SERVER  i386


# gmirror list
Geom name: gm0s1
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 8
ID: 4196295632
Providers:
1. Name: mirror/gm0s1
   Mediasize: 200046518272 (186G)
   Sectorsize: 512
   Mode: r5w4e1
Consumers:
1. Name: ad4s1
   Mediasize: 200046518784 (186G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 0
   SyncID: 8
   ID: 3302562170
2. Name: ad6s1
   Mediasize: 200046518784 (186G)
   Sectorsize: 512
   Mode: r1w1e1
   State: SYNCHRONIZING
   Priority: 0
   Flags: DIRTY, SYNCHRONIZING
   GenID: 0
   SyncID: 8
   Synchronized: 2%
   ID: 3946315095

# gmirror status
NameStatus  Components
mirror/gm0s1  DEGRADED  ad4s1
ad6s1 (2%)

---

Thank you for help!

Jurgis


freebsd-questions wrote:

Used the default email when sending this message
and therefore it did not reached [EMAIL PROTECTED]

 Original Message 
Subject: Re: uname -a output does not change after kernel upgrade
Date: Sun, 22 May 2005 00:08:45 +0300
From: Jurgis [EMAIL PROTECTED]
To: Daniel Gerzo [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED]



Daniel Gerzo wrote:


How can I now which kernel is loaded?


sysctl -a | grep kernel



OK, I have new userland and old kernel.
Those command proves that.

# sysctl -a | grep kernel
kern.bootfile: /boot/kernel/kernel
kern.module_path: /boot/kernel;/boot/modules

# sysctl -a | grep kern.version
kern.version: FreeBSD 5.3-RELEASE #1: Fri Apr 29 23:04:18 EEST 2005




I remembered that I had created /boot.config file
with following content, but now when I checked it,
ir was not there.





--- cat /boot.config ---
1:ad(6,a)/boot/loader




this doesn't have anything with kernel config I think.
actually, I know only one way how to implicitly set the kernel boot
file. One can do so by adding line

kernel=path/to/kernel

into /boot/loader.conf



I have to sata disks ad4 and ad6 and I created /boot.config to boot from
ad6 instedad of ad4. BTW I'm not quite sure about those parameters
in that string 1:ad(6,a)/boot/loader.



Is it better that I start new conversation with new Subject
and describe how I got all this mess?




That's up to you. Personally I don't think it is needed. You should
firstly try to build a new kernel AND install it. If you are using
your own kernel config file, you should add KERNCONF=CONFIGNAME to the
make (build|install)kernel command.



I have built and installed the new kernel.
I added KERNCONF=CONFIGNAME to /etc/make.conf.

There is new kernel and modules in
# ls -la /boot/kernel/kernel
-r-xr-xr-x  1 root  wheel  3328239 May 21 18:45 /boot/kernel/kernel

Here is some file information and gmirror configuration:

-
# df
Filesystem 1K-blocksUsed Avail Capacity  Mounted on
/dev/mirror/gm0s1a253734   5496017847624%/
devfs  1   1 0   100%/dev
/dev/mirror/gm0s1d253678  58233326 0%/tmp
/dev/mirror/gm0s1f 135891276 1911080 123108894 2%/usr
/dev/mirror/gm0s1e  50777034   63142  46651730 0%/var

# gmirror list
Geom name: gm0s1
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
SyncID: 5
ID: 4196295632
Providers:
1. Name: mirror/gm0s1
   Mediasize: 200046518272 (186G)
   Sectorsize: 512
   Mode: r4w4e1
Consumers:
1. Name: ad6s1
   Mediasize: 200046518784 (186G)
   Sectorsize: 512
   Mode: r4w4e2
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   SyncID: 5
   ID: 3302562170

# gmirror status
NameStatus  Components
mirror/gm0s1  DEGRADED  ad6s1

-

--- And a bit from dmesg ---
ad4: 190782MB ST3200826AS/3.01 [387621/16/63] at ata2-master SATA150
ad6: 190782MB ST3200826AS/3.01 [387621/16/63] at ata3-master SATA150
GEOM_MIRROR[2]: Tasting fd0.
GEOM_MIRROR[2]: Tasting ad4.
GEOM_MIRROR[2]: Tasting ad6.
GEOM_MIRROR[2]: Tasting ad4s1.
 magic: GEOM::MIRROR
   version: 1
  name: gm0s1
   mid: 4196295632
   did: 3946315095
   all: 2
syncid: 3
  priority: 0
 slice: 4096
   balance: round-robin
 mediasize: 200046518272
sectorsize: 512
syncoffset: 0
mflags: NONE
dflags: NONE
hcprovider:
  MD5 hash: 4efc7c98de71a4d10b891fd4bc4e2c80
GEOM_MIRROR[1]: Creating device gm0s1 (id=4196295632).
GEOM_MIRROR[0]: Device gm0s1 created (id=4196295632).
GEOM_MIRROR[1]: Adding disk ad4s1 to gm0s1.
GEOM_MIRROR[2]: Adding disk ad4s1.
GEOM_MIRROR[2]: Disk ad4s1 connected.
GEOM_MIRROR[1]: Disk ad4s1 state changed from NONE to NEW (device gm0s1).
GEOM_MIRROR[0]: Device

uname -a output does not change after kernel upgrade

2005-05-21 Thread freebsd-questions

Hi,

I have upgraded FreeBSD server from 5.3-RELEASE to 5.4-STABLE (tag=RELENG_5)
but when I run 'uname -a' it displays the same message as before:
---
server-98 uname -a
FreeBSD server.example.com 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Fri Apr 29 23:04:18 EEST 2005 
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/SERVER  i386

---

What I did:
# cvsup -g -L 2 stable-supfile

# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel
# shutdown -r now

# (stopped apache, postfix and other daemons)
# cd /usr/src
(I did not run 'mergemaster -p' here, could it be the cause of that problem?)
# make installworld
# mergemaster

--- cat /etc/make.conf ---
PERL_VER=5.8.6
PERL_VERSION=5.8.6

CPUTYPE=i686
NO_X=true

KERNCONF=SERVER
--

After that I also rebuilt the kernel by
# cd /usr/src/sys/i386/conf/
# config SERVER
# cd ../../compile/SERVER
# make depend
# make
# make install

But nothing changed.

Any ideas?

Jurgis

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uname -a output does not change after kernel upgrade

2005-05-21 Thread Daniel Gerzo
Hi freebsd-questions,

Saturday, May 21, 2005, 8:41:19 PM, you wrote about:

 Hi,

 I have upgraded FreeBSD server from 5.3-RELEASE to 5.4-STABLE (tag=RELENG_5)
 but when I run 'uname -a' it displays the same message as before:
 ---
server-98 uname -a
 FreeBSD server.example.com 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Fri Apr 29 
 23:04:18 EEST 2005
 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/SERVER  i386
 ---

 What I did:
 # cvsup -g -L 2 stable-supfile

 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel

^^
Are you really sure you have done this step?

maybe you have somewhere like /boot/loader.conf setuped, that the
default boot kernel is not located at /boot/kernel? It seems you have
booted the old kernel.

 # shutdown -r now

 # (stopped apache, postfix and other daemons)
 # cd /usr/src
 (I did not run 'mergemaster -p' here, could it be the cause of that problem?)
 # make installworld
 # mergemaster

 --- cat /etc/make.conf ---
 PERL_VER=5.8.6
 PERL_VERSION=5.8.6

 CPUTYPE=i686
 NO_X=true

 KERNCONF=SERVER
 --

 After that I also rebuilt the kernel by
 # cd /usr/src/sys/i386/conf/
 # config SERVER
 # cd ../../compile/SERVER
 # make depend
 # make
 # make install

 But nothing changed.

 Any ideas?

 Jurgis


-- 
Best Regards,

 DanGer, ICQ: 261701668  | e-mail protecting at: http://www.2pu.net/
 http://danger.rulez.sk  | proxy list at:http://www.proxy-web.com/
 | FreeBSD - The Power to Serve!

[ Gone With The Wind...Years Ago. ]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uname -a output does not change after kernel upgrade

2005-05-21 Thread freebsd-questions

Daniel,

How can I now which kernel is loaded?

I'm actually struggling with RAID-1 and gmirror issue
that I wanted to ask when 'uname -a' issue is fixed.

Here is --- cat /boot/loader.conf --
geom_mirror_load=YES
kern.geom.mirror.debug=2
kern.geom.mirror.timeout=0

I remembered that I had created /boot.config file
with following content, but now when I checked it,
ir was not there.

--- cat /boot.config ---
1:ad(6,a)/boot/loader

It looks like you ar right and I realy have booted
the old kernel. Because when I wanted
to remove second hdd from mirror I got such a result:

server# gmirror forget /dev/ad4s1
Userland and kernel parts are out of sync.

Is it better that I start new conversation with new Subject
and describe how I got all this mess?
It is connected with gmirror I'm using and the problem that I could not
get it up and running properly.

Thanks for help!
Jurgis


Daniel Gerzo wrote:



# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel



^^
Are you really sure you have done this step?

maybe you have somewhere like /boot/loader.conf setuped, that the
default boot kernel is not located at /boot/kernel? It seems you have
booted the old kernel.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uname -a output does not change after kernel upgrade

2005-05-21 Thread Daniel Gerzo
Hello freebsd-questions,

Saturday, May 21, 2005, 8:41:19 PM, you typed the following:

 Hi,

 I have upgraded FreeBSD server from 5.3-RELEASE to 5.4-STABLE (tag=RELENG_5)
 but when I run 'uname -a' it displays the same message as before:
 ---
server-98 uname -a
 FreeBSD server.example.com 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Fri Apr 29 
 23:04:18 EEST 2005
 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/SERVER  i386
 ---

 What I did:
 # cvsup -g -L 2 stable-supfile

 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel
 # shutdown -r now

 # (stopped apache, postfix and other daemons)
 # cd /usr/src
 (I did not run 'mergemaster -p' here, could it be the cause of that problem?)
 # make installworld
 # mergemaster

 --- cat /etc/make.conf ---
 PERL_VER=5.8.6
 PERL_VERSION=5.8.6

 CPUTYPE=i686
 NO_X=true

 KERNCONF=SERVER
 --

 After that I also rebuilt the kernel by
 # cd /usr/src/sys/i386/conf/
 # config SERVER
 # cd ../../compile/SERVER
 # make depend
 # make
 # make install

another strike: did you rebooted after installing a new kernel? ;-)

 But nothing changed.


-- 
Best Regards,

 DanGer, ICQ: 261701668  | e-mail protecting at: http://www.2pu.net/
 http://danger.rulez.sk  | proxy list at:http://www.proxy-web.com/
 | FreeBSD - The Power to Serve!

[ MASOCHIST (mas-oh-kist) noun:  Windows user. ]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uname -a output does not change after kernel upgrade

2005-05-21 Thread freebsd-questions

Yes, I rebooted but uname -a showed that it was the old kernel.
I was not sure about it and proceeded with userland.

Daniel Gerzo wrote:


After that I also rebuilt the kernel by
# cd /usr/src/sys/i386/conf/
# config SERVER
# cd ../../compile/SERVER
# make depend
# make
# make install



another strike: did you rebooted after installing a new kernel? ;-)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]