Re: Openssl port upgrade (FreeBSD 6.2)

2008-11-13 Thread Cameron Baillie

Brendan Kennedy wrote:

Hi All,

I ran the openssl updgrade (to OpenSSL 0.9.8d), but it seems the
original openssl libs are still being used for SSH session creation
and other system crypto functionality.
What are the final steps needed to allow all user space programs to
use the upgraded OpenSSL?

Is there a good guide for this kind of upgrade somewhere?

Best Regards,
Brendan
This might be useful - it is from 'Building a Server with FreeBSD 7' by 
Bryan Hong.


Default search path for /usr/local, where local software is typically 
installed, is near the end of the path statement, after base command paths.


Edit /root/.cshrc as follows:

a) comment out the existing or default 'set path' statement by preceding 
it with a hash mark (#)


b) insert this statement: set path = (/usr/local/sbin /usr/local/bin 
/usr/sbin /usr/bin /sbin /bin $HOME/bin)


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


upgrade problems

2008-10-21 Thread Cameron Baillie

Hello,

I have a botched upgrade from 6.3 to 7.0-release on my hands.  I 
followed the handbook instructions, but I I think I forgot to drop into 
single-user mode to install the new kernel.


Two relevant files: dmesg(mod).out and fstab.  The fstab doesn't show 
that this machine has one 70gb drive and two 286gb drives, which are 
supposed to be in software raid 1 (duplex).  The raid was broken before 
I started the upgrade and I was hoping that the updgrade might fix the 
raid.  See more on gmirror below.


The 'make buildworld' and 'make installkernel' went fine - see the log 
file 'make buildworld, buildkernel and install kernel.out' attached.  
There were many error messages in 'make installkernel' - see attached.  
The error messages are basically:

kldxref /boot/kernel
kldxref: file isn't dynamically-linked

I see from the errata that this might be unrelated to the problems 
below: [20080307] Source upgrades from FreeBSD 6./X/ to FreeBSD 
7.0-RELEASE will generate warnings from kldxref(8) 
http://www.FreeBSD.org/cgi/man.cgi?query=kldxrefsektion=8manpath=FreeBSD+7.0-stable 
during the installkernel step. These warnings are harmless and can be 
ignored.


Dropping into single-user mode per handbook 24.4.5, I received these 
error messages:

# fsck -p
/dev/ad0s1a: NO WRITE ACCESS
/dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

The attached file fsck2.out is the output from fsck.

On reboot, there was a kernel panic.  I tried to use dumpon but the 
crash occurred too early in the boot process.  Here are the error 
messages transcribed by hand:

ad0ata0master
ad1ata0slave
acd0  cdrwata1 master
ad3   ata1  ata1 slave
geom_mirror: component ad3 (device gm0) broken, skipping
geom_mirror: device mirror /gm0 launched 1/2
geom_mirror: upgrading metadata on ad3 (v3 - v4)
fatal trap 12: page fault while in kernel mode
[misc error messages]
panic panic: page fault
cpuid=0

I can reboot in safe mode.  Here is the boot sequence text in safe mode:
ad3: 286,168 MB at ata1_slave PI04
geom_mirror: component ad3 (device gm0) broken, skipping
geom_mirror: device mirror/gm0 launched (1/2)
geom_mirror: upgrading metadata on ad3 (v3 - v4)
geom_mirror: cannot write metadata on ad3 (device=gm0)
geom_mirror: cannot update metadata on disk ad3 (error=1)
trying to mount root from ufs: /dev/ad0s1a
[etc]

I can't proceed further with the installation nor can I mount disks in 
single-user mode:

#make installworld
make: don't know how to make installworld. Stop

I can't re-do the 'make buildworld' sequence - see error messages in 
makeworld_b.out, attached.


In trying to clean up the duplex, gmirror is now giving me the following 
message:

server# gmirror remove gm0 ad3
Userland and kernel parts are out of sync.
server# exit

Blech.  I've floundered about without success.  How can I clean up this 
mess?  All comments and thoughts welcome.  I have not tried a binary 
upgrade.  Will re-install but as a last option.


Many thanks,
Cam
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE-p5 #0: Tue Oct 14 10:16:32 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (1993.54-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf24  Stepping = 4
  
Features=0x3febfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 536608768 (511 MB)
avail memory = 511205376 (487 MB)
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Oct 14 2008 10:15:55)
cpu0 on motherboard
p4tcc0: CPU Frequency Thermal Control on cpu0
pcib0: Host to PCI bridge pcibus 0 on motherboard
pir0: PCI Interrupt Routing Table: 10 Entries on motherboard
pci0: PCI bus on pcib0
agp0: Intel 82845 host to AGP bridge on hostb0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
vgapci0: VGA-compatible display mem 
0xfd00-0xfdff,0xe800-0xefff irq 5 at device 0.0 on pci1
pcib2: PCIBIOS PCI-PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2

[snipped ohci0, usb0, uhub0, ohci1, usb1, uhub1, ohci2, usb2, uhub2, ehci0, 
usb3, uhub3]

rl0: RealTek 8139 10/100BaseTX port 0xd800-0xd8ff mem 0xfeaff800-0xfeaff8ff 
irq 11 at device 10.0 on pci2
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:c0:a8:7b:f6:77
rl0: [ITHREAD]
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH2 UDMA100 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: ATA channel 0 on atapci0
ata0: