Re: Installing Samba : FreeBSD Vs Linux ?

2008-10-21 Thread Valentin Bud
On Mon, Oct 20, 2008 at 5:43 PM, Wojciech Puchar 
[EMAIL PROTECTED] wrote:

 the software admin told me that the permissions should be very open on the
 directories and files
 so i made them 0777. the software worked like a charm for about 2 months
 but
 after that
 at some point the client couldn't access the files on the samba server.


 if it could work for 2 months and then refused - something must have been
 changed on the client software side.

No Mr. Puchar nothing changed on the client side.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: custom freebsd cd

2008-10-21 Thread Matias Surdi
Maybe you find usefull some of the scripts I'm using in my project, 
check under the development link: http://openmailserver.org


Also, you will find very usefull the manpages for: ports, release and 
sysinstall.


Regards.


Valentin Bud escribió:

Hello list,
 I have a FBSD box that runs as a web/mail server to provide access to
a web based application. I want to build a custom FBSD 7.0 installation
disk.
By custom I mean:
1. automatic disk partition based on a scheme i provide.
2. automatic installation of the needed packages as well as the config
files. I plan to
update the packages which i might keep on a ftp server on remake the
installation disk
anytime i make package updates.
3. automatic installation of all the php/html/perl/sh scripts needed to
run the application.
 Basically i want a disk that you put it in the cdrom and installs the
system, packages and all
the necessary scripts to run the application. More than that a modified
kernel to allow pf, as well
as the pf configuration file. The installation will always be on the same
hardware in case of failure.

 So can you please give me hints as well as opinions how should i start
this. What alternatives should i consider?

thank you,
v
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [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: Installing Samba : FreeBSD Vs Linux ?

2008-10-21 Thread Manfred Usselmann
On Mon, 20 Oct 2008 17:43:03 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  the software admin told me that the permissions should be very open
  on the directories and files
  so i made them 0777. the software worked like a charm for about 2
  months but after that
  at some point the client couldn't access the files on the samba
  server.
 
 if it could work for 2 months and then refused - something must have
 been changed on the client software side.

Yes, something must have changed. Most likely the problem had nothing
to do with FreeBSD against Linux. I appears that the fresh setup fixed
it.

-- 
Manfred Usselmann [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: Installing Samba : FreeBSD Vs Linux ?

2008-10-21 Thread Valentin Bud
On Tue, Oct 21, 2008 at 8:43 AM, Manfred Usselmann 
[EMAIL PROTECTED] wrote:

 On Mon, 20 Oct 2008 17:43:03 +0200 (CEST)
 Wojciech Puchar [EMAIL PROTECTED] wrote:

   the software admin told me that the permissions should be very open
   on the directories and files
   so i made them 0777. the software worked like a charm for about 2
   months but after that
   at some point the client couldn't access the files on the samba
   server.
 
  if it could work for 2 months and then refused - something must have
  been changed on the client software side.

 Yes, something must have changed. Most likely the problem had nothing
 to do with FreeBSD against Linux. I appears that the fresh setup fixed
 it.

 I have never said that it has something to do with  FBSB. And unfortunately
i didn't
had the time to debug it to find out the problem. I would like to know what
happened there.
The good thing is that a future client of my company works with the same
accounting software
and the server runs FBSD so if something goes wrong i'll have the time to
debug properly.

all the best,
v


 --
 Manfred Usselmann [EMAIL PROTECTED]

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [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: mysql connection through ssl tunnel

2008-10-21 Thread Matthew Seaman

John Almberg wrote:

I do know that Mysql supports SSL... somehow this got discounted early 
in the discussion, perhaps mistakenly?


I believe the thinking was that although MySQL claims to support SSL,
it does in fact make a pretty bodge of it, and a more effective approach 
is to pipe MySQL traffic through an encrypted tunnel.


Personally I just use IPSec for this, but people might also like to
consider stunnel (http://www.stunnel.org/) or OpenVPN 
(http://openvpn.net/)


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Apache aliased directory invisible

2008-10-21 Thread Matthew Seaman

David Karapetyan wrote:
FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: 
Wed Oct  1 10:10:12 UTC 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


Hello all. I would like to make aliased directories in apache visible 
from the directory root. An example: When I visit http://myserver.com/, 
I would like to see the 'icons' folder (suppose that in my document root 
I have directories 'bobo' and 'gogo', but that /icons is actually an 
alias for /usr/local/share/icons). Bobo and gogo show up in the 
directoroy listing when I access http://myserver.com, but not /icons.  
How can I remedy this?




Options Indexes for the icons area?

Create a stub directory icons under your web-root?

Don't use Aliases within apache, but create symlinks instead and tell
Apache to FollowSymLinks?

One or other of those should work...

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


need help with disklabel, expected rawoffset 0, found 32

2008-10-21 Thread Per olof Ljungmark
Hi,

I think sysinstall? got it wrong here and I get the complaint in the
subject line on boot. This is amd64 if that matters. Nothing edited by hand.

I must admit I don't fully understand what is going on here, found 32
but the offsets are 63...

Filesystem on LSI controller amr(4):

# /dev/amrd0s1a:
type: ESDI
disk: amrd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 65535
sectors/unit: 2929674240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  4194304   634.2BSD 2048 16384 28528
  b:  8388608  4194367  swap
  c: 2929661532   63unused0 0 # raw part,
don't edit
  d: 31457280 125829754.2BSD 2048 16384 28528
  e:  2097152 440402554.2BSD 2048 16384 28528
  f: 41943040 461374074.2BSD 2048 16384 28528
  g: 2841581148 880804474.2BSD 2048 16384 28528
bsdlabel: partition c doesn't start at 0!
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities


Filesystem on SmartArray controller ciss(4):

# /dev/da0s1d:
type: SCSI
disk: da0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 53544
sectors/unit: 860192344
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 860184297   63unused0 0 # raw part,
don't edit
  d: 860184297   634.2BSD 2048 16384 28528
bsdlabel: partition c doesn't start at 0!
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities

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


wpa_supplicant wired

2008-10-21 Thread Michal Kulczewski
Hi folks,

can anyone manage to have wired driver enabled in wpa_supplicant? How to
do this? I'm playing with wpa_supplicant and hostapd sources for a while
but without any significant progress.

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


Re: gjournal: journaled slices vs. journaled partitions

2008-10-21 Thread Carl

Laszlo Nagy wrote:

So how do I achieve per-slice journaling instead of per-partition?
The docs only says this: gjournal only supports UFS2. It does not 
specifically say that you cannot have per-slice journaling. However, 
since you could have other filesystems on your slice, I bet that slice 
based journaling is not supported.


I thought I read somewhere that because gjournal is block based and not 
really part of the filesystem, that it could easily be extended for any 
other filesystem. My imagination said that gjournal was probably 
therefore only temporarily limited to a slice full of UFS partitions. 
Anyone know for sure?



Another tricky question: why would you journal a SWAP partition?


Well, I don't really want to, but how big does a partition like /var 
have to be before it's no longer ill-advised to journal it individually? 
A fair bit of writing can occur in /var and the scenario my server will 
occupy has me concerned about inglorious shutdowns.


What are the actual reasons for why journaling a small partition is 
considered a bad idea?


Carl / K0802647

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


Re: wpa_supplicant wired

2008-10-21 Thread Michal Kulczewski
Paul B. Mahol wrote:
 On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Hi folks,

 can anyone manage to have wired driver enabled in wpa_supplicant? How to
 do this? I'm playing with wpa_supplicant and hostapd sources for a while
 but without any significant progress.

 What FreeBSD vesion? On CURRENT and 7.0= it is enabled by default, on
 older I think you need to rebuild it yourself.
 
 Enabling wired driver in wpa_supplicant is straightforward.

well, it's not, at least not for me. I'm running 7.0, wpa_supplicant
tells me that wired driver is not supported (BSD and NDIS are the only
correct values).

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


Re: wpa_supplicant wired

2008-10-21 Thread Paul B. Mahol
On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Hi folks,

 can anyone manage to have wired driver enabled in wpa_supplicant? How to
 do this? I'm playing with wpa_supplicant and hostapd sources for a while
 but without any significant progress.

What FreeBSD vesion? On CURRENT and 7.0= it is enabled by default, on
older I think you need to rebuild it yourself.

Enabling wired driver in wpa_supplicant is straightforward.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wpa_supplicant wired

2008-10-21 Thread Paul B. Mahol
On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Paul B. Mahol wrote:
 On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Hi folks,

 can anyone manage to have wired driver enabled in wpa_supplicant? How to
 do this? I'm playing with wpa_supplicant and hostapd sources for a while
 but without any significant progress.

 What FreeBSD vesion? On CURRENT and 7.0= it is enabled by default, on

= should be just 

 older I think you need to rebuild it yourself.
 
 Enabling wired driver in wpa_supplicant is straightforward.

 well, it's not, at least not for me. I'm running 7.0, wpa_supplicant
 tells me that wired driver is not supported (BSD and NDIS are the only
 correct values).

Yes, 7.0 RELEASE do not have it.
Here is patch:

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/wpa/wpa_supplicant/Makefile.diff?r1=1.11.2.2;r2=1.11.2.3
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Samba : FreeBSD Vs Linux ?

2008-10-21 Thread Wojciech Puchar

if it could work for 2 months and then refused - something must have been
changed on the client software side.


No Mr. Puchar nothing changed on the client side.


so what changed on server side so it stopped working after 2 months?

in unix there are no magic things - things works or not.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gjournal: journaled slices vs. journaled partitions

2008-10-21 Thread Volodymyr Kostyrko

Carl wrote:
My goal is to build a 2-disk server configured with gmirror and gjournal 
for maximum reliability. There will never be a second operating system 
on the system, but I prefer not to freak out any non-FreeBSD repair 
tools that might be used, so I will use compatibility instead of 
dangerously dedicated mode. This means I need one slice, but see no 
reason for more. Inside that one slice will be the usual array of 
partitions (ie. /, swap, /var, /tmp, /usr, /data).


Now, I think gmirror allows me to mirror the entire drive rather than 
forcing me to do per-slice or even per-partition mirroring. I'm looking 
for the simplest in-field replacement procedure when one of the drives 
dies and I imagine a whole drive mirror achieves this. Am I right?


gjournal, OTOH, has me really confused. The man page for gjournal(8) 
specifically does not recommend that small partitions be journaled. I 
assume that's because the journal provider rivals the partition in size 
and is therefore overhead heavy. It seems to me, though, that if I can 
journal the slice as a whole instead of per-partition journaling, that 
there will essentially then be only one journal provider for the 
combination of all partitions (ie. slice) and that the aforementioned 
overhead becomes minor. Having smaller partitions included in journaling 
 seems like a good thing to me. So how do I achieve per-slice journaling 
instead of per-partition? Every time I read up on someone else's 
gjournal implementation, it seems to end with adding partition.journal 
entries to /etc/fstab. Am I trying to achieve the impossible or 
ill-advised here?


I have some setups were gjournal was put on device rather the on 
partition, i.e.:


[umgah] ~ gmirror status
 NameStatus  Components
mirror/umgah0  COMPLETE  ad0
 ad1
[umgah] ~ gjournal status
 Name  Status  Components
mirror/umgah0.journal N/A  mirror/umgah0
[umgah] ~ glabel status
Name  Status  Components
  ufs/umgah0root N/A  mirror/umgah0.journala
label/umgah0swap N/A  mirror/umgah0.journalb
   ufs/umgah0usr N/A  mirror/umgah0.journald
   ufs/umgah0var N/A  mirror/umgah0.journale
[umgah] ~ mount
/dev/ufs/umgah0root on / (ufs, asynchronous, local, noatime, gjournal)
devfs on /dev (devfs, local)
/dev/md0 on /tmp (ufs, asynchronous, local)
/dev/ufs/umgah0var on /var (ufs, asynchronous, local, noatime, gjournal)
/dev/ufs/umgah0usr on /usr (ufs, asynchronous, local, noatime, gjournal)
devfs on /var/named/dev (devfs, local)

And yes, mirror autosynchronization is turned off, gjournal takes care 
of that too.


It's not stated in manual, but gjournal is typically transparent for any 
type of access, just in case of UFS file system is marked as journaled 
so any metadata writes can be distinguished from data writes. Without 
that gjournal does literally nothing.


--
Sphinx of black quartz judge my vow.

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


Re: Apache aliased directory invisible

2008-10-21 Thread Derek Ragona

At 10:16 PM 10/20/2008, David Karapetyan wrote:

FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0:
Wed Oct  1 10:10:12 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Hello all. I would like to make aliased directories in apache visible
from the directory root. An example: When I visit http://myserver.com/,
I would like to see the 'icons' folder (suppose that in my document root
I have directories 'bobo' and 'gogo', but that /icons is actually an
alias for /usr/local/share/icons). Bobo and gogo show up in the
directoroy listing when I access http://myserver.com, but not /icons.
How can I remedy this?


add a symbolic link:

ln -s /usr/local/share/icons [path to your doc root]/icons

typically for apache22 this would be:

ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


RE: Apache aliased directory invisible

2008-10-21 Thread Barry Byrne
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Derek Ragona
 Sent: 21 October 2008 12:07
 To: David Karapetyan; freebsd-questions@freebsd.org
 Subject: Re: Apache aliased directory invisible
 
 At 10:16 PM 10/20/2008, David Karapetyan wrote:
 FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 
 7.0-RELEASE-p5 #0:
 Wed Oct  1 10:10:12 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
 
 Hello all. I would like to make aliased directories in apache visible
 from the directory root. An example: When I visit 
 http://myserver.com/,
 I would like to see the 'icons' folder (suppose that in my 
 document root
 I have directories 'bobo' and 'gogo', but that /icons is actually an
 alias for /usr/local/share/icons). Bobo and gogo show up in the
 directoroy listing when I access http://myserver.com, but not /icons.
 How can I remedy this?
 
 add a symbolic link:
 
 ln -s /usr/local/share/icons [path to your doc root]/icons
 
 typically for apache22 this would be:
 
 ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons
 

You may also want to check your apache config that the FollowSymLinks option
is on.

Something like:

Options FollowSymLinks

is in the appropriate place. Otherwise, Apache will ignore symbolic links.

 - barry

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


Dialin Service

2008-10-21 Thread Okalany Daniel
Good Afternoon all,
I want to setup a dialin server at my work place so i can do a dialup to my
work place wherever i am. I picked up an old modem card and put it in my
freebsd system, together with a phone line. What do i need to do to make
that happen?
Freebsd doesn't seem to be detecting my modem properly, perhaps its
unsupported?
pciconf -lv shows:

[EMAIL PROTECTED]:1:11:0:  class=0x078000 card=0x chip=0x40001813
rev=0x02 hdr=0x00
vendor = 'Ambient Technologies Inc.'
device = 'MD5628D-L-A intel V.92 HaM Modem'
class  = simple comms


-- 
OKALANY DANIEL
P.O BOX 26150
KAMPALA.
http://okaman.one2net.co.ug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error installing kmymoney2 on amd64 system running freebsd 6.3

2008-10-21 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

mv wrote:
 Hello Greg,
 
 When I tried to upgrade kmymoney2 on my amd64 6.4-PRERELEASE using 
 portmaster I also received the same error message as Dino.   However, 
 after I amended the Makefile as you had suggested portmaster worked as 
 it should.
 
 Just wanted to let you know that you seem to be on the right track.
 
 With thanks and regards,
 
 Marek
 

Hi Marek,

Thanks for the confirmation.  I plan to do some work on the port in the
next day or two, as soon as I have some free time, and we'll get
everything all dialed in as best as possible!

Regards,
Greg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj9zHkACgkQ0sRouByUApCb5gCgnl+dZ6VPUPaFdhh8S3mzxdXS
rY4AoI3JnND+qWrmNAaq31ulix3yCrF8
=ZOEl
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: need help with disklabel, expected rawoffset 0, found 32

2008-10-21 Thread Michel Talon

Per olof Ljungmark wrote:

 I must admit I don't fully understand what is going on here ...

The c partition should cover exactly the slice. For example, my ad0s1
is like that:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 81915372 (39997 Meg), flag 80 (active)
Now let us look at the label on this slice:
lilas# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8 
  b:  4126240  1048576  swap
  c: 819153720unused0 0 # raw part,
don't edit
  d:  4159488  51748164.2BSD 2048 16384 28552 
  e: 72581068  93343044.2BSD 2048 16384 28552 

You can see that the c) partition starts at offset 0 and has exactly the
size 81915372 reported above. In your case you start at offset 63.

Note that the first partition a) should start at offset 16 (see the
offset entry in man bsdlabel) but this is not enforced in sysinstall.



-- 

Michel TALON

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


Re: mounting an MP3 player?

2008-10-21 Thread Johannes-Maria Kaltenbach
Hello,

Roland Smith wrote:

 On Mon, Oct 20, 2008 at 03:39:04PM +0200, Johannes-Maria Kaltenbach wrote:
  Hello,
 
  Roland Smith wrote:
  
   On Sat, Oct 18, 2008 at 11:32:37AM +0200, Johannes-Maria Kaltenbach wrote:
   
...
   Are there any filesystems on these devices? Try 'file -s /dev/da*' and
   post the results.
 
  my filesystems are mounted on /dev/ad0s...;
 
  $ file -s /dev/da*
  /dev/da1:  writable, no read permission
  /dev/da2:  writable, no read permission
  /dev/da3:  writable, no read permission
  /dev/da4:  writable, no read permission

 Aha! you have a permissions problem. Try running the following commands
 as root, with the device plugged in:

 chown root:wheel /dev/da*
 chmod 660 /dev/da*

this doesn't solve the problem:

# ls -l /dev/da*

crw-rw  1 root  wheel0, 128 Oct 21 15:34 /dev/da0
crw-rw  1 root  wheel0, 129 Oct 21 15:34 /dev/da2
crw-rw  1 root  wheel0, 130 Oct 21 15:34 /dev/da3
crw-rw  1 root  wheel0, 131 Oct 21 15:34 /dev/da4

but the output of file -s /dev/da* ist still as above:

# file -s /dev/da*
/dev/da0: writable, no read permission
/dev/da2: writable, no read permission
/dev/da3: writable, no read permission
/dev/da4: writable, no read permission

(and the same if I chmod to 666)

Trying to mount the mp3 player to one of these /dev/da#-files
yields
mount: /dev/da#: Device not configured

(the same after the camcontrol comands proposed by Frank Shute
in his reply.)


[btw: now there is a /dev/da0 again, but no /dev/da1, last time
I had no /dev/da0 but a /dev/da1, an so on; I've not yet found
out under what condition a given /dev/da# is created at boot time.
If I connect a usb memory stick then there appears automatically a
/dev/da#s#, some examples: /dev/da1s1, /dev/da4s1, /dev/da0s1,
/dev/da6s1 etc. The mounting of the memory stick to these dev-files
is no problem; I've only problems with th usb mp3 player.]



 These permissions will last until you remove the device. Now you can try
 mounting the devices. (try file -s first, to see what kind of
 filesystems are on there!)

 To be able to mount USB disks as a regular user instead of root or to
 make the permissions permanent, there are several things that need to be
 done, especially editing the /etc/devfs.rules configuration file. These
 are explained (among other things) on my FreeBSD page (especially the
 devfs section): http://www.xs4all.nl/~rsmith/freebsd/index.html

 Read this page and see if you can apply it. Don't hesitate to ask (me or
 the mailing list) if you have questions.

it's sufficient to mount as root
but at the moment I'm not able to mount at all

 Good luck!

Thanks
Johannes-Maria


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


Re: need help with disklabel, expected rawoffset 0, found 32

2008-10-21 Thread Jerry McAllister
On Tue, Oct 21, 2008 at 09:53:52AM +0200, Per olof Ljungmark wrote:

 Hi,
 
 I think sysinstall? got it wrong here and I get the complaint in the
 subject line on boot. This is amd64 if that matters. Nothing edited by hand.
 
 I must admit I don't fully understand what is going on here, found 32
 but the offsets are 63...
 
 Filesystem on LSI controller amr(4):
 
 # /dev/amrd0s1a:
 type: ESDI
 disk: amrd0s1
 label:
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 255
 sectors/cylinder: 16065
 cylinders: 65535
 sectors/unit: 2929674240
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # milliseconds
 track-to-track seek: 0  # milliseconds
 drivedata: 0
 
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:  4194304   634.2BSD 2048 16384 28528
   b:  8388608  4194367  swap
   c: 2929661532   63unused0 0 # raw part,
 don't edit
   d: 31457280 125829754.2BSD 2048 16384 28528
   e:  2097152 440402554.2BSD 2048 16384 28528
   f: 41943040 461374074.2BSD 2048 16384 28528
   g: 2841581148 880804474.2BSD 2048 16384 28528
 bsdlabel: partition c doesn't start at 0!
 bsdlabel: partition c doesn't cover the whole unit!
 bsdlabel: An incorrect partition c may cause problems for standard
 system utilities

I do not know what is causing this, but I think the offset of the 'c'
partition (and the first real partition (a in this case)) should be 0
I have seen this a couple of times a long time ago and don't remember
what happened other than I think I just arbitrarily set those offsets 
to 0 and it worked.

Can you try booting up the fixit shell and hitting the disk with
a manual fdisk and bsdlabel to see what happens.  

Also, you might try doing the dd(1) thing  
  dd if=/dev/zero of=/dev/amrd0 bs=512 count=1000
before the fdisk and then another one after creating the slices manually
  dd if=/dev/zero of=/dev/amrd0s1 bs=512 count=1000
Note, that count value is arbitrary.

That should clean up any junk on the drive.

Also, I haven't seen/dealt with a disk device called amrd0 before.  It 
appears to be something from one of the raid setups?  So, maybe doing 
the dd thing might mangle that although, once it is a device, it 
should work the same as a drive.   I ain't rich enough to have one of
those raids to play with, though, so if someone else says otherwise,
believe them.

jerry


 
 
 Filesystem on SmartArray controller ciss(4):
 
 # /dev/da0s1d:
 type: SCSI
 disk: da0s1
 label:
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 255
 sectors/cylinder: 16065
 cylinders: 53544
 sectors/unit: 860192344
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # milliseconds
 track-to-track seek: 0  # milliseconds
 drivedata: 0
 
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   c: 860184297   63unused0 0 # raw part,
 don't edit
   d: 860184297   634.2BSD 2048 16384 28528
 bsdlabel: partition c doesn't start at 0!
 bsdlabel: partition c doesn't cover the whole unit!
 bsdlabel: An incorrect partition c may cause problems for standard
 system utilities
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PF Failover

2008-10-21 Thread Diego F. Arias R.
Hi:

Does someone have a document where explain how to use PF with two link
failover? (I want to have redundancy if one internet conection fails
use the other).

i use FreeBSD 7 Release i386.


I have looked at google but i only got CARP for firewall redundancy. I
want to make something similar to the pfsense failover.
-- 
mmm, interesante.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error with kernel PAE option

2008-10-21 Thread Manolis Kiagias

Robert Fitzpatrick wrote:

Trying to build my own kernel with PAE option and getting the following
error...

/usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
/usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
integer of different size
*** Error code 1

I removed the PAE option keeping my SMP option in the kernel
configuration for this dual proc server and it builds fine. Any idea
what I can do for this error?

  

Have a look at:

/usr/src/sys/i386/conf/PAE

Is the device that is causing the problem listed with a nodevice entry?
I guess in your case, it is the adv device, and it is listed. This 
means it does not work with a PAE kernel.


How about going with the 64bit version of FreeBSD?

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


Error with kernel PAE option

2008-10-21 Thread Robert Fitzpatrick
Trying to build my own kernel with PAE option and getting the following
error...

/usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
/usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
integer of different size
*** Error code 1

I removed the PAE option keeping my SMP option in the kernel
configuration for this dual proc server and it builds fine. Any idea
what I can do for this error?

-- 
Robert

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


Re: Printing to a Lanier LD160c does not work

2008-10-21 Thread ajphanks



- Warren Block [EMAIL PROTECTED] wrote: 
 On Fri, 17 Oct 2008, [EMAIL PROTECTED] wrote: 
  I have tried the reccomendations that you guys have suggested with no luck. 
  Here is my current printcap. 
  admincolor|LANIER LD160c RPCS:\ 
      :lp=\ 
      :mx#0:\ 
      :sd=/var/spool/output/admincolor:\ 
      :rm=admincolor:\ 
      :lf=/var/log/lpd-errs:\ 
      :if=/usr/local/libexec/crfilter:\ 
      :sh:\ 
      :tr=\f: 
 Please trim your responses and don't top-post, as it makes responding to 
 your messages difficult. 
 The printcap still has no :rp=lp: line.  HP printers aren't picky about 
 that, but other brands sometimes are. 
 You've also added a filter and kept the multiple printer names.  Things 
 like that make more complexity to debug.  Wait until you have basic 
 communication working.  The exact suggested printcap entry: 
 admincolor:\ 
   :lp=:\ 
   :sh:\ 
   :mx#0:\ 
   :rm=admincolor:\ 
           :rp=lp:\ 
   :sd=/var/spool/output/admincolor:\ 
   :lf=/var/log/lpd-errs: 
 Note: one printer name (who needs more than one, really?).  rm= and rp= 
 entries.  No filter; I think that printer can handle PostScript and PCL. 
 Put that printcap entry in /etc/printcap, then send a PostScript test to 
 the printer (all one line): 
 printf %%\!PS\n/Courier findfont 20 scalefont setfont 72 72 moveto (Test!) 
 show showpage\f | lpr -P admincolor 
 -Warren Block * Rapid City, South Dakota USA 


I took your block above and replaced my block in the printcap, then sent the 
exact command above with the same failure. The queue is drained and the 
printer's log has a generic message The job was reset. message.  

My current printcap file. 

corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ 
    :lp=\ 
    :sd=/var/spool/output/corp-admin:\ 
    :rm=corp-admin:\ 
    :lf=/var/log/lpd-errs:\ 
    :if=/usr/local/libexec/crlfilter:\ 
    :sh:\ 
    :tr=\f:\ 
    :mx#0: 

admincolor:\ 
    :lp=:\ 
    :sh:\ 
    :mx#0:\ 
    :rm=admincolor:\ 
    :rp=lp:\ 
    :sd=/var/spool/output/admincolor:\ 
    :lf=/var/log/lpd-errs: 

Queue status after print job is sent.
# lpc status all 
corp-admin: 
    queuing is enabled 
    printing is enabled 
    no entries in spool area 
    printer idle 
admincolor: 
    queuing is enabled 
    printing is enabled 
    no entries in spool area 
    printer idle 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error with kernel PAE option

2008-10-21 Thread Robert Fitzpatrick
On Tue, 2008-10-21 at 18:43 +0300, Manolis Kiagias wrote:
 Robert Fitzpatrick wrote:
  Trying to build my own kernel with PAE option and getting the following
  error...
 
  /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
  /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
  integer of different size
  *** Error code 1
 
  I removed the PAE option keeping my SMP option in the kernel
  configuration for this dual proc server and it builds fine. Any idea
  what I can do for this error?
 

 Have a look at:
 
  /usr/src/sys/i386/conf/PAE
 
 Is the device that is causing the problem listed with a nodevice entry?
 I guess in your case, it is the adv device, and it is listed. This 
 means it does not work with a PAE kernel.

Thanks, yes, I have nodevice in the PAE file for adv. What does this
mean and/or how can I address this problem? Should I just remove the
entry from the PAE file?
 
 
 How about going with the 64bit version of FreeBSD?

That was my first try, but the CPU appears not to support amd64 as there
are no AMD Features listed in dmesg.

-- 
Robert

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


Re: High Performance Computing Mini-Cluster

2008-10-21 Thread David Robillard
You might want to talk to the author of this:
http://www.bsdcan.org/2007/schedule/events/6.en.html
Reflections on Building a High-performance Computing Cluster Using
FreeBSD by Brooks Davis.

Regards,

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122

If you receive something that says Send this to everyone you know,
then please pretend you don't know me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


installworld fails - err code 71 - too many levels of symbolic links

2008-10-21 Thread Anton Shterenlikht
(also posted to freebsd-current)

I'm rebuilding the world on i386 FBSD 8.0-currnet following the manual.
I cvsup'ed the source on 20-OCT-2008, made buildworld, built kernel,
installed kernel, rebooted into single user mode, and tried to installworld.
I got:

install: /usr/share/locale/nb_NO.ISO8859-1/LC_TIME: Too many levels
of symbolic links
*** Error code 71

Stop in /usr/srs/share/timedef.
*** Error code 1


What am I doing wrong?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
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: 

Re: PF Failover

2008-10-21 Thread Matias Surdi

We use pfSense for this. Works like a charm.

Regards.


Diego F. Arias R. escribió:

Hi:

Does someone have a document where explain how to use PF with two link
failover? (I want to have redundancy if one internet conection fails
use the other).

i use FreeBSD 7 Release i386.


I have looked at google but i only got CARP for firewall redundancy. I
want to make something similar to the pfsense failover.


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


Re: mounting an MP3 player?

2008-10-21 Thread Roland Smith
On Tue, Oct 21, 2008 at 04:05:24PM +0200, Johannes-Maria Kaltenbach wrote:
 Hello,
 
 Roland Smith wrote:
   $ file -s /dev/da*
   /dev/da1:  writable, no read permission
   /dev/da2:  writable, no read permission
   /dev/da3:  writable, no read permission
   /dev/da4:  writable, no read permission
 
  Aha! you have a permissions problem. Try running the following commands
  as root, with the device plugged in:
 
  chown root:wheel /dev/da*
  chmod 660 /dev/da*
 
 this doesn't solve the problem:
 
 # ls -l /dev/da*
 
 crw-rw  1 root  wheel0, 128 Oct 21 15:34 /dev/da0
 crw-rw  1 root  wheel0, 129 Oct 21 15:34 /dev/da2
 crw-rw  1 root  wheel0, 130 Oct 21 15:34 /dev/da3
 crw-rw  1 root  wheel0, 131 Oct 21 15:34 /dev/da4
 
 but the output of file -s /dev/da* ist still as above:
 
 # file -s /dev/da*
 /dev/da0: writable, no read permission
 /dev/da2: writable, no read permission
 /dev/da3: writable, no read permission
 /dev/da4: writable, no read permission

Looking into the source code for the file command, this is an indication
that the file command cannot open the files, even with the correct
permissions. 

I guess that this device has some quirks that need to be addressed in
the driver. Maybe you can find more help on the freebsd-usb list.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpGcPswHdFEt.pgp
Description: PGP signature


downloading linux_base-fc4

2008-10-21 Thread luizbcampos
After I had tried to download linux_base-fc4 I got file
unavailable not found no access...I need to put my printer to work!
What`s the matter?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: need help with disklabel, expected rawoffset 0, found 32

2008-10-21 Thread Per olof Ljungmark

Jerry McAllister wrote:

On Tue, Oct 21, 2008 at 09:53:52AM +0200, Per olof Ljungmark wrote:


Hi,

I think sysinstall? got it wrong here and I get the complaint in the
subject line on boot. This is amd64 if that matters. Nothing edited by hand.

I must admit I don't fully understand what is going on here, found 32
but the offsets are 63...


snip


I do not know what is causing this, but I think the offset of the 'c'
partition (and the first real partition (a in this case)) should be 0
I have seen this a couple of times a long time ago and don't remember
what happened other than I think I just arbitrarily set those offsets 
to 0 and it worked.


Can you try booting up the fixit shell and hitting the disk with
a manual fdisk and bsdlabel to see what happens.  

Also, you might try doing the dd(1) thing  
  dd if=/dev/zero of=/dev/amrd0 bs=512 count=1000

before the fdisk and then another one after creating the slices manually
  dd if=/dev/zero of=/dev/amrd0s1 bs=512 count=1000
Note, that count value is arbitrary.

That should clean up any junk on the drive.

Also, I haven't seen/dealt with a disk device called amrd0 before.  It 
appears to be something from one of the raid setups?  So, maybe doing 
the dd thing might mangle that although, once it is a device, it 
should work the same as a drive.   I ain't rich enough to have one of

those raids to play with, though, so if someone else says otherwise,
believe them.


This is a backup server that uses da0 as a spool disk, we recreated that 
one so it looks ok. However, we still see expected rawoffset 0, found 
32 when booting and shutdown. It appears to me that sysinstall rewrote 
the MBR for amrd0 even if to my best knowledge it was not touched by us.


Below is some information in case someone with insight might see the 
issue. Please let me know what more I can provide, thanks!



camcontrol devlist -v
scbus0 on ciss0 bus 0:
COMPAQ RAID 5  VOLUME OK at scbus0 target 0 lun 0 (pass0,da0)
scbus1 on ciss0 bus 32:
scbus2 on mpt0 bus 0:
HP UHDL-LTO 0014 at scbus2 target 0 lun 0 (pass1,ch0)
HP Ultrium 2-SCSI F68W   at scbus2 target 5 lun 0 (sa0,pass2)
 at scbus2 target -1 lun -1 ()
scbus3 on mpt1 bus 0:
QUANTUM DLT VS160 2200   at scbus3 target 2 lun 0 (sa1,pass3)
QUANTUM DLT VS160 2200   at scbus3 target 3 lun 0 (sa2,pass4)
 at scbus3 target -1 lun -1 ()
scbus4 on amr0 bus 0:
SEAGATE ST3300655LC 0003 at scbus4 target 0 lun 0 (pass5)
SEAGATE ST3300655LC 0003 at scbus4 target 1 lun 0 (pass6)
SEAGATE ST3300655LC 0003 at scbus4 target 2 lun 0 (pass7)
SEAGATE ST3300655LC 0003 at scbus4 target 3 lun 0 (pass8)
SEAGATE ST3300655LC 0003 at scbus4 target 4 lun 0 (pass9)
SEAGATE ST3300655LC 0003 at scbus4 target 5 lun 0 (pass10)
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)

disklabel -A amrd0s1:

# /dev/amrd0s1:
type: ESDI
disk: amrd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 65535
sectors/unit: 2929674240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  419430404.2BSD 2048 16384 28528
  b:  8388608  4194304  swap
  c: 29296615320unused0 0 # raw part, 
don't edit

  d: 31457280 125829124.2BSD 2048 16384 28528
  e:  2097152 440401924.2BSD 2048 16384 28528
  f: 41943040 461373444.2BSD 2048 16384 28528
  g: 2841581148 880803844.2BSD 2048 16384 28528
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard 
system utilities


disklabel -A da0s1
# /dev/da0s1:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 255
sectors/cylinder: 8160
cylinders: 105414
sectors/unit: 860184297
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 8601842970unused0 0 # raw part, 
don't edit

  d: 860184233   634.2BSD 2048 16384 28528

fdisk -tv
*** Working on device /dev/amrd0 ***
parameters extracted from in-core disklabel are:
cylinders=182363 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=182363 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, 

Re: downloading linux_base-fc4

2008-10-21 Thread Boris Samorodov
On Tue, 21 Oct 2008 14:49:01 -0200 luizbcampos wrote:

 After I had tried to download linux_base-fc4 I got file
 unavailable not found no access...I need to put my printer to work!

You may try to use packages:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html

 What`s the matter?

You didn't show any diagnostics (exact commands, exact output, etc.)
so it's hard to say anything.


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


Re: Error with kernel PAE option

2008-10-21 Thread Manolis Kiagias

Robert Fitzpatrick wrote:

On Tue, 2008-10-21 at 18:43 +0300, Manolis Kiagias wrote:
  

Robert Fitzpatrick wrote:


Trying to build my own kernel with PAE option and getting the following
error...

/usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
/usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
integer of different size
*** Error code 1

I removed the PAE option keeping my SMP option in the kernel
configuration for this dual proc server and it builds fine. Any idea
what I can do for this error?

  
  

Have a look at:

 /usr/src/sys/i386/conf/PAE

Is the device that is causing the problem listed with a nodevice entry?
I guess in your case, it is the adv device, and it is listed. This 
means it does not work with a PAE kernel.



Thanks, yes, I have nodevice in the PAE file for adv. What does this
mean and/or how can I address this problem? Should I just remove the
entry from the PAE file?
  


No.  The idea behind the PAE file is that whatever you see with 
nodevice is not supported by PAE kernels.  Even if you manage to compile 
a kernel with the device, you will just get into trouble.

The idea behind this file is that you change the line:

include GENERIC

on the top, to your own custom kernel configuration file.
Then you compile with

make buildkernel KERNCONF=PAE

which gets all your settings from your own file *minus* the ones that 
are incompatible with PAE  (the ones identified with nodevice)
 
  

How about going with the 64bit version of FreeBSD?



That was my first try, but the CPU appears not to support amd64 as there
are no AMD Features listed in dmesg.

  
Is it a 64bit CPU? The AMD64 version of FreeBSD supports the Intel 64bit 
(Core2 / Quad / Xeon / Pentium 4 / Pentium D) processors as well, 
regardless of the AMD in its name.

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


Re: page fault while in kernel mode

2008-10-21 Thread John Baldwin
On Monday 20 October 2008 08:52:07 pm Robert Fitzpatrick wrote:
 On Mon, 2008-10-20 at 13:45 -0400, John Baldwin wrote:
   i386 cannot address more than 4GB unless the kernel is built with
  PAE
   mode enabled.  This isn't enabled in GENERIC for many (justified)
   reasons.  If you have more than 4GB, you should be using amd64, so
  you
   made the right decision there.
  
  If you aren't using kernel modules, then PAE should work fine.  You
  can make 
  kernel modules work with PAE as well, but that takes more work.
 
 Thanks for the help, I am missing AMD Features for this CPU in dmesg, so
 it looks like the CPU does not support amd64. I tried to build my own
 kernel with PAE option and getting the following error...
 
 /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
 /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
 integer of different size
 *** Error code 1
 
 Any idea what I can do for this error?

Some drivers don't work with PAE (see all the 'nodevice' lines 
in /sys/i386/conf/PAE).  You'll need to purge those drivers from your config.  
If you are using the hardware those drivers support, then you can't use PAE.

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


Re: Error with kernel PAE option

2008-10-21 Thread Robert Fitzpatrick
On Tue, 2008-10-21 at 20:30 +0300, Manolis Kiagias wrote:
 Is it a 64bit CPU? The AMD64 version of FreeBSD supports the Intel
 64bit 
 (Core2 / Quad / Xeon / Pentium 4 / Pentium D) processors as well, 
 regardless of the AMD in its name.

It is an Intel Xeon 2.4GHz processor, but I was told yesterday here on
the list that if LM does not appear in the AMD Features line of dmesg,
then it does not support amd64. I looked at another server we have here
now running amd64 FreeBSD and I see the AMD Features line with LM, but
on this server, no AMD Features line whatsoever. I am getting 'BTX
halted' when trying to install FreeBSD-amd64 on this server. The other
server we have running it has Xeon 3.0GHz procs, I thought that was
kinda weird that the two servers were really close in spec, but one
would not run amd64 :/

This would be my preferred option if I can get it to install.

-- 
Robert

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


Re: Error with kernel PAE option

2008-10-21 Thread Manolis Kiagias

Robert Fitzpatrick wrote:

On Tue, 2008-10-21 at 20:30 +0300, Manolis Kiagias wrote:
  

Is it a 64bit CPU? The AMD64 version of FreeBSD supports the Intel
64bit 
(Core2 / Quad / Xeon / Pentium 4 / Pentium D) processors as well, 
regardless of the AMD in its name.



It is an Intel Xeon 2.4GHz processor, but I was told yesterday here on
the list that if LM does not appear in the AMD Features line of dmesg,
then it does not support amd64. I looked at another server we have here
now running amd64 FreeBSD and I see the AMD Features line with LM, but
on this server, no AMD Features line whatsoever. I am getting 'BTX
halted' when trying to install FreeBSD-amd64 on this server. The other
server we have running it has Xeon 3.0GHz procs, I thought that was
kinda weird that the two servers were really close in spec, but one
would not run amd64 :/

This would be my preferred option if I can get it to install.

  

Well, LM is the flag for x86-64. You are probably running a 32bit Xeon CPU.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 7.0R on EeeBOX

2008-10-21 Thread Jyun-Yi Liou
hi list!

I am trying to install my favor FreeBSD on EeeBOX via CD-ROM
it's ok during boot, but sysinstall can't write discklabel in FreeBSD
Discklabel Editor

it said: Unable to find device node for /dev/ad0s1b in /dev! the creation of
filesystems will be aborted

I try to boot with ACPI disable, but it's no good.
How can I do for write discklabel in HDD?

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


Expanding slice/partition on SPARC64 with gmirror

2008-10-21 Thread Thomas Donnelly

Hi all,

I am still fairly new to FreeBSD but here is the situation

I have a sparc Netra T1 AC 200, running FBSD 6-stable. It had dual 18GB 
disks in a gmirror raid 1, As can be imagined, ran out of space quickly. 
I purchased 2x73GB scsi drives. I removed 1 of the 18GBs, placed 73GB 
in, rebuilt the mirror, removed the other 18GB, inserted 73GB, rebuilt 
mirror. Ok, so I have 2 73GB drives in there in a mirror 
(/dev/mirror/gm0) they are partitioned as such:


Otter# df -h
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/mirror/gm0a501M 70M392M15%/
devfs   1.0K1.0K  0B   100%/dev
/dev/mirror/gm0e501M356K461M 0%/tmp
/dev/mirror/gm0f 11G9.8G771M93%/usr
/dev/mirror/gm0d1.9G165M1.6G 9%/var

I want to grow the /usr partition to fill the rest of the 73gb.

What do I need to do. sunlabel always complains about geom not found 
whenever I try to do anything so I assume I need to break the mirror and 
change things then rebuild the mirror? Not sure how to do this and even 
when I do get it to work I'm not sure what I need to do with sunlabel.


Thanks
-=Tom Donnelly

Please CC me as I am not on the list.

Relevant info:
Sunlabel shows:
# /dev//mirror/gm0:
text: FreeBSD17G cyl 2200 alt 2 hd 255 sec 63
bytes/sector: 512
sectors/cylinder: 16065
sectors/unit: 35343000

8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
#size   offset
#-- --
 a:1060290  0
 b:4144770 66
 c:   35343000  0
 d:4176900324
 e:1060290584
 f:   24900750650


dmesg:
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 6.4-PRERELEASE #1: Thu Oct  2 11:40:35 CDT 2008
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter tick frequency 5 Hz quality 1000
real memory  = 1073741824 (1024 MB)
avail memory = 1031413760 (983 MB)
cpu0: Sun Microsystems UltraSparc-IIe Processor (500.00 MHz CPU)
kbd0 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, 
RF5413, REGOPS_FUNC)

nexus0: Open Firmware Nexus device
pcib0: U2P UPA-PCI bridge on nexus0
pcib0: Sabre, impl 0, version 0, IGN 0x7c0, bus A, 66MHz
pcib0: [FAST]
pcib0: [FAST]
pcib0: [GIANT-LOCKED]
pcib0: [GIANT-LOCKED]
pcib0: DVMA map: 0xc000 to 0xc3ff
pci0: OFW PCI bus on pcib0
pcib1: APB PCI-PCI bridge at device 1.1 on pci0
pci1: OFW PCI bus on pcib1
ebus0: PCI-EBus3 bridge mem 
0xf000-0xf0ff,0xf100-0xf17f at device 12.0 on pci1

ebus0: idprom: incomplete
ebus0: flashprom addr 0x10-0x1f (no driver attached)
eeprom0: EEPROM/clock addr 0x14-0x141fff on ebus0
eeprom0: model mk48t59
ebus0: SUNW,lomh addr 0x140020-0x140023 irq 42 (no driver 
attached)

pci1: old, non-VGA display device at device 3.0 (no driver attached)
isab0: PCI-ISA bridge at device 7.0 on pci1
isa0: ISA bus on isab0
gem0: Sun ERI 10/100 Ethernet mem 0xe040-0xe041 at device 12.1 
on pci1

miibus0: MII bus on gem0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: 2kB RX FIFO, 2kB TX FIFO
gem0: Ethernet address: 08:00:20:fd:f7:9c
ohci0: Sun PCIO-2 USB controller mem 0xe200-0xe2007fff at device 
12.3 on pci1

ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: Sun PCIO-2 USB controller on ohci0
usb0: USB revision 1.0
uhub0: (0x108e) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
atapci0: AcerLabs M5229 UDMA66 controller port 
0x400-0x407,0x418-0x41b,0x410-0x417,0x408-0x40b,0x420-0x42f at device 
13.0 on pci1
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA 
access bug, expect reduced performance

ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
gem1: Sun ERI 10/100 Ethernet mem 0xe044-0xe045 at device 5.1 
on pci1

miibus1: MII bus on gem1
ukphy1: Generic IEEE 802.3u media interface on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem1: 2kB RX FIFO, 2kB TX FIFO
gem1: Ethernet address: 08:00:20:fd:f7:9c
ohci1: Sun PCIO-2 USB controller mem 0xe500-0xe5007fff at device 
5.3 on pci1

ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: Sun PCIO-2 USB controller on ohci1
usb1: USB revision 1.0
uhub1: (0x108e) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
pcib2: APB PCI-PCI bridge at device 1.0 on pci0
pci2: OFW PCI bus on pcib2
sym0: 896 port 0xc0-0xc000ff mem 0x2000-0x23ff,0x4000-0x5fff at 
device 8.0 on pci2

sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: [GIANT-LOCKED]
sym1: 896 port 0xc00100-0xc001ff mem 

Re: Building a linuxbase-*****

2008-10-21 Thread Ross Cameron
Hi there

I have a bit of an odd question and hopefully this will be the right place
to ask (please bare with me)

I'd like to know how to build a Linuxulator OS image of a custom GNU/Linux
distro I've inherited the maintenance of.
On top of this distro several binary only applications are run.

HOWEVER I'd like to take advantage of the fBSD 7 kernel and IP_Filter in the
next release,... while maintaining compatibility with the Linux API/ABI.

Does anyone have some pointers as to where to find some /GOOD/ docs on how
to build the Linuxulator linuxbase- packages???

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


Re: page fault while in kernel mode

2008-10-21 Thread Robert Fitzpatrick
On Tue, 2008-10-21 at 12:03 -0400, John Baldwin wrote:
 Some drivers don't work with PAE (see all the 'nodevice' lines 
 in /sys/i386/conf/PAE).  You'll need to purge those drivers from your
 config.  
 If you are using the hardware those drivers support, then you can't
 use PAE.

Thanks for the help. Excuse the ignorance, I'm more a programmer than
system guy. How do I purge a driver, or know which driver to look for,
from the config and know what the driver supports? Do you mean, in this
case, remove 'nodevice adv' from the PAE file? If so, I don't know what
that supports :/

-- 
Robert

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


Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg


On Oct 20, 2008, at 11:09 PM, Peter Boosten wrote:


John Almberg wrote:


I tried this, and not surprisingly, it didn't work. Now I'm trying to
debug it...



Maybe some mixup in the keys? In my example ssh tries to read the
private key of root on the connecting server, so the server where the
database is located, because init is run as root. If you need another
key, then you need to specify this with the -i parameter.



Ah... that makes sense. I had set up the keys for 'admin', but of  
course init is run by root. Duh.


That raises another issue... I don't allow root logins on either  
server, for security reasons...


Peter, I appreciate your ideas and help, but I think I will stick  
with autossh, probably by finally learning how to create an rc.d  
script (not sure the actual name for these, but you know what I  
mean.) I've actually got autossh working, and think it's a simpler  
solution for me.


Thanks.

Brgds: John


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


Re: Building a linuxbase-*****

2008-10-21 Thread Boris Samorodov
On Tue, 21 Oct 2008 20:25:37 +0200 Ross Cameron wrote:

 I have a bit of an odd question and hopefully this will be the right place
 to ask (please bare with me)

 I'd like to know how to build a Linuxulator OS image of a custom GNU/Linux
 distro I've inherited the maintenance of.
 On top of this distro several binary only applications are run.

 HOWEVER I'd like to take advantage of the fBSD 7 kernel and IP_Filter in the
 next release,... while maintaining compatibility with the Linux API/ABI.

 Does anyone have some pointers as to where to find some /GOOD/ docs on how
 to build the Linuxulator linuxbase- packages???

I'm not aware of such docs.

If you need a custom linux_base-XXX package then use those packages
that contains binaries (don't forget to brandelf them) and libraries
(don't brandelf them) you need. Take a look at those linux_base ports
(available at the ports tree) as an example.


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


Using packages compiled for 7.0-RELEASE in 8-CURRENT

2008-10-21 Thread Ashish Shukla आशीष शुक्ल
Hi all,

I'm having a confusion about installing packages compiled in 7.0-RELEASE
in 8.0-CURRENT. I've 2 boxen, a 7.0-RELEASE-p5 and a 8-CURRENT. The
7.0-RELEASE-p5 is fully updated as of now, and has all updated ports
available in the form of binary packages. Now, I'm wondering if it is
okay to install those binary packages on my 8-CURRENT box. Has anyone
tried this ? And what kind of issues you experienced. Issues to
dependencies on libraries in base install, hmm...?

Thanks in advance,
Ashish
-- 
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in


pgpwsz60gf20h.pgp
Description: PGP signature


Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg

On Oct 21, 2008, at 3:44 AM, Matthew Seaman wrote:


John Almberg wrote:

I do know that Mysql supports SSL... somehow this got discounted  
early in the discussion, perhaps mistakenly?


I believe the thinking was that although MySQL claims to support SSL,
it does in fact make a pretty bodge of it, and a more effective  
approach is to pipe MySQL traffic through an encrypted tunnel.


Personally I just use IPSec for this, but people might also like to
consider stunnel (http://www.stunnel.org/) or OpenVPN (http:// 
openvpn.net/)


Stunnel and OpenVPN are on my list, in case autossh has unexpected  
problems, but I figured I'd try the simplest approach first.


Other than figuring out what holes to poke in the firewalls, autossh  
was pretty simple to set up.


Now I just need to figure out how to start it on reboot, but that is  
something I've been meaning to learn, anyway, so I don't mind.


I appreciate your help.

-- John



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


Re: page fault while in kernel mode

2008-10-21 Thread Jeremy Chadwick
On Tue, Oct 21, 2008 at 02:35:22PM -0400, Robert Fitzpatrick wrote:
 On Tue, 2008-10-21 at 12:03 -0400, John Baldwin wrote:
  Some drivers don't work with PAE (see all the 'nodevice' lines 
  in /sys/i386/conf/PAE).  You'll need to purge those drivers from your
  config.  
  If you are using the hardware those drivers support, then you can't
  use PAE.
 
 Thanks for the help. Excuse the ignorance, I'm more a programmer than
 system guy. How do I purge a driver, or know which driver to look for,
 from the config and know what the driver supports? Do you mean, in this
 case, remove 'nodevice adv' from the PAE file? If so, I don't know what
 that supports :/

Yeah, I don't think anyone's really explaining this very well to you, so
I'll try a different approach:

Certain FreeBSD drivers do not work in PAE mode.

The drivers which don't work are listed in the /sys/i386/conf/PAE
file.  They're prefixed by the word nodevice, which tells the
kernel config reader DO NOT build this device, because it won't
work.

You will need to take the nodevice lines from /sys/i386/conf/PAE and
put them into your kernel config file.  (There are alternative methods
such as using include directives and so on, but I'm trying to keep
this explanation simple.)

Make sense now?  :-)

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: page fault while in kernel mode

2008-10-21 Thread Robert Fitzpatrick
On Tue, 2008-10-21 at 11:47 -0700, Jeremy Chadwick wrote:
 The drivers which don't work are listed in the /sys/i386/conf/PAE
 file.  They're prefixed by the word nodevice, which tells the
 kernel config reader DO NOT build this device, because it won't
 work.
 
 You will need to take the nodevice lines from /sys/i386/conf/PAE and
 put them into your kernel config file.  (There are alternative methods
 such as using include directives and so on, but I'm trying to keep
 this explanation simple.)
 
 Make sense now?  :-)

Perfect sense now, believe it or not I was beginning to think along
these lines as I was doing some searching and found 'device adv' in my
config file and there was a description of the hardware it was for,
which I don't have. Thanks for the clarification, now let's see if I can
get this build done...thanks to all!

-- 
Robert

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


Re: page fault while in kernel mode

2008-10-21 Thread John Baldwin
On Tuesday 21 October 2008 02:47:11 pm Jeremy Chadwick wrote:
 On Tue, Oct 21, 2008 at 02:35:22PM -0400, Robert Fitzpatrick wrote:
  On Tue, 2008-10-21 at 12:03 -0400, John Baldwin wrote:
   Some drivers don't work with PAE (see all the 'nodevice' lines 
   in /sys/i386/conf/PAE).  You'll need to purge those drivers from your
   config.  
   If you are using the hardware those drivers support, then you can't
   use PAE.
  
  Thanks for the help. Excuse the ignorance, I'm more a programmer than
  system guy. How do I purge a driver, or know which driver to look for,
  from the config and know what the driver supports? Do you mean, in this
  case, remove 'nodevice adv' from the PAE file? If so, I don't know what
  that supports :/
 
 Yeah, I don't think anyone's really explaining this very well to you, so
 I'll try a different approach:
 
 Certain FreeBSD drivers do not work in PAE mode.
 
 The drivers which don't work are listed in the /sys/i386/conf/PAE
 file.  They're prefixed by the word nodevice, which tells the
 kernel config reader DO NOT build this device, because it won't
 work.
 
 You will need to take the nodevice lines from /sys/i386/conf/PAE and
 put them into your kernel config file.  (There are alternative methods
 such as using include directives and so on, but I'm trying to keep
 this explanation simple.)
 
 Make sense now?  :-)

Alternatively, you could just remove the 'device adv' line from your kernel 
config rather than adding lots of 'nodevice' lines at the bottom.  You can 
usually do 'man 4 driver name' to see what devices it supports.  In this 
case, adv(4) supports mostly ancient Advansys SCSI host adapters.  The 
manpage has a full list of the various model numbers, etc.

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


Re: page fault while in kernel mode

2008-10-21 Thread Robert Fitzpatrick
On Tue, 2008-10-21 at 15:09 -0400, John Baldwin wrote:
 Alternatively, you could just remove the 'device adv' line from your
 kernel 
 config rather than adding lots of 'nodevice' lines at the bottom.  You
 can 
 usually do 'man 4 driver name' to see what devices it supports.  In
 this 
 case, adv(4) supports mostly ancient Advansys SCSI host adapters.
 The 
 manpage has a full list of the various model numbers, etc.

Yes, that is what I thought. Right now, I am just commenting them out,
now I know what people mean when they say they are running a
trimmed/clean kernel.

I did see one potential issue...

# USB support
device  uhci# UHCI PCI-USB interface
device  ohci# OHCI PCI-USB interface
device  ehci# EHCI PCI-USB interface (USB 2.0)
device  usb # USB Bus (required)

I see all of these with nodevice lines in the PAE file. Although I have
USB ports, I don't use them, but I was concerned by the 'required' on
the last one, is it OK to remove? Also, would I then need to disable USB
in the BIOS to avoid errors?

-- 
Robert

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


[OT] Nagios timeouts

2008-10-21 Thread Joe Tseng
Earlier this morning I was getting Nagios alerts about potential issues with my 
FreeBSD 6.1 servers.  All the emails I got had this problem:

Connection refused by host

I did some digging around today and I didn't get anything definitive, but I did 
notice there was a time correlation between the messages and certain log 
entries that seem to be associated with various cron jobs.  Is it possible that 
I'm getting false positives due to my servers servicing these jobs and not 
being able to respond to Nagios queries?

 - Joe

_
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsup to 7.0 from 5.5?

2008-10-21 Thread Chris Pratt

How risky is it to jump directly to 7.0 on a 5.5 system?
Upgrade would be by cvsup. I expect mergemaster
issues anyway but this system is relatively vanilla in
it's configuration. It's duty is just rsyncing other servers.
The kernel is GENERIC minus drivers plus ipfw and there are
no kldloads. Can this jump be made? I was hoping to avoid
having to make two major release jumps by doing only one.

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


Re: page fault while in kernel mode

2008-10-21 Thread Jeremy Chadwick
On Tue, Oct 21, 2008 at 03:22:28PM -0400, Robert Fitzpatrick wrote:
 On Tue, 2008-10-21 at 15:09 -0400, John Baldwin wrote:
  Alternatively, you could just remove the 'device adv' line from your
  kernel 
  config rather than adding lots of 'nodevice' lines at the bottom.  You
  can 
  usually do 'man 4 driver name' to see what devices it supports.  In
  this 
  case, adv(4) supports mostly ancient Advansys SCSI host adapters.
  The 
  manpage has a full list of the various model numbers, etc.
 
 Yes, that is what I thought. Right now, I am just commenting them out,
 now I know what people mean when they say they are running a
 trimmed/clean kernel.
 
 I did see one potential issue...
 
 # USB support
 device  uhci# UHCI PCI-USB interface
 device  ohci# OHCI PCI-USB interface
 device  ehci# EHCI PCI-USB interface (USB 2.0)
 device  usb # USB Bus (required)
 
 I see all of these with nodevice lines in the PAE file. Although I have
 USB ports, I don't use them, but I was concerned by the 'required' on
 the last one, is it OK to remove? Also, would I then need to disable USB
 in the BIOS to avoid errors?

If you remove device usb, you will also need to remove uhci, ohci,
ehci, umass, ukbd, etc. etc. etc... from your config as well.

You do not need to disable USB support in the BIOS; the kernel will
simply state that it sees devices on the PCI bus but lacks a driver to
attach to them.  This will not harm anything.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: High Performance Computing Mini-Cluster

2008-10-21 Thread Gerardo Paredes
--- On Tue, 10/21/08, David Robillard [EMAIL PROTECTED] wrote:

 From: David Robillard [EMAIL PROTECTED]
 Subject: Re: High Performance Computing Mini-Cluster
 To: [EMAIL PROTECTED]
 Cc: Maxim Khitrov [EMAIL PROTECTED], FreeBSD Questions 
 freebsd-questions@freebsd.org
 Date: Tuesday, October 21, 2008, 9:18 AM
 You might want to talk to the author of this:
 http://www.bsdcan.org/2007/schedule/events/6.en.html
 Reflections on Building a High-performance Computing
 Cluster Using
 FreeBSD by Brooks Davis.
 

From what i have read, Matt Olander and Brooks Davis are the foremost experts 
at cluster building on FreeBSD. However i believe a document needs to be 
written explaining in detailed steps how to do it, so the common user can do 
it. Obviously not every common man needs a cluster. 

In my case i am pitching the project of a big cluster to our University here in 
Honduras to run some kinds of apps we have, like a Trade Exchange Market 
Simulation written in Python we have about two years developing which we plan 
to run distributed across the cluster.


Since I cannot attend that seminar, i will be expecting for at least the 
presentation to be posted.


Gerardo Paredes
 Regards,
 
 David
 -- 
 David Robillard
 UNIX systems administrator  Oracle DBA
 CISSP, RHCE  Sun Certified Security Administrator
 Montreal: +1 514 966 0122
 
 If you receive something that says Send this to
 everyone you know,
 then please pretend you don't know me.





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


Re: High Performance Computing Mini-Cluster

2008-10-21 Thread David Robillard
On Tue, Oct 21, 2008 at 2:25 PM, Gerardo Paredes
[EMAIL PROTECTED] wrote:
 From what i have read, Matt Olander and Brooks Davis are the foremost experts 
 at cluster building on FreeBSD. However i believe a document needs to be 
 written explaining in detailed steps how to do it, so the common user can do 
 it. Obviously not every common man needs a cluster.

 In my case i am pitching the project of a big cluster to our University here 
 in Honduras to run some kinds of apps we have, like a Trade Exchange Market 
 Simulation written in Python we have about two years developing which we plan 
 to run distributed across the cluster.


 Since I cannot attend that seminar, i will be expecting for at least the 
 presentation to be posted.

Actually, this was a presentation I attended last year. So the slides
already exist. You can also grab their old paper at
http://people.freebsd.org/~brooks/papers/bsdcon2003/ but this is a bit
out-dated.

My advice would be to try and contact Mr. Brooks Davis directly. If
you can't find him, try and send an email to the organisers of BSDCan
from http://www.bsdcan.org/2008/contact.php. I believe you should talk
to Dan Langille on the BSDCan commitee
http://www.bsdcan.org/2008/committee.php

Good luck and have fun! Your project seems quite interesting :)

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122

If you receive something that says Send this to everyone you know,
then please pretend you don't know me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Samba : FreeBSD Vs Linux ?

2008-10-21 Thread Wojciech Puchar

i didn't
had the time to debug it to find out the problem. I would like to know what
happened there.
The good thing is that a future client of my company works with the same
accounting software
and the server runs FBSD so if something goes wrong i'll have the time to
debug properly.


it may be some new problems with locking if you say about accounting 
software.


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


Re: page fault while in kernel mode

2008-10-21 Thread John Baldwin
On Tuesday 21 October 2008 03:22:28 pm Robert Fitzpatrick wrote:
 On Tue, 2008-10-21 at 15:09 -0400, John Baldwin wrote:
  Alternatively, you could just remove the 'device adv' line from your
  kernel 
  config rather than adding lots of 'nodevice' lines at the bottom.  You
  can 
  usually do 'man 4 driver name' to see what devices it supports.  In
  this 
  case, adv(4) supports mostly ancient Advansys SCSI host adapters.
  The 
  manpage has a full list of the various model numbers, etc.
 
 Yes, that is what I thought. Right now, I am just commenting them out,
 now I know what people mean when they say they are running a
 trimmed/clean kernel.
 
 I did see one potential issue...
 
 # USB support
 device  uhci# UHCI PCI-USB interface
 device  ohci# OHCI PCI-USB interface
 device  ehci# EHCI PCI-USB interface (USB 2.0)
 device  usb # USB Bus (required)
 
 I see all of these with nodevice lines in the PAE file. Although I have
 USB ports, I don't use them, but I was concerned by the 'required' on
 the last one, is it OK to remove? Also, would I then need to disable USB
 in the BIOS to avoid errors?

Actually, USB is ok with PAE.  I recently updated the PAE configs to not 
disable PAE and at work we've run PAE kernels with USB enabled for a few 
years now on 6.x w/o any problems.

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


mirror site

2008-10-21 Thread Steve Eschweiler
Hello,

 

I am very interested in any mirror site opportunities you have.  Hivelocity
would be interested in providing a server(s) to FreeBSD.  Please let me know
what to do from here.

 

Thanks

Steve Eschweiler

General Manager

[EMAIL PROTECTED]

888 869 4678 ext 224

 





E-mail message checked by Spyware Doctor (6.0.0.386)
Database version: 5.10950
http://www.pctools.com/en/spyware-doctor-antivirus/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mirror site

2008-10-21 Thread Jeremy Chadwick
On Tue, Oct 21, 2008 at 04:20:16PM -0400, Steve Eschweiler wrote:
 I am very interested in any mirror site opportunities you have.  Hivelocity
 would be interested in providing a server(s) to FreeBSD.  Please let me know
 what to do from here.

http://www.freebsd.org/doc/en/articles/hubs/  should have all of the
necessary details, including who you should contact (not -questions).
:-)

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: downloading linux_base-fc4

2008-10-21 Thread matt donovan
On Tue, Oct 21, 2008 at 1:28 PM, Boris Samorodov [EMAIL PROTECTED] wrote:

 On Tue, 21 Oct 2008 14:49:01 -0200 luizbcampos wrote:

  After I had tried to download linux_base-fc4 I got file
  unavailable not found no access...I need to put my printer to work!

 You may try to use packages:

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html

  What`s the matter?

 You didn't show any diagnostics (exact commands, exact output, etc.)
 so it's hard to say anything.


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


the problem with the port your installing is that it takes 5 mirrors or so
to even find .rpms that even work
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg
Now I just need to figure out how to start it on reboot, but that  
is something I've been meaning to learn, anyway, so I don't mind.


I hope you guys will bear with me just a little more... I have spent  
the day trying to figure out how to create an rc script for autossh.  
Very cool, and not as hard as I'd anticipated. It is attached below.


The script works perfectly *iff* I run it from the command line as a  
non-root user, like so:


/usr/local/etc/rc.d/autossh start

However, it does NOT work when executed by root. Instead, I get the  
following error message in /var/log/messages


  messages:Oct 21 19:01:38 on autossh[89267]: ssh exited prematurely  
with status 255; autossh exiting


So (my understanding), autossh is starting, and tries to create the  
tunnel, but the tunnel creation fails with the unhelpful 255 error  
message.


But only when executed by root. That's the puzzling part.

I don't allow root logins on this server, but don't see how that  
could cause this problem


I'm stumped. Any hints, much appreciated.

-- John

--

#!/bin/sh
# PROVIDE: autossh
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=autossh
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=:

load_rc_config $name
eval ${rcvar}=\${${rcvar}:='NO'}

command=/usr/local/bin/autossh
command_args=-M 2 -fNg -L 33006:127.0.0.1:3306 [EMAIL PROTECTED]
#pidfile=/var/run/autossh.pid
#AUTOSSH_PIDFILE=$pidfile; export AUTOSSH_PIDFILE

autossh_start()
{
  ${command} ${command_args}
  echo started autossh
}

run_rc_command $1

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


Re: gjournal: journaled slices vs. journaled partitions

2008-10-21 Thread Carl

Volodymyr Kostyrko wrote:

I have some setups were gjournal was put on device rather the on 
partition, i.e.:


[umgah] ~ gmirror status
  NameStatus  Components
mirror/umgah0  COMPLETE  ad0
  ad1
[umgah] ~ gjournal status
  Name  Status  Components
mirror/umgah0.journal N/A  mirror/umgah0
[umgah] ~ glabel status
 Name  Status  Components
   ufs/umgah0root N/A  mirror/umgah0.journala
label/umgah0swap N/A  mirror/umgah0.journalb
ufs/umgah0usr N/A  mirror/umgah0.journald
ufs/umgah0var N/A  mirror/umgah0.journale


Does the above suggest that you've ended up with individual journal 
providers for each partition anyway? If so, where are they and have you 
really achieved anything functionally different? Are they at the end of 
their individually associated partitions or all together somewhere else? 
Has the ill-advised journaled small partition issue been successfully 
overcome through what you've done?



[umgah] ~ mount
/dev/ufs/umgah0root on / (ufs, asynchronous, local, noatime, gjournal)
devfs on /dev (devfs, local)
/dev/md0 on /tmp (ufs, asynchronous, local)
/dev/ufs/umgah0var on /var (ufs, asynchronous, local, noatime, gjournal)
/dev/ufs/umgah0usr on /usr (ufs, asynchronous, local, noatime, gjournal)
devfs on /var/named/dev (devfs, local)

And yes, mirror autosynchronization is turned off, gjournal takes care 
of that too.


It's not stated in manual, but gjournal is typically transparent for any 
type of access, just in case of UFS file system is marked as journaled 
so any metadata writes can be distinguished from data writes. Without 
that gjournal does literally nothing.


And what does this mean for your swap partition?

Laszlo Nagy wrote earlier:

Another tricky question: why would you journal a SWAP partition?


Volodymyr, does your assertion that gjournal does nothing when a file 
system is not UFS mean that there is no penalty with regard to your swap 
partition despite the existence of mirror/umgah0.journalb?


Any chance you'd like to share your command sequence for constructing 
your gmirror'd and gjournal'd filesystem, Volodymyr? :-)


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


Re: mysql connection through ssl tunnel

2008-10-21 Thread Bernt Hansson

John Almberg said the following on 2008-09-23 15:54:
I have two FreeBSD machines. One is a application server, the other a 
database server running mysql. These machines are in two different 
locations. I'd like to allow the application server to access mysql 
through an SSH tunnel.


Being a newbie admin, I've never set up an SSH tunnel. I've been reading 
about them all morning and (as always) there seems to be more than one 
way to skin this cat.


I'm looking for ease of set up and maintenance, as well as security 
(which I assume is a given.) I'd prefer NOT to have to recompile the 
kernels (pure cowardice... the application server is a production server 
that I don't want to experiment with.) Both servers have OpenSSL.


Any recommendations, much appreciated.


Maybe this can bee of interest.
http://www.stunnel.org/examples/mysql.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


re: Setting up gmirror

2008-10-21 Thread Carl

Wojciech Puchar wrote:
 Andrew Falanga wrote:

Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

Create a mirror on disk with valid data (note that the last sector of the
disk will be overwritten).  Add another disk to this mirror, so it will
be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one request 
on 2 disks.


I thought the -s option was only applicable when using -b split for 
the balancing algorithm. Does round-robin not mean simply alternating 
between the two disks without ever splitting requests?


What are the considerations in choosing between load, prefer, 
round-robin, and split balance algorithms?


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


Re: downloading linux_base-fc4

2008-10-21 Thread Christian Hiris
On Tuesday 21 October 2008, luizbcampos wrote:
 After I had tried to download linux_base-fc4 I got file
 unavailable not found no access...I need to put my printer to work!
 What`s the matter?

Please read http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/128160
You can set MASTER_SITE_FEDORA_LINUX to the URL of the archive-site:

# make install \ 
MASTER_SITE_FEDORA_LINUX=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/;

Cheers, 
ch

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: High Performance Computing Mini-Cluster

2008-10-21 Thread Bruce Cran

David Robillard wrote:

On Tue, Oct 21, 2008 at 2:25 PM, Gerardo Paredes
[EMAIL PROTECTED] wrote:
  

From what i have read, Matt Olander and Brooks Davis are the foremost experts at cluster 
building on FreeBSD. However i believe a document needs to be written explaining in 
detailed steps how to do it, so the common user can do it. Obviously not every 
common man needs a cluster.

In my case i am pitching the project of a big cluster to our University here in 
Honduras to run some kinds of apps we have, like a Trade Exchange Market 
Simulation written in Python we have about two years developing which we plan 
to run distributed across the cluster.


Since I cannot attend that seminar, i will be expecting for at least the 
presentation to be posted.



Actually, this was a presentation I attended last year. So the slides
already exist. You can also grab their old paper at
http://people.freebsd.org/~brooks/papers/bsdcon2003/ but this is a bit
out-dated.

My advice would be to try and contact Mr. Brooks Davis directly. If
you can't find him, try and send an email to the organisers of BSDCan
from http://www.bsdcan.org/2008/contact.php. I believe you should talk
to Dan Langille on the BSDCan commitee
http://www.bsdcan.org/2008/committee.php

Good luck and have fun! Your project seems quite interesting :)

David
  


It seems the same presentation was given at AsiaBSDCon 2007: it's linked 
to from

http://2007.asiabsdcon.org/papers/index.html

The slides are at http://2007.asiabsdcon.org/papers/P02-slides.pdf and 
the paper is at

http://2007.asiabsdcon.org/papers/P02-paper.pdf

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


UFS2 or ZFS for 3TB disk?

2008-10-21 Thread Anthony Chavez
The subject says it all.

I will soon be installing an Areca ARC-1110 and 3x 1.5TB Seagate
Barracuda SATAs into a 3.2GHz Northwood P4 with 1GB of RAM, and I'm
wondering which would be the most stable filesystem to use.

I've read the bigdisk page [1] and the various information about ZFS on
the FreeBSD Wiki [2].  I'm aware of the tuning requirements that ZFS
requires, and upgrading to 4GB of RAM would be quite possible as it was
understood beforehand that ZFS requires a large quantity of it.

My questions are as follows.

1. I'm aware of the fact that ZFS works better on 64-bit platforms, and
 that alone has me thinking that it's not a good fit for this particular
machine.  But apart from that, it seems that ZFS is not yet stable
enough for my environment (only about 25 users but in production
nonetheless).  To me, [3] paints all sorts of ugly pictures, which can
be summarized as count on ZFS-related panics and deadlocks happening
fairly regularly and disabling ZIL in the interest of stability will
put your data at risk.  Comments about live systems using ZFS (on
7.0-RELEASE or 7-STABLE) would be appreciated.

2. [1] appears to be a bit dated.  Nevertheless, I'm inclined to think
that the status described there (as well as in various man pages) still
applies to UFS2 on 7.0-RELEASE.  Please correct me if I'm wrong or let
me know if the state of affairs has improved significantly in 7-STABLE.

2a. Does the information contained in [1] apply to ZFS as well?

3. As the array will be for data only and not be booted, will it be
possible to use fdisk to slice it up, or will I need to use gpt?

4. My planned course of action will be to attempt to newfs the device
itself (da0, all 3TB of it) or 1 full-disk slice (da0s1).  Failing that,
I will attempt to gconcat da0s1 and da0s2 (1.5TB each), although I
suspect that may not work since for one thing, growfs is not yet 64-bit
clean.  In either case, I'm very interested in using gbde/geli to
encrypt the fs.  If either of these paths are not possible or
recommended, are there any suggestions for alternate means of creating a
3TB fs?

4a. If gconcat'ing 2 slices together (or some other suggetion) will in
fact work, would doing so effectively work around the userland tool
incompatibilities mentioned in [1]?

Thank you!

[1] http://freebsd.org/projects/bigdisk

[2] http://wiki.freebsd.org/ZFS

[3] http://wiki.freebsd.org/ZFSKnownProblems

-- 
Anthony Chavez  http://hexadecagram.org/
mailto:[EMAIL PROTECTED]xmpp:[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: UFS2 or ZFS for 3TB disk?

2008-10-21 Thread Jeremy Chadwick
On Tue, Oct 21, 2008 at 11:06:07PM -0600, Anthony Chavez wrote:
 The subject says it all.
 
 I will soon be installing an Areca ARC-1110 and 3x 1.5TB Seagate
 Barracuda SATAs into a 3.2GHz Northwood P4 with 1GB of RAM, and I'm
 wondering which would be the most stable filesystem to use.
 
 I've read the bigdisk page [1] and the various information about ZFS on
 the FreeBSD Wiki [2].  I'm aware of the tuning requirements that ZFS
 requires, and upgrading to 4GB of RAM would be quite possible as it was
 understood beforehand that ZFS requires a large quantity of it.

The official Solaris ZFS Wiki answers this question.  The I really
don't want to this to get pedantic answer is: caching.

 1. I'm aware of the fact that ZFS works better on 64-bit platforms, and
  that alone has me thinking that it's not a good fit for this particular
 machine.  But apart from that, it seems that ZFS is not yet stable
 enough for my environment (only about 25 users but in production
 nonetheless).  To me, [3] paints all sorts of ugly pictures, which can
 be summarized as count on ZFS-related panics and deadlocks happening
 fairly regularly and disabling ZIL in the interest of stability will
 put your data at risk.  Comments about live systems using ZFS (on
 7.0-RELEASE or 7-STABLE) would be appreciated.

You should review the past 3-4 months of freebsd-fs and freebsd-stable
mailing list posts.  Stabilising ZFS has been thoroughly discussed there.

http://lists.freebsd.org/pipermail/freebsd-fs/
http://lists.freebsd.org/pipermail/freebsd-stable/

To date I've only heard of one person having to disable the ZIL to get
stability on RELENG_7.  Everyone else has followed the standard tuning
procedures, which is to tune kmem_size, kmem_size_max, arc_min, and
arc_max.  prefetch_disable being set can also help performance-wise
(many of us find that disabling prefetching provides less stalls or
interruptions during extreme disk I/O).

Remember that kmem_size and kmem_size_max cannot be increased past 2GB
(and you should NOT set them to 2048M!) on RELENG_7 (i386 and amd64).
If you want more memory made available to the kernel, you'll need to run
CURRENT.  None of this affects userland.

What you need to keep in mind is that you need to tune things to get ZFS
stable on RELENG_7, and you will need to keep tune it if you experience
panics relating to ZFS or kmem exhaustion.  The way to avoid panics is
to start with something very restrictive (I advocate 1536M for kmem_size
and kmem_size_max, 16M for arc_min, and 64M of arc_max, on a machine
with 2GB of RAM), and then gradually increase arc_max by ~16M
increments.  You cannot tune this, reboot, let it run for 24 hours and
go IT WORKS.  You will need to seriously test this over a
period of many days, if not weeks.  Each person's environment is
slightly different, and it depends greatly upon the type of data being
accessed, how often, and what sort of workload.  There is no standard.

I use ZFS to manage a raidz1 zpool across 4 500GB disks (all SATA) on my
home machine, which gets thrashed pretty hard due to the content sizes
(500-600MB files).  This machine has 2GB of RAM, and runs amd64.

I also use it in my co-lo as a replacement for /home and on another
machine to be used for backups (rsnapshot+rsync across ssh, results
stored on a ZFS filesystem).  This machine has 2GB of RAM, and runs
i386.

The it works better on amd64 platforms is true, but there is
absolutely nothing that stops you from using it on i386.  You should
feel confident using it on both.  If you really want to know of the
performance difference of ZFS on amd64 vs. i386, assuming Google has
nothing, you might ask pjd@ directly.  I think the general deal is that
ZFS was developed with 64-bit pointers and 64-bit values in mind, and
while those are not entirely available on x86 (sans MMX/SSE/SSE2/SSE3
registers) without a bit more work, long long on i386 works fine.

IMHO, you should be using ZFS for what you want to accomplish.  If you
do go the UFS2 route, I would recommend you set background_fsck=no in
your rc.conf, especially since it's obvious data integrity matters a lot
to you (but then again, if it does matter that much, ZFS's checksum
ability should trump your interest in UFS2 entirely).

That's really all I'm going to say on the matter.  (Sorry if that sounds
rude, I'm just incredibly scared that my above comments will induce some
pedantic flame war or battle of sort, which is not my intention.)

 [1] http://freebsd.org/projects/bigdisk
 [2] http://wiki.freebsd.org/ZFS
 [3] http://wiki.freebsd.org/ZFSKnownProblems

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list

open-iscsi ?

2008-10-21 Thread Frank Bonnet
Hello

Does open-iscsi has been ported to FreeBSD at 7.x ?
it doesn't seems to be at 6.x

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