Re: Any delivery block to freebsd-questions list?

2010-01-08 Thread Matthew Seaman

Matthias Apitz wrote:

El día Friday, January 08, 2010 a las 06:57:04AM +0100, Matthias Apitz escribió:


Sounds like that's just graylisting.  The delay will depend on how long
it takes your MTA (or the smarthost you use) to retry the message.

In my case it seems not to be graylisting, but blacklisting; i.e. the
mail is not delivered at all :-(


Now, with the above reply, the mail of yesterday showed up in the list
as well... what is this?


Well, looking at the headers, it spent about 11 hours sitting at ms4-1.1blu.de.
Once it was accepted at freebsd.org, it went out to the list in about 2 minutes.

Received: from ms4-1.1blu.de (ms4-1.1blu.de [89.202.0.34])
by mx1.freebsd.org (Postfix) with ESMTP id EDF3F8FC1C
for freebsd-questions@freebsd.org;
Fri,  8 Jan 2010 05:57:09 + (UTC)
Received: from [193.31.11.193] (helo=current.Sisis.de)
by ms4-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32)
(Exim 4.50) id 1NSuhI-0004mn-4D
for freebsd-questions@freebsd.org; Thu, 07 Jan 2010 16:54:52 +0100
Received: from current.Sisis.de (current [127.0.0.1])
by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o07FspAW026325
for freebsd-questions@freebsd.org;
Thu, 7 Jan 2010 16:54:51 +0100 (CET) (envelope-from g...@unixarea.de)

Now, not knowing what the configuration of ms4-1.1blu.de is like,
I can only speculate that it tried to deliver to mx1.freebsd.org and, for
whatever reason, failed at the initial attempt.  [It's not greylisting by
the FreeBSD mailservers, because they don't use it.]  We can't see from this
trace how many times ms4-1.1blu.de retried sending the message during that
time -- typically it should try again after 15 or 30min and then keep trying
again at that sort of interval or longer for up to 5 days.  As they are using 
Exim, it's quite likely the message ended up in a stuck-message queue which 
would still keep retrying delivery, but at a much lower frequency.

Without looking at the mail logs on mx1.freebsd.org we can't know why the
message wasn't accepted.  We can tell that it was temp-failed -- ie. you
didn't get a bounce back with a permanent failure message.  There are several
mechanisms used with e-mail that might generate this sort of temp-fail response
(SPF, DKIM -- but there are no indications freebsd.org uses these in the
message headers) or else the problem might well have been a failure in the DNS
-- if mx1.freebsd.org couldn't look up ms4-1.1blu.de or sisis.de then it 
wouldn't accept the message.  This last scenario seems the most likely to me, 
especially since you say you've recently changed e-mail service provider.

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


copying a disk with ignoring errors

2010-01-08 Thread Mark Terribile

 On Tue, Jan 05, 2010 at 03:31:46PM +0100, Christoph Kukulies wrote:
 I recall a case when I had a hard disk that had got bad sectors and
 it wasn't accessible through normal mounting anymore.
 Then a tool came into the game that - I believe - Poul Henning had
 recommended or written for this purpose.

 It copies a disk sector by sector to a file (kind of dd), but
 ignores errors, it just skips sectors it couldn't read (after a
 couple
 of retries). The result was, that one had a - albeit - worm-eaten -
 image of the disk allowing to access the filesystem
 and getting to the important files with a little luck these not
 being amongst the corrupted data.

 Anyone knowing what this little tool was named? Something like
 diskcopy, devcopy, I forgot.

 --
 Christoph

 dd conv=noerror?

I recently had an episode with a failing hard drive.  Normal file system
operation couldn't read certain sectors, but reading the whole disk
linearly (dd if=/dev/ad bs=) did work.  Since larger drives are now
cheaper, I set up a file system on a new BIG drive, copied the slices out
to files on it, then made those files into memory disks, mounted them, and
copied the contents off.  I had to experiment a bit to find a blocksize
that worked.  I believe it was a smallish power of two in sectors.

It might be worth a try.

I've also recovered SCSI drives that developed bad sectors by writing
specifically those sectors, as you are trying to do.  Whether it fixed a
bad write (perhaps due to a powerfail while writing?) or it caused the
drive to remap the sector I don't know.  I do know that most of my hardware
cursing over the last two years has been due to disk drive power
connectors, which seem to work reliably just once.  If you move anything
you take your data's safety in your hands when you reconnect.  SATA's
power connectors are the answer to a prayer.


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


Re: sendmail SMTP AUTH: question about /etc/mail/auth/client-info file

2010-01-08 Thread Matthias Apitz
El día Friday, January 08, 2010 a las 06:44:00AM +, Glyn Millington 
escribió:

 Matthias Apitz writes:
   Hello,
   
   Because I was forced by my ISP to do so, I have configured successfully
   as described in the FBSD docs the sendmail with SMTP AUTH;
   
   one question remains: the required file /etc/mail/auth/client-info has 
   the line:
   
   AuthInfo:smtp.1blu.de U:root I:Y P:X
   
   where the I: value is the userID given by the ISP and P: its password;
   what does the U: value is good for exactly? thanks in advance
 
 Hi Matthias,
 
 U = user
 
 for details see 
 
 http://www.sendmail.org/~ca/email/auth.html

Hello Glyn,

I have read the above page during my configuration but it does not
explain to me which user must be configured in U: value; Is it me? Or is it
the userID the sendmail daemon is running as? It works with U:root,
but what does this mean exactly?

Thx

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sendmail SMTP AUTH: question about /etc/mail/auth/client-info file

2010-01-08 Thread Glyn Millington
Matthias Apitz writes:
  
  Hello Glyn,
  
  I have read the above page during my configuration but it does not
  explain to me which user must be configured in U: value; Is it me? Or is it
  the userID the sendmail daemon is running as? It works with U:root,
  but what does this mean exactly?


Sorry, Matthias, I misread your question.  I think it can only refer
to the uid under which sendmail is running, but can find no proof of
that :-)

atb


Glyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pf headaches: why won' t it let me fetch from ftp servers?

2010-01-08 Thread Morgan Wesström
Dino Vliet wrote:
 Dear freebsd list,
 I have the following pf.conf file:
 tcp_services = { ftp, ssh, domain, www, auth, https }
 udp_services = { ftp, domain, ntp }
 icmp_types   = echoreq
 block all
 pass inet proto icmp all icmp-type $icmp_types keep state
 #pass in proto tcp to any port 22 keep state
 pass out proto tcp to any port $tcp_services keep state
 #pass out proto tcp to any port 25 keep state
 #pass out proto tcp to any port 465 keep state
 #pass out proto tcp to any port 587 keep state
 pass out proto tcp to any port 5999 keep state
 #pass out all keep state
 #pass out proto tcp to any keep state
 pass out proto udp to any port $udp_services
 
 However,if I try to fetch a file from a ftp server as in the followining 
 example:fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bash/FAQ
 I get the result: Operation not permitted
 My first question is: What is causing this? If I stop pf, then I' m able to 
 fetch it. 
 My second question is:Is my ruleset looking fine, as i want to block 
 everything and only let some specific services go out. Or need t be tightened 
 more?
 BrgdsDino

The ftp protocol is unfortunately not very firewall friendly and it
involves far more ports and connections you have accounted for in your
rules. You should have a look at ftp-proxy(8) and closely study the pf
examples there. I'm sure it will solve your problem.
/Morgan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sendmail SMTP AUTH: question about /etc/mail/auth/client-info file

2010-01-08 Thread Matthew Seaman

Matthias Apitz wrote:


I have read the above page during my configuration but it does not
explain to me which user must be configured in U: value; Is it me? Or is it
the userID the sendmail daemon is running as? It works with U:root,
but what does this mean exactly?


That's a SASL thing -- it has the concept of differentiating between
authentication ID (who you are (and you can prove it because you have the
password or other security token)) and authorization ID (who you are logging
in as, and whose permissions you can use on the remote server).  According
to /usr/share/sendmail/cf/README:


The RHS for an AuthInfo: entry in the access map should consists of a
list of tokens, each of which has the form: TDstring (including
the quotes).  T is a tag which describes the item, D is a delimiter,
either ':' for simple text or '=' for a base64 encoded string.
Valid values for the tag are:

U   user (authorization) id
I   authentication id
P   password
R   realm
M   list of mechanisms delimited by spaces


You don't generally need all of these items.  For the simplest case,
all you'ld need is U:username and P:password -- if you don't give 
I:authid explicitly it assumes it is the same as U:username (and vice

versa, if you give I:authid and not U:username).

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: Can't figure out recursion problem in bash/freebsd - reply/solution to all helpers

2010-01-08 Thread Bernard T. Higonnet

Hello,

There were two approaches offered to my problem

1) changing my script: it runs if the cd .. is moved from the end of 
the script into the then clause of the if statement


===
#! /bin/sh
echo Starting in `pwd`
for hoo in *; do
  echo Found item $hoo
  if [ -d $hoo ]; then
echo Pushing $hoo
cd $hoo
$0
cd ..
  else
echo Processing file $hoo
  fi
  echo Going to next item
done
echo Finishing in `pwd`
# cd ..  was here in original script
===

I shall be bold: this strikes me as a bug in bash. Am I off my nut here?



2) use find instead for the traversing of the file hierarchy

===
find $PWD -type f -execdir processingscript {} \;
===


I have tried both methods and on a small sample (10,000 files going only 
 3 deep) and there were no meaningful differences in execution time.


Thanks to all
Bernard Higonnet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman

Hi guys,

I'm just attempting to create a startup script for Xmms2 so that the 
service can autostart on boot!


So far I have Google'd around and found very little, the most promising 
site was this:


http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html

which gives a script of this:

#!/bin/sh

. /etc/rc.subr

name=mumbled
rcvar=`set_rcvar`
command=/usr/sbin/${name}

load_rc_config $name
run_rc_command $1



So far I have modified the script to look like this:

#!/bin/sh

. /etc/rc.subr

name=xmms2-launcher
rcvar=`set_rcvar`
command=/usr/local/bin/${name} -u kaya

load_rc_config $name
run_rc_command $1

and given it the name xmms2-launcher, the location of the script is in 
/usr/local/etc/rc.d/


I also have this line in /etc/rc.conf:

xmms2-launcher_enable=YES

Only when I attempt to start the script I get this information back:

-u: not found
xmms2-launcher_enable=YES: not found
./xmms2-launcher: WARNING: $xmms2-launcher_enable is not set properly - 
see rc.conf(5).
Cannot 'start' xmms2-launcher. Set xmms2-launcher_enable to YES in 
/etc/rc.conf or use 'onestart' instead of 'start'.


I would like to start the daemon as user kaya which is why I have the -u 
added in the script but am completely lost now as I'm not great at 
scripting since this is quite advanced for the simple stuff I do know about!


