Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
G'day everyone,

I recently had to replace a disk and took the opportunity to 
upgrade from 5-stable to 6-stable.  I also changed from the 
32-bit to the 64-bit version.  I have a dual Opteron server. 

VNC installed from ports (4.2.1) doesn't work on the 64-bit machine.
The same version installed on my home machine (32-bit) with the .vnc 
directory copied over exactly from my work 64-bit machine runs fine. 
So in what sense does it fail

If I create a blank .vnc/xstartup, then I get the usual grey screen.
Then if I try and run X commands on that display, some work, like 
xsetroot -solid blue, but others, xterm, icewm, twm, etc don't.

130~/.vnc$ icewm -display :9
IceWM: using /home/xx/.icewm for private configuration files
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Value in failed request:  0x0
  Serial number of failed request:  9
  Current serial number in output stream:  10

131~/.vnc$ xterm -display :9
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x21
  Serial number of failed request:  41
  Current serial number in output stream:  49

If they are in the xstartup file they give the exact same errors in 
the vnc log file.  I was only running them interactively above 
to troubleshoot it.  Google has failed me for once, so I seek 
your experience and advice...

Greg

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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 04:04:34PM +0300, Alex Savovski [EMAIL PROTECTED] wro
 I have the same ,problem,But I have never run on other version,I use
 RELENG_6_1, AMD64

On Thu, Jun 22, 2006 at 11:29:15AM -0500, Jonathan Fosburgh [EMAIL PROTECTED] 
wrote:
 VNC (tightvnc included) as well as NXWindows (IMHO, much better than VNC) are 
 based on old versions of XFree86 that don't support AMD64.  I have had some 
 success running the i386 package of tightvnc and starting only twm from the 
 xstartup script.  Some applications (just about anything using gtk) crash the 
 VNC server, and some (KDE) work all right. YMMV.
 
 I have tried to make NXWindows work on amd64 but there is just too much 
 patching that needs to be done for my meager skills.

