Date: Thu, 18 Jan 2001 14:06:11 +0300 From: Courvette <wash@iconnect.co.ke> To: FBSD-STABLE <freebsd-stable@freebsd.org> Subject: Tape CANNOT be accessed after 3.5 --> 4.2-STABLE UPDATE Message-ID: <20010118140611.A36529@poeza.iconnect.co.ke>
next in thread | raw e-mail | index | archive | help
Hi,
I recently cvsupped and updated my 3.5-STABLE box to 4.2_STABLE.
I had quite a few problems initially when doing buildworld but a
good samaritan came to my rescue and sent me precise details that
had worked for one of 'us'. I attach the e-mail below as it details
the steps that I followed. I am not suggesting they could be flawed
because my system is running - I'm only doing this so that whoever volunteers
to help me will have a clear reference for my deeds.
At the moment I seem to be in a bad fix because I cannot access my
tape drive, an HP T20. What I mean is that mt returns an error
/dev/nsa0: device not configured.
I posted this to the -quetsions and I got overwhelming response but all
the suggestions I received did not yield the solution I was looking for.
So please pardon me if this is considered a double post. I am only anxious for
a solution. Without a backup, we all know where I stand - on the firing line.
I am running an HP Netserver E20 and here is a section of my dmesg.boot:
##
[snip]
ahc0: <Adaptec aic7895 Ultra SCSI adapter> port 0x1000-0x10ff mem 0xfc100000-0xfc100fff irq 10 at device 5.0 on pci0
ahc0: Using left over BIOS settings
aic7895C: Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7895 Ultra SCSI adapter> port 0x1400-0x14ff mem 0xfc101000-0xfc101fff irq 10 at device 5.1 on pci0
ahc1: Host Adapter Bios disabled. Using default SCSI device parameters
aic7895C: Wide Channel B, SCSI Id=7, 32/255 SCBs
.
.
.
Waiting 15 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 4 lun 0
sa0: <HP T20 3.01> Removable Sequential Access SCSI-2 device
sa0: 3.300MB/s transfers
da1 at ahc0 bus 0 target 2 lun 0
da1: <COMPAQ BB009222B5 B016> Fixed Direct Access SCSI-2 device
da1: 11.626MB/s transfers (5.813MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 8678MB (17773524 512 byte sectors: 64H 32S/T 8678C)
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <HP 9.10GB A 68-SA40 SA40> Fixed Direct Access SCSI-2 device
da0: 11.626MB/s transfers (5.813MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 8678MB (17773524 512 byte sectors: 64H 32S/T 8678C)
[snip]
and here is some output from /dev
wash:~$ cd /dev/
wash:/dev$ ls -al *sa0
crw-rw---- 4 root operator 14, 2 Jan 18 12:18 ersa0
crw-rw---- 4 root operator 14, 2 Jan 18 12:18 esa0
crw-rw---- 4 root operator 14, 1 Jan 18 12:18 nrsa0
crw-rw---- 4 root operator 14, 1 Jan 18 12:18 nsa0
crw-rw---- 4 root operator 14, 0 Jan 18 12:18 rsa0
crw-rw---- 4 root operator 14, 0 Jan 18 12:18 sa0
...and a little bit more...
wash:/dev$ mt status
mt: /dev/nsa0: Device not configured
And I followed the procedure below to go to 4.2_STABLE...
All help welcome.
Thanks.
<snip>
I went from 3.5-STABLE to 4.1.1-STABLE using these instructions and it
worked great.
Good luck,
#######################################################################
Upgrading from FreeBSD 3.5-STABLE to FreeBSD 4.1-STABLE
######################################################################
Ralf S. Engelschall <rse@engelschall.com>, August 2000
o boot the old FreeBSD 3.x in multi-user mode
o provide a particular build environment
$ vi /etc/make.conf
NOPERL=true # else Perl would fail to build under 3.x initially
NOPROFILE=true # to speed up building
MAKE_RSAINTL=YES # for non-US
USA_RESIDENT=NO # dito.
CFLAGS= -O -pipe # standard optimization
COPTFLAGS=-O -pipe # dito.
COMPAT1X=yes # install compatibility libraries
COMPAT20=yes # dito.
COMPAT21=yes # dito.
COMPAT22=yes # dito.
COMPAT3X=yes # dito.
o provide boot-strapping run-time environment
$ mkdir -p /usr/obj/usr/src/lib/libc
$ ldconfig -R /usr/obj/usr/src/lib/libc
o build the world initially (still under FreeBSD 3.x run-time)
$ cd /usr/obj
$ chflags -R noschg *
$ rm -rf *
$ cd /usr/src
$ make buildworld
o build and install new GENERIC kernel+modules
$ make buildkernel KERNEL=GENERIC
$ make installkernel KERNEL=GENERIC
$ chflags noschg /kernel.GENERIC /GENERIC
$ mv /kernel.GENERIC /kernel.GENERIC.3
$ mv /GENERIC /kernel.GENERIC
$ chflags schg /kernel.GENERIC
o upgrade FOO kernel config from 3.x to 4.x
$ vi /sys/i386/conf/FOO
- remove "config kernel ...", "bio", "tty", "net", "conflicts"
- remove unnecessary quotations
- remove "pnp" device
- remove "acd0" device
- remove obsolete options (check output of "config FOO")
- replace some "xxx0" with "xxx" (compare LINT for details)
- replace "controller" & "disk" with "device"
- replace "wdc0" with "ata0" plus more "ata*" from GENERIC
- replace "bpfilter" with "bpf"
- replace "isa?" with "atkbdc?" for "atkbd0" and "psm0" device
o build and install new FOO kernel+modules
$ make buildkernel KERNEL=FOO
$ make installkernel KERNEL=FOO
$ chflags noschg /kernel /FOO
$ mv /kernel /kernel.3
$ mv /FOO /kernel
$ chflags schg /kernel
o upgrade devices
$ cd /usr/src/sbin/mknod && make install
$ cp /usr/src/etc/MAKEDEV* /dev
$ cd /dev
$ sh MAKEDEV all
- make sure really all devices for disks exists:
for N in the list of disks
sh MAKEDEV N # eg ad0
for M in the list of slices
sh MAKEDEV NsMa # eg ad0s1a
- edit /etc/fstab and replace "wd0" with "ad0"
o upgrade boot blocks and loader
$ cd /sys/boot && make install
o boot FreeBSD 4.x kernel (still with 3.x user-land) in single-user mode
$ shutdown -r now
> boot -s
$ mount -a
o install the world
$ cd /usr/src/gnu/usr.bin/texinfo/install-info=20
$ make install
$ ldconfig -R /usr/obj/usr/src/lib/libc
$ cd /usr/src
$ make installworld
$ cd /usr/src/release/sysinstall && make all install
o upgrade /etc
$ cp -rp /etc /etc.old
$ mergemaster -v -s
o final adjustments for new FreeBSD 4.x user-land
$ touch /var/log/security
$ touch /var/log/cron
$ rm /var/cron/log*
o switch to new shipped OpenSSH [OPTIONAL!]
$ ssh-keygen -f /etc/ssh/ssh_host_key
$ ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key
$ vi /etc/rc.conf
sshd_enable="YES"
$ pkg_delete ssh-1.2.27
o boot FreeBSD 4.x kernel and user-land in multi-user mode
$ shutdown -r now
o rebuild some criticial programs to avoid spurious segfaults
under the forthcoming final "buildworld/installworld" step
$ vi /etc/make.conf
#NOPERL=true
$ cd /usr/src/gnu/usr.bin/perl=20
$ (cd libperl && make all install)
$ (cd perl && make all install)
$ make clean all install
$ cd /usr/src/usr.bin/lex && make clean all install
$ cd /usr/src/usr.bin/yacc && make clean all install
$ cd /usr/src/gnu/usr.bin/as && make clean all install
$ cd /usr/src/gnu/usr.bin/cc && make clean all install
$ cd /usr/src/gnu/lib/libgcc && make clean all install
o build and install the world finally from scratch (under FreeBSD 4.x run-=
time)
$ cd /usr/obj
$ chflags -R noschg *
$ rm -rf *
$ cd /usr/src
$ make buildworld
$ make installworld
o rebuild the kernel with the final tools
$ cd /sys/i386/conf
$ config FOO
$ cd /sys/compile/FOO
$ make depend all
$ make install
o reboot to switch to the final FreeBSD 4.x system
$ shutdown -r now
-Wash
--
Odhiambo Washington Inter-Connect Ltd.,
wash@iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KE.
Good friends, good books and a sleepy conscience: this is the ideal life.
-Mark Twain
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010118140611.A36529>
