Gutman Method on Empty Space

2008-01-17 Thread Jason C. Wells
Can anyone recommend a utility for the secure overwriting of unused disc 
space?  I am a satisfied customer of Eraser for Windows.  I'm looking 
for the same thing for FreeBSD.


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


Re: Gutman Method on Empty Space

2008-01-17 Thread Marc Silver
Hi there,

Check out /usr/ports/security/wipe/  - It should meet your requirements.

Cheers,
Marc

On Thu, Jan 17, 2008 at 12:10:02AM -0800, Jason C. Wells wrote:
 Can anyone recommend a utility for the secure overwriting of unused
 disc space?  I am a satisfied customer of Eraser for Windows.  I'm
 looking for the same thing for FreeBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gutman Method on Empty Space

2008-01-17 Thread Peter Boosten

Marc Silver wrote:

Hi there,

Check out /usr/ports/security/wipe/  - It should meet your requirements.



Or always 'rm -P' :-)

Peter

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


Re: Gutman Method on Empty Space

2008-01-17 Thread Marc Silver
Hi there,

On Thu, Jan 17, 2008 at 09:22:33AM +0100, Peter Boosten wrote:
 Or always 'rm -P' :-)

Nice... never knew about this.  

That said, this won't satisfy the Gutmann requirement as far as I
understand it and overwriting a file three times is not considered a
true secure wipe of data.  This data would still be theoretically
recoverable.

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


Re: Gutman Method on Empty Space

2008-01-17 Thread Wojciech Puchar

man dd


On Thu, 17 Jan 2008, Jason C. Wells wrote:

Can anyone recommend a utility for the secure overwriting of unused disc 
space?  I am a satisfied customer of Eraser for Windows.  I'm looking for 
the same thing for FreeBSD.


Thanks,
Jason C. Wells
___
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: how to be *nix programmer

2008-01-17 Thread Tom Van Looy
This is a very good book:
http://www.informit.com/store/product.aspx?isbn=0201702452rl=1

Also these are very nice resources, it know it's NetBSD:
http://www.netbsd.org/docs/kernel/index.html
http://www.netbsd.org/docs/internals/en/index.html

Kind regards,

Tom


- Oorspronkelijk bericht -
Van: Radheshyam Bhatt [mailto:[EMAIL PROTECTED]
Verzonden: woensdag, januari 16, 2008 09:48 PM
Aan: freebsd-questions@freebsd.org
Onderwerp: how to be *nix programmer

Hello  People,


   How's it going?I am interested in to developing drivers
for FreeBSD.   How do I go about start learning program for that?  What
books  resources I should look in to.   I know C, and I am learning about
processes, and system calls.   Also where would I take my questions to if I
don't get something and need help for something in system's programming...
Please email me back..


thanks in advance,

Good Day,
Radheshyam
[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: Gutman Method on Empty Space

2008-01-17 Thread Marc Silver
Hi there,

On Thu, Jan 17, 2008 at 09:43:46AM +0100, Wojciech Puchar wrote:
 how? even single write is enough

Not according to the paper that Gutmann wrote:

http://www.usenix.org/publications/library/proceedings/sec96/full_papers/gutmann/

In short, he says that if you know how the data itself was overwritten
it can be recovered.  If I recall, the DoD standard for the deletion of
data is to overwrite it 3 times.  

Obviously it all comes down to how important the data is that you're
removing, but a single write is not enough if the data needs to be
disposed of 'securely'.

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


Re: Gutman Method on Empty Space

2008-01-17 Thread Wojciech Puchar

That said, this won't satisfy the Gutmann requirement as far as I
understand it and overwriting a file three times is not considered a
true secure wipe of data.  This data would still be theoretically
recoverable.

how? even single write is enough
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


nfsv4: strange things happen

2008-01-17 Thread Valerio Daelli
Hi

we have a Solaris 10 NFS server and a FreebSD 7.0 NFS client.
We have a couple of NFSv4 mounted filesystem on the client.

nest.ifom-ieo-campus.it:/data/exports/obj/bsd7.ifom-ieo-campus.it/obj
/mnt/nest nfs rw,-r=16384,-w=16384,tcp,-4  2   0
nest.ifom-ieo-campus.it:/data/exports/jails/bsd7.ifom-ieo-campus.it/jails
/jails nfs rw,-r=16384,-w=16384,tcp,-4   2   0

We are having strange issues: for example
- we cannot execute binaries on the mounted filesystems
- if we umount one of the two filesystem from the client, the other filesystem
must be remounted, otherwise a process the is writing on it exit with
errors. For example
we have a iozone running on /mnt/nest and we umount /jails, the
iozoine exits with:

Can not open temp file: iozone.tmp
open: Unknown error: 10011
[EMAIL PROTECTED]:/mnt/nest/iozone/nfs4

Is anybody using nfsv4 between a Solaris 10 server and a FreebSD 7.0 client?
Are you having problems on it?

This is our FreeBSD version:
[EMAIL PROTECTED]:~ uname -a
FreeBSD bsd7.ifom-ieo-campus.it 7.0-RC1 FreeBSD 7.0-RC1 #0: Fri Jan 11
19:22:50 CET 2008
[EMAIL PROTECTED]:/mnt/nest/usr/src/sys/BSD7  i386

(everything si running fine on nfsv3).

Bye and thanks for your help

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


release or rc?

2008-01-17 Thread Jeff Laine
Hi to all.

Stupid question here )
I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty
well right now.  There are plenty of new drivers and fixes that I needed so
much! Many thanks to developers!
But now uname -a says it's 6.3-RELEASE.  I thought it would be 6.3-RC2 .
Is it still release candidate or not?

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


Re: how to be *nix programmer

2008-01-17 Thread Sten Daniel Soersdal

Radheshyam Bhatt wrote:

Hello  People,


   How's it going?I am interested in to developing drivers
for FreeBSD.   How do I go about start learning program for that?  What
books  resources I should look in to.   I know C, and I am learning about
processes, and system calls.   Also where would I take my questions to if I
don't get something and need help for something in system's programming...
Please email me back..



I would recommend reading:
The Design and Implementation of the FreeBSD Operating System
by by Marshall Kirk McKusick (Author), George V. Neville-Neil (Author)

The questions go where they are appropriate (scsi driver? perhaps 
freebsd-scsi@ or freebsd-hackers@ ?).



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


Re: how to be *nix programmer

2008-01-17 Thread Eduardo Morras

At 12:03 17/01/2008, you wrote:

Radheshyam Bhatt wrote:

Hello  People,

   How's it going?I am interested in to developing drivers
for FreeBSD.   How do I go about start learning program for that?  What
books  resources I should look in to.   I know C, and I am learning about
processes, and system calls.   Also where would I take my questions to if I
don't get something and need help for something in system's programming...
Please email me back..


I would recommend reading:
The Design and Implementation of the FreeBSD Operating System
by by Marshall Kirk McKusick (Author), George V. Neville-Neil (Author)

The questions go where they are appropriate (scsi driver? perhaps 
freebsd-scsi@ or freebsd-hackers@ ?).


But there is no maillist for general programming FreeBSD, only 
specific ones. Perhaps a list for newbies FreeBSD programmers can fill the gap.



-
Useful Acronyms : FAQ = Frecuently Answered Questions 


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


Re: release or rc?

2008-01-17 Thread Laszlo Nagy

Jeff Laine wrote:

Hi to all.

Stupid question here )
I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty
well right now.  There are plenty of new drivers and fixes that I needed so
much! Many thanks to developers!
But now uname -a says it's 6.3-RELEASE.  I thought it would be 6.3-RC2 .
Is it still release candidate or not?
  