Can anyone help me??

Many thanks and best regards,

Kaya

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


Re: Replacing disks in a ZFS pool

2010-01-08 Thread krad
 Also, I've been loosely following some of the GPT threads, and I like

  the idea of using this type of label instead of the disk names
 themselves.

 I personally haven't run into any bad problems using the full device, but
 I suppose it could be a problem. (Side note - geom should learn how to
 parse zfs labels so it could create something like /dev/zfs/uuid for
 device nodes instead of using other trickery)

  How should I proceed? I'm assuming something like this:
 
  - add the new 1.5TB drives into the existing, running system
  - GPT label them
  - use 'zpool replace' to replace one drive at a time, allowing the pool
  to rebuild after each drive is replaced
  - once all four drives are complete, shut down the system, remove the
  four original drives, and connect the four new ones where the old ones
 were

 If you have enough ports to bring all eight drives online at once, I would
 recommend using 'zfs send' rather than the replacement. That way you'll
 get something like a burn-in on your new drives, and I believe it will
 probably be faster than the replacement process. Even on an active system,
 you can use a couple of incremental snapshots and reduce the downtime to a
 bare minimum.


Surely it would be better to attach the drives either individually or as a
matching vdev (assuming they can all run at once), then break the mirror
after its resilvered.  Far less work and far less liekly to miss something.

What I have done with my system is label the drives up with a coloured
sticker then create a glabel for the device. I then add the glabels to the
zpool. Makes it very easy to identify the drives.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can't figure out recursion problem in bash/freebsd - reply/solution to all helpers

2010-01-08 Thread RW
On Fri, 08 Jan 2010 11:23:33 +0100
Bernard T. Higonnet b...@higonnet.net wrote:


 #! /bin/sh
...
 I shall be bold: this strikes me as a bug in bash. Am I off my nut
 here?

If it is a bug, it's a bug in /bin/sh, not bash.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread RW
On Fri, 08 Jan 2010 12:23:40 +0200
Kaya Saman samank...@netscape.net wrote:


 So far I have modified the script to look like this:
 
 #!/bin/sh

You may  need a PROVIDE LINE e.g.
# PROVIDE:xmms2launcher


 . /etc/rc.subr
 
 name=xmms2-launcher

You can't use - in shell variable names, so you shouldn't use it here 

 rcvar=`set_rcvar`
 command=/usr/local/bin/${name} -u kaya

The -u kaya needs to go in a name_flags variable
 










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


Accessing Computer

2010-01-08 Thread Carmel
Assume three computers.

Computer 1 runs Windows with Putty installed
Computer 2  3 run FreeBSD

Computer 1 runs Putty and creates a key that is installed on computer 2.
Computer 2 has a key that is installed on computer 3.

If someone were to use computer 1 via Putty to access computer 2, would
they then be able to access computer 3? If so, how could I prevent it
from happening?

I am not good at explaining things, so I hope you understand what I am 
referring to.

-- 
Carmel
car...@hotmail.com

For every complex problem there is an answer that is clear, simple, and wrong.

Mencken, H. L.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman

Many thanks for the tips I am almost there but have a problem now!

This is the output I get:

./xmms2launcher stop
./xmms2launcher: WARNING: cannot read shebang line from 
/usr/local/bin/xmms2launcher

xmms2launcher not running?

From my current file:

rd1# cat xmms2launcher
#!/bin/sh

# PROVIDE:xmms2launcher

. /etc/rc.subr

name=xmms2launcher
rcvar=`set_rcvar`
command=/usr/local/bin/${name} -u kaya

load_rc_config $name
run_rc_command $1

Of which I know call xmms2launcher_enable=YES from within /etc/rc.conf

The only issue is that the command is here:

rd1# ls /usr/local/bin | grep xmms2
nyxmms2
xmms2
xmms2-et
xmms2-find-avahi
xmms2-launcher
xmms2-mdns-avahi
xmms2d

So if I can't add the - does this mean that I have to create a link to 
xmms2-launcher with name xmms2launcher??


--K

RW wrote:

On Fri, 08 Jan 2010 12:23:40 +0200
Kaya Saman samank...@netscape.net wrote:


  

So far I have modified the script to look like this:

#!/bin/sh



You may  need a PROVIDE LINE e.g.
# PROVIDE:xmms2launcher


  

. /etc/rc.subr

name=xmms2-launcher



You can't use - in shell variable names, so you shouldn't use it here 

  

rcvar=`set_rcvar`
command=/usr/local/bin/${name} -u kaya



The -u kaya needs to go in a name_flags variable
 











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


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


Re: Accessing Computer

2010-01-08 Thread Bill Moran
In response to Carmel carmel...@hotmail.com:

 Assume three computers.
 
 Computer 1 runs Windows with Putty installed
 Computer 2  3 run FreeBSD
 
 Computer 1 runs Putty and creates a key that is installed on computer 2.
 Computer 2 has a key that is installed on computer 3.
 
 If someone were to use computer 1 via Putty to access computer 2, would
 they then be able to access computer 3? If so, how could I prevent it
 from happening?

You could prevent ssh connections from 2 - 3 on port 22 via firewall.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accessing Computer

2010-01-08 Thread Carmel
On Fri, 8 Jan 2010 08:12:28 -0500 Bill Moran wmo...@potentialtech.com 
articulated:

 In response to Carmel carmel...@hotmail.com:
 
  Assume three computers.
  
  Computer 1 runs Windows with Putty installed
  Computer 2  3 run FreeBSD
  
  Computer 1 runs Putty and creates a key that is installed on computer 2.
  Computer 2 has a key that is installed on computer 3.
  
  If someone were to use computer 1 via Putty to access computer 2, would
  they then be able to access computer 3? If so, how could I prevent it
  from happening?
 
 You could prevent ssh connections from 2 - 3 on port 22 via firewall.

I  am not sure if I am following you correctly. I frequently access
computer 3 from computer 2. If I block port 22 I will have to use
another on, correct? If I do enable another one, what is to prevent a
user on computer 1 from accessing computer 2 and then on to computer 3?

What I want to accomplish is making it impossible to access computer 3
from other than computer 2 and then only if computer two is not being
used as a slave from computer 1, or any other computer for that matter.

Probably what I want cannot be implemented; however, I thought I would
ask anyway.

-- 
Carmel
carmel...@hotmail.com

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


Re: Accessing Computer

2010-01-08 Thread Daniel Grant

On 08/01/2010 12:50, Carmel wrote:

Assume three computers.

Computer 1 runs Windows with Putty installed
Computer 2  3 run FreeBSD

Computer 1 runs Putty and creates a key that is installed on computer 2.
Computer 2 has a key that is installed on computer 3.

If someone were to use computer 1 via Putty to access computer 2, would
they then be able to access computer 3? If so, how could I prevent it
from happening?

I am not good at explaining things, so I hope you understand what I am 
referring to.



I would suggest protecting your keys with a passphrase, then the key 
alone is not enough to gain access to the machines.


Simply put - in order for someone to access computer 3 from computer 2, 
would be for computer 3 to have computer 2's public key.  So if computer 
2's private key can be accessed from computer 1, then yes access to 
computer 3 could be granted.

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


sec.update 7.2-RELEASE-p6 not showing up

2010-01-08 Thread n dhert
FreeBSD7.2 system with Generic kernel.
There was a security update patch release two days ago: 7.2-RELEASE-p6
Fetched and installed it with # freebsd-update install
The files mentionned in the mail that would be replaced by the patch, are
replaced (date has changed)
Yet, after a reboot (shutdown -r), # uname -a
still shows the previous -pX version and the date that this previous one was
installed ...
Why and how to correct that ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread RW
On Fri, 08 Jan 2010 15:00:11 +0200
Kaya Saman samank...@netscape.net wrote:


 name=xmms2launcher
 rcvar=`set_rcvar`
 command=/usr/local/bin/${name} -u kaya
 ...
 So if I can't add the - does this mean that I have to create a link
 to xmms2-launcher with name xmms2launcher??

no just avoid using ${name} in the command. 

name is just a label used for creating unique variable names you can
use in rc.conf, it doesn't have to match any binary.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sec.update 7.2-RELEASE-p6 not showing up

2010-01-08 Thread Bas Smeelen
n dhert wrote:
 FreeBSD7.2 system with Generic kernel.
 There was a security update patch release two days ago: 7.2-RELEASE-p6
 Fetched and installed it with # freebsd-update install
 The files mentionned in the mail that would be replaced by the patch, are
 replaced (date has changed)
 Yet, after a reboot (shutdown -r), # uname -a
 still shows the previous -pX version and the date that this previous one was
 installed ...
 Why and how to correct that ?

   
This is because the kernel is not affected by this update, so the kernel
is not updated.
The patchnumder you see with uname -a is (hardcoded) in the kernel
If you rebuild your generic kernel you would see p6




DISCLAIMER:
This e-mail is for the intended recipient(s) only.
Access, disclosure, copying, distribution or reliance on any of it by anyone 
else is prohibited.
If you have received it by mistake please let us know by reply and then delete 
it from your system.

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


Re: Accessing Computer

2010-01-08 Thread Carmel
On Fri, 08 Jan 2010 13:05:45 + Daniel Grant dan...@nullroutes.com 
articulated:

 I would suggest protecting your keys with a passphrase, then the key 
 alone is not enough to gain access to the machines.
 
 Simply put - in order for someone to access computer 3 from computer 2, 
 would be for computer 3 to have computer 2's public key.  So if computer 
 2's private key can be accessed from computer 1, then yes access to 
 computer 3 could be granted.

That is what I have considered doing. The problem is that I will have to
remember the password. I tend to use different passwords for different
things. I therefore have a bad habit of forgetting the password. In any
case, I will probably be forced to go that route thought.

-- 
Carmel
carmel...@hotmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accessing Computer

2010-01-08 Thread Pieter de Goeje
On Friday 08 January 2010 13:50:10 Carmel wrote:
 Assume three computers.
 
 Computer 1 runs Windows with Putty installed
 Computer 2  3 run FreeBSD
 
 Computer 1 runs Putty and creates a key that is installed on computer 2.
 Computer 2 has a key that is installed on computer 3.
 
 If someone were to use computer 1 via Putty to access computer 2, would
 they then be able to access computer 3? If so, how could I prevent it
 from happening?
 
 I am not good at explaining things, so I hope you understand what I am
  referring to.
 
You might want to take a look at ssh-agent. I think PuTTY has an equivalent. 
It lets you do remote logins without putting your key(s) everywhere. I've not 
yet tried this myself, but I plan on testing it sometime.

- Pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accessing Computer

2010-01-08 Thread Carmel
On Fri, 8 Jan 2010 14:58:23 +0100 Pieter de Goeje pie...@service2media.com 
articulated:

 You might want to take a look at ssh-agent. I think PuTTY has an equivalent. 
 It lets you do remote logins without putting your key(s) everywhere. I've not 
 yet tried this myself, but I plan on testing it sometime.

I use agent.  All that agent does is cache your password so you do not
have to re-enter it each time you make a connection.

-- 
Carmel
carmel...@hotmail.com

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


Re: Accessing Computer

2010-01-08 Thread Lowell Gilbert
Carmel carmel...@hotmail.com writes:

 On Fri, 8 Jan 2010 14:58:23 +0100 Pieter de Goeje pie...@service2media.com 
 articulated:

 You might want to take a look at ssh-agent. I think PuTTY has an equivalent. 
 It lets you do remote logins without putting your key(s) everywhere. I've 
 not 
 yet tried this myself, but I plan on testing it sometime.

 I use agent.  All that agent does is cache your password so you do not
 have to re-enter it each time you make a connection.

The agent can be forwarded with the connection.  
In your case, it would remove the need for a second key on the second machine.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[Solved, mostly]: zpool status hangs zfs command, possibly related to spindown

2010-01-08 Thread Derrick Ryalls
On Thu, Jan 7, 2010 at 8:01 AM, Derrick Ryalls ryal...@gmail.com wrote:
 Greetings,

 uname -a (64bit)

  8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec  6 11:23:52 PST 2009

 I have a raidz setup with 4x 2TB drives, plus a UFS CF on the IDE
 channel I use to boot off of.  I have an 1TB ZFS (non-raid) drive in
 an attached docking station that I use for nightly backups.  Since the
 drive in the docking station has no fan on it, and is only used for
 about 2 minutes per day, I have a spindown script added to rc.d:

 #!/bin/sh

 DEV=ad12

 case $1 in
 start)
        echo Spindown SATA disk $DEV after idle for 15 minutes.
        atacontrol spindown $DEV 900  dd if=/dev/$DEV of=/dev/null
 count=1 2 /dev/null 
        ;;
 stop)
        echo Spindown of SATA disk $DEV disabled.
        atacontrol spindown $DEV 0  dd if=/dev/$DEV of=/dev/null
 count=1 2 /dev/null
        ;;
 status)
        atacontrol spindown $DEV
        ;;
 *)
        echo Usage: `basename $0` {start|stop|status} 2
        exit 64
        ;;
 esac


 However after running a spindown stop twice within a couple minutes, I
 see this in /var/log/messages:

 Jan  7 07:36:54 frodo kernel: ad12: request while spun down, starting.
 Jan  7 07:36:55 frodo kernel: ad12: timeout waiting to issue command
 Jan  7 07:36:55 frodo kernel: ad12: error issuing READ_DMA command

 Jan  7 07:38:40 frodo kernel: ad12: timeout waiting to issue command
 Jan  7 07:38:40 frodo kernel: ad12: error issuing READ_DMA command

 If I issue a 'zpool status storage' command (main raidz) it returns
 normally.  If I issue 'zpool status' or 'zpool status backup' (backup
 is the drive in the docking station), the command hangs.  'zfs list'
 also does not return nor do zfs mounting commands associated with the
 backup drive.

 When I was using 7.x (without ZFS), I was able to use spindown and the
 drive would spin up when being used, then shut down after the
 requisite inactivity time.  Is this no longer recommended, or have I
 hit a bug/regression in the ata controller?

 I am remote to the machine right now, so I am hesitant to reboot it to
 get the spundown drive back up and running.  Does anyone know of a way
 to kick start a spundown drive so it is mountable (as a short term
 fix) and the proper way to spin up/down the drive for 8.x (for a long
 term fix).

 TIA,

 Derrick


Replying to my own thread.  Turned out to be a hardware problem - the
eSATA plug had become slightly dislodged from the docking station
explaining why FreeBSD couldn't properly talk to the drive.  Wonder if
this uncovers a hotswap issue with either the hardware or the
software.  It seems like the device should have been removed from /dev
when the cable came out rather than the ZFS tools hanging when trying
to read...  In any case, my backups are running again and I am once
again getting daily report mails, so the need for me to investigate
this further has dropped.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accessing Computer

2010-01-08 Thread Carmel
On Fri, 08 Jan 2010 10:13:52 -0500 Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org articulated:

 Carmel carmel...@hotmail.com writes:
 
  On Fri, 8 Jan 2010 14:58:23 +0100 Pieter de Goeje 
  pie...@service2media.com articulated:
 
  You might want to take a look at ssh-agent. I think PuTTY has an 
  equivalent. 
  It lets you do remote logins without putting your key(s) everywhere. I've 
  not 
  yet tried this myself, but I plan on testing it sometime.
 
  I use agent.  All that agent does is cache your password so you do not
  have to re-enter it each time you make a connection.
 
 The agent can be forwarded with the connection.  
 In your case, it would remove the need for a second key on the second machine.

I was not aware of that. I will have to read up on how to accomplish it.

Thanks!

-- 
Carmel
carmel...@hotmail.com

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


Support for Asus MicroATX Boards

2010-01-08 Thread Anselm Strauss
Hi,

I was looking for some new hardware to buy. I'm interested especially in the
M4*/M3* boards from Asus with the AMD 785G/SB710, 780G/SB700 and nForce 720a
chips. I can't find real evidence on the supported hardware list whether the
following chipsets are really working with FreeBSD 8.0 or not. Maybe
somebody else has already tested them:

SATA:
- AMD SB700
- AMD SB710

Ethernet:
- Realtek RTL8112L (RTL811xS is supported)
- Realtek RTL8211CL

Sound:
- VIA VT1708S (VT1708 and VT1708B are supported)
- Realtek ALC887 (ALC88x, x=0/2/3/5/8/9 are supported)

Polywell has a box that has exactly the hardware from the 785G boards.
FreeBSD is listed under the supported OSes, but I don't know how much that
means:
http://www.polywell.com/US/desktop/MiniBox785G.asp


I would appreciate any experiences.

Thanks,
Anselm
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


GEOM corrupt or invalid GPT detected on ZFS raid on Freebsd 8.0 x64

2010-01-08 Thread Derrick Ryalls
Greetings,

After not getting daily system mails for a while, then suddenly
getting them, I took a closer look and noticed this message appears
after a boot:

+GEOM: ad4: corrupt or invalid GPT detected.
+GEOM: ad4: GPT rejected -- may not be recoverable.
+GEOM: label/disk1: corrupt or invalid GPT detected.
+GEOM: label/disk1: GPT rejected -- may not be recoverable.

label/disk1 should be the same thing as ad4, and it is part of a 4
disk raidz.  When I check the status of my pools, all is reported
fine:


[r...@frodo ~]# zpool status
  pool: backup
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
backup  ONLINE   0 0 0
  label/backup  ONLINE   0 0 0

errors: No known data errors

  pool: storage
 state: ONLINE
 scrub: none requested
config:

NAME STATE READ WRITE CKSUM
storage  ONLINE   0 0 0
  raidz1 ONLINE   0 0 0
label/disk1  ONLINE   0 0 0
label/disk2  ONLINE   0 0 0
label/disk3  ONLINE   0 0 0
label/disk4  ONLINE   0 0 0


Checking the history of the logs, it looks like this started to occur
after I did a disk replacement test for ZFS.  Going from memory, I
performed the following steps:

* Took the disk offline
* Powered down the system
* Replaced the physical disk
* Powered up the system
* Used glabel to label the new disk with the same name as old disk
* Told ZFS to replace the disk

The operation appear to be a success in that the drive resilvered and
the pool is listed as online.  Copying advice in this thread
http://forums.freebsd.org/showthread.php?t=8920page=3 I tried:

[r...@frodo ~]# zdb -l /dev/ad4

LABEL 0

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
type='disk'
id=0
guid=8898281456854820018
path='/dev/label/disk1'
whole_disk=0
DTL=122
children[1]
type='disk'
id=1
guid=1353516608832566
path='/dev/label/disk2'
whole_disk=0
DTL=126
children[2]
type='disk'
id=2
guid=2985688821708093695
path='/dev/label/disk3'
whole_disk=0
DTL=125
children[3]
type='disk'
id=3
guid=16498259053924061255
path='/dev/label/disk4'
whole_disk=0
DTL=124

LABEL 1

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
type='disk'
id=0
guid=8898281456854820018
path='/dev/label/disk1'
whole_disk=0
DTL=122
children[1]
type='disk'
id=1
guid=1353516608832566
path='/dev/label/disk2'
whole_disk=0
DTL=126
children[2]
type='disk'
id=2
guid=2985688821708093695
path='/dev/label/disk3'
whole_disk=0
DTL=125
children[3]
type='disk'
id=3
guid=16498259053924061255
path='/dev/label/disk4'
whole_disk=0
DTL=124

LABEL 2

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
 

Re: Accessing Computer

2010-01-08 Thread Matthew Seaman

Carmel wrote:

On Fri, 8 Jan 2010 08:12:28 -0500 Bill Moran wmo...@potentialtech.com 
articulated:


In response to Carmel carmel...@hotmail.com:


Assume three computers.

Computer 1 runs Windows with Putty installed
Computer 2  3 run FreeBSD

Computer 1 runs Putty and creates a key that is installed on computer 2.
Computer 2 has a key that is installed on computer 3.

If someone were to use computer 1 via Putty to access computer 2, would
they then be able to access computer 3? If so, how could I prevent it
from happening?

You could prevent ssh connections from 2 - 3 on port 22 via firewall.


I  am not sure if I am following you correctly. I frequently access
computer 3 from computer 2. If I block port 22 I will have to use
another on, correct? If I do enable another one, what is to prevent a
user on computer 1 from accessing computer 2 and then on to computer 3?

What I want to accomplish is making it impossible to access computer 3
from other than computer 2 and then only if computer two is not being
used as a slave from computer 1, or any other computer for that matter.


In order to do this, you'ld have to have a private key stored on Computer 2.

Unfortunately, if you or anyone authorised to use that key pair logs into
Computer 2 they can then use that key to ssh into Computer 3 irrespective
of whether they logged in over the network, or on Computer 2's console.


Probably what I want cannot be implemented; however, I thought I would
ask anyway.


I don't think it can.  But the big 'if' in my statement above is 'authorized
to use the private key' -- or in other words they know the passphrase there.
Just don't tell the user from Computer 1 the passphrase to the key on Computer
2 and you will achieve the desired effect.

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


Fwd: Booting from ZFS raidz

2010-01-08 Thread Anselm Strauss
Sorry, forgot the list ...

-- Forwarded message --
From: Anselm Strauss amsiba...@gmail.com
Date: Fri, Jan 8, 2010 at 4:50 PM
Subject: Re: Booting from ZFS raidz
To: Sergiy Suprun sergiy.sup...@gmail.com


I've done some experiments with the 8.0 stable branch and the head branch
from SVN. I just recompiled /boot/loader but didn't have any luck. The
version from the stable branch gives me the exact same error, the head
version fails with a new error. Doesn't seem this is really ready at the
moment. I think I'll go with a separate mirror pool for now.

Anselm


On Wed, Jan 6, 2010 at 9:43 PM, Sergiy Suprun sergiy.sup...@gmail.comwrote:

 Hi.
 Some time ago I follow instruction from this wiki
 http://wiki.freebsd.org/RootOnZFS and I had a problem like yours.
 After some experiments I build loader from CURRENT, and boot fine from
 raidz2 zpool. I don't know, may be now this code avialable in 8-STABLE.

 On Wed, Jan 6, 2010 at 20:25, Anselm Strauss amsiba...@gmail.com wrote:

 Hi,

 I'm experimenting with a ZFS only system and booting from it in
 VirtualBox. Thanks to various mails and forum posts from the net I have a
 working scenario with booting from a ZFS mirror. However, I can't get the
 thing to work with raidz with the exactly same setup, except that the pool
 is now raidz instead of mirror and there is one more disk. I feel sure I
 have all the stuff with partitioning, boot loader installation, etc. right.
 I tested this with version 8.0-RELEASE on 64bit.

 Now, before I go into detailed explaining, is raidz really supported? I
 always get the following error after it says FreeBSD/i386 bootstrap loader,
 Revision 1.1:

 ZFS: i/o error - all block copies unavailable
 ZFS: can't read MOS object directory
 (repeats a lot)
 Can't find root filesystem - giving up
 can't load 'kernel'

 I think the MOS message comes from zfs_mount_root() in
 /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when /boot/loader
 has been loaded and now wants to load the kernel into memory. After that
 error I'm in the loader prompt. When I try to load any file I always get the
 same error as above.

 Anyone any ideas?

 Thanks,
 Anselm___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


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


Re: Booting from ZFS raidz

2010-01-08 Thread krad
2010/1/8 Anselm Strauss amsiba...@gmail.com

 Sorry, forgot the list ...

 -- Forwarded message --
 From: Anselm Strauss amsiba...@gmail.com
 Date: Fri, Jan 8, 2010 at 4:50 PM
 Subject: Re: Booting from ZFS raidz
 To: Sergiy Suprun sergiy.sup...@gmail.com


 I've done some experiments with the 8.0 stable branch and the head branch
 from SVN. I just recompiled /boot/loader but didn't have any luck. The
 version from the stable branch gives me the exact same error, the head
 version fails with a new error. Doesn't seem this is really ready at the
 moment. I think I'll go with a separate mirror pool for now.

 Anselm


 On Wed, Jan 6, 2010 at 9:43 PM, Sergiy Suprun sergiy.sup...@gmail.com
 wrote:

  Hi.
  Some time ago I follow instruction from this wiki
  http://wiki.freebsd.org/RootOnZFS and I had a problem like yours.
  After some experiments I build loader from CURRENT, and boot fine from
  raidz2 zpool. I don't know, may be now this code avialable in 8-STABLE.
 
  On Wed, Jan 6, 2010 at 20:25, Anselm Strauss amsiba...@gmail.com
 wrote:
 
  Hi,
 
  I'm experimenting with a ZFS only system and booting from it in
  VirtualBox. Thanks to various mails and forum posts from the net I have
 a
  working scenario with booting from a ZFS mirror. However, I can't get
 the
  thing to work with raidz with the exactly same setup, except that the
 pool
  is now raidz instead of mirror and there is one more disk. I feel sure I
  have all the stuff with partitioning, boot loader installation, etc.
 right.
  I tested this with version 8.0-RELEASE on 64bit.
 
  Now, before I go into detailed explaining, is raidz really supported? I
  always get the following error after it says FreeBSD/i386 bootstrap
 loader,
  Revision 1.1:
 
  ZFS: i/o error - all block copies unavailable
  ZFS: can't read MOS object directory
  (repeats a lot)
  Can't find root filesystem - giving up
  can't load 'kernel'
 
  I think the MOS message comes from zfs_mount_root() in
  /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when
 /boot/loader
  has been loaded and now wants to load the kernel into memory. After that
  error I'm in the loader prompt. When I try to load any file I always get
 the
  same error as above.
 
  Anyone any ideas?
 
  Thanks,
  Anselm___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


you didnt export the pool at any point did you without reimporting it and
copying the zpool.cache?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accessing Computer

2010-01-08 Thread Matthew Seaman

Carmel wrote:

On Fri, 08 Jan 2010 10:13:52 -0500 Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org articulated:


Carmel carmel...@hotmail.com writes:


On Fri, 8 Jan 2010 14:58:23 +0100 Pieter de Goeje pie...@service2media.com 
articulated:

You might want to take a look at ssh-agent. I think PuTTY has an equivalent. 
It lets you do remote logins without putting your key(s) everywhere. I've not 
yet tried this myself, but I plan on testing it sometime.

I use agent.  All that agent does is cache your password so you do not
have to re-enter it each time you make a connection.
The agent can be forwarded with the connection.  
In your case, it would remove the need for a second key on the second machine.


I was not aware of that. I will have to read up on how to accomplish it.


You just put the public key from Computer 1 in ~/.ssh/authorized_keys on
both the machines (Computer 2, Computer 3) where you want access.  You'll
have to use 'ssh-keygen -i -f filename'  to convert the pubkey from the SSH2 
format Putty uses to the OpenSSH format FreeBSD uses, and you need to be 
careful to make the authorized_keys file writable only by the account UID.  You 
can prepend the line in the authorized_keys files with from=hostname to only 
permit access from a specific host if you like.  See the section 
'AUTHORIZED_KEYS FILE FORMAT' in sshd(8) for details.  You don't need to

install any private keys on Computer 2 or Computer 3.

Then when you load the key into the agent, be sure and check the 'Forward
the Agent' tickbox.   Similarly, when you connect from computer 2 to computer
3 just add '-A' to the ssh command line, as in: 'ssh -A computer3' -- this 
achieves the same agent forwarding under OpenSSH.  Computer 3 will ask

computer 2 for authentication, and computer 2 will relay this request back to
computer 1 where there is access to your private key.  You can hop through a
large number of machines this way, and so long as you keep forwarding the agent
it should all work.

Cheers,

Matthew

Note that pageant, or ssh-agent (which is the FreeBSD equivalent) doesn't 
cache the passphrase.  It stores a decrypted copy of your private key in 
memory.  Don't leave the agent running on an unattended machine that anyone 
else can access.


--
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: rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman




no just avoid using ${name} in the command. 


name is just a label used for creating unique variable names you can
use in rc.conf, it doesn't have to match any binary.
___
  

Thanks we're getting closer but some thing's still hinky!

rd1# /usr/local/etc/rc.d/xmms2d stop
/usr/local/etc/rc.d/xmms2d: WARNING: cannot read shebang line from 
/usr/local/bin/xmms2d-launcher

xmms2d not running?

This is the latest incarnation of the script:

#!/bin/sh

# PROVIDE:xmms2d

#xmms2d_enable=YES

. /etc/rc.subr

name=xmms2d
rcvar=`set_rcvar`
command=/usr/local/bin/xmms2d-launcher -u kaya

load_rc_config $name
run_rc_command $1



I gather I goofed up one part but which I cannot say!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Replacing disks in a ZFS pool

2010-01-08 Thread Steve Bertrand
krad wrote:

 the idea of using this type of label instead of the disk names
 themselves.

 I personally haven't run into any bad problems using the full device, but
 I suppose it could be a problem. (Side note - geom should learn how to
 parse zfs labels so it could create something like /dev/zfs/uuid for
 device nodes instead of using other trickery)

 How should I proceed? I'm assuming something like this:

 - add the new 1.5TB drives into the existing, running system
 - GPT label them
 - use 'zpool replace' to replace one drive at a time, allowing the pool
 to rebuild after each drive is replaced
 - once all four drives are complete, shut down the system, remove the
 four original drives, and connect the four new ones where the old ones
 were

 If you have enough ports to bring all eight drives online at once, I would
 recommend using 'zfs send' rather than the replacement. That way you'll
 get something like a burn-in on your new drives, and I believe it will
 probably be faster than the replacement process. Even on an active system,
 you can use a couple of incremental snapshots and reduce the downtime to a
 bare minimum.


 Surely it would be better to attach the drives either individually or as a
 matching vdev (assuming they can all run at once), then break the mirror
 after its resilvered.  Far less work and far less liekly to miss something.
 
 What I have done with my system is label the drives up with a coloured
 sticker then create a glabel for the device. I then add the glabels to the
 zpool. Makes it very easy to identify the drives.

Ok. Unfortunately, the box only has four SATA ports.

Can I:

- shut down
- replace a single existing drive with a new one (breaking the RAID)
- boot back up
- gpt label the new disk
- import the new gpt labelled disk
- rebuild array
- rinse, repeat three more times

If so, is there anything I should do prior to the initial drive
replacement, or will simulating the drive failure be ok?

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


Re: Accessing Computer

2010-01-08 Thread Carmel
On Fri, 08 Jan 2010 16:13:34 + Matthew Seaman 
m.sea...@infracaninophile.co.uk articulated:

 You just put the public key from Computer 1 in ~/.ssh/authorized_keys on
 both the machines (Computer 2, Computer 3) where you want access.  You'll
 have to use 'ssh-keygen -i -f filename'  to convert the pubkey from the SSH2 
 format Putty uses to the OpenSSH format FreeBSD uses, and you need to be 
 careful to make the authorized_keys file writable only by the account UID.  
 You 
 can prepend the line in the authorized_keys files with from=hostname to 
 only 
 permit access from a specific host if you like.  See the section 
 'AUTHORIZED_KEYS FILE FORMAT' in sshd(8) for details.  You don't need to
 install any private keys on Computer 2 or Computer 3.
 
 Then when you load the key into the agent, be sure and check the 'Forward
 the Agent' tickbox.   Similarly, when you connect from computer 2 to computer
 3 just add '-A' to the ssh command line, as in: 'ssh -A computer3' -- this 
 achieves the same agent forwarding under OpenSSH.  Computer 3 will ask
 computer 2 for authentication, and computer 2 will relay this request back to
 computer 1 where there is access to your private key.  You can hop through a
 large number of machines this way, and so long as you keep forwarding the 
 agent
 it should all work.

Thank you very much. I had no idea that was possible.

-- 
Carmel
carmel...@hotmail.com

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


Re: Booting from ZFS raidz

2010-01-08 Thread Anselm Strauss
On Jan 8, 2010, at 17:12 , krad wrote:

 2010/1/8 Anselm Strauss amsiba...@gmail.com
 Sorry, forgot the list ...
 
 -- Forwarded message --
 From: Anselm Strauss amsiba...@gmail.com
 Date: Fri, Jan 8, 2010 at 4:50 PM
 Subject: Re: Booting from ZFS raidz
 To: Sergiy Suprun sergiy.sup...@gmail.com
 
 
 I've done some experiments with the 8.0 stable branch and the head branch
 from SVN. I just recompiled /boot/loader but didn't have any luck. The
 version from the stable branch gives me the exact same error, the head
 version fails with a new error. Doesn't seem this is really ready at the
 moment. I think I'll go with a separate mirror pool for now.
 
 Anselm
 
 
 On Wed, Jan 6, 2010 at 9:43 PM, Sergiy Suprun sergiy.sup...@gmail.comwrote:
 
  Hi.
  Some time ago I follow instruction from this wiki
  http://wiki.freebsd.org/RootOnZFS and I had a problem like yours.
  After some experiments I build loader from CURRENT, and boot fine from
  raidz2 zpool. I don't know, may be now this code avialable in 8-STABLE.
 
  On Wed, Jan 6, 2010 at 20:25, Anselm Strauss amsiba...@gmail.com wrote:
 
  Hi,
 
  I'm experimenting with a ZFS only system and booting from it in
  VirtualBox. Thanks to various mails and forum posts from the net I have a
  working scenario with booting from a ZFS mirror. However, I can't get the
  thing to work with raidz with the exactly same setup, except that the pool
  is now raidz instead of mirror and there is one more disk. I feel sure I
  have all the stuff with partitioning, boot loader installation, etc. right.
  I tested this with version 8.0-RELEASE on 64bit.
 
  Now, before I go into detailed explaining, is raidz really supported? I
  always get the following error after it says FreeBSD/i386 bootstrap 
  loader,
  Revision 1.1:
 
  ZFS: i/o error - all block copies unavailable
  ZFS: can't read MOS object directory
  (repeats a lot)
  Can't find root filesystem - giving up
  can't load 'kernel'
 
  I think the MOS message comes from zfs_mount_root() in
  /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when 
  /boot/loader
  has been loaded and now wants to load the kernel into memory. After that
  error I'm in the loader prompt. When I try to load any file I always get 
  the
  same error as above.
 
  Anyone any ideas?
 
  Thanks,
  Anselm___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 you didnt export the pool at any point did you without reimporting it and 
 copying the zpool.cache?

I created /boot/zfs, exported the pool, imported again, copied 
/boot/zfs/zpool.cache to /zroot/boot/zfs, unmounted /zroot and then set the 
mountpoint for zroot to legacy. After the loader lists 3 disk drives I'm now 
getting the error:

FATAL: int13_harddisk: function 42. Can't use 64bits lba

Then, booting stops completely, no command prompt follows. This is with the SVN 
head branch.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Replacing disks in a ZFS pool

2010-01-08 Thread Steve Bertrand
Steve Bertrand wrote:
 krad wrote:
 
 the idea of using this type of label instead of the disk names
 themselves.

 I personally haven't run into any bad problems using the full device, but
 I suppose it could be a problem. (Side note - geom should learn how to
 parse zfs labels so it could create something like /dev/zfs/uuid for
 device nodes instead of using other trickery)

 How should I proceed? I'm assuming something like this:

 - add the new 1.5TB drives into the existing, running system
 - GPT label them
 - use 'zpool replace' to replace one drive at a time, allowing the pool
 to rebuild after each drive is replaced
 - once all four drives are complete, shut down the system, remove the
 four original drives, and connect the four new ones where the old ones
 were

 If you have enough ports to bring all eight drives online at once, I would
 recommend using 'zfs send' rather than the replacement. That way you'll
 get something like a burn-in on your new drives, and I believe it will
 probably be faster than the replacement process. Even on an active system,
 you can use a couple of incremental snapshots and reduce the downtime to a
 bare minimum.


 Surely it would be better to attach the drives either individually or as a
 matching vdev (assuming they can all run at once), then break the mirror
 after its resilvered.  Far less work and far less liekly to miss something.

 What I have done with my system is label the drives up with a coloured
 sticker then create a glabel for the device. I then add the glabels to the
 zpool. Makes it very easy to identify the drives.
 
 Ok. Unfortunately, the box only has four SATA ports.
 
 Can I:
 
 - shut down
 - replace a single existing drive with a new one (breaking the RAID)
 - boot back up
 - gpt label the new disk
 - import the new gpt labelled disk
 - rebuild array
 - rinse, repeat three more times
 

This seems to work ok:

# zpool offline storage ad6
# halt  replace disk, and start machine
# zpool online storage ad6
# zpool replace storage ad6

I don't know enough about gpt/gpart to be able to work that into the
mix. I would much prefer to have gpt labels as opposed to disk names,
but alas.

fwiw, can I label an entire disk (such as ad6) with gpt, without having
to install boot blocks etc?

I was hoping it would be as easy as:

# gpt create -f ad6
# gpt label -l disk1 ad6

...but it doesn't work.

Neither does:

# gpart create -s gpt ad6
# gpart add -t freebsd-zfs -l disk1 ad6

I'd like to do this so I don't have to manually specify a size to use. I
just want the system to Do The Right Thing, which in this case, would be
to just use the entire disk.

Steve




 If so, is there anything I should do prior to the initial drive
 replacement, or will simulating the drive failure be ok?
 
 Steve
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


Odd behavior with volume labels and gmirror

2010-01-08 Thread Ben Schumacher
Hey-

I haven't search the list, so this could be covered already, but I've
seen odd behavior with volume labels and gmirror.

First some background.

Here's my uname:

$ uname -a
FreeBSD filer.sats.internal 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #1:
Mon Dec 21 10:21:37 MST 2009
b...@filer.sats.internal:/usr/obj/data/FreeBSD/RELENG_8_0/src/sys/FILER
 i386

I have a 4-way gmirror:

$ gmirror status
       Name    Status  Components
 mirror/root  COMPLETE  ad6s1
                       ad12s1
                       ad14s1
                       ad18s1

With multiple labeled slices:

$ tunefs -p /dev/mirror/roota
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 disabled
tunefs: gjournal: (-J)                                     disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)                                 root

$ tunefs -p /dev/mirror/rootf
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: gjournal: (-J)                                     disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)                                 usr

And used these in my /etc/fstab for mounting:

$ cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/rootb.eli   none            swap    sw              0       0
/dev/da0b               none            swap    sw              1       0
/dev/ufs/root       /               ufs     rw              1       1
/dev/ufs/tmp       /tmp            ufs     rw,nosuid       2       2
/dev/ufs/usr       /usr            ufs     rw              2       2
/dev/ufr/var       /var            ufs     rw              2       2

The issue I experienced last night is that after a power outage, the
system detected the labelled filesystems names from some of the GEOM
providers of the mirror -- specifically they appear to all be mapped
to /dev/ad18s1[adef] and the machine never managed to fully boot
without some manual intervention to change /etc/fstab back to using
the mirror devices instead of the labels.

Insult to injury, I *may* have a drive going bad (ad18), but given
what was happening with the mounting, I'm not really sure. I used
recoverdisk to dup that disk to the others and it seemed to work fine,
but during the label problem I was getting some READ_DMA errors trying
to rebuild the mirror. I guess my question is, is using labels on
mirrors unreliable since the labels write through and apparently can
get detected from the devices before the mirror is loaded? Or is this
a bug that I should file a pr for?

Thanks for your attention.

Cheers,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

anyone using ZFS on a memstick?

2010-01-08 Thread Ishmael F.E.
Hi list

I'd like to know your opinion on formating a portable
device with this file system.

I have an external 120G HD, and I'd like to use an
ENCRYPTED ZFS partition to save files and copy them
between different machines (my laptop, at work, etc).

¿Is easy to mount ZFS as it is with ntfs or ext3?

Regards


-- 
[]
[En muchos lugares, tomar fotos es visto como]
[una costumbre vil y reprensible  ]
[]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Virtualbox and bridged interface.

2010-01-08 Thread Juergen Lock
In article 20100102005808.12d46...@baby-jane.lamaiziere.net you write:
Le Fri, 1 Jan 2010 17:36:30 -0600,
Adam Vande More amvandem...@gmail.com a =E9crit :

  Is there someone able to make VirtualBox working with a bridged
  interface?
 
  I've got :
  My gateway/access point on 192.168.1.1/24
  The host on 192.168.1.20/24 via wifi (wlan0)
  The guest on 192.168.1.25/24 bridged with wlan0
...

 Bridged networking doesn't work on wireless interfaces.

Ah ok :(

I would be happy to know why, briefly. Is it a limitation in the
wireless connection or a limitation in the operating system (FreeBSD)?

The problem is caused by the fact that hosts on wifi can usually only
use a single mac address, and while the vbox code does contain a
`shared mac' feature thats supposed to work around this problem this
feature hasn't been ported for FreeBSD hosts yet.

I've used some bridged guests on Mac OS X and vmware fusion but I don't
remember if I used the ethernet or the wireless interface.

To J.D.Bronson: no mac authentication here, thanks for the shot in the
dark anyway.

So I will try to setup a vpn between the host and the guest.

 There is another workaround tho that you can try involving a tap
interface, routing, proxy arp, and a patch to vbox to enable direct
tap networking,
http://people.freebsd.org/~nox/vbox/patch-tapdirect.txt
more details including a config example in this post:

http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007260.html
(I patched vbox 3.1.2 thats not commtted to ports yet, it's possible
the patch doesn't apply to the older version in ports.  The latest vbox
3.1.2 Call for testing is here:

http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007241.html
The patch can go in that port's files/ dir.)

 HTH,
Juergen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda blues

2010-01-08 Thread Sandra Kachelmann
On Mon, Jan 4, 2010 at 5:03 PM, Bob Johnson fbsdli...@gmail.com wrote:
 It is likely that whomever is able to help you will need additional
 information. You can get this information by rebooting your system and
 selecting Boot FreeBSD with verbose logging from the boot menu.
 After it boots, use grep hdac /var/run/dmesg.boot to extract the
 detailed information about your sound system configuration and post it
 back to freebsd-questions.

 If I have time I will try to look through the info and come up with a
 suggestion, but I must warn you in advance that I am unlikely to find
 the time in the next few days, so post the info to the list to give
 others a chance to look at it.

Hi Bob

Here is the information of a verbose boot. That's the output when i
have the following lines in my /boot/device.hints file:

hint.hdac.0.cad0.nid22.config=as=1 seq=15
hint.hdac.0.cad0.nid24.config=as=3
hint.hdac.0.cad0.nid26.config=as=1
hint.hdac.0.cad0.nid29.config=as=2

Let me know if you need the verbose output with a virgin
/boot/device.hints file - I don't think it would make a difference in
this case.

Thanks in advance.

Sandra


 - Bob


 On 1/4/10, Sandra Kachelmann s.kachelm...@googlemail.com wrote:
 I am trying to get my HDA based soundcard work on both output jacks
 (back by the card and on the jack on top of the tower).

 With earlier FreeBSD versions I was able to have my speakers plugged in
 on the back of my soundcard and whenever I would plug in the headphones
 on the top of the tower the speakers would mute and the sound would
 play on the headphones.

 Now this doesn't work anymore. The speakers work but plugging in the
 top tower jack won't do anything.

 Looking at man snd_hda I tried all the examples (adding stuff
 to /boot/device.hints). None of the examples did what I wanted.

 By googling a little bit I found a dude who had the same problem so I
 simply copied the device.hints lines that solved his problem.

 The following lines make my headphones work:

 hint.hdac.0.cad0.nid22.config=as=1 seq=15
 hint.hdac.0.cad0.nid24.config=as=3
 hint.hdac.0.cad0.nid26.config=as=1
 hint.hdac.0.cad0.nid29.config=as=2

 However, after that my speakers are mute, all the time. If anyone could
 help me restoring the old snd_hda behaviour I would be very thankful
 since I don't quite understand what the snd_hda manpage is trying to
 tell me (sorry, I really tried...).

 Here are the information I think might help:

 $ cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
 Installed devices: pcm0: HDA Realtek ALC883 PCM #0 Analog at cad 0
 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex
 default)

 Any help is gratefully apreciated.

 Sandra
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



 --
 -- Bob Johnson
   fbsdli...@gmail.com

hdac0: Intel 82801I High Definition Audio Controller mem 
0xf5ff8000-0xf5ffbfff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20091113_0138
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xf5ff8000
hdac0: attempting to allocate 1 MSI vectors (1 supported)
hdac0: using IRQ 256 for MSI
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC883
hdac0:  HDA Codec ID: 0x10ec0883
hdac0:Vendor: 0x10ec
hdac0:Device: 0x0883
hdac0:  Revision: 0x00
hdac0:  Stepping: 0x02
hdac0: PCI Subvendor: 0x829f1043
hdac0:  Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0: 
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0x4002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0:  nid 20 0x01014010 as  1 seq  0  Line-out  Jack jack  1 loc  1 color 
  Green misc 0
hdac0:  nid 21 0x01011012 as  1 seq  2  Line-out  Jack jack  1 loc  1 color 
  Black misc 0
hdac0:  nid 22 0x01016011 as  1 seq  1  Line-out  Jack jack  1 loc  1 color 
 Orange misc 0
hdac0: Patching pin config nid=22 0x01016011 - 0x0101601f
hdac0:  nid 23 0x01012014 as  1 seq  4  Line-out  Jack jack  1 loc  1 color 
   Grey misc 0
hdac0:  nid 24 0x01a19840 as  4 seq  0   Mic  Jack jack  1 loc  1 color 
   Pink misc 8
hdac0: Patching pin config nid=24 0x01a19840 - 0x01a19830
hdac0:  nid 25 0x02a19c50 as  5 seq  0   Mic  Jack jack  1 loc  2 color 
   Pink misc 12
hdac0:  nid 26 0x0181304f as  4 seq 15   Line-in  Jack jack  1 loc  1 color 
   Blue misc 0
hdac0: Patching pin config nid=26 0x0181304f - 0x0181301f
hdac0:  nid 27 0x02214c20 as  2 seq  0Headphones  Jack jack  1 loc  2 color 
  Green misc 12
hdac0:  nid 28 0x593301f0 as 15 seq  0CD  None jack  3 loc 25 color 
Unknown misc 1
hdac0: Patching widget caps nid=29 0x0040 - 0x0070
hdac0:  nid 30 0x01441130 as  3 seq  0 SPDIF-out  Jack jack  4 loc  1 color 
  

Re: required apache22 modules

2010-01-08 Thread Chuck Swiger
Hi--

On Jan 7, 2010, at 8:55 AM, John Almberg wrote:
 I'm installing Apache22 on a new server and for once, I'd like to install 
 just the modules I need, instead of the default mess.
 
 I've been googling for this answer, but can't seem to find it: Are any apache 
 modules *required*? Or can I just disable them all and then add them in as I 
 need them?

In theory, none of the modules beyond Apache's core and a prefork or mpm worker 
module are required.  In practice, mod_cgi, mod_headers, mod_include, 
mod_log_config, mod_mime, mod_so are going to be needed for the webserver to be 
usable for normal purposes.

There is documentation here:

  http://httpd.apache.org/docs/2.2/mod/

Regards,
-- 
-Chuck

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


Re: Support for Asus MicroATX Boards

2010-01-08 Thread Uwe Laverenz

Am 08.01.2010 16:43, schrieb Anselm Strauss:


chips. I can't find real evidence on the supported hardware list whether the
following chipsets are really working with FreeBSD 8.0 or not. Maybe


I have an Asus M4A785TD-M EVO running with RELENG_8 and it works fine. 
There is/was a race condition in FreeBSD 7.2/8.0 that forces you to 
switch off the firewire device in the BIOS:


http://www.mail-archive.com/freebsd-questions@freebsd.org/msg221493.html

Uwe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrading Standing Systems from 6.3 to 8.0

2010-01-08 Thread Martin McCormick
Can one upgrade a standing system from 6.3 to 8.0?

We do have a few sacrificial systems to try the big
upgrade on,  but the actual systems are scattered through 3
towns over 200 miles. Not a one is just down the hall so it is
all going to have to be done remotely.

I am familiar with the process of pointing the
cvs-supfile to the target branch and then rebuilding the world.
This got us from 5.x to 6.3 with no real issues so how far can
one take this and not end up with a brick later?

The main thing that can happen which gives nightmares is
a situation in which the upgraded system comes up but has
insidious problems that don't bite until 03:00 on Sunday
morning. Imagine the OS isn't freeing inodes or some other
creeping menace that might not be obvious when your newly-built
system comes up awith a login prompt and seems ready for
business.

Thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading Standing Systems from 6.3 to 8.0

2010-01-08 Thread Bryant Eadon
Have you tried a test system with this configuration, then upgraded it to
7.x followed by the jump to 8.0?  Run this for a week in advance and see if
anything pops up, maybe even stress test it?

Bryant

On Jan 8, 2010 4:47 PM, Martin McCormick mar...@dc.cis.okstate.edu
wrote:

   Can one upgrade a standing system from 6.3 to 8.0?

   We do have a few sacrificial systems to try the big
upgrade on,  but the actual systems are scattered through 3
towns over 200 miles. Not a one is just down the hall so it is
all going to have to be done remotely.

   I am familiar with the process of pointing the
cvs-supfile to the target branch and then rebuilding the world.
This got us from 5.x to 6.3 with no real issues so how far can
one take this and not end up with a brick later?

   The main thing that can happen which gives nightmares is
a situation in which the upgraded system comes up but has
insidious problems that don't bite until 03:00 on Sunday
morning. Imagine the OS isn't freeing inodes or some other
creeping menace that might not be obvious when your newly-built
system comes up awith a login prompt and seems ready for
business.

   Thanks.

Martin McCormick WB5AGZ  Stillwater, OK
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Support for Asus MicroATX Boards

2010-01-08 Thread Chris Whitehouse

Uwe Laverenz wrote:

Am 08.01.2010 16:43, schrieb Anselm Strauss:

chips. I can't find real evidence on the supported hardware list 
whether the

following chipsets are really working with FreeBSD 8.0 or not. Maybe


I have an Asus M4A785TD-M EVO running with RELENG_8 and it works fine. 
There is/was a race condition in FreeBSD 7.2/8.0 that forces you to 
switch off the firewire device in the BIOS:


http://www.mail-archive.com/freebsd-questions@freebsd.org/msg221493.html

Uwe


8.0 generic kernel now has the offending driver sbp commented out so you 
can install without disabling firewire in the BIOS. You can manually 
kldload sbp once the system is up but not in loader.conf (at least for me).


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Clean PHP 5.2.12 Build Core Dumping

2010-01-08 Thread Don O'Neil
I'm trying to build a clean version of php 5.2.12 on my FreeBSD 6.1 box and
even with NO OPTIONS, php core dumps during the make test phase.

How do I go about tracking down what is causing this problem?

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


Clean PHP 5.2.12 Build Core Dumping

2010-01-08 Thread Don O'Neil
Ok... more info on the problem...

I started with a clean untarred archive, ad just ran ./configure, make, make
test I get a core dump.

After running gdb on the core dump I noticed it was the sqlite stuff that
was dumping, so I re-ran configure with --without-sqlite
--without-pdo-sqlite --with-mysql=/usr/local/mysql

Now the gdb shows this:

Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0  0x081d50a7 in sqlite3Select (pParse=0xbbc00080, p=0x0, eDest=164102200,
iParm=0, pParent=0x24, parentTab=139141440, pParentAgg=0x84c10d8,
aff=0x0)
at
/usr/local/directadmin/customapache/php-5.2.11/ext/pdo_sqlite/sqlite/src/sel
ect.c:3172
3172  for(j=0; jpGroupBy-nExpr; j++){


First off, the compile directory listed is wrong, don't know where it got
php-5.2.11 from, that's the last version I built and is installed on this
system. Maybe it's pulling that from the system php? 

Secondly, even though I've told it not to use sqlite, it still seems to be.

Any help here would be appreciated in moving forward. My whole reason for
needing to rebuild php is I need the pdo_mysql module instead of the
pdo_sqlite version.

Thanks!

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


sshfs, nfs, etc. on FreeBSD

2010-01-08 Thread Nerius Landys
I'm looking for a lightweight, secure, and non-intrusive file sharing
system for 2 servers in a data center.  For example I'd like to [as an
ordinary user] temporarily mount the home directory (/usr/home/) of
one server to a temporary mount point on the other server, and then,
assuming my user has sufficient read permissions, I'd like to run some
files in the home directories through a log file parser that I wrote.

Now I'm not a really big fan of NFS.  I've just heard about sshfs.  Is
this a recommended way to go?  If so, is there any official
documentation on how to get sshfs going on FreeBSD?  If there are some
better options than sshfs, what are they?  I don't really want to scp
copy files between the 2 servers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ISO image size -regarding

2010-01-08 Thread Knight Tiger
Hi,

I am trying to create a custom ISO image of FreeBSD 6.4. The only
difference between the release ISO and this custom image is a modified
driver (amdsmb.ko). I did not create the new driver. I believe it was
backported from a later release.

I understand that this is not a backport of the driver  but a hack but
the ISO size surprises me.

The steps I had followed (listed below) resulted in an ISO image of
around 1 GB while the original ISO image is around 600 MB. The new
image work boots fine but I am not sure why it is huge

Steps:

// mount the release ISO
# mdconfig -a -t vnode -f 6.4-RELEASE-i386-disc1.iso -u 0
# mount_cd9660 /dev/acd0 /mnt

# pwd
/usr/home/scott

# mkdir custom
# cd custom

// copy iso files to custom
# rsync  -a /mnt .

# scp sc...@remote:/boot/kernel/amdsmb.ko boot/kernel/.

// wrap up in a ISO
# cd ..
#mkisofs -R -b boot/cdboot -no-emul-boot -o custom.iso custom

The ISO file is created successfully but is huge. I mounted it in
VirtualBox and boots just fine. I was able to install the OS (although
I have not checked the functionality of amdsmb changes yet)

I looked up information on creating custom ISO images but they had all
involved rebuilding the kernel while I am not sure if I need to do the
same Any leads is appreciated.

Thanks
Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ISO image size -regarding

2010-01-08 Thread Jason

I am uncertain as to why the difference with the changes you had made,
and the size it returned, however I would suggest following the release 
engineering process for creating a custom release.


http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html

In doing this process, I am sure you find it is a much cleaner process,
and more close in size to what you may expect.

-jgh

On Fri, Jan 08, 2010 at 04:41:24PM -0800, Knight Tiger thus spake:

Hi,

I am trying to create a custom ISO image of FreeBSD 6.4. The only
difference between the release ISO and this custom image is a modified
driver (amdsmb.ko). I did not create the new driver. I believe it was
backported from a later release.

I understand that this is not a backport of the driver  but a hack but
the ISO size surprises me.

The steps I had followed (listed below) resulted in an ISO image of
around 1 GB while the original ISO image is around 600 MB. The new
image work boots fine but I am not sure why it is huge

Steps:

// mount the release ISO
# mdconfig -a -t vnode -f 6.4-RELEASE-i386-disc1.iso -u 0
# mount_cd9660 /dev/acd0 /mnt

# pwd
/usr/home/scott

# mkdir custom
# cd custom

// copy iso files to custom
# rsync  -a /mnt .

# scp sc...@remote:/boot/kernel/amdsmb.ko boot/kernel/.

// wrap up in a ISO
# cd ..
#mkisofs -R -b boot/cdboot -no-emul-boot -o custom.iso custom

The ISO file is created successfully but is huge. I mounted it in
VirtualBox and boots just fine. I was able to install the OS (although
I have not checked the functionality of amdsmb changes yet)

I looked up information on creating custom ISO images but they had all
involved rebuilding the kernel while I am not sure if I need to do the
same Any leads is appreciated.

Thanks
Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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


Re: sshfs, nfs, etc. on FreeBSD

2010-01-08 Thread Steve Bertrand
Nerius Landys wrote:
 I'm looking for a lightweight, secure, and non-intrusive file sharing
 system for 2 servers in a data center.  For example I'd like to [as an
 ordinary user] temporarily mount the home directory (/usr/home/) of
 one server to a temporary mount point on the other server, and then,
 assuming my user has sufficient read permissions, I'd like to run some
 files in the home directories through a log file parser that I wrote.
 
 Now I'm not a really big fan of NFS.  I've just heard about sshfs.  

Perhaps it would make it easier to understand if you stated *why* you
are not a fan of NFS...

 I don't really want to scp
 copy files between the 2 servers.

What is/would be your preferred method of transferring files? dragging
and dropping like in Windows, or will this be CLI-only access/usage?

iow, what 'style' of access are you looking for?

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


Re: sshfs, nfs, etc. on FreeBSD

2010-01-08 Thread Steve Bertrand
Steve Bertrand wrote:
 Nerius Landys wrote:
 I'm looking for a lightweight, secure, and non-intrusive file sharing
 system for 2 servers in a data center.  For example I'd like to [as an
 ordinary user] temporarily mount the home directory (/usr/home/) of
 one server to a temporary mount point on the other server, and then,
 assuming my user has sufficient read permissions, I'd like to run some
 files in the home directories through a log file parser that I wrote.

 Now I'm not a really big fan of NFS.  I've just heard about sshfs.  
 
 Perhaps it would make it easier to understand if you stated *why* you
 are not a fan of NFS...
 
 I don't really want to scp
 copy files between the 2 servers.
 
 What is/would be your preferred method of transferring files? dragging
 and dropping like in Windows, or will this be CLI-only access/usage?
 
 iow, what 'style' of access are you looking for?

ps.

fwiw, if your parser is the only reason for this over-the-network access
(ie. its a one-off thing), you could use that to your advantage and
write that into your application.

This is *trivially* easy if you are using Perl ;)

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


port-MESS with apache22

2010-01-08 Thread PJ
Upgraded to 8.0 without problem.
Reinstalling ports was tedious... but NP for most part.
Sommehow the installation of apache22 stumbled over some configuration
issues, I think
I found that apache was running ok, except...
php5 module was not correctly installed...
So, I'm trying to reinstall apache22 and php5 without much success.
Apache really screwed up and started an install into
/usr/local/etc/apache2...
Now how it got that is beyond me... when I saw it was doing that, I
deinstalled and then reinstalled... the reinstallation is lighting fast
(now, that's weird)... but no matter what I do, I cannot install the
php5 module correctly.
Apache continues to create a couple of directories:
/usr/local/etc/apache2
/usr/local/libexec/apache2
Otherwise, the apache22 directories seem to be correctly installed.
I delete the apache2 directories, but reinstall keeps popping them up
and the php5 installation keeps trying to use the apache2 directories.
There seems to be some sort of configuration loaded somewhere but I
can't find it.
Any suggestions?
Should I just wipe everything related to apache22 and then delete the
ports files for apache22 and reload them with cvsup-without-gui?
It seems to be such a big PITA.
Shame, as the upgrade went so well... even Flash player seems to be ok
 it was in trying to connect to my virtual host sites on the
localhost that I found the apache nonsense...
Thanks for any suggestions.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: port-MESS with apache22

2010-01-08 Thread PJ
Thought I'd better get more specific:
I rebooted, apache is running.
I deleted the apache2 directories --
but lo and behold, it is the php5 port that is stubborn and absolutely
insists on creating these directories.
What in Hades is going on?

===  Installing for php5-5.2.12
===   php5-5.2.12 depends on file: /usr/local/sbin/apxs - found
===   php5-5.2.12 depends on executable: pkg-config - found
===   php5-5.2.12 depends on shared library: xml2.5 - found
===   Generating temporary packing list
===  Checking if lang/php5 already installed
Installing PHP SAPI module:   apache2handler
/usr/local/share/apr/build-1/libtool --mode=install cp libphp5.la
/usr/local/libexec/apache2/
libtool: install: cp .libs/libphp5.so /usr/local/libexec/apache2/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/local/libexec/apache2/libphp5.la
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.2.12.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: port-MESS with apache22

2010-01-08 Thread Michael Powell
PJ wrote:

 Thought I'd better get more specific:
 I rebooted, apache is running.
 I deleted the apache2 directories --
 but lo and behold, it is the php5 port that is stubborn and absolutely
 insists on creating these directories.
 What in Hades is going on?
[snip]

Don't know if this pertains to or will fix the PHP building problem, but you 
might try putting USE_APACHE=common22 in /etc/make.conf. 

There has been change(s) the build process and I have as of yet not taken 
the time to research them enough to be sure I understand. You can look at: 
/usr/ports/Mk/bsd.apache.mk for hints. Note the old styles of WITH_APACHE 
and the like is deprecated.

Quote:
# Note: Setting USE_APACHE to yes is deprecated. It will set 
# APACHE_PORT to www/apache13 and if WITH_APACHE2 (deprecated too)
# is defined, APACHE_PORT will be set to www/apache20
#

-Mike



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


vt100 Strangeness

2010-01-08 Thread Martin McCormick
I have observed the following behavior for several
years. When in command mode in vi, the h and l keys move the
cursor left and right. If you are computer user that happens to
be blind and using a talking console, the l lets you hear each
character as you go over it. In freebsd, you do hear the letters
and  several punctuation marks, but one does not hear the digits
for some reason. If you were running the cursor over
139.78.100.1, for example, you hear.  .   . . The numbers
are there and you hear them if you output the screen, but the OS
doesn't repaint them digits. Why?

I used the screen utility for many years and this masked
the problem but I have recently changed to a version of Debian
Linux that has speech generation built in to the console. Since
there 6 virtual consoles so screen is not as necessary but it
is still useful at times.

When not using screen, the silent digits are kind of
weird when stepping across them and it can even make it harder
to know when to stop if correcting them.

I have not seen this behavior in other Unix forms. It is
not a show stopper, but I would like to have some idea what to
change to hear all printable characters.

This may also explain why the bell character goes silent
in vi. You should hear it when hitting Escape in Command mode
and when the cursor hits the end of the line, but it is silent
in vi. You do hear it if the shell emits the Bell. You also hear
digits as you type them in. It's just if you move the cursor
over them that you don't hear the digits.

Thanks for any ideas. This is a strange one, I admit.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading Standing Systems from 6.3 to 8.0

2010-01-08 Thread Martin McCormick
Bryant Eadon writes:
 Have you tried a test system with this configuration, then upgraded it to
 7.x followed by the jump to 8.0?  Run this for a week in advance and see 

That sounds like an excellent idea. I was afraid I might
have to increment through all the 6.x branches which would take
a while and then another to go through all the 7.x's. Thanks.

Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrading Standing Systems from 6.3 to 8.0

2010-01-08 Thread Robert Huff

Martin McCormick writes:

   Can one upgrade a standing system from 6.3 to 8.0?
  
   We do have a few sacrificial systems to try the big upgrade on,
  but the actual systems are scattered through 3 towns over 200
  miles. Not a one is just down the hall so it is all going to have
  to be done remotely.

Is it possible to have someone swap the hard disks of those
machines?
Because not only are you going to have to upgrade the OS twice,
you're going to have to re-install all the ports.  (OK, you may not
_have_ to reinstall - compatibility libraries exist - but it is
clearly the path of greatest reliability.)
It's just as easy to start with a clean installation, which has
other benefits as well.


Robert Huff


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


Why scim language prompt isn't shown from QT applications?

2010-01-08 Thread Yuri

I have these scim-related ports installed:
linux-f10-scim-gtk-1.4.7 Smart Common Input Method platform, gtk module, 
(Linux Fedo
linux-f10-scim-libs-1.4.7 Smart Common Input Method libraries (Linux 
Fedora 10)
linux-scim-gtk-fc4-1.4.4_2 Smart Common Input Method platform, gtk 
module, Linux binar

scim-1.4.7_5Smart Common Input Method platform
scim-bridge-0.4.15_1 Scim-bridge agent (server)
scim-bridge-qt4-0.4.15 Qt4 client for Scim-bridge
scim-input-pad-0.1.2_1 SCIM add-on to input various symbols with 
customisable on-s

scim-table-imengine-0.5.7_4 SCIM table based input method engine
zh-scim-chewing-0.3.3 SCIM chewing Chinese input methods
zh-scim-pinyin-0.5.91_6 SCIM Chinese Smart Pinyin input method
zh-scim-tables-0.5.7_3 SCIM table based Chinese input methods


I have these scim-related processes running:
1589  ??  Ss 0:00.29 /usr/local/lib/scim-1.0/scim-launcher -d -c 
simple -e all -f socket --no-stay

1592  ??  Is 0:00.00 /usr/local/lib/scim-1.0/scim-helper-manager
1593  ??  Ss 0:02.37 /usr/local/lib/scim-1.0/scim-panel-gtk 
--display :0.0 -c socket -d --no-stay


Yet, scim prompt only works from GTK apps windows, not from QT apps like 
opera and konqueror.


Do you have scim working from QT apps? Do I miss some ports? Or some 
processes aren't running?


Thanks,
Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Tuning for very little RAM

2010-01-08 Thread Ian Smith
In freebsd-questions Digest, Vol 292, Issue 8, Message: 13
On Wed, 6 Jan 2010 15:52:59 + Bruce Cran br...@cran.org.uk wrote:
  On Tue, 05 Jan 2010 20:03:45 +1000
  Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:
  
   Its been a while- work's has been keeping me very busy for months now.
   
   I have revived an old laptop which has very little RAM, and it is
   absolutely hammering the swap.
   
   I'm trying to set it up as a demo for some skeptics with no money, so
   I need email, internet (with plugins), openoffice, acrobat, and wine.

[Rock, mate, you may be on a hiding to nothing trying to run X apps in 
100MB (128MB fitted I guess?) while setting yourself up as the advocate 
of an OS they're going to think is s slow .. but that's just me :-]

With a lightweight wm it may be better, but you're talking about some 
big apps.  OTOH, 256MB is plenty for that sort of usage; any chance of 
adding more RAM to it?  Even another 32MB will really help ..

   Aside from all that though, for the academics of it how can I help
   this situation? The laptop has around 100MB RAM, with 16k free, and
   has a new install of FreeBSD 8.0.

I just manage with 160MB on a old Celeron 300 laptop whose prime mission 
is pppoe, firewall, nat and routing for the LAN, half a dozen obscure 
websites, DNS, mail and such .. plus until now, KDE 3.5 on Xorg 6.9 on 
5.5-STABLE.  Just!  That with 30-40% swap (of 384MB) in use, but mostly 
static, eg 6 more Konsoles I'm not using just now, 5x minimised kwrites 
for sources I may edit a few times a week, stuff like that stashed away 
in swap, using very little resident memory, ie not as bad as it looks :)

  You can save a bit of memory by building a custom kernel. First, remove
  any options you don't need such as INET6, NFS, AUDIT etc. Then, you can
  replace device ata with more specific drivers, and device mii with
  specific PHY drivers for your NIC. On a 128MB box I have that's running
  8-STABLE my kernel is just 4.1MB.

Indeed.  That's no bigger than my trimmed 5.5 kernel, good to hear.

  You should also be able to build Xorg so it'll use less memory - for
  example by not requiring hald but getting it to read the
  configuration from xorg.conf instead.

Again talking on the margins of usability, I notice that the Xorg with 
7.0-RELEASE (X server 1.4.0) only used similar memory to 6.9 (30-50M, 
say 20M resident), but on 8.0-RELEASE (X server 1.6.1) top shows SIZE 
126M RES 115M .. on a 256MB laptop, eek!  It's a HAL-free config, though 
installed from packages so not at all optimised.  Will try that later, 
while I'm hunting for 1G RAM at a decent price for it (Thinkpad T23)

  You can also tell FreeBSD to agressively swap idle processes out by
  setting vm.swap_idle_enabled to 1.

Thanks for this, Bruce; I hadn't come across it before, or missed it.

This has had an amazing and so far apparently only beneficial effect on 
the 5.5 box.  At 127d uptime, I crossed my fingers and set that, to see 
swap drop from its then steady 46% (~15 mozilla tabs open, past time to 
restart the leaky thing anyway :) to below 40% in a matter of minutes.

A little extra (async) swap in/out activity for sure, but contrary to 
expectations it's noticeably more responsive to things like switching 
desktops/windows on a slow machine already under swap stress, and even 
somehow(?) has increased idle CPU in top by about 3% to over 90%!

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Clean PHP 5.2.12 Build Core Dumping

2010-01-08 Thread Polytropon
On Fri, 8 Jan 2010 16:18:11 -0800, Don O'Neil li...@lizardhill.com wrote:
 Ok... more info on the problem...
 
 I started with a clean untarred archive, ad just ran ./configure, make, make
 test I get a core dump.

Maybe this is not a FreeBSD source?

I'd suggest using the FreeBSD ports system for installation from
source (i. e. tar archives). PHP 5.2.12 seems to be availabe.
You can use

# cd /usr/ports/lang/php5
# make
# make install

Make sure - not make sure :-) - that your ports tree is up to
date in order to recieve the latest version.



 After running gdb on the core dump I noticed it was the sqlite stuff that
 was dumping, so I re-ran configure with --without-sqlite
 --without-pdo-sqlite --with-mysql=/usr/local/mysql

Check the available options that can be set for the php5 port
at compile time, either via make config, or enter them
manually (e. g. in Makefile.local - I'm not sure if this
mechanism is still supported).



 Now the gdb shows this:
 
 Core was generated by `php'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x081d50a7 in sqlite3Select (pParse=0xbbc00080, p=0x0, eDest=164102200,
 iParm=0, pParent=0x24, parentTab=139141440, pParentAgg=0x84c10d8,
 aff=0x0)
 at
 /usr/local/directadmin/customapache/php-5.2.11/ext/pdo_sqlite/sqlite/src/sel
 ect.c:3172
 3172  for(j=0; jpGroupBy-nExpr; j++){
 
 
 First off, the compile directory listed is wrong, don't know where it got
 php-5.2.11 from, that's the last version I built and is installed on this
 system. Maybe it's pulling that from the system php? 

Yes, correct.



 Secondly, even though I've told it not to use sqlite, it still seems to be.

It is - by 5.2.11 (or by directadmin). Seems that you've not
installed 5.2.12 with your custom options yet.



 Any help here would be appreciated in moving forward. My whole reason for
 needing to rebuild php is I need the pdo_mysql module instead of the
 pdo_sqlite version.

As I said, I would suggest to try to achieve this through
the ports system. It's easier than fighting ./configure. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mySQL 5.4 server Post installation SNAFUs

2010-01-08 Thread jaymax

Installed mysql-server54 from the ports

7.2-RELEASE FreeBSD 7.2-RELEASE #0: O/S running Apache/2.2.11 (FreeBSD)
installed PHP 5.2.12

configure options used ==
make pager=more prompt=mysql54 socket=/usr/tmp/mysql.sock
localstatedir=/disk02/db/mysql/DATA with_linuxthreads=yes with_ssl=yes
install clean 


Final output == { ..?[n] ; problems, questions and answers sought }
ax# /usr/local/bin/mysql_install_db
Installing MySQL system tables...
091230 13:35:02 [ERROR] The update log is no longer supported by MySQL in
version 5.0 and above. It is replaced by the binary log.
091230 13:35:02 [Note] Falcon: unable to open system data files.
091230 13:35:02 [Note] Falcon: creating new system data files.
091230 13:35:03 [Warning] Forcing shutdown of 2 plugins
OK
Filling help tables...
091230 13:35:04 [ERROR] The update log is no longer supported by MySQL in
version 5.0 and above. It is replaced by the binary log.
091230 13:35:05 [Warning] Forcing shutdown of 2 plugins
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system  ...?[i]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h ax.lall.com password 'new-password'

Alternatively you can run:
/usr/local/bin/mysql_secure_installation...?[ii]

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe   ...?[iii]

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/local/bin/mysqlbug script!

The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/

___

Post installation SNAFUS

[i] support-files/mysql.server are apparently in /usr/local/share/mysql am
I correct, all of them?

[ii] mysql_secure_installation is not found in this installation, it is in
v. 5.5 however.
[iii] Start restricted to /usr/local/bin/mysqld_safe  apparently since
mysql_secure_installation is not available

[iv] /usr/local/bin/mysqladmin -u root password == 
ax# /usr/local/bin/mysqladmin -u root password ''
/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
ax# /usr/local/bin/mysqladmin -u root -h ax.lall.com password 
/usr/local/bin/mysqladmin: connect to server at 'ax.lall.com' failed
error: 'Access denied for user 'root'@'ax.lall.com' (using password: NO)'
HOW can I setup root password ?
-- 
View this message in context: 
http://old.nabble.com/mySQL-5.4-server---Post-installation-SNAFUs-tp27086064p27086064.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 freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD ipv6 rc.conf settings issue

2010-01-08 Thread Gary Kline
On Thu, Jan 07, 2010 at 12:07:18PM -0500, Steve Bertrand wrote:
 Matthew Seaman wrote:
  Steve Bertrand wrote:
  
  Hmmm. This config does not work:
 
  ifconfig_re0=inet 208.70.104.210 netmask 255.255.255.192
  ifconfig_re0_alias0=inet 208.70.104.211 netmask 255.255.255.255
  ifconfig_re0_alias1=inet6 2607:f118::b6 prefixlen 64
  ifconfig_re0_alias2=inet6 2607:f118::b7 prefixlen 64
  
  Yep.  Try it like this:
  
  ifconfig_re0=inet 208.70.104.210 netmask 255.255.255.192
  ifconfig_re0_alias0=inet 208.70.104.211 netmask 255.255.255.255
  ipv6_ifconfig_re0=2607:f118::b6 prefixlen 64
  ipv6_ifconfig_re0_alias0=2607:f118::b7 prefixlen 64
 
 The above works.
 
  or, even better, like this:
  
  ipv4_addrs_re0=208.70.104.210/26 208.70.104.211/26
  ipv6_addrs_re0=2607:f118::b6/64 2607:f118::b7/64
 
 Unfortunately, that one does not. I do not get any IPv6 addresses
 configured.
 
 I didn't re-try my original configuration, but I will at another time.
 
 Both of your recommendations failed until I entered ipv6_enable=YES in
 /etc/rc.conf. I did not have this line prior, yet the addresses were
 successfully applied, just no default gateway.
 
 Either way, thanks much :)
 
 I will try out your second recommendation again in the future. For now,
 problem resolved.
 
 Cheers!
 
 Steve


This caught my interest this morning so I set up a commented-out trial in
/etc/rc.d for my ipv6 entry; the one I had in my database /etc/namedb/* files
blew my connection sky-high recently.

Does this seem plausible:


#
## ipv6 config
#

# ipv6_enable=YES
# ipv6_defaultrouter=2002:d1b4:d5d2::
# ipv6_default_interface=em0
# ipv6_gateway_enable=YES

given that my Adress record is  209.180.213.210 ?

tia, gents,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.79a release of Jottings: http://jottings.thought.org/index.php

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