Questions about adding new disk

2006-10-02 Thread Daniel Johansson
Hello, I've just bought two new Seagate SATA drives and a Promise TX4 
SATA300 controller. The disks and the controller is working fine but I'm 
a little confused how I should setup them.


First of all I'm running FreeBSD 6.1. The disks are two 320 GB drives 
who I'm going to use for storage. Backups, movies, music etc.


I've read the handbook about adding new disks and I've got them setup 
but here are my questions.


1. Should I use soft updates or not on the new disks? The handbook 
doesn't mention anything about using -U to newfs to setup soft updates. 
The installer is using it on the system disks but is it a bad idea to 
use it on storage disks or why isn't it mention in the handbook?


2. Is it a bad idea to use tunefs -m 0 ? I don't need any space reserved 
for root at the disks but the man page mentions that I'll loose 
performance when using -m 0. Will it be so much that the extra space 
isn't worth the performance loss?


3. Should I use tunefs -o space or time? I guess space is the way to go 
but again how much of a performance loss is there?


If you replay to this email could you please CC it to me as I'm not 
subscribed to this list.


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


Mount permissions on disk

2006-10-02 Thread Daniel Johansson
Hello, I'm sorry if this is a dumb question but I can't find the answer 
anywhere. I've tried both google and searching the mailing list.


Anyway what I would like to know is how I change permissions on a mount. 
I've got a new disk and I would like to mount it with the permission 775 
so that my user, in wheel, can write to the root of the disk too.


If I remember correctly in 4.x all you had to do was to set 775 on the 
dir you use as mount point but in FreeBSD 6.1 this doesn't seem to work.


So is there any other way I can set 775 as permission on my mount?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devfs rule: ioctl DEVFSIO_SAPPLY: No such process

2006-04-04 Thread Daniel Johansson
Thanks. That did the trick. Strange that I couldn't set it manually from 
the command line. Anyway it works perfect when I use rc.conf and start 
it with the jail rc.d script.


Daniel Johansson - [EMAIL PROTECTED]



Anish Mistry wrote:

On Monday 03 April 2006 18:18, Daniel Johansson wrote:
  

Hello..

I'm setting up a jail in FreeBSD 6.0. I've done that before in 4.x
but now it's a new box and newer version of FreeBSD. Everything
works fine except for the rules for my devfs mount. What I want to
do is to hide the devices that isn't necessary in my jail
environment like the disks etc.

I've read the man files and some other guides online for this and
my understanding is that I should use devd to manipulate the devfs
mount and tell it to use rule set 4, as devfs.rules says is
suitable for jails.

$ devfs -m /path/to/my/jail/dev/ rule -s 4 applyset
devfs rule: ioctl DEVFSIO_SAPPLY: No such process

Am I doing something wrong or why do I get that error message? Any
tips or comments about how to fix this?

If you replay please CC the mail to me as I'm not subscribed to
this mailing list.

Assuming you've got everything setup in your rc.conf the following is 
what I use for a basic jail with basic dev entries:

jail_list=myjailname
# myjailname jail
ifconfig_vr0_alias0=inet 192.168.1.60 netmask 255.255.255.255
jail_myjailname_hostname=myjailname.example.org
jail_myjailname_ip=192.168.1.32
jail_myjailname_rootdir=/path/to/my/jail
jail_myjailname_devfs_enable=YES
jail_myjailname_devfs_ruleset=devfsrules_jail

  


smime.p7s
Description: S/MIME Cryptographic Signature


jls shows dead jails too?

2006-04-04 Thread Daniel Johansson
I'm setting up a few jails on my FreeBSD 6.0 box and when I run jls to 
list my jails it shows all my started jails.


The problem is that when I kill a jail with kill -TERM -1, thats what 
the man page tells me to use, it still is listed when I run jls. Why is 
that and is there any way to clear the jls list? Where does jls get the 
list of the jails?


If you replay to this please CC it to me as I am not subscribed to this 
list.