Usually it means that this is a new RELEASE, but it is not announced 
until all mirrors and ftp sites have the right thing up.


Whew, so now we have 7.0 release?  :-)

  Laszlo

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


Re: release or rc?

2008-01-17 Thread Erik Trulsson
On Thu, Jan 17, 2008 at 01:30:23PM +0100, Laszlo Nagy wrote:
 Jeff Laine wrote:
 Hi to all.
 
 Stupid question here )
 I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty
 well right now.  There are plenty of new drivers and fixes that I needed so
 much! Many thanks to developers!
 But now uname -a says it's 6.3-RELEASE.  I thought it would be 6.3-RC2 .
 Is it still release candidate or not?
   
 Usually it means that this is a new RELEASE, but it is not announced until 
 all mirrors and ftp sites have the right thing up.

But sometimes there is a last minute bug found that means things have to be
rebuilt again.
It should be considered a release candidate until the official announcement
has been made.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


routing question

2008-01-17 Thread Laszlo Nagy


 Hi,

I have this configuration:



Internet  - [Hw Router]  (LAN1: 192.168.2.0/24)  -  [ 
192.168.2.138 GatewayComp  192.168.0.1 ] -- (LAN2: 192.168.0.0/24)


I would like to access a computer from LAN1 to LAN2.

LAN1 machine is:

FreeBSD office1adsl.dyndns.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri 
Jan 12 10:40:27 UTC 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

office1adsl# ifconfig
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.2.114 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:8b:f7:30:24
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff00
office1adsl# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.2.1UGS 0  1262107   fxp0
127.0.0.1  127.0.0.1  UH  0   127122lo0
192.168.0  192.168.2.138  UGS 04   fxp0
192.168.2  link#1 UC  00   fxp0
192.168.2.100:13:f7:26:42:69  UHLW2  108   fxp0   1188
192.168.2.138  00:50:fc:8c:f6:62  UHLW2 1469   fxp0143
192.168.2.255  ff:ff:ff:ff:ff:ff  UHLWb   110044   fxp0

Internet6:
Destination   Gateway   
Flags  Netif Expire
::1   ::1   
UHL lo0
fe80::%lo0/64 fe80::1%lo0   
U   lo0
fe80::1%lo0   link#3
UHL lo0
ff01:3::/32   fe80::1%lo0   
UC  lo0
ff02::%lo0/32 fe80::1%lo0   
UC  lo0

office1adsl# ipfw show
ipfw: getsockopt(IP_FW_GET): Protocol not available


GatewayComp machine is:

cassiopeia# uname -a
FreeBSD cassiopeia.ronet 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #5: Wed 
Aug 29 14:18:01 EDT 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  i386

cassiopeia# ifconfig
myk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=2bRXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU
   inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   ether 00:17:31:c3:d2:fe
   media: Ethernet autoselect (1000baseTX full-duplex)
   status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.2.138 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:fc:8c:f6:62
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
cassiopeia# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.2.1UGS 016241rl0
127.0.0.1  127.0.0.1  UH  0 4600lo0
192.168.0  link#1 UC  00   myk0
192.168.0.121  00:02:a5:23:f3:d0  UHLW1   153132   myk0121
192.168.0.126  00:02:a5:e5:19:39  UHLW194435   myk0581
192.168.0.128  00:02:a5:c8:65:f8  UHLW1   230797   myk0130
192.168.0.130  00:02:a5:e0:e1:9c  UHLW1   124633   myk0306
192.168.0.131  00:02:a5:e0:c8:f4  UHLW1   258495   myk0165
192.168.0.132  00:02:a5:08:76:85  UHLW1   161701   myk0957
192.168.2  link#2 UC  00rl0
192.168.2.100:13:f7:26:42:69  UHLW2   30rl0   1127
192.168.2.114  00:50:8b:f7:30:24  UHLW2 1876rl0 72
192.168.2.138  00:50:fc:8c:f6:62  UHLW1   70lo0
cassiopeia# grep gateway /etc/rc.conf
gateway_enable=YES
cassiopeia# ipfw show
1   29588   12691049 allow ip from any to any
2   0  0 allow udp from any to any
3   0  0 allow tcp from any to any
001009512 297448 allow ip from any to any via lo0
00200   0  0 deny ip from any to 127.0.0.0/8
00300   0  0 deny ip from 127.0.0.0/8 to any
65000 2172178 1136712828 allow ip from any to any
65535   1330 deny ip from any to any
cassiopeia#


Now, here is what I try from LAN1 machine:

office1adsl# ping 192.168.0.132
PING 192.168.0.132 (192.168.0.132): 56 data bytes
^C
--- 192.168.0.132 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
office1adsl# telnet 192.168.0.132 5900
Trying 192.168.0.132...
^C


The same from the GatewayComp machine:

cassiopeia# ping 192.168.0.132
PING 192.168.0.132 

Re: routing question

2008-01-17 Thread Steve Bertrand
 Internet  - [Hw Router]  (LAN1: 192.168.2.0/24)  -  [
 192.168.2.138 GatewayComp  192.168.0.1 ] -- (LAN2: 192.168.0.0/24)
 
 I would like to access a computer from LAN1 to LAN2.

Perform the following and post the results of:

- ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network
- ping from pc on 2.0 network to 192.168.0.1
- ping from pc on 0.0 network to 192.168.2.138
- sysctl -a net.inet.ip.forwarding (on the GatewayComp)

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


Re: routing question

2008-01-17 Thread Laszlo Nagy

Steve Bertrand wrote:

Internet  - [Hw Router]  (LAN1: 192.168.2.0/24)  -  [
192.168.2.138 GatewayComp  192.168.0.1 ] -- (LAN2: 192.168.0.0/24)

I would like to access a computer from LAN1 to LAN2.



Perform the following and post the results of:

- ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network
  

cassiopeia# ping 192.168.2.114
PING 192.168.2.114 (192.168.2.114): 56 data bytes
64 bytes from 192.168.2.114: icmp_seq=0 ttl=64 time=0.171 ms
64 bytes from 192.168.2.114: icmp_seq=1 ttl=64 time=0.184 ms
64 bytes from 192.168.2.114: icmp_seq=2 ttl=64 time=0.229 ms
^C
--- 192.168.2.114 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.171/0.195/0.229/0.025 ms
cassiopeia# ping 192.168.0.132
PING 192.168.0.132 (192.168.0.132): 56 data bytes
64 bytes from 192.168.0.132: icmp_seq=0 ttl=64 time=0.260 ms
64 bytes from 192.168.0.132: icmp_seq=1 ttl=64 time=0.235 ms
64 bytes from 192.168.0.132: icmp_seq=2 ttl=64 time=0.133 ms
^C
--- 192.168.0.132 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.133/0.209/0.260/0.055 ms
cassiopeia#

- ping from pc on 2.0 network to 192.168.0.1
  

office1adsl# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.270 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.456 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.178 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.178/0.301/0.456/0.116 ms


- ping from pc on 0.0 network to 192.168.2.138
  
Well, I cannot do this from here. Those computers are X terminals, they 
do not run inetd nor sshd. I cannot login from here and I cannot leave 
now, but I can do it later if necessary.



- sysctl -a net.inet.ip.forwarding (on the GatewayComp)
  

cassiopeia# sysctl -a net.inet.ip.forwarding
net.inet.ip.forwarding: 1
cassiopeia#


I can answer the missed question in about an hour.
Thanks,

   Laszlo


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


RE: CPu Questions

2008-01-17 Thread Darryl Hoar

 In a smaller environment (50 users) will processor selection make
 any real difference ?  Website with some simple php scripting and
 mysql databases tied in .

snip

-- Network: 100Mb switched soon to be GB switched.

- Disk: How much information are you pulling off of the disk? If you
are doing complex queries on a 1GByte table, and server multi-megabyte
files, and using an ATA66 drive without a RAID setup, that disk is
probably going to be a slowdown for your system, and running 4x Quad
Core Xeons (core-based, not netburst) overclocked to 5Ghz won't be
noticably faster than a single Pentium 4 and 2.8Ghz. (OK, that might
be a slight exaggeration). Memory is helpful in this case. Memory can
help  here too.

-- Disk: Databases will be text lookup (think customer records, and
a bug tracker).  sorting records will possibly be on multiple keys.
Data insertion will be VERY low volume.

- CPU: How much is there in the way of calculations? Are the queries
simple or complex? Are there a lot of loops (even a simple program
with a lot of loops or recursion can be very CPU intensive)?

--CPU: Don't expect queries to be super complex.  Every once in a
while there might be a more complex query, but meat and potatoes will
be simple.

snip

Does that help answer your question?

-- partially
-Jim Stapleton

--Darryl


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.6/1229 - Release Date: 1/17/2008
11:12 AM


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


CPu Questions

2008-01-17 Thread Jim Stapleton
 In a smaller environment (50 users) will processor selection make
 any real difference ?  Website with some simple php scripting and
 mysql databases tied in .

This is a very tough question to answer. If you already have a test
environment, see how it works on your current hardware, and ascertain
the locations of the bottlenecks. All of the following are possible in
your situation:
- Network: What is your server using? What is the average connection
speed for the users. All the CPU speed in the world won't help you if
you are attempting to pump out 50 100k pages a second on a 56k line.
- Disk: How much information are you pulling off of the disk? If you
are doing complex queries on a 1GByte table, and server multi-megabyte
files, and using an ATA66 drive without a RAID setup, that disk is
probably going to be a slowdown for your system, and running 4x Quad
Core Xeons (core-based, not netburst) overclocked to 5Ghz won't be
noticably faster than a single Pentium 4 and 2.8Ghz. (OK, that might
be a slight exaggeration). Memory is helpful in this case. Memory can
help  here too.
- CPU: How much is there in the way of calculations? Are the queries
simple or complex? Are there a lot of loops (even a simple program
with a lot of loops or recursion can be very CPU intensive)?

If it is just serving up pages with fairly simple [insert web language
of choice] code and SQL queries, the old K6-III 450Mhz I have for my
home server is more than sufficient for a fairly large number of
users. For simple timestamps and stylsheet spitting Scripting/SQL,
that machine should be able to handle 50 users at a time without a
problem.

So, in the end, we can't answer your question without more
information, but hopefully this will help you answer it. How fast will
the machine need to pull data off the disk? How fast will it need to
write the data? How much of the data can reside in memory (if it'll
all fit in memory, then disk IO isn't nearly as big of a deal?), and
how calculation intensive is your code?


Does that help answer your question?
-Jim Stapleton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: external hard drive for mobile pc

2008-01-17 Thread Jerry McAllister
On Wed, Jan 16, 2008 at 07:55:20PM -0800, Eric LaVoie wrote:

 Will FreeBSD work if I install it on an external hard drive, connected to a 
 mobile PC via USB or FireWire, as a partition ( the two partitions being the 
 mobile PC's internal Hardrive and this external hard drive which I am asking 
 about.)?
 If the answer is yes: can you provide me with links to some documentation 
 covering how I would create the partition on the external hard drive ( this 
 partition would cover as much of this drive as possible with the internal one 
 being used for Windows Vista.); and how I can burn bootable DVD-RWs from the 
 .iso image files of FreeBSD which I downloaded from your site?
 Thank-you for your time,
 Eric

Well, I have an external USB drive on my deskside machine and I don't see 
how it should be different for a mobile one, except you might not want to
always carry the external drive with you.   So, you will want to 'noauto' 
it in fstab, so it doesn't always try to mount it at boot time.  Then
you can mount it manually when you need it.  You will most likely have
to have it plugged in at boot time if you want to use it so the system
knows to make a device for it.

The process of creating slices and partitions/filesystems on an
external drive are exactly the same as doing it on an internal drive.
You should be able to use either fdisk/bsdlabel/newfs or have sysinstall
do it for you.   

I had some trouble because the drive I had was larger than the slice
size limit those things would handle on V 6.1 which I was using on that
machine then.   So, I had to use gparted to create 3 slices.  Then I
was able to do it in a standard manner - just as described in the
handbook for adding drives and in numerous posts to the list - I have
made several - and some FAQs in online publications.   So, just a 
little searching for adding a disk will get you what you need.

Remember, that in FreeBSD, primary divisions of the disk are
called 'slices' and slices can be subdivided in to 'partitions'.

Microsloth mangles those so that primary divisions are called
primary partitions and subdivisions are called extended partitions
but their extended partitions are not compatible with UNIX, although
there are UNIX ways of talking to them.

jerry

 __
 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]


Some UTF-8 characters are not representable on FreeBSD7

2008-01-17 Thread Rafaël Carré
Hello,

I noticed I couldn't use some characters with libncursesw: namely ⚑ ⚐
and ⏏.

I run into some tests and found that some characters were reported as
unprintable, while on Linux all was fine.

I found it extremely strange since those characters would show up in my
terminal (gnome-terminal) when I pasted them.

Here are the results of the test I ran on Linux and FreeBSD:

[EMAIL PROTECTED] ~]% uname -a ;./test
FreeBSD zod 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Sun Dec  2 02:30:18 CET
2007 [EMAIL PROTECTED]:/media/externe/usr/src/sys/ZOD  i386 Locale:
fr_FR.UTF-8 OK a : 1 
OK ⚑ : 0
OK ö : 1
OK ↑ : 1
OK © : 1
OK ⚐ : 0
OK é : 1
OK ⏏ : 0

[EMAIL PROTECTED] ~]% uname -a ; LANG=fr_FR.ISO8859-15 ./test
FreeBSD zod 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Sun Dec  2 02:30:18 CET
2007 [EMAIL PROTECTED]:/media/externe/usr/src/sys/ZOD  i386 Locale:
fr_FR.ISO8859-15 OK a : 1
OK ⚑ : 1
OK ö : 1
OK ↑ : 1
OK © : 1
OK ⚐ : 1
OK é : 1
OK ⏏ : 1


16:03 [EMAIL PROTECTED]  ~% uname -a ; ./test 
Linux altair 2.6.22-2-amd64 #1 SMP Thu Aug 30 23:43:59 UTC 2007 x86_64
GNU/Linux Locale: fr_FR.UTF-8
OK a : 32768
OK ⚑ : 1
OK ö : 1
OK ↑ : 1
OK © : 1
OK ⚐ : 1
OK é : 1
OK ⏏ : 1


A value of 0 means unprintable, a positive value means printable (there
is a graphical representation).

And here is the test I used:

#include stdio.h
#include locale.h
#include stdlib.h
#include wchar.h

int main(void)
{
printf( Locale: %s\n, setlocale( LC_ALL, getenv( LANG ) ) );

#define MAX 8
const char const tab[MAX][6] = {
a, ⚑, ö, ↑, ©, ⚐, é, ⏏
};

int i;
wchar_t wc;
for( i = 0; i  MAX; i++ )
{
printf(%s , mbtowc( wc, tab[i], 6 ) ? OK : KO );
printf(%s : %d\n, tab[i], iswgraph( wc ) );
}

return 0;
}


I suppose this is a bug in UTF-8 locale, I tested with different
$LANG finished by UTF-8 and the result was the same.

Am I right that an Unicode character should always have a graphical
representation in an UTF-8 locale ?

Thanks

-- 
Rafaël Carré


signature.asc
Description: PGP signature


CPu Questions

2008-01-17 Thread Darryl Hoar
Greetings,
Looking to purchase a server that I will run Freebsd on.  It will be a
FAMP server.   I am trying to decide buying used or new.

Used server has (2) Xeon 2.8GHZ processors with 512K cache.
New server has Dual Core Xeon 1.6Ghz with 4MB cache and
1066 front side bus.

In a smaller environment (50 users) will processor selection make
any real difference ?  Website with some simple php scripting and 
mysql databases tied in .

thanks for any advice,
Darryl

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


Re: how to be *nix programmer

2008-01-17 Thread Jerry McAllister
On Wed, Jan 16, 2008 at 10:30:53PM -0500, Bob Hall wrote:

 On Wed, Jan 16, 2008 at 04:42:48PM -0500, Jerry McAllister wrote:
  On Wed, Jan 16, 2008 at 03:48:47PM -0500, Radheshyam Bhatt wrote:
  
   Hello  People,
   
  How's it going?I am interested in to developing drivers
   for FreeBSD.   How do I go about start learning program for that?  What
   books  resources I should look in to.   I know C, and I am learning about
   processes, and system calls.   Also where would I take my questions to if 
   I
   don't get something and need help for something in system's programming...
   Please email me back..
  
  Learning C and probably C++ and maybe some Assembly is good.
  
  After that, you might want to absorb the McKusic books: 'Design and
  Implementaiton of the (4.3 and) 4.4 BSD Operating System.
 
 Actually, McKusic's 'Design and Implementaion of the FreeBSD Operating
 System' might be more useful. It's based on FBSD 5.2, but it's still
 more up to date.

Yes,  I forgot he had a newer one out now.

jerry

 ___
 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: routing question

2008-01-17 Thread Laszlo Nagy



- ping from pc on 0.0 network to 192.168.2.138
  
Well, I cannot do this from here. Those computers are X terminals, 
they do not run inetd nor sshd. I cannot login from here and I cannot 
leave now, but I can do it later if necessary.



- sysctl -a net.inet.ip.forwarding (on the GatewayComp)
  

cassiopeia# sysctl -a net.inet.ip.forwarding
net.inet.ip.forwarding: 1
cassiopeia#


I can answer the missed question in about an hour.


I'm sorry, not today. I'll try tomorrow.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with hard drives

2008-01-17 Thread cathlyn rubio

have you your BIOS?

Javier Matos wrote:
 
 Hi, I was trying to install FreeBSD 6.0-CURRENT in my box but when I do
 it... Usually my hard drive make a strange noise... and the screen show
 DMA problems (ok, it may be the hard drive)... but... I change my hard
 drive and I take one more time problems with the hard drive... (ok, it may
 be the hard drive, the second hard drive that is broke... maybe)... I take
 a third hard drive and have the same problem... but... I don't know If is
 possible to have bad luck to put 3 hard drivers brokens... . Anyone is
 having problems with FreeBSD and Seagate hard drives?
 My system is so unstable and I don´t know how to solve the situation...
 hard drives hare Seagate 160 Gb SATA
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 


-
http://www.binaryz.com http://www.binaryz.com 
-- 
View this message in context: 
http://www.nabble.com/Problems-with-hard-drives-tp1457453p14921862.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: RAID mirror really worked

2008-01-17 Thread Sten Daniel Soersdal

Wojciech Puchar wrote:

gmirror works too very good without any hardware :)


CB Yes, but a hardware RAID works without the OS having to know about 
it. :-)


...and its failures? ;)


:)

for mirroring there is almost no CPU overhead so buying extra hardware 
doesn't make sense at all. not mentioning that most of such hardware are 
actually normal disk controllers with extra soft in BIOS. these are 
supported by ataraid driver.



much better is to use gmirror so it will be completely portable.

and - with gmirror you DO NOT have to mirror/stripe/concat whole drives.
and that's what i do most often - mirror important data but store 
unimportant data without it.


... But with a raid controller mirror you do not have to send the data 
twice over the host bus.


gmirror is awesome

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


Re: Gutman Method on Empty Space

2008-01-17 Thread Jason C. Wells

Marc Silver wrote:


Obviously it all comes down to how important the data is that you're
removing, but a single write is not enough if the data needs to be
disposed of 'securely'.


Yep.  The magnetic media retains a trace of everything that was recorded 
on it. If you have recorded over an old cassette tape, you may still be 
able to discern the original recording under the new recording.


Gutmann method might be excessive but any software that uses it shows a 
seriousness about security.  Plus I don't have to do all that writing. 
The computer does it for me.


Wipe looks like a good start.  Thanks for the tip.

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


Re: MySQL Library upgrade issue

2008-01-17 Thread Paul Procacci
On Thu, Jan 17, 2008 at 11:00:46AM -0600, Jack L. Stone wrote:
 Am running FBSD-6.2p10
 
 Recently, I upgraded MySQL-4.1.22 to 5.0.x and while things seem to work
 okay, I keep getting this warning in phpMyAdmin:
 
 Your PHP MySQL library version 4.1.22 differs from your MySQL server
 version 5.0.51. This may cause unpredictable behavior.
 
 Perhaps my manner of jumping the versions of MySQL...??
 
 How do I get it to recognize the proper library version?
 
 Thanks for any help.

The error stems from php5-mysql (or php4-mysql) being compiled against a
different set of mysql libs.  The easiest method for silencing the error is
to recompile the php5-mysql (or php4-mysql) port.

/usr/ports/databases/php5-mysql

Cheers.

 (^_^)
 Happy trails,
 Jack L. Stone
 
 System Admin
 Sage-american
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Paul Procacci
Manager, UNIX Support
DataPipe Managed Global IT Services
[EMAIL PROTECTED]
1.201.792.4847 (international)
1.888.749.5821 (toll free)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: VFS KPI was Re: [OpenAFS-devel] Re: AFS ... or equivalent ...