Thanks for the info. I had figured something like this.  I installed 
the 64-bit system anticipating a future memory upgrade from the current 
4GB to 8GB.  However, VNC is essential for various members of my group, 
as is ports/devel/root (which doesn't compile on amd64) and there is 
some of our own (also essential) custom software which is not 64-bit 
clean.  Since this holds up a number of people from their work 
and my patching skills are VERY meager, I will have to roll back to 
the 32-bit OS.

Thanks again!

Greg

P.S. Yes, I should have tested more before the upgrade. I did some 
tests, but obviously not enough!  In my defence, I was hastened by 
the disk dying and the need to get the machine back up and running.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 03:06:46PM -0700, pete wright [EMAIL PROTECTED] wrote:
 Did you try to build/install a 32bit version of VNC?  

Thanks for the suggestion.

I thought about doing that, but there is still other essential 
software that is not 64-bit clean and our entire group needs this 
machine back up ASAP since currently we are sitting on our hands 
doing nothing till I get it back up.  If I had a spare machine 
I could potentially spend some time getting this sorted. But 
we don't have a spare machine, we don't have any money to buy 
one, there is only me to fix it, and I have to get some real 
work done the usual story.

 Also, if you are
 running a Unix like OS why use VNC?  You can achive %90 of the same
 features (with less of a memory/cpu impact) by running X apps
 remotely.

What about the other 10%?  We use VNC because it saves state 
for those of my users who work from multiple locations, at home, 
at work and some are even based overseas. They don't want to 
restart up to 20 windows every time they logon. Remote access 
in this form is essential for their productivity. 

Greg

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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 04:15:47PM -0700, pete wright [EMAIL PROTECTED] wrote:
 hmm, so there is no way to run the app's which are not 64bit clean in
 32bit mode in your environment?

I did test one of them. It works, but I don't have time to 
mess with all of them, and finding the 32-bit libraries and 
putting them in the right place took me forever. I am afraid I am 
not a great programmer...

However, I can quickly do a reinstall safely since I have a recent 
backup and all my /data and /home file systems are on 
separate disks I can just unplug.  It comes down to a how much time 
do I have to spare issue and in the end the machine has to be back
up today.  I already have my own instant-server meta-port that 
installs all my standard ports. It only takes a couple of hours
and I can do some other work while I wait. 

  Also, if you are
  running a Unix like OS why use VNC?  You can achive %90 of the same
  features (with less of a memory/cpu impact) by running X apps
  remotely.
 
 What about the other 10%?  We use VNC because it saves state
 for those of my users who work from multiple locations, at home,
 at work and some are even based overseas. They don't want to
 restart up to 20 windows every time they logon. Remote access
 in this form is essential for their productivity.
 
 
 screen?
 /usr/port/sysutils/screen

My users need up to 20 instances of a graphical analysis package 
which has a text-based control window that spawns two graphical 
windows.  They run a window manager with 24 virtual desktops, 
each running an instance of this program. As much as I love 
screen (I use it constantly for sysadmin-type work and I have 
mutt running constantly on one of my screens), it doesn't quite 
fulfill our needs for this task.
  
 I hope this is taken as friendly advice to save you work

No drama! Friendly advice is always gratefully received. Especially 
if it is aimed at saving me work!  Unfortunately I think rolling 
back the OS is the least work for me at this point in time. 

Thanks again, I do appreciate the advice. 

Greg

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


kernel panic(?) trying to copy data off failed drive with dd

2006-06-12 Thread Greg Lane
** Apologies for this cross-post to questions as well as stable **

G'day everyone,

I have a 250 GB SATA disk with one regular FreeBSD parition 
that is obviously in some distress. 

I can mount the partition, but any attempt to fsck it gives (I think) 
a kernel panic. I say I think because sometimes it hangs forever, 
sometimes it reboots.  One of the panic messages (at one point or 
another, sorry I can't be precise) was in initiate_write_inodeblock_ufs2.
Errors on the console have been like FAILURE read_dma timed out etc. 
When it hangs, the console doesn't always give an error, it just hangs. 

I commented out the drive in fstab so I could boot and started to dd 
the entire disk to an image so that I can try and mount the image, fsck 
it and salvage what I can.  However, when I get to the bad parts of the 
disk the machine hangs.  I copied the first 160 GB or so, then it hung.  
I have since recopied the first part of the disk and am trying to get the 
last part. Recently I have been trying:

dd if=/dev/ad4s1d conv=noerror,sync bs=512 skip=333184000 of=data1-image-p2

I was hoping noerror would skip over the bad parts of the disk, but the 
machine invariably hangs. 

(1) Is there anyway to stop it hanging on bad reads of the disk and just 
return an error, which noerror can skip over?  I am perfectly willing 
to patch the kernel or whatever it takes to get this working. While I 
have a backup, it is a month or so old. I can invest some time now to 
save having to regenerate the last month's work. (Fortunately this is 
the less active disk!  I have two other 250GB drives which would have 
been far worse to lose. They are now backed up to the present day!)

(2) Will dump/restore help me? Will dump skip over the errors 
any better?  Do I need an fsck'ed file system before I dump?

It seems to my uneducated eye that this is a read error that hangs the 
kernel before it ever gets passed to the user program (dd) so 
dump/restore will work no better.  But I don't really no. 

The machine is running 5.5 pre-release.  I can pull the disk and put it 
in a machine running 6-stable if that will help.  I could also install 
current on some box or another. Whatever will get the data back!! 

Advice please?!?

Cheers,
Greg

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


Re: PNP Crystal soundcard detection problem in 5.1Release

2003-09-17 Thread Greg Lane
G'day Roman,

I'm back home now and after patching some sshd daemons I have
checked my laptop configuration.

On Tue, Sep 16, 2003 at 06:20:53PM +0300, Roman Malytskyy [EMAIL PROTECTED] wrote:
 
 I've updated my FlashBIOS from A03 to version A12 (from DELL website),
 I've added to the end of config-file

I am definitely running the A12 bios.

 unknown: PNP0401 can't assign resources (port)
 unknown: PNP0401 at port 0x378-0x37f on isa0
 unknown: CSC can't assign resources (irq)
 unknown: CSC at port 0x220-0x22f,0x388-0x38b,0x530-0x537 irq 5 on isa0
 unknown: CSC0010 failed to probe at port 0x210-0x217 on isa0
 unknown: PNP0700 can't assign resources (port)
 unknown: PNP0700 at port 0x3f2-0x3f5 on isa0

I only get these messages with ACPI disabled. My messages have one 
subtle difference for the CSC:

unknown: CSC can't assign resources (port)
unknown: CSC at port 0x220-0x22f,0x388-0x38b,0x530-0x537 on isa0

I think this is due to the device.hints (see below).

 In /boot/devices.hints:
 ...
 hint.pcm.0.at=isa
 hint.pcm.0.irq=5
 hint.pcm.0.drq=1
 hint.pcm.0.flags=0x0

I didn't remember till I came home and looked, but I did define 
hints for the sbc device as follows:

~$ grep sbc /boot/device.hints 
hint.sbc.0.at=isa
hint.sbc.0.port=0x220
hint.sbc.0.irq=5
hint.sbc.0.drq=1
hint.sbc.0.flags=0x15

There are no hints defined for the pcm device. 
My guess is that this is the key thing you need. 

I should point out that I get sound both with and without ACPI enabled. 

 p.s. maybe you will consider possible sharing you kernel configuration
 file and maybe BIOS settings, coz we have same model and its even more
 strange that its not working.

I think its just the device.hints for the sbc device that will fix 
things for you. If it still doesn't work after you try that, I am
happy to send you all the config files you want.

Tell me how it goes!

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


Re: PNP Crystal soundcard detection problem in 5.1Release

2003-09-17 Thread Greg Lane
On Wed, Sep 17, 2003 at 02:52:31PM +0300, Roman Malytskyy [EMAIL PROTECTED] wrote:

 That's it! I've added above lines and removed pcm ones. After reboot
 things were just perfect!

Excellent! Glad it worked.

 Thanks a lot!

No worries. Enjoy your sound!

Cheers,
Greg

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


Re: PNP Crystal soundcard detection problem in 5.1Release

2003-09-16 Thread Greg Lane
On Mon, Sep 15, 2003 at 03:32:35PM +0300, Roman Malytskyy [EMAIL PROTECTED] wrote:
 Hello,

G'day,

 I am having problem with initializing my PnP Crystal soundcard on DellLatitude 
 CPi notebook under FreeBSD 5.1-RELEASE

I have a CPi D266XT running 5-current.

 Windows detected it as CS4236/37/38 chipset card, irq 5 dma 1,0

Mine is detected as a CS 4237B under windows with the same values.

 When I add to kernel konfiguration (according to handbook advise for my cardtype) 
 ...
 device pcm
 device csa
 ...

I never got it to work with device csa, but in 
the distant past running 4-stable my sound had worked with

options PNPBIOS 
device pcm

Then it stopped working for a while. I've never managed to 
get it working with only device pcm again. But now I am 
running 5-current with the following 

device pcm
device sbc

and my card is found as a soundblaster pro.  See dmesg extract:

sbc0: SoundBlaster Pro at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
pcm0: SB DSP 3.02 on sbc0

and 

5[EMAIL PROTECTED]:~$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: SB DSP 3.02 at io 0x220 irq 5 drq 1 bufsz 4096 (1p/1r/0v channels duplex 
default)

Everything works great. So give this a go and see what happens.

Cheers,
Greg

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


Re: PNP Crystal soundcard detection problem in 5.1Release

2003-09-16 Thread Greg Lane
Hi Roman,

On Tue, Sep 16, 2003 at 06:20:53PM +0300, Roman Malytskyy [EMAIL PROTECTED] wrote:
 I have the very same model! 5.1-RELEASE could problem be here?

I got a deal on a refurbished model with a 3 year international 
warranty from Dell when I was living in the U.S.  It has been a
workhorse for me for years now. 

I can't be sure now, but I'm fairly certain I had sound 
working when I installed 5.1-RELEASE. I then 
upgraded to current to support my 54g (Atheros) wireless card. 

 I've updated my FlashBIOS from A03 to version A12 (from DELL website),
 I've added to the end of config-file
 
  device pcm
  device sbc

I don't have my laptop with me right now, but I'm fairly 
sure I am running the A12 bios also.

 Verbose booting keeps giving:
 ...
 unknown: PNP0401 can't assign resources (port)
 unknown: PNP0401 at port 0x378-0x37f on isa0
 unknown: CSC can't assign resources (irq)
 unknown: CSC at port 0x220-0x22f,0x388-0x38b,0x530-0x537 irq 5 on isa0
 unknown: CSC0010 failed to probe at port 0x210-0x217 on isa0
 unknown: PNP0700 can't assign resources (port)
 unknown: PNP0700 at port 0x3f2-0x3f5 on isa0

I will do a verbose boot when I get home again (where my
laptop is) and check what mine says.

 I have ACPI disabled,

Mine is enabled (I just ignore the initial error messages).
I don't know whether this has any effect on the PNP devices. 

 In /boot/devices.hints:
 ...
 hint.pcm.0.at=isa
 hint.pcm.0.irq=5
 hint.pcm.0.drq=1
 hint.pcm.0.flags=0x0

I will need to check. Note however, that my detection message from
dmesg (see my first email) says:

sbc0: SoundBlaster Pro at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0

so you might want to change hint.pcm.0.flags. I don't know if 
you also need hints for the sbc device?

 The only additional hardware I have installed is PS/2 mouse and
 Surecom PCMCIA Ethernet adapter (model ep428x, which is detected as
 rl0)

I have at various times a mouse, external display, pcmcia modem, 
Trendnet ethernet card (also rl0). Nothing seems to affect the sound.

 p.s. maybe you will consider possible sharing you kernel configuration
 file and maybe BIOS settings, coz we have same model and its even more
 strange that its not working.

Certainly I can do that as well as check other the other things I noted
above as soon as I get to my laptop at home.

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


Re: Caching nameserver question - I need a spot here . . .

2003-01-27 Thread Greg Lane
On Mon, Jan 27, 2003 at 05:15:29PM -0500, Louis LeBlanc 
[EMAIL PROTECTED] wrote:
 Hey all.  I'm finally getting around to setting up a caching dns
 server.  Pretty confusing from my angle.
 
 Here's what I have so far:
 named enaabled in /etc/rc.conf
 cd to /etc/namedb and run sh make-localhost
 
 and the following in /etc/namedb/named.conf:
 
 options {
   directory /etc/namedb;
   forward first;
   forwarders {
   151.203.0.84;
   151.202.0.84;
   };
   listen-on { 10.8.20.5; };
   version surely you must be joking
   query-source address * port 53;
 };
 
 
 zone . {
 type hint;
 file named.root;
 };
 
 zone 0.0.127.IN-ADDR.ARPA {
 type master;
 file localhost.rev;
 };
 

G'day Louis,

The only differences I can see between this and my working 
configuration at home is

1/. I have forward only rather than forward first. 
So far my DNS providers haven't failed me!

2/. I run named as a non-privileged user. I haven't configured 
a complete sandbox (see 
http://www.au.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dns.html#NAMED-SANDBOX 
for that), 
but just did the following:

  mkdir /etc/namedb/s
  chown bind:bind /etc/namedb/s
  chmod 750 /etc/namedb/s

   Add the following to the options in named.conf

  dump-file s/named_dump.db;

   and named_flags=-u bind -g bind to /etc/rc.conf.

3/. I don't have the version and query-source lines. I 
don't believe they'll break anything for you.

4/. I have set up an authorative lane.family 
domain for my home network

5/. You may want to add 127.0.0.1 to your listen-on option.

I can't see anything in your setup as is that will wreak havoc on the 
internet, but I am not an expert. I would at least run it as bind:bind
rather than root as it is trivial to set up. A complete sandbox is better, 
and of course a jail would be even better, but they are both more work.

Greg

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Occasional panics under heavy disk load - dmesg/stack traces

2002-12-12 Thread Greg Lane
G'day everyone,

I sent this a couple of days ago, but someone hijacked the thread so 
I have sent it again. I've added my most recent crash dump, this time 
it occurred during a rm -rf * in /usr/src. I'm starting to despair here,
is it hardware/software or what?

==Previous message==
Back in September I sent a message to hackers asking what people thought
of the kernel panics I had started to get from around April on a somewhat 
random basis when my machine was under heavy disk load (buildworld, 
make clean of ports etc). It doesn't panic every time I hammer the 
disk, but only sometimes. This machine has tracked stable for over two 
years now. Its a fairly vanilla box from Gateway.

I was lead towards a couple of PR's, both are still open.

  Can anyone tell me if this hardware or a real bug? Is there anything
  else I could supply which would help in understanding the problem?
 take a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=42277 and 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=42235

One of the PR's pointed towards softupdates as a potential cause. 
I turned it off on /usr and have continued to get panics. Can anyone give
me any clue as to what might be happening? Software / hardware / anything?

I enclose the (hopefully relevant) dmesg output and two kernel 
stack traces, both from the last few days. Last built world on Nov 12th.
I've had four or five crashes since then.

Cheers,
Greg

===
.
FreeBSD 4.7-STABLE #1: Tue Nov 12 14:01:18 EST 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/NUCL03
.
CPU: Pentium III/Pentium III Xeon/Celeron (730.95-MHz 686-class CPU)
.
real memory  = 536739840 (524160K bytes)
avail memory = 518774784 (506616K bytes)
.
pcib1: Intel 82801BA/BAM (ICH2) PCI-PCI (AGP) bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: VGA-compatible display device at 0.0 irq 11
pcib2: Intel 82801AA (ICH) Hub to PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
ahc0: Adaptec 2940 Ultra SCSI adapter port 0xd800-0xd8ff mem 0xfeaff000-0xfeaf 
irq 11 at device 7.0 on pci2
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
vr0: VIA VT3043 Rhine I 10/100BaseTX port 0xdc00-0xdc7f mem 0xfeafec00-0xfeafec7f 
irq 5 at device 11.0 on pci2
vr0: Ethernet address: 00:80:c8:da:0b:69
miibus0: MII bus on vr0
amphy0: DM9101 10/100 media interface on miibus0
amphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xd480-0xd4ff mem 0xfeafe800-0xfeafe87f 
irq 11 at device 15.0 on pci2
xl0: Ethernet address: 00:01:02:80:d0:e5
miibus1: MII bus on xl0
xlphy0: 3c905C 10/100 internal PHY on miibus1
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: Intel 82801AA (ICH) PCI to LPC bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH ATA66 controller port 0xffa0-0xffaf at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: Intel 82801AA (ICH) USB controller at 31.2 irq 9
pci0: unknown card (vendor=0x8086, dev=0x2413) at 31.3 irq 10
pcm0: Intel 82801AA (ICH) port 0xef00-0xef3f,0xe800-0xe8ff irq 10 at device 31.5 on 
pci0
orm0: Option ROMs at iomem 0xc-0xc7fff,0xc8000-0xcc7ff,0xd-0xd07ff on isa0
fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
.
ad0: 14324MB QUANTUM FIREBALLlct15 15 [29104/16/63] at ata0-master UDMA66
ad1: 78167MB Maxtor 98196H8 [158816/16/63] at ata0-slave UDMA66
ad3: 117246MB Maxtor 4G120J6 [238216/16/63] at ata1-slave UDMA66
acd0: CD-RW LITE-ON LTR-40125S at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 3 lun 0
sa0: EXABYTE EXB-8500-85Qanx0 0446 Removable Sequential Access SCSI-2 device 
sa0: 4.032MB/s transfers (4.032MHz, offset 11)
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: LITE-ON LTR-40125S ZS0K Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted

===
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
487 if (dumping++) {
(kgdb) where
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
#1  0xc017db63 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316
#2  0xc017dfa1 in panic (fmt=0xc02db420 ffs_blkfree: freeing free frag)
at /usr/src/sys/kern/kern_shutdown.c:595
#3  0xc0227fa7 in ffs_blkfree (ip=0xc1959c00, bno=32167, size=1024)
at /usr/src/sys/ufs/ffs/ffs_alloc.c:1470
#4  0xc0229eeb in ffs_truncate (vp=0xd4b3d640, length=0, flags=0, cred=0x0, 
p=0xd4890920) at /usr/src/sys/ufs/ffs/ffs_inode.c:353
#5  0xc0233ce8 in ufs_inactive (ap=0xd4e96ea4)
at /usr/src/sys/ufs/ufs/ufs_inode.c:89
#6  0xc0238fb5 in ufs_vnoperate (ap=0xd4e96ea4)
at /usr/src/sys/ufs/ufs/ufs_vnops.c:2422

Occasional panics under heavy disk load - dmesg/stack traces

2002-12-08 Thread Greg Lane
G'day everyone,

Back in September I sent a message to hackers asking what people thought
of the kernel panics I had started to get from around April on a somewhat 
random basis when my machine was under heavy disk load (buildworld, 
make clean of ports etc). It doesn't panic every time I hammer the 
disk, but only sometimes. This machine has tracked stable for over two 
years now. Its a fairly vanilla box from Gateway.

I was lead towards a couple of PR's, both are still open.

  Can anyone tell me if this hardware or a real bug? Is there anything
  else I could supply which would help in understanding the problem?
 take a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=42277 and 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=42235

One of the PR's pointed towards softupdates as a potential cause. 
I turned it off on /usr and have continued to get panics. Can anyone give
me any clue as to what might be happening? Software / hardware / anything?

I enclose the (hopefully relevant) dmesg output and two kernel 
stack traces, both from the last few days. Last built world on Nov 12th.
I've had four or five crashes since then.

Cheers,
Greg

===
.
FreeBSD 4.7-STABLE #1: Tue Nov 12 14:01:18 EST 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/NUCL03
.
CPU: Pentium III/Pentium III Xeon/Celeron (730.95-MHz 686-class CPU)
.
real memory  = 536739840 (524160K bytes)
avail memory = 518774784 (506616K bytes)
.
pcib1: Intel 82801BA/BAM (ICH2) PCI-PCI (AGP) bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: VGA-compatible display device at 0.0 irq 11
pcib2: Intel 82801AA (ICH) Hub to PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
ahc0: Adaptec 2940 Ultra SCSI adapter port 0xd800-0xd8ff mem 0xfeaff000-0xfeaf 
irq 11 at device 7.0 on pci2
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
vr0: VIA VT3043 Rhine I 10/100BaseTX port 0xdc00-0xdc7f mem 0xfeafec00-0xfeafec7f 
irq 5 at device 11.0 on pci2
vr0: Ethernet address: 00:80:c8:da:0b:69
miibus0: MII bus on vr0
amphy0: DM9101 10/100 media interface on miibus0
amphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xd480-0xd4ff mem 0xfeafe800-0xfeafe87f 
irq 11 at device 15.0 on pci2
xl0: Ethernet address: 00:01:02:80:d0:e5
miibus1: MII bus on xl0
xlphy0: 3c905C 10/100 internal PHY on miibus1
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: Intel 82801AA (ICH) PCI to LPC bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH ATA66 controller port 0xffa0-0xffaf at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: Intel 82801AA (ICH) USB controller at 31.2 irq 9
pci0: unknown card (vendor=0x8086, dev=0x2413) at 31.3 irq 10
pcm0: Intel 82801AA (ICH) port 0xef00-0xef3f,0xe800-0xe8ff irq 10 at device 31.5 on 
pci0
orm0: Option ROMs at iomem 0xc-0xc7fff,0xc8000-0xcc7ff,0xd-0xd07ff on isa0
fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
.
ad0: 14324MB QUANTUM FIREBALLlct15 15 [29104/16/63] at ata0-master UDMA66
ad1: 78167MB Maxtor 98196H8 [158816/16/63] at ata0-slave UDMA66
ad3: 117246MB Maxtor 4G120J6 [238216/16/63] at ata1-slave UDMA66
acd0: CD-RW LITE-ON LTR-40125S at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 3 lun 0
sa0: EXABYTE EXB-8500-85Qanx0 0446 Removable Sequential Access SCSI-2 device 
sa0: 4.032MB/s transfers (4.032MHz, offset 11)
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: LITE-ON LTR-40125S ZS0K Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted

===
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
487 if (dumping++) {
(kgdb) where
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
#1  0xc017db63 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316
#2  0xc017dfa1 in panic (fmt=0xc02db420 ffs_blkfree: freeing free frag)
at /usr/src/sys/kern/kern_shutdown.c:595
#3  0xc0227fa7 in ffs_blkfree (ip=0xc1959c00, bno=32167, size=1024)
at /usr/src/sys/ufs/ffs/ffs_alloc.c:1470
#4  0xc0229eeb in ffs_truncate (vp=0xd4b3d640, length=0, flags=0, cred=0x0, 
p=0xd4890920) at /usr/src/sys/ufs/ffs/ffs_inode.c:353
#5  0xc0233ce8 in ufs_inactive (ap=0xd4e96ea4)
at /usr/src/sys/ufs/ufs/ufs_inode.c:89
#6  0xc0238fb5 in ufs_vnoperate (ap=0xd4e96ea4)
at /usr/src/sys/ufs/ufs/ufs_vnops.c:2422
#7  0xc01ac78c in vput (vp=0xd4b3d640) at vnode_if.h:815
#8  0xc01afb19 in unlink (p=0xd4890920, uap=0xd4e96f80)
at /usr/src/sys/kern/vfs_syscalls.c:1504
#9  0xc029cf61 in syscall2 (frame={tf_fs = 135135279, tf_es = -1078001617, 
  tf_ds = -1078001617, tf_edi = 135719488, tf_esi = -1077943540, 
  

Re: Upgrading using /stand/sysinstall

2002-09-24 Thread Greg Lane

On Tue, Sep 24, 2002 at 03:58:03PM +1000, Danny [EMAIL PROTECTED] wrote:
 Dear Gregory,
 
 I found the old files by typing in /usr/libexec/locate.updatedb -
 
 locate master.passwd
 
 backup# ls
 aliases.bak group.bak2  master.passwd.bak2
 group.bak   master.passwd.bak
 backup# pwd
 /var/backups
 
 When you say I should merge them to the new password files does it mean I
 issue the following commands to copy the old passwords, groups overs
 
 cat aliases.bak  /etc/aliases
 cat group.bak  /etc/group
 cat master.passwd.bak  /etc/master.passwd
 
  Yours faithfullly
 
 [EMAIL PROTECTED]

G'day Danny,

What I mean by merge, is that if you do something like:

diff /etc/master.passwd /var/master.passwd.bak

and:

diff /etc/group /var/group.bak

you will see that a number of groups and users have been added 
to the passwd and group files since the version you were 
running (4.3?), and the groups and users that you had 
added are not present. 

You need to merge your old added groups and users into 
the current group and passwd files (which already contain the new
groups and users added by the upgrade). 

Although there is probably a more elegant way, I would do it by
using vipw to edit the current /etc/master.passwd file and manually
add your old entries from /var/master.passwd.back to it. When you 
exit vipw, it will update the passwd database (/etc/pwd.db) for you. 

You will have to do the same thing with /etc/group but with a
normal editor, not vipw. There is no groups database to update
that I am aware of.

Note that if you don't like vi, you can set the EDITOR variable 
to point to your editor of choice (emacs, ee) before you run vipw.
Make sure you delete any backup files that are created if you use 
(for example) emacs!

I'm sure the experts out there will think of numerous more
clever methods, but this should work.

One other point. The aliases file is for email, not logging 
in. To setup the aliases file I think you are supposed
to copy your backed up aliases file to /etc/mail/aliases, 
cd to /etc/mail and then type make aliases to create the 
/etc/mail/aliases.db file for sendmail.

I think this should be OK, but I would make extra backups of 
all the files before you do anything just in case. I'm self
taught and not an expert!

Cheers,
Greg

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Upgrading using /stand/sysinstall

2002-09-23 Thread Greg Lane

 Dear Gregory,
 
 Thank you for replying to my email with the games.telstra.com/gamearena/
 site it was very helpful.

No worries.
 
 I tried the instruction on a test machine in the email below:
 and after the installation has completed I typed in cp kernel.GENERIC
 kernel then reboot the computer
 
 I am now currently running :
 
 backup# uname -a
 FreeBSD backup.freebsbsd.org 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11
 06:14:12 GMT 2002
 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
 backup#
 
 After the upgrade I am experiencing the following probelms with FreeBSD:
 
 1) After FreeBSD has booted up I can't seem to log in with my old usernames
 and password, I have checked /etc/passwd and I can't find the usernames.
 
 2)When the machine boots up and I try to start the PostgreSQL service I get
 the following error message
 backup# ./010.pgsql.sh start
 PGDATA: Undefined variable.
  pgsqlbackup#
 
 3)When the machine boots up and I try to start the MySQL service I get the
 following error message:
 backup#   ./mysql-server.sh  start
  mysqldbackup#  pschown: mysql: illegal user name
 
 4)When I load webmin to test it everything works fine expect Webmin still
 shows I am running Version 0.93 on backup.freebsbsd.org (FreeBSD 4.3) after
 the upgrade
 
 Does anyone in the mailing list know how to solve the problems?
 
 [EMAIL PROTECTED]

This is a bit of conjecture on my part since its ages since I've done
it with sysinstall (I usually upgrade via the cvsup / buildworld method). 

I dimly remember, but may be wrong, that many files in /etc are 
archived somewhere else by the install and you are supposed to copy
back the ones you need. Can anyone confirm or correct that?

If so, that would be the source of at least some of your problems. 
You will need to copy back your old passwd and group files, possibly 
mergin in any new groups or users that were added by the install 
(possibilities include sshd, smmsp etc). Use diff on the archived and
new versions to check for additions / deletions. 

Cheers,
Greg

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: CDROM drive(s) suddenly gone

2002-09-17 Thread Greg Lane

 And even weirderwhen I do put in a data cdit is mounted as
 
 /dev/acd0c which according to dmesg doesn't even existsyet it is in the 
 /dev directory structure. 

This is the way it is supposed to work. 
The device in dmesg will be acd0, while it will be 
referred to when mounting (as in your fstab) as /dev/acd0c.

In a similar fashion, you will notice that your disk drives are 
detected (if IDE) as ad0, ad1 etc in dmesg, although in 
/etc/fstab they are listed by partition as /dev/ad0s1a etc when 
they are being mounted. 

The additional letter refers to the partition. For the cdrom,
the letter c refers to the whole disk.

Your initial confusion seems to be due to the fact that you were trying 
to mount a music cd. This is not what you do, you play music cd's.
You can use a variety of things to do this, from the basic, 
cdcontrol (see the man page), to the graphical interface
variety, e.g. xcdplayer in the ports. 

If you want to extract the music off the CD as a .wav file, you
don't mount the cd, you use a ripping tool, like cdda2wav (from 
the cdrtools port). 

Hope that makes more sense. 

Cheers,
Greg

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message