--
Daniel Johansson - [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


devfs rule: ioctl DEVFSIO_SAPPLY: No such process

2006-04-03 Thread Daniel Johansson

Hello..

I'm setting up a jail in FreeBSD 6.0. I've done that before in 4.x but 
now it's a new box and newer version of FreeBSD. Everything works fine 
except for the rules for my devfs mount. What I want to do is to hide 
the devices that isn't necessary in my jail environment like the disks etc.


I've read the man files and some other guides online for this and my 
understanding is that I should use devd to manipulate the devfs mount 
and tell it to use rule set 4, as devfs.rules says is suitable for jails.


$ devfs -m /path/to/my/jail/dev/ rule -s 4 applyset
devfs rule: ioctl DEVFSIO_SAPPLY: No such process

Am I doing something wrong or why do I get that error message? Any tips 
or comments about how to fix this?


If you replay please CC the mail to me as I'm not subscribed to this 
mailing list.


--
Daniel Johansson - [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Disable loader.conf when booting? Can't boot because of it ..

2005-03-31 Thread Daniel Johansson
Hi, I really need some help here. I'm running a raid0, with vinum, and read
the errata about adding geom_vinum_load=YES to loader.conf because
vinim_start=YES in rc.conf paniced my system when booting. I'm running
5.3-RELEASE and the errata mentioned that one too. 

So I added gvinum to loader.conf and now I can't boot. All I get is a lot of
scrolling text that says something about gvinum error, can't remember the
exact message but it can't boot anyway. Tried single mode to delete this line
but can't boot into single mode either. Tried disable-module geom_vinum in the
loader but that didn't help either. It loaded the module anyway.

So I'm really desperate here .. is there any way to tell my system to
completly ignore loader.conf when booting so that I at least can access the
system and edit loader.conf?

Please CC to me if you reply.

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


re: re: make: don't know how to make when trying to make world for a jail

2005-01-24 Thread Daniel Johansson
.  The table size should
# be a prime number approximately twice as large as the number of lines in
# /etc/passwd.  The default number is 20011.
#
#TOP_TABLE_SIZE= 101
#
# Documentation
#
# The list of languages and encodings to build and install
#
#DOC_LANG=  en_US.ISO8859-1 ru_RU.KOI8-R
#
#
# sendmail
#
# The following sets the default m4 configuration file to use at
# install time.  Use with caution as a make install will overwrite
# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
# deprecated.  The value should be a fully qualified path name.
#
#SENDMAIL_MC=/etc/mail/myconfig.mc
#
# The following sets the default m4 configuration file for mail
# submission to use at install time.  Use with caution as a make
# install will overwrite any existing /etc/mail/submit.cf.  The
# value should be a fully qualified path name.
#
#SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc
#
# If you need to build additional .cf files during a make buildworld,
# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC.
#
#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
#
# The following overrides the default location for the m4 configuration
# files used to build a .cf file from a .mc file.
#
#SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
#
# Setting the following variable modifies the flags passed to m4 when
# building a .cf file from a .mc file.  It can be used to enable
# features disabled by default.
#
#SENDMAIL_M4_FLAGS=
#
# Setting the following variables modifies the build environment for
# sendmail and its related utilities. For example, SASL support can be
# added with settings such as:
#
#with SASLv1:
#   SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
#   SENDMAIL_LDFLAGS=-L/usr/local/lib
#   SENDMAIL_LDADD=-lsasl
#
#with SASLv2:
#   SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
#   SENDMAIL_LDFLAGS=-L/usr/local/lib
#   SENDMAIL_LDADD=-lsasl2
#
# Note: If you are using Cyrus SASL with other applications which require
#   access to the sasldb file, you should add the following to your
#   sendmail.mc file:
#
#   define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')
#
#SENDMAIL_CFLAGS=
#SENDMAIL_LDFLAGS=
#SENDMAIL_LDADD=
#SENDMAIL_DPADD=
#
# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a
# set-user-ID root binary instead of a set-group-ID smmsp binary and will
# prevent the installation of /etc/mail/submit.cf.
# This is a deprecated mode of operation.  See etc/mail/README for more
# information.
#
#SENDMAIL_SET_USER_ID=
#
# The permissions to use on alias and map databases generated using
# /etc/mail/Makefile.  Defaults to 0640.
#
#SENDMAIL_MAP_PERMS=

NO_X=1
WITHOUT_X=1
WITHOUT_X11=1
WITHOUT_GUI=1

# -- use.perl generated deltas -- #
# Created: Fri Sep 17 22:32:50 2004
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo

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


make: don't know how to make when trying to make world for a jail

2005-01-23 Thread Daniel Johansson
Hi, I'm running FreeBSD 5.3-RELEASE-p5, updated it today without any problems
at all but I'm getting errors when I run make world, after everything was 
cleaned,
didn't knew I was going to build a jail so I cleaned. I completly removed obj
and ran make clean and cleandir twice so no old files are left.

I can run just make world I builds without any problems but when I run it with
the path to my jail it fails. Any ideas why and how I can fix that?

Here is the output:
--
 stage 1.2: bootstrap tools
--
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386  DESTDIR=  INSTALL=sh
/usr/src/tools/install.sh
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
WORLDTMP=/usr/obj/usr/src/i386  MAKEFLAGS=-m /usr/src/tools/build/mk
DESTDIR=/usr/jail/jail.henrikssons.net -m /usr/src/share/mk make -f
Makefile.inc1  BOOTSTRAPPING=503001  -DNOHTML -DNOINFO -DNOLINT -DNOMAN
-DNOPIC -DNOPROFILE  -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools
=== games/fortune/strfile
/usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for
/usr/src/games/fortune/strfile
rm -f .depend
mkdep -f .depend -a-I/usr/obj/usr/src/i386/legacy/usr/include
/usr/src/games/fortune/strfile/strfile.c
echo strfile: /usr/jail/jail.henrikssons.net/usr/lib/libc.a
/usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a  .depend
cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c
/usr/src/games/fortune/strfile/strfile.c
make: don't know how to make /usr/jail/jail.henrikssons.net/usr/lib/libc.a.
Stop
*** Error code 2

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

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


Re: Do I have to rebuild my jails too when I rebuild the server?

2004-12-21 Thread Daniel Johansson
Hmm, I've mounted prioc in all my jails but top won't work anyway:

$ top
kvm_open: short read
top: kvm_read for _ccpu: Unknown error: 0

On Tue, 21 Dec 2004 12:20:13 +0100, Ruben de Groot [EMAIL PROTECTED] wrote:
 On Mon, Dec 20, 2004 at 05:31:52PM -0600, Frank Knobbe typed:
  On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote:
   I see. So if I've got a synced jail and host then top will work? I
   thought top never worked inside jail for some memoryissue or something
   like that?
 
  No, I was using that as an example for the host. I don't think top will work
  in a jail.
 
 It works. Allthough I'm not completely sure about 4.x jails. Maybe you need
 to mount /proc to make it work there.
 
 Ruben
 

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


Re: Do I have to rebuild my jails too when I rebuild the server?

2004-12-20 Thread Daniel Johansson
Okay, thank you but that page didn't help very much. I know how to
rebuild and update the server, and I've done it many times but what I
need to know is if I must rebuild my jails to when I rebuild the
server. Maby the hostsystem and the jail gets out of sync?


On Mon, 20 Dec 2004 11:31:04 -0600, Joshua Lokken
[EMAIL PROTECTED] wrote:
 On Sun, 19 Dec 2004 23:23:26 +0100, Daniel Johansson [EMAIL PROTECTED] 
 wrote:
  I'm a big fan of jails and use three on my server. I also try to keep
  my server up to date and I rebuild it frequently but when I rebuild my
  server, update to the latest version, do I also have to rebuild my
  jails?
 
  Can I have a jail built with 4.10 and use it without problems in 4.11 and 
  so on?
 
 I do not have a specific answer to that question, however, this doc may
 help you determine what you need to do:
 
 http://lists.freebsd.org/pipermail/freebsd-questions/2004-August/055091.html
 
 
 --
 Joshua Lokken
 Open Source Advocate

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


Re: Do I have to rebuild my jails too when I rebuild the server?

2004-12-20 Thread Daniel Johansson
Okay, I see. I've not done this with my jails so I think it's time to do it 

But until now everything has worked anyway, upgraded from 4.9 to 4.10-p5. 

How important is it to rebuild the jails too?

On Mon, 20 Dec 2004 17:01:13 -0600, Frank Knobbe [EMAIL PROTECTED] wrote:
 On Mon, Dec 20, 2004 at 11:33:33PM +0100, Daniel Johansson wrote:
  Okay, thank you but that page didn't help very much. I know how to
  rebuild and update the server, and I've done it many times but what I
  need to know is if I must rebuild my jails to when I rebuild the
  server. Maby the hostsystem and the jail gets out of sync?
 
 Yes. Whenever you build world for your host system, you should also build
 for the jail (using DESTDIR). Otherwise they get out of sync as you suspect.
 
 Regards,
 Frank
 

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


Re: Do I have to rebuild my jails too when I rebuild the server?

2004-12-20 Thread Daniel Johansson
I see. So if I've got a synced jail and host then top will work? I
thought top never worked inside jail for some memoryissue or something
like that?

I think I should go and rebuild my jails too. It's just a bit of work
with three jails, thank god that I've got a fast box :)

Still the issue with config-files but I think I'll back them up and
just restore them.

On Mon, 20 Dec 2004 17:08:31 -0600, Frank Knobbe [EMAIL PROTECTED] wrote:
 On Tue, Dec 21, 2004 at 12:04:54AM +0100, Daniel Johansson wrote:
  Okay, I see. I've not done this with my jails so I think it's time to do it
 
  But until now everything has worked anyway, upgraded from 4.9 to 4.10-p5.
 
  How important is it to rebuild the jails too?
 
 I don't think it has to do with importance. Rather it has to do with
 correctness. Jails use the running kernel. You have to rebuild kernel and
 world together to prevent them from getting out-of-sync (easy to test with
 top). Hence, you also have to rebuild your jail-world when you rebuild your
 kernel.
 
 Hope that clarifies it.
 Regards,
 Frank
 

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


Re: Do I have to rebuild my jails too when I rebuild the server?

2004-12-20 Thread Daniel Johansson
On Mon, 20 Dec 2004 17:31:52 -0600, Frank Knobbe [EMAIL PROTECTED] wrote:
 On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote:
  I see. So if I've got a synced jail and host then top will work? I
  thought top never worked inside jail for some memoryissue or something
  like that?
 
 No, I was using that as an example for the host. I don't think top will work
 in a jail.
 
  I think I should go and rebuild my jails too. It's just a bit of work
  with three jails, thank god that I've got a fast box :)
 
 Not really. Update kernel, then:
 make buildworld
 make installworld
 make DESTDIR=/jail1 installworld
 make DESTDIR=/jail2 installworld
 
 You only need to compile once.
 

Hmm true, I just have to buld it once, great!

  Still the issue with config-files but I think I'll back them up and
  just restore them.
 
 uhm... we're talking binaries here. I'm not sure why you would need to restore
 your config files. But making backups is always a good practice.
 

Hmm my bad, maby installworld doesn't install any new configfiles to
/etc? Only mergemaster who installes configfiles? Would still be a
good idea to run mergemaster for the jail to keep the configfiles up
to date.

 Regards,
 Frank
 

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


Do I have to rebuild my jails too when I rebuild the server?

2004-12-19 Thread Daniel Johansson
I'm a big fan of jails and use three on my server. I also try to keep
my server up to date and I rebuild it frequently but when I rebuild my
server, update to the latest version, do I also have to rebuild my
jails?

Can I have a jail built with 4.10 and use it without problems in 4.11 and so on?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My server gets kernel panic every 7th day

2004-12-19 Thread Daniel Johansson
Okay, is this hard to do? I've no idea how to look at the dump or how
to understand the dump. You don't have to be kernel hacker to
understand that?

On Mon, 20 Dec 2004 09:08:01 +1030, Greg 'groggy' Lehey
[EMAIL PROTECTED] wrote:
 On Sunday, 19 December 2004 at 23:35:18 +0100, Daniel Johansson wrote:
  On Mon, 20 Dec 2004 08:59:19 +1030, Greg 'groggy' Lehey
  [EMAIL PROTECTED] wrote:
  On Saturday, 18 December 2004 at 11:50:02 -0800, Kris Kennaway wrote:
  On Sat, Dec 18, 2004 at 11:57:35AM +0100, Daniel Johansson wrote:
  Hi, i've had my server up for over a year now and it's been rock solid
  but for the latest weeks the server has rebooted evert Saturday at
  exact 04:19:57 because of a find command. I have no idea why and I've
  checked the cron log and I don't think any crontab is runned at that
  time. Not as far as I can see from the cron log. Anyway find makes the
  server get a kernel panic and it reboots. This is the fourth week in a
  row it happens and I've checked the hardware, no problems at all.
 
  How did you check the hardware?  Hardware failure is by far the
  most common cause of strange panics under abnormal load [such as
  when the weekly cron job runs].
 
  If this panic occurs repeatedly under certain circumstances, it's
  probably not hardware.  Anyway, there's not much point standing
  outside and scratching our heads.  We have a facility for analysing
  this kind of problem: the processor dump and kernel debugger.
 
  Yeah, I want to say thank you for your help. I think I've been able to
  reproduce the kernel panic now, finalay!
 
  On my server I run 3 jails and every night at 04:15 when it runs
  periodic weekly it runs it in 3 jails + the host enviroment. This
  seems to cause the kernel panic, I don't really know why yet. I can
  run periodic weekly separatly in every jail + the host without kernel
  panic but when I run it at the same time on all places it kernel
  panics.
 
 What does the dump backtrace show?
 
  It can still be the PSU, don't have any other atm to try with. I'll
  do some more testing and see if I can get any more info.
 
 There's no point looking at the hardware until you've looked at the
 dump.
 
 Greg
 --
 See complete headers for address and phone numbers.
 
 

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


Re: My server gets kernel panic every 7th day

2004-12-19 Thread Daniel Johansson
Yeah, thank you. I changed the cronjob file so that they run periodic
weekly on diffrent days. So I hope I won't get any more panics now.

I don't have the time or energy to bebug the kernel atm, maby later
but thanks anyway.

Anyone else uses jails and noticed the same behaviour? I think I'll do
some more testing on a new box when I've got time to see if I can
reproduce it there.


On Sun, 19 Dec 2004 14:44:22 -0800, Ted Mittelstaedt
[EMAIL PROTECTED] wrote:
 If I may interject, why should he bother?
 
 Seems to me his next step should be setting up a new server
 with a fresh FreeBSD copy on it, duplicating the 3 jails, then
 firing off the 4 periodics and seeing if that blows up.
 
 If so that is enough info to file a bug report, and he can
 then simply adjust his script so that the periodics aren't all
 run at the same time.  If someone else wants to spend the time
 researching this - like YOU for example - then great.
 
 From the Project's point of view, his problems aren't interesting
 unless they can be reproduced - and from his point of view all he
 wants to do is fix the problem - and he now knows how to do it.
 (run the periodic weekly at different times)  Grubbing around in
 a dump traceback does not prove that a problem is reproducible.
 
 Ted Mittelstaedt
 Author, The FreeBSD Corporate Networker's Guide.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Greg 'groggy'
  Lehey
  Sent: Sunday, December 19, 2004 2:38 PM
  To: Daniel Johansson
  Cc: FreeBSD Questions
  Subject: Re: My server gets kernel panic every 7th day
 
 
  On Sunday, 19 December 2004 at 23:35:18 +0100, Daniel Johansson wrote:
   On Mon, 20 Dec 2004 08:59:19 +1030, Greg 'groggy' Lehey
   [EMAIL PROTECTED] wrote:
   On Saturday, 18 December 2004 at 11:50:02 -0800, Kris Kennaway wrote:
   On Sat, Dec 18, 2004 at 11:57:35AM +0100, Daniel Johansson wrote:
   Hi, i've had my server up for over a year now and it's been
  rock solid
   but for the latest weeks the server has rebooted evert Saturday at
   exact 04:19:57 because of a find command. I have no idea why and I've
   checked the cron log and I don't think any crontab is runned at that
   time. Not as far as I can see from the cron log. Anyway find
  makes the
   server get a kernel panic and it reboots. This is the fourth
  week in a
   row it happens and I've checked the hardware, no problems at all.
  
   How did you check the hardware?  Hardware failure is by far the
   most common cause of strange panics under abnormal load [such as
   when the weekly cron job runs].
  
   If this panic occurs repeatedly under certain circumstances, it's
   probably not hardware.  Anyway, there's not much point standing
   outside and scratching our heads.  We have a facility for analysing
   this kind of problem: the processor dump and kernel debugger.
  
   Yeah, I want to say thank you for your help. I think I've been able to
   reproduce the kernel panic now, finalay!
  
   On my server I run 3 jails and every night at 04:15 when it runs
   periodic weekly it runs it in 3 jails + the host enviroment. This
   seems to cause the kernel panic, I don't really know why yet. I can
   run periodic weekly separatly in every jail + the host without kernel
   panic but when I run it at the same time on all places it kernel
   panics.
 
  What does the dump backtrace show?
 
   It can still be the PSU, don't have any other atm to try with. I'll
   do some more testing and see if I can get any more info.
 
  There's no point looking at the hardware until you've looked at the
  dump.
 
  Greg
  --
  See complete headers for address and phone numbers.
 
 

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


My server gets kernel panic every 7th day

2004-12-18 Thread Daniel Johansson
Hi, i've had my server up for over a year now and it's been rock solid
but for the latest weeks the server has rebooted evert Saturday at
exact 04:19:57 because of a find command. I have no idea why and I've
checked the cron log and I don't think any crontab is runned at that
time. Not as far as I can see from the cron log. Anyway find makes the
server get a kernel panic and it reboots. This is the fourth week in a
row it happens and I've checked the hardware, no problems at all.

I'm running 4.10-RELEASE-p5 so there is nothing newer to update to.

Output from the message log:
Dec 18 04:19:57 donnex /kernel:
Dec 18 04:19:57 donnex /kernel:
Dec 18 04:19:57 donnex /kernel: Fatal trap 12: page fault while in kernel mode
Dec 18 04:19:57 donnex /kernel: fault virtual address   = 0x4
Dec 18 04:19:57 donnex /kernel: fault code  = supervisor read,
page not present
Dec 18 04:19:57 donnex /kernel: instruction pointer = 0x8:0xc01a35a3
Dec 18 04:19:57 donnex /kernel: stack pointer   = 0x10:0xdde38e90
Dec 18 04:19:57 donnex /kernel: frame pointer   = 0x10:0xdde38ea4
Dec 18 04:19:57 donnex /kernel: code segment= base 0x0, limit
0xf, type 0x1b
Dec 18 04:19:57 donnex /kernel: = DPL 0, pres 1, def32 1, gran 1
Dec 18 04:19:57 donnex /kernel: processor eflags= interrupt
enabled, resume, IOPL = 0
Dec 18 04:19:57 donnex /kernel: current process = 16533 (find)
Dec 18 04:19:57 donnex /kernel: interrupt mask  = none
Dec 18 04:19:57 donnex /kernel: trap number = 12
Dec 18 04:19:57 donnex /kernel: panic: page fault
Dec 18 04:19:57 donnex /kernel:
Dec 18 04:19:57 donnex /kernel: syncing disks... 46 9 2 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1
Dec 18 04:19:57 donnex /kernel: giving up on 1 buffers
Dec 18 04:19:57 donnex /kernel: Uptime: 6d16h7m19s
Dec 18 04:19:57 donnex /kernel: Automatic reboot in 15 seconds - press
a key on the console to abort
Dec 18 04:19:57 donnex /kernel: Rebooting...

Any idea how to find out what causes this and how to find out what is
running perl or how to fix it?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My server gets kernel panic every 7th day

2004-12-18 Thread Daniel Johansson
Hmm, I haven't checked the powersuply but I think it is unlikley that
it would fail on a find when the box can take very high load and I've
done a few rebuilds (kernel + world) on the box without any problems
at all.

On Sat, 18 Dec 2004 12:03:19 -0800, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Sat, Dec 18, 2004 at 08:52:47PM +0100, Daniel Johansson wrote:
  I checked the memory with memtest86+ and the disc with powermax,
  maxtors own software. No problems at all with those. Also checked all
  fans and everything was okay.
 
  So I don't think it is any hw error.
 
 What about power supply?  I've had servers start to flake out in
 exactly this way when their PS took a dive and was no longer to keep
 up with peak demands.
 
 Kris
 
 P.S. Don't drop the list from the CC if you want others to participate
 in helping you
 
 

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


Re: My server gets kernel panic every 7th day

2004-12-18 Thread Daniel Johansson
Yeah, it has been rock solid. But if the psu was about to break
wouldn't the panics be a little more random?

As it is right now it get the exact same panic at the exact same time
every week.

On Sat, 18 Dec 2004 12:10:29 -0800, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Sat, Dec 18, 2004 at 09:07:09PM +0100, Daniel Johansson wrote:
  Hmm, I haven't checked the powersuply but I think it is unlikley that
  it would fail on a find when the box can take very high load and I've
  done a few rebuilds (kernel + world) on the box without any problems
  at all.
 
 Unlikely or not, I've seen it happen, and there's no other likely
 candidate since you said you haven't updated the machine in a year,
 and it's been stable under the same load until now.
 
 Kris
 
 

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


Re: My server gets kernel panic every 7th day

2004-12-18 Thread Daniel Johansson
Hmm okay, sounds like it could be the PSU after all. Thanks. I think I
will try to switch it for another one.

By the way is there any way to find out what and why find is ran at
that time every night to saturday? I would like to find the
script/cron/periodic that run it and see if I can make the kernel
panic happen again.

Then I don't have to wait until next saturday to know if it was the PSU or not.

I've searched in /etc/periodic, it's none of my crons that runs find,
and found some scripts that runs find but I'm not really familiar with
how the periodic scripts works.

I need to find the script that runs find every night to saturday at 04:19:57.


On Sat, 18 Dec 2004 15:12:41 -0500 (EST), Tuc [EMAIL PROTECTED] wrote:
 
  Hmm, I haven't checked the powersuply but I think it is unlikley that
  it would fail on a find when the box can take very high load and I've
  done a few rebuilds (kernel + world) on the box without any problems
  at all.
  
 We have a place in CA that assembles our systems, and put it on net
 and we test them before they are sent.
 
 One time they build it, we did all sorts of tests, but once we
 started to build perl on it it would die.
 
 They swapped out everything, and when they got to the power supply,
 perl would build.
 
 The next time they built a system, it stopped in the same exact part
 of the perl build.  It turned out they went to re-use the same power supply.
 
 So, I guess all I'm saying is.. It can happen. :)
 
 Tuc/TTSG Internet Services, Inc.

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


Re: My server gets kernel panic every 7th day

2004-12-18 Thread Daniel Johansson
Yeah, I've ran locate.updatedb ten times in a row, rebuilt kernel +
world twice and done a cat /dev/uranom  tmp for some Gigs and nothing
makes it crash :/


On Sat, 18 Dec 2004 12:46:45 -0800, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Sat, Dec 18, 2004 at 09:12:58PM +0100, Daniel Johansson wrote:
  Yeah, it has been rock solid. But if the psu was about to break
  wouldn't the panics be a little more random?
 
  As it is right now it get the exact same panic at the exact same time
  every week.
 
 ...during a time when the hard disk is placed under extra load,
 presumably causing enough additional drain on the power supply to
 cause it to fail.  You could probably trigger it yourself by loading
 the machine in a similar way.
 
 Kris
 
 

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


USB-console?

2003-09-19 Thread Daniel Johansson
Hello dear FreeBSD users ;)

I've got a small question. Scince more and more companies take away the
old serialport on all new computers that the sell today we won't be able
to admin our servers with serialconsole, when one don't have network
etc. and don't want to have a screen + keybord next to the computer. 

So what I was thinking about was if there exists or is plans on
developing USB-console or anything similar. Consoleaccess over USB. Sure
would be very handy and cool but maby that is not possible/wantable to
do?

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


write a tar-archive to a ide tapedrive

2003-06-18 Thread Daniel Johansson
Hi, I've got a IDE-tapedrive and it is recognised by FreeBSD 4.8. I
haven't tried to use it before but I started to play with it today, but
it doesn't work very well, I think. I have read the handbook but I can't
say that it helped me very much.

Some info about the box and tapedriver:
FreeBSD donnex.net 4.8-RELEASE FreeBSD 4.8-RELEASE #2: Fri Apr 18 13:12:41 CEST 2003 
[EMAIL PROTECTED]:/usr/src/sys/compile/donnex i386
ast0: TAPE HP COLORADO 8GB at ata1-master PIO4

When I insert a tape it starts to rewind the tape, I think, atleast I
get a lot of noice from the tapedriver. When I try to run mt rewind I
don't get any output and I can't hear that the tape gets rewinded. Is
this normal or bad?

[EMAIL PROTECTED]: /dev] mt -f /dev/ast0 rewind
[EMAIL PROTECTED]: /dev] 

I can get some info about the tapedriver so I think it works:
[EMAIL PROTECTED]: /dev] mt -f /dev/ast0 status
Mode  Density  Blocksize  bpi  Compression
Current:  0x01:X3.22-1983  512 bytes  800  none
-available modes-
0:default  variable   0none
1:default  variable   0none
2:default  variable   0none
3:default  variable   0none
-
File Number: 0  Record Number: 0Residual Count 0
[EMAIL PROTECTED]: /dev] 

Anyway when I try to write a tar archive to the tapedrive I get erros.
Does anyone know why or how I can fix it?


[EMAIL PROTECTED]: /dev] tar cf /dev/ast0 /home/
tar: Removing leading `/' from member names
tar: /dev/ast0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
[EMAIL PROTECTED]: /dev] 

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