2008-01-17 Thread Scott Long

Rick Macklem wrote:



On Wed, 16 Jan 2008, Robert Watson wrote:

[good stuff snipped]


Right now we maintain a relatively stable VM/VFS KPI withing a major 
release (i.e, FreeBSD 6.0 - 6.1 - 6.2 - 6.3), but see fairly 
significant changes between major releases (5.x - 6.x - 7.x, etc).  
I expect to see further changes in VFS for 8.x (and some of the 
locking-related ones have already started going in).



This is loosely related to both the OpenAFS thread and the Mac OS X ZFS
port thread, so I thought I'd ask...

Has anyone considered trying to bring the FreeBSD VFS KPI (and others, for
that matter) closed to the Darwin/Mac OS X ones? The Apple folks made
quite dramatic changes to their VFS when going from Panther (very FreeBSD
like) to Tiger, but seemed to have stabilized, at least for Leopard. It
just seems that using the Mac OS X KPIs might leverage some work being
done on both sides? (I don't know if there is an OpenAFS port to Mac OS X
or interest in one, but I would think there would be a use for one, if it
existed?)

Although I'm far from an expert on the Mac OS X VFS (when I ported to it,
I just cribbed the code and it worked:-), it seems that they pretty well
got rid of the concept of a vnode-lock. If the underlying file system 
isn't SMP safe, it can put a lock on the subsystem at the VFS call.

(I think it optionally does a global lock or a uses an smp lock in the
vnode, but don't quote me on this. My code currently runs with the
thread-safe flag false in the vfs_conf structure entry, which enables
the automagic locking.)



Both Solaris and OSX seem to have found the path out of the VFS locking
woods, and it would indeed be really nice if FreeBSD could follow suit.
You're not the first to suggest the vnode locking move out of VFS and
into the filesystems.  I think that the work it would take to adapt the
existing filesystems to this design would be far less than the ongoing
work by everyone to fight the old design (both in FreeBSD proper and in
companies that do their own custom filesystems in FreeBSD), but it does
come at a cost of making things like nullfs much harder, if not nearly
impossible.  I wish I had time to work on something like this, but I
encourage others to look into it and experiment.

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


MySQL Library upgrade issue

2008-01-17 Thread Jack L. Stone
Am running FBSD-6.2p10

Recently, I upgraded MySQL-4.1.22 to 5.0.x and while things seem to work
okay, I keep getting this warning in phpMyAdmin:

Your PHP MySQL library version 4.1.22 differs from your MySQL server
version 5.0.51. This may cause unpredictable behavior.

Perhaps my manner of jumping the versions of MySQL...??

How do I get it to recognize the proper library version?

Thanks for any help.

(^_^)
Happy trails,
Jack L. Stone

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


Re: RAID mirror really worked

2008-01-17 Thread Wojciech Puchar


... But with a raid controller mirror you do not have to send the data twice 
over the host bus.


please reread what i said. most todays RAID controllers are actually 
normal controllers with BIOS with software support.

these are supported with ataraid.

there is nothing done by hardware



gmirror is awesome

--
Sten Daniel Soersdal
___
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]


Support for Intel RAID

2008-01-17 Thread Tamouh H.

Hello,

Anyone know if Intel 5000V chipset with ESB2 SATA 3.0 onboard RAID is supported 
on FreeBSD 6.2/6.3/7 ?

Last time I've checked on 6.1 it didn't work in RAID mode.

Thanks,

Tamouh Hakmi


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


Re: lockfile -- posix compliant?

2008-01-17 Thread N.J. Thomas
* Erik Trulsson [EMAIL PROTECTED] [2008-01-17 02:25:11+0100]:
 On Wed, Jan 16, 2008 at 08:03:29PM -0500, N.J. Thomas wrote:
  Can someone tell me if lockfile(1) is a POSIX-defined utility?
 
 Considering that lockfile(1) is usually installed as part of procmail

Ah, gotcha. Coincidently, the RHEL 5, OpenBSD 4.1, and FreeBSD 6.2 boxes
that I tested it on all happened to have procmail installed and I
assumed that lockfile(1) was a POSIX util.

Thanks for the heads up.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Stable

2008-01-17 Thread Chuck Swiger

On Jan 17, 2008, at 11:08 AM, Sean Hulbert wrote:

I am trying to download FreeBSD stable.
All I get is a cvsups file.  I need to download the ISO to my winbox  
then burn it to CD.


Is there a program or link to the direct ISO that will allow me to  
download it.


See http://www.freebsd.org/where.html

...right now, the following is the 32-bit x86 version of 6-STABLE that  
is probably going to become 6.3-RELEASE shortly:


  ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.3/

Regards,
--
-Chuck

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


FreeBSD Stable

2008-01-17 Thread Sean Hulbert
Hello
 
I am trying to download FreeBSD stable.
All I get is a cvsups file.  I need to download the ISO to my winbox then burn 
it to CD.
 
Is there a program or link to the direct ISO that will allow me to download it.
 
Thank You
Sean Hulbert
Work Ph:925.227.8500 x136
Cell Email:  [EMAIL PROTECTED]
Cell:   209.814.2276
AIM:   Navbase1
Yahoo:   Ghosthunter007

www.toolwire.com
 
CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.
 
igitur qui desiderat pacem, praeparet bellum!!!
 
Epitoma Rei Militaris
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD CDs don't boot with my Sony Vaio BGN-BX397XP

2008-01-17 Thread Philippe Nenert
Hello, 

I'have a Sony Vaio BGN-BX397XP.
I'have Windows XP and Mandriva installed, but I want use FreeBSD.
I cant boot with any CD, the system displays rapidly lines on the screen 
incomprehensible, I have a picture for that.

I'have test 6.2, 6.3 and 7.0 beta 4 CDs
 
You can see on back the model SONY PCG-9X1M.
You can have a description of my computer on Sony web site : 
http://support.vaio.sony.co.uk/login/login.asp?site=voe_en_GB_cons
Product Code : 28245051
Serial Number : 5000578

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


Re: db performance

2008-01-17 Thread Bill Moran
In response to Robert Fitzpatrick [EMAIL PROTECTED]:

 We have several postfix transport gateways on different networks all
 working with local amavisd-maia+SA using a remote postgresql backend at
 one location. I am getting delays in the queues on a gateway server at a
 remote site since we added more memory to the db server. After seeing
 the issues of SA TIMED OUT in the logs, seems this was happening prior
 to the upgrade, but never to the extent, I guess, to delay much mail.
 Queues on a gateway of the same network as the db server working fine,
 but messages with the timeouts differ from one server to another.
 
 After reading tuning, it suggests the SWAP should be double RAM.
 According to dmesg...
 
 real memory  = 3220635648 (3071 MB)
 avail memory = 3150565376 (3004 MB)
 
 we have 3GB of RAM available with actually 4GB physical RAM installed?
 Anyway, the SWAP is only 2GB, even with the average usage shown here,
 will increasing SWAP to 6-8GB help?
 
 last pid: 49828;  load averages:  0.23,  0.21,  0.18up 8+18:33:08  
 15:42:23
 184 processes: 5 running, 158 sleeping, 21 waiting
 CPU states:  2.6% user,  0.0% nice,  1.0% system,  0.0% interrupt, 96.4% idle
 Mem: 446M Active, 1646M Inact, 236M Wired, 138M Cache, 112M Buf, 30M Free
 Swap: 2048M Total, 164K Used, 2048M Free

Adding swap is unlikely to help you, as you're not really using much memory.

 I also have assumed in the past that db performance could be better if I
 get off the system RAID-5 and put it on 1+0? The system has 4 SATA
 drives.

That will speed things up if IO is your bottleneck, but you've not
demonstrated that.

Which machine in this system is the bottleneck?  Are the Amavis machines
timing out, or is the PostgreSQL server too slow?  If I understand your
description, it sounds like a network problem to me ... i.e., machines
not on the same gateway as the PG server are experience slow network
response (or dropped packets?) that's causing amavis to time out while
trying to talk to PG.  I would suggest investigating there first.

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


Re: recomendations for webb shop software

2008-01-17 Thread tesolarisc

nice solution found, thx anyway.

 
-- 
/Peo



--
-   PGP signed/encrypted emails is prefered  - 
--
 
 [novice about this? ~ visit: www.gnupg.org]


signature.asc
Description: This is a digitally signed message part


Re: db performance

2008-01-17 Thread Wojciech Puchar

After reading tuning, it suggests the SWAP should be double RAM.
According to dmesg...


installing database on RAID-5 or asking if to add swap (when almost none 
is used)? what is more stupid? whould we vote?

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


Re: db performance

2008-01-17 Thread Robert Fitzpatrick
On Thu, 2008-01-17 at 15:53 -0500, Bill Moran wrote:
 In response to Robert Fitzpatrick [EMAIL PROTECTED]:
 
  I also have assumed in the past that db performance could be better if I
  get off the system RAID-5 and put it on 1+0? The system has 4 SATA
  drives.
 
 That will speed things up if IO is your bottleneck, but you've not
 demonstrated that.
 
 Which machine in this system is the bottleneck?  Are the Amavis machines
 timing out, or is the PostgreSQL server too slow?  If I understand your
 description, it sounds like a network problem to me ... i.e., machines
 not on the same gateway as the PG server are experience slow network
 response (or dropped packets?) that's causing amavis to time out while
 trying to talk to PG.  I would suggest investigating there first.
 

The SA timeouts I'm finding on all the servers. Even the db server that
runs it's own amavisd process for backup purposes and some minor domains
just to make sure it is there and working. This is why I think you're
right, the pgsql db is too slow. Would I possibly see dramatic
differences in speed with the RAID switch?

-- 
Robert

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


VFS KPI was Re: [OpenAFS-devel] Re: AFS ... or equivalent ...

2008-01-17 Thread Rick Macklem



On Wed, 16 Jan 2008, Robert Watson wrote:

[good stuff snipped]


Right now we maintain a relatively stable VM/VFS KPI withing a major release 
(i.e, FreeBSD 6.0 - 6.1 - 6.2 - 6.3), but see fairly significant changes 
between major releases (5.x - 6.x - 7.x, etc).  I expect to see further 
changes in VFS for 8.x (and some of the locking-related ones have already 
started going in).



This is loosely related to both the OpenAFS thread and the Mac OS X ZFS
port thread, so I thought I'd ask...

Has anyone considered trying to bring the FreeBSD VFS KPI (and others, for
that matter) closed to the Darwin/Mac OS X ones? The Apple folks made
quite dramatic changes to their VFS when going from Panther (very FreeBSD
like) to Tiger, but seemed to have stabilized, at least for Leopard. It
just seems that using the Mac OS X KPIs might leverage some work being
done on both sides? (I don't know if there is an OpenAFS port to Mac OS X
or interest in one, but I would think there would be a use for one, if it
existed?)

Although I'm far from an expert on the Mac OS X VFS (when I ported to it,
I just cribbed the code and it worked:-), it seems that they pretty well
got rid of the concept of a vnode-lock. If the underlying file system 
isn't SMP safe, it can put a lock on the subsystem at the VFS call.

(I think it optionally does a global lock or a uses an smp lock in the
vnode, but don't quote me on this. My code currently runs with the
thread-safe flag false in the vfs_conf structure entry, which enables
the automagic locking.)

Just a thought, rick

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


Re: db performance

2008-01-17 Thread Bill Moran
In response to Robert Fitzpatrick [EMAIL PROTECTED]:

 On Thu, 2008-01-17 at 15:53 -0500, Bill Moran wrote:
  In response to Robert Fitzpatrick [EMAIL PROTECTED]:
  
   I also have assumed in the past that db performance could be better if I
   get off the system RAID-5 and put it on 1+0? The system has 4 SATA
   drives.
  
  That will speed things up if IO is your bottleneck, but you've not
  demonstrated that.
  
  Which machine in this system is the bottleneck?  Are the Amavis machines
  timing out, or is the PostgreSQL server too slow?  If I understand your
  description, it sounds like a network problem to me ... i.e., machines
  not on the same gateway as the PG server are experience slow network
  response (or dropped packets?) that's causing amavis to time out while
  trying to talk to PG.  I would suggest investigating there first.
 
 The SA timeouts I'm finding on all the servers. Even the db server that
 runs it's own amavisd process for backup purposes and some minor domains
 just to make sure it is there and working. This is why I think you're
 right, the pgsql db is too slow. Would I possibly see dramatic
 differences in speed with the RAID switch?

You're not even close to proposing a solution yet.  Take a deep breath
and take a little time to understand the problem before you start
throwing hardware at it.

I don't know anything about amavisd's usage of databases.  If it's doing
a lot of small writes, then it's likely that getting off RAID 5 will make
a marked difference.

You need to investigate more, though.  Otherwise you're just randomly
flipping switches.

Watching top on the PG machine, how much RAM is in use?  What is the
average CPU usage when you see timeouts?  Run top -m io in another terminal
and see if a lot of IO is happening on the part of PostgreSQL ... is it
reads or writes?

And what tuning have you done to PostgreSQL?  PG doesn't perform well
without tuning.  Install the pg_buffercache addon and see if you've got
enough shared_buffers to get decent performance out of it.  Are you
running vacuum and analyze frequently?  Turn on query timing and watch
the logs to see what queries are taking up time.

Read the following links and follow the advice therein:
http://www.powerpostgresql.com/PerfList
http://www.revsys.com/writings/postgresql-performance.html

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


Re: db performance

2008-01-17 Thread Robert Fitzpatrick
On Thu, 2008-01-17 at 22:19 +0100, Ivan Voras wrote:
 Robert Fitzpatrick wrote:
 
  real memory  = 3220635648 (3071 MB)
  avail memory = 3150565376 (3004 MB)
  
  we have 3GB of RAM available with actually 4GB physical RAM installed?
 
 If you're using a 32-bit (i386) kernel you need PAE. Or switch to 64-bit 
 (amd64).

Yes, this is something else I've found I need to do to these i386
servers since we upgraded the memory, I guess I'll get PAE in the kernel
and switch the RAID, should provide quite a difference, yes? Some people
have suggested the PAE drivers may not be stable with my hardware.

-- 
Robert

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


db performance

2008-01-17 Thread Robert Fitzpatrick
We have several postfix transport gateways on different networks all
working with local amavisd-maia+SA using a remote postgresql backend at
one location. I am getting delays in the queues on a gateway server at a
remote site since we added more memory to the db server. After seeing
the issues of SA TIMED OUT in the logs, seems this was happening prior
to the upgrade, but never to the extent, I guess, to delay much mail.
Queues on a gateway of the same network as the db server working fine,
but messages with the timeouts differ from one server to another.

After reading tuning, it suggests the SWAP should be double RAM.
According to dmesg...

real memory  = 3220635648 (3071 MB)
avail memory = 3150565376 (3004 MB)

we have 3GB of RAM available with actually 4GB physical RAM installed?
Anyway, the SWAP is only 2GB, even with the average usage shown here,
will increasing SWAP to 6-8GB help?

last pid: 49828;  load averages:  0.23,  0.21,  0.18up 8+18:33:08  15:42:23
184 processes: 5 running, 158 sleeping, 21 waiting
CPU states:  2.6% user,  0.0% nice,  1.0% system,  0.0% interrupt, 96.4% idle
Mem: 446M Active, 1646M Inact, 236M Wired, 138M Cache, 112M Buf, 30M Free
Swap: 2048M Total, 164K Used, 2048M Free

I also have assumed in the past that db performance could be better if I
get off the system RAID-5 and put it on 1+0? The system has 4 SATA
drives.

All servers running FreeBSD 6.2 and latest ports of postfix+amavisd-maia
+SA+ClamAV. Thanks for any input.

-- 
Robert

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


Re: db performance

2008-01-17 Thread Ivan Voras

Robert Fitzpatrick wrote:


real memory  = 3220635648 (3071 MB)
avail memory = 3150565376 (3004 MB)

we have 3GB of RAM available with actually 4GB physical RAM installed?


If you're using a 32-bit (i386) kernel you need PAE. Or switch to 64-bit 
(amd64).




signature.asc
Description: OpenPGP digital signature


Re: db performance

2008-01-17 Thread Bill Moran
In response to Robert Fitzpatrick [EMAIL PROTECTED]:

 On Thu, 2008-01-17 at 22:19 +0100, Ivan Voras wrote:
  Robert Fitzpatrick wrote:
  
   real memory  = 3220635648 (3071 MB)
   avail memory = 3150565376 (3004 MB)
   
   we have 3GB of RAM available with actually 4GB physical RAM installed?
  
  If you're using a 32-bit (i386) kernel you need PAE. Or switch to 64-bit 
  (amd64).
 
 Yes, this is something else I've found I need to do to these i386
 servers since we upgraded the memory, I guess I'll get PAE in the kernel
 and switch the RAID, should provide quite a difference, yes? Some people
 have suggested the PAE drivers may not be stable with my hardware.

I don't recommend PAE simply because amd64 works so well and PAE is
a holdover hack.

That being said, if your hardware is i386 only, you're stuck with PAE.

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


Re: db performance

2008-01-17 Thread Robert Fitzpatrick
On Thu, 2008-01-17 at 16:34 -0500, Bill Moran wrote:
 In response to Robert Fitzpatrick [EMAIL PROTECTED]:
 I don't know anything about amavisd's usage of databases.  If it's doing
 a lot of small writes, then it's likely that getting off RAID 5 will make
 a marked difference.

I believe this is the case with SA learning on and auto-whitelisting.
Disabling things like that are my last resort.

 You need to investigate more, though.  Otherwise you're just randomly
 flipping switches.

I really appreciate the pointers!

 Watching top on the PG machine, how much RAM is in use?  What is the
 average CPU usage when you see timeouts?  Run top -m io in another terminal
 and see if a lot of IO is happening on the part of PostgreSQL ... is it
 reads or writes?

I see mainly postgres in the top 8-10 with mainly WRITEs of mainly less
than 100 regularly, mostly less than 30 WRITES at a time.

 
 And what tuning have you done to PostgreSQL?  PG doesn't perform well
 without tuning.  Install the pg_buffercache addon and see if you've got
 enough shared_buffers to get decent performance out of it.  Are you
 running vacuum and analyze frequently?  Turn on query timing and watch
 the logs to see what queries are taking up time.
 
 Read the following links and follow the advice therein:
 http://www.powerpostgresql.com/PerfList
 http://www.revsys.com/writings/postgresql-performance.html
 

This is what I have setup now, thanks for the links, I'll re-check my
tuning...

mx1# cat /etc/sysctl.conf
kern.ipc.shm_use_phys=1
kern.ipc.shmmax=1073741824
kern.ipc.shmall=262144
kern.ipc.semmsl=512
kern.ipc.semmap=256

I'm sure some of my tuning could use some help, like the shm_use_phys,
maybe this is why my swap is not being used much? This is what I've
changed from defaults in postgresql.conf...

max_connections = 250
shared_buffers = 500MB
work_mem = 64MB # min 64kB
maintenance_work_mem = 256MB# min 1MB
max_fsm_pages = 256000 

-- 
Robert

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


Re: db performance

2008-01-17 Thread Jerry McAllister
On Thu, Jan 17, 2008 at 10:17:09PM +0100, Wojciech Puchar wrote:

 After reading tuning, it suggests the SWAP should be double RAM.
 According to dmesg...
 
 installing database on RAID-5 or asking if to add swap (when almost none 
 is used)? what is more stupid? whould we vote?

That is not a very helpful response.

jerry

 ___
 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]


ftp setup - giotissl - ASAP - SOS

2008-01-17 Thread Giotis Eugen
hello,
I just bought a dedicated server (unmanaged server)
Can you help me?
I want to install the ftp.
Can you help me step by step ?
I can connect to my server via SSH and I have installed the cpanel/whm.




Please reply me as soon as if its possible.






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


Re: db performance

2008-01-17 Thread Robert Fitzpatrick
On Thu, 2008-01-17 at 22:17 +0100, Wojciech Puchar wrote:
  After reading tuning, it suggests the SWAP should be double RAM.
  According to dmesg...
 
 installing database on RAID-5 or asking if to add swap (when almost none 
 is used)? what is more stupid? whould we vote?

That was my whole point of showing you the low usage. I take that as a
yes, RAID 1+0 would provide a dramatic difference in speed, thanks!

-- 
Robert

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


Re: db performance

2008-01-17 Thread Wojciech Puchar

is used)? what is more stupid? whould we vote?


That was my whole point of showing you the low usage. I take that as a
yes, RAID 1+0 would provide a dramatic difference in speed, thanks!


the only adventage of RAID-5 is less wasted space than RAID-1. one and 
the only adventage. write performance is terrible on small writes - 
exactly what happens on database usage.


with today sizes of disks more wasted space doesn't make much a problem, 
as i don't think your database have hundreds of gigabytes.


did you look how much disks (no matter what RAID or just devices) are 
actually used?!


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


Re: ftp setup - giotissl - ASAP - SOS

2008-01-17 Thread James Harrison
On Thu, 2008-01-17 at 23:11 +0200, Giotis Eugen wrote:
 hello,
 I just bought a dedicated server (unmanaged server)
 Can you help me?
 I want to install the ftp.
 Can you help me step by step ?
 I can connect to my server via SSH and I have installed the cpanel/whm.
 
 
 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ftp.html


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


RE: Gutman Method on Empty Space

2008-01-17 Thread Brent Jones
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Jason C. Wells
 Sent: Thursday, 17 January 2008 9:10 p.m.
 To: freebsd general questions
 Subject: Gutman Method on Empty Space
 
 Can anyone recommend a utility for the secure overwriting of 
 unused disc 
 space?

split -b 200m /dev/random randomdata ; sync  rm randomdata*

Run as many times as your paranoia factor requires on your file system.
Gutman suggests in his own writings that overwriting with random data
makes the most sense with modern disks.  Run as root to extend the
writes past the soft filesystem limit.  Use whatever split parameters
you fancy for the file sizes.  The srm port has fancy features for
file/directory deletions.

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


Re: db performance

2008-01-17 Thread Robert Fitzpatrick
On Thu, 2008-01-17 at 22:49 +0100, Wojciech Puchar wrote:
  is used)? what is more stupid? whould we vote?
 
  That was my whole point of showing you the low usage. I take that as a
  yes, RAID 1+0 would provide a dramatic difference in speed, thanks!
 
 the only adventage of RAID-5 is less wasted space than RAID-1. one and 
 the only adventage. write performance is terrible on small writes - 
 exactly what happens on database usage.
 
 with today sizes of disks more wasted space doesn't make much a problem, 
 as i don't think your database have hundreds of gigabytes.
 
 did you look how much disks (no matter what RAID or just devices) are 
 actually used?!
 
 use systat

Using 'systat -iostat' it shows mostly idle with 25-70 MB/s on the aacd0
array. Most of time above 50. Thanks for the help!

-- 
Robert

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


disk recovery tools...

2008-01-17 Thread Enno Davids
Guys,

moving disks from an old server to a new one I suffered from a moment of
brain fade last night and newfs'ed a drive I shouldn't have. One of that
new crop that is so large you won't have an adequate backup for it... :(

So, just wondering if there are any disk recovery tools that might be able
to find whats left of the files or some portion thereof. My guess is that
things like the indirect blocks live on in the data area and some portion
of what was there might be recoverable to a greater or lesser degree...


Thanks in advance,

Enno.

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


Re: db performance

2008-01-17 Thread Wojciech Puchar

use systat


Using 'systat -iostat' it shows mostly idle with 25-70 MB/s on the aacd0
array. Most of time above 50. Thanks for the help!

--
Robert



70MB/s can't be mostly idle. or you meant CPU mostly idle.

changing to RAID-not5 will help. seeking why disk traffic is so high - 
will help even more.

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


Re: Gutman Method on Empty Space

2008-01-17 Thread Nerius Landys
  Can anyone recommend a utility for the secure overwriting of
  unused disc
  space?

 split -b 200m /dev/random randomdata ; sync  rm randomdata*

 Run as many times as your paranoia factor requires on your file system.
 Gutman suggests in his own writings that overwriting with random data
 makes the most sense with modern disks.  Run as root to extend the
 writes past the soft filesystem limit.  Use whatever split parameters
 you fancy for the file sizes.  The srm port has fancy features for
 file/directory deletions.


 If I didn't misunderstand your question.  If you're trying to write bits
onto your disk so that nobody could recover data from it, there is a very
simple way to blank out either YOUR WHOLE HARD DRIVE or AN ENTIRE SLICE ON
YOUR HARD DRIVE.

Using the `dd' utility you can write zero bits to an entire slice of your
hard drive (or to the whole hard drive):

dd if=/dev/zero of=/dev/disk-or-slice-ID

Don't do this unless you want to lose all data on a slice or hard drive.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk recovery tools...

2008-01-17 Thread Michael Hawkins
From professional experience as a data recovery technician, I can tell
you that ufs2 drives are among the hardest to recover from after a
format.  So far the best applications that I have found for recovering
data in a situation like this are testdisk and Easy Recovery
Professional (by Kroll Ontrack).  Obviously the ideal situation would
be to get your data back in its original form, so I would try testdisk
first.  If that fails, however, you are going to have to use ERP
(which cost money) to do a RAW recovery.  Please note, however, that
if you perform a RAW recovery,you will NOT recover the intact
filestructure, but instead, a set of folders with your files, and the
files will be renamed 'Fil001' followed by the extension.

I hope this helps,
Cypheros



On 1/17/08, Enno Davids [EMAIL PROTECTED] wrote:
 Guys,

 moving disks from an old server to a new one I suffered from a moment of
 brain fade last night and newfs'ed a drive I shouldn't have. One of that
 new crop that is so large you won't have an adequate backup for it... :(

 So, just wondering if there are any disk recovery tools that might be able
 to find whats left of the files or some portion thereof. My guess is that
 things like the indirect blocks live on in the data area and some portion
 of what was there might be recoverable to a greater or lesser degree...


 Thanks in advance,

 Enno.

 ___
 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]


ssh tunnel question

2008-01-17 Thread Juan Ortega

Hi, I installed freeBSD 6.3RC2 on my computer.
SSH deamon is installed and working.
On my linux computer I can connect easily ssh -D 8080 myserver.com
and use it as SOCKS for firefox as proxy server.
But on windows I cant using putty, I can make it local like -L in linux
but i cant make it dynamic, i tried it but all i get is the proxy server 
is refusing connections in firefox. It works on all linux pcs but not 
windows, same error msg. I disabled firewall and still not working.

wats wrong with it?


[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh tunnel question

2008-01-17 Thread Pollywog
On Friday 18 January 2008 04:52:44 Juan Ortega wrote:
 Hi, I installed freeBSD 6.3RC2 on my computer.
 SSH deamon is installed and working.
 On my linux computer I can connect easily ssh -D 8080 myserver.com
 and use it as SOCKS for firefox as proxy server.
 But on windows I cant using putty, I can make it local like -L in linux
 but i cant make it dynamic, i tried it but all i get is the proxy server
 is refusing connections in firefox. It works on all linux pcs but not
 windows, same error msg. I disabled firewall and still not working.
 wats wrong with it?

In Firefox, are you using SOCKS4 when connecting?  Try SOCKS4.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


6.3 REL or not

2008-01-17 Thread Jon

Ok I was wondering around,
Then found the 6.3 ISO's

are these the real 6.3 release's ?

Can I use these ISO's as the 
6.3 release CD's ?


I am asking because I never saw a word of 6.3 REL being ready.

Thanks 
___

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


Re: 6.3 REL or not

2008-01-17 Thread Erik Trulsson
On Thu, Jan 17, 2008 at 08:56:32PM -0800, Jon wrote:
 Ok I was wondering around,
 Then found the 6.3 ISO's
 
 are these the real 6.3 release's ?

Maybe.  Unless some last second problem is found in which case the ISO's
will be rebuilt.

 
 Can I use these ISO's as the 6.3 release CD's ?

Can? Yes.  Should? Maybe not.

 
 I am asking because I never saw a word of 6.3 REL being ready.
 

Assume that 6.3 is not finished until the official announcement has
gone out.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]