PHP Command Line

2010-11-29 Thread David Allen
I'm new to PHP, and I'm trying to make use of the interactive commandline,
but I'm finding 'php -a' isn't working.  More specifically, no 'php>'
prompt, no output, nada.

I've found comments on the intarwebs making mention of the need for
readline support, but past that, I'm at a loss.

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"


snmp cpu

2010-11-29 Thread Коньков Евгений
Hi,
reading this:
http://old.nabble.com/Measuring-CPU-usage-via-SNMP-td23392403.html

>So fetching the matching
>ssCpuRaw* oids and totaling them up should always equal 100% cpu.

but when I fetch cpurawidle it is about 100, system 25
totalling give me 125. What wrong I do?

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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: Unable to access CDROM device to play music

2010-11-29 Thread Nikolai Wendorf

All,

I was getting exactly this same error following a fresh 8.1 load

Sep 25 07:51:22 cyborg kernel: acd0: FAILURE - READ_BIG ILLEGAL REQUEST 
asc=0x64 ascq=0x00
Sep 25 07:51:22 cyborg kernel: (cd0:ata1:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 
0 40 0
Sep 25 07:51:22 cyborg kernel: (cd0:ata1:0:0:0): CAM status: SCSI Status Error
Sep 25 07:51:22 cyborg kernel: (cd0:ata1:0:0:0): SCSI status: Check Condition
Sep 25 07:51:22 cyborg kernel: (cd0:ata1:0:0:0): SCSI sense: ILLEGAL REQUEST 
asc:64,0 (Illegal mode for this track)
Sep 25 07:51:22 cyborg kernel: (cd0:ata1:0:0:0): cddone: got error 0x6 back

the solution was explained in the gnome install FAQ - here is a clip - 
the devfs.conf changes fixed the problem.


To figure out which CD/DVD drive you will be using, run the following 
command as root:


# camcontrol devlist


Your output will look similar to the following:

   at scbus1 target 0 lun 0 (cd0,pass0)


The devices in parentheses at the end are important. You must make sure 
the /dev entries for those devices are writable by the users that will 
be using brasero, totem, rhythmbox, or sound-juicer. In addition to 
those devices, /dev/xpt* must also be writable to your brasero, totem, 
rhythmbox, and sound-juicer users. The following /etc/devfs.conf 
configuration will achieve the desired results given the above devlist:


permcd0 0666
permxpt00666
permpass0   0666

Nick


___
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: Stale NFS file handles on 8.x amd64

2010-11-29 Thread Leon Meßner
Hi,

On Mon, Nov 29, 2010 at 08:06:54PM -0500, Adam McDougall wrote:
> I've been running dovecot 1.1 on FreeBSD 7.x for a while with a bare 
> minimum of NFS problems, but it got worse with 8.x.  I have 2-4 servers 
> (usually just 2) accessing mail on a Netapp over NFSv3 via imapd. 
> delivery is via procmail which doesn't touch the dovecot metadata and 
> webmail uses imapd.  Client connections to imapd go to random servers 
> and I don't yet have solid means to keep certain users on certain 
> servers.  I upgraded some of the servers to 8.x and dovecot 1.2 and ran 
> into Stale NFS file handles causing index/uidlist corruption causing 
> inboxes to appear as empty when they were not.  In some situations their 
> corrupt index had to be deleted manually.  I first suspected dovecot 1.2 
> since it was upgraded at the same time but I downgraded to 1.1 and its 
> doing the same thing.  I don't really have a wealth of details to go on 
> yet and I usually stay quiet until I do, and half the time it is 
> difficult to reproduce myself so I've had to put it in production to get 
> a feel for progress.  This only happens a dozen or so times per weekday 
> but I feel the need to start taking bigger steps.  I'll probably do what 

Does it depend on the size of the message?

> I can to get IMAP back on a stable base (7.x?) and also try to debug 8.x 
> on the remaining servers.  A binary search is within possibility if I 
> can reproduce the symptoms often enough even if I have to put a test 
> server in production for a few hours.
> 
> Any tips on where we could start looking, or alterations I could try 
> making such as sysctls to return to older behavior?  It might be worth 

there were some problems on nullfs mounted nfs shares (like in jails)
and dovecot, as dovecot changed its location for temporary file creation
to the user home. But IIRC the error message looked more like:
http://www.mail-archive.com/dove...@dovecot.org/msg26856.html
And are fixed in stable.

Just a hint,
Leon
___
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"


Listar command results: -- Binary/unsupported file stripped by Listar --

2010-11-29 Thread Listar
Request received for list 'bnfrance' via request address.

>> The original message was received at Tue, 30 Nov 2010 19:44:56 -0800
Unknown command.

>> from freebsd.org [172.144.236.172]
Unknown command.

>> - The following addresses had permanent fatal errors -
Unknown command.

>> 
Unknown command.

>> - Transcript of session follows -
Unknown command.

>> ... while talking to host ml.free.fr.:
Unknown command.

>> >> DATA
Unknown command.

>> <<< 400-aturner; -RMS-E-CRE, ACP file create failed
Unknown command.

>> <<< 400
Unknown command.

---
Gestionnaire de liste Listar/0.42 - fin de traitement/job execution complete.

___
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: ssh-agent and ssh-add on FreeBSD

2010-11-29 Thread Matthew Seaman
On 29/11/2010 19:08, Alexander Best wrote:
>>> [bluethu...@lbsd2:~]#ssh sum1
>>> > > Enter passphrase for key '/home/bluethundr/.ssh/id_rsa':
>>> > > [bluethu...@lbsd2:~]#exec ssh-agent bash

> ^^ this looks wrong. i think you want eval `ssh-agent` so the envars get set.
>otherwise ssh-add won't know where to look for a running ssh-agent.

Both forms are correct.  "eval $(ssh-agent)" modifies the environment in
the current shell so ssh-add can contact ssh-agent, whereas "ssh-agent
bash" causes ssh-agent to run a copy of bash, which will it will pass
down the appropriate environmental settings to.  "exec" is just gravy,
in that it replaces the current shell with the ssh-agent process, rather
than leaving it lying around uselessly.

For the OP: no good idea why the command isn't working for you.  Try it
without the exec and also try it adding '-d' to the ssh-agent flags to
see if the debug output contains any clues.  Be sure /tmp has the
correct permissions (1777) and that the partition hasn't filled up, so
running ssh-agent can create a directory containing the unix domain
socket ssh-add uses to connect to the agent.

As for installing keychain try:

   # cd /usr/ports/security/keychain
   # make all install clean

or if you've installed it:

   # portmaster security/keychain

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Broken port?

2010-11-29 Thread Chris Brennan
>
>
> On 11/29/10 19:34, Modulok wrote:
>
>> List,
>>
>> I tried to install django with sqlite support from ports and got the
>> error shown below. What do I do to fix this? Do I email a port
>> maintainer or something? I used portsnap to update my ports collection
>> before trying the install. I'm on 8.1-RELEASE amd64.
>>
>> Thanks!
>> -Modulok-
>>
>> Error Below:
>>
>> ===>   Installing for py26-django-1.2.3
>> ===>py26-django-1.2.3 depends on file: /usr/local/bin/python2.6 -
>> found
>> ===>py26-django-1.2.3 depends on file:
>> /usr/local/lib/python2.6/site-packages/mod_python/_psp.so - found
>> ===>py26-django-1.2.3 depends on file:
>> /usr/local/lib/python2.6/site-packages/psycopg2/_psycopg.so - found
>> ===>py26-django-1.2.3 depends on package: py26-MySQLdb>=1.2.2 - found
>> ===>py26-django-1.2.3 depends on file:
>> /usr/local/lib/python2.6/site-packages/_sqlite3.so - not found
>> ===> Verifying install for
>> /usr/local/lib/python2.6/site-packages/_sqlite3.so in
>> /usr/ports/databases/py-sqlite3
>> ===>   Vulnerability check disabled, database not found
>> ===>   License check disabled, port has not defined LICENSE
>> =>  Python-2.6.5.tgz is not in /usr/ports/lang/python26/distinfo.
>> =>  Either /usr/ports/lang/python26/distinfo is out of date, or
>> =>  Python-2.6.5.tgz is spelled incorrectly.
>> *** Error code 1
>>
>> Stop in /usr/ports/databases/py-sqlite3.
>> *** Error code 1
>>
>> Stop in /usr/ports/www/py-django.
>> *** Error code 1
>>
>> Stop in /usr/ports/www/py-django.
>>
>

This actually looks like he port is failing to pull in it's required
dependency (in this case, sqlite). I would as Armin suggested to do, first
update your port-tree again, try to install it again, cd into the port and
'make distclean rmconfig' to start fresh and start from the beginning. If it
still fails, file the pr and/or contact the port maintainer. I would
actually do all of this and document it for the pr and the port-maintainer.
___
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: Console Messages

2010-11-29 Thread Grant Peel
Original Message- 
From: per...@pluto.rain.com

Sent: Sunday, November 28, 2010 10:03 PM
To: gp...@thenetnow.com
Cc: freebsd-questions-lo...@be-well.ilk.org ; freebsd-questions@freebsd.org
Subject: Re: Console Messages

"Grant Peel"  wrote:


> ...  You may need to go -hackers for this...

What is -hackers? ... ?


Yep.  I've observed a tendency not to put full listn...@domain
addresses in messages, perhaps in an attempt to avoid harvesting
by spammers :(
___
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"

Indeed, I have have tendencies in the past to accidentally hit the reply all 
instead of the reply button  will pay more attention in the future. 



___
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: CURRENT: Issue with ZFS and 2TB WD HDD (WDC WD20EURS-63Z9B1 80.00A80)

2010-11-29 Thread O. Hartmann

On 11/29/10 17:41, Leonidas Tsampros wrote:

"O. Hartmann"  writes:

I'm running a newly setup FreeBSD 9.0-CURRENT/amd64 SMP box. The former
OS was FreeBSD 8.1-PRE/amd64. Attached to the system are three WD
harddrives with ZFS as filesystem on GPT partitioning scheme. Two 1TB
HDD are spanning a volume with 2 TB capacity which is quite fast due to
parallel access through ZFS. The underlying layout is, as mentioned,
GPT, bot devices are named /dev/ada1p1 and /dev/ada2p1. The thir drive
is a WD Caviar Green 2TB HDD acting as a compressed ZFS backup media,
also based on a GPT partitioning scheme and known as device /dev/ada3p1.
In FreeBSD 8.2-PRE/amd64 I can use the JBOD volume resembled from two
1TB HDD without problems, mounting is all right, dismounting, also with
the 2TB HDD, labeld as BACKUP00 volume in ZFS. Doing a "zpool export" on
both ZFS volumes works fine in FBSD 8, importing is also no problem. The
system's log does not show any kind of irregularities, errors or
something else indicating soemthing weird with one of the three devices.

Exporting both volumes in FreeBSD 8 works. But importing them in FreeBSD
9.0-CURRENT/amd64 as with the most recent make world of today fails on
the 2TB HDD (ZFS pool/volume BACKUP00). Issuing "zpool import BACKUP00"
results in

cannot import 'BACKUP': no such pool available

and on console I receive message

ZFS WARNING: Unable to attach to ada1

But the drive is and was ada3!

Looking with zpool status, I get the follwoing picture:

   pool: BACKUP00
  state: FAULTED
status: One or more devices could not be used because the label is missing
 or invalid.  There are insufficient replicas for the pool to
continue
 functioning.
action: Destroy and re-create the pool from a backup source.
see: http://www.sun.com/msg/ZFS-8000-5E
  scrub: none requested
config:

 NAMESTATE READ WRITE CKSUM
 BACKUP00FAULTED  0 0 0  corrupted data
   ada3  UNAVAIL  0 0 0  corrupted data

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

 NAMESTATE READ WRITE CKSUM
 THOR00  ONLINE   0 0 0
   ada1p1ONLINE   0 0 0
   ada2p1ONLINE   0 0 0

errors: No known data errors


This picture differs from what I see i FreeBSD 8.2-PRE/amd issuing the
same command!

I did a full "zpool scrub" on both pools - no effect.

Surprisingly, the GPT partition of the pool BACKUP00 isn't shown in
FreeBSD 9, while I see ada3p1 in FreeBSD 8.2.
gpart show ada3 lists this:

=> 34  3907029101  ada3  GPT  (1.8T)
   344062- free -  (2.0M)
 4096  3907025039 1  freebsd-zfs  (1.8T)

The drive in question is a WesternDigital Caviar Green WD (  at scbus7 target 0 lun 0 (pass3,ada3)).

Can someone explain what#s going on? The drive in question is one of the
new 4k sized physical block devices. Why is FreeBSD 8 dealing with the
HDD, FreeBSD 9 not? Any help at this point? Hope the volume is not lost.

Thanks in advance,

Oliver



Hi Oliver,

just a wild guess and maybe completely wrong: are the ZFS version numbers and 
zpool version numbers
the same across 8.1 and 9-CURRENT ?

Best Regards,
Leonidas


Hello Leonidas,

both pools are versioned '15', that is the most recent version in 
9.0-CURRENT and 8.2-PRE.
One of the both pools, that one spanned over two 1 TB hard drives, works 
perfectly. The backup pool on the 2TB hdd does not. It seems that the 
partitioning information got lost in FreeBSD 9. The hdd in question is 
one of that new 2TB drives of WD with 4k blocks ... maybe I made a 
mistake when initiatet the GPT layout ... (started the partition at 
block 4096 with the '-b'-option of 'gpart add').


Greetings,
Oliver
___
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: Broken port?

2010-11-29 Thread Armin Pirkovitsch

Hi!

The current version of databases/py-sqlite3 is 2.6.6_1 (python version 
2.6.6) - therefore I suggest you update your ports tree and your ports.
See http://www.freebsd.org/doc/handbook/ports-using.html for more 
information on how to do that if you have not done that before.


If the problem still occurs afterward you should file a problem report. 
( http://www.freebsd.org/send-pr.html )


Armin

On 11/29/10 19:34, Modulok wrote:

List,

I tried to install django with sqlite support from ports and got the
error shown below. What do I do to fix this? Do I email a port
maintainer or something? I used portsnap to update my ports collection
before trying the install. I'm on 8.1-RELEASE amd64.

Thanks!
-Modulok-

Error Below:

===>   Installing for py26-django-1.2.3
===>py26-django-1.2.3 depends on file: /usr/local/bin/python2.6 - found
===>py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/mod_python/_psp.so - found
===>py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/psycopg2/_psycopg.so - found
===>py26-django-1.2.3 depends on package: py26-MySQLdb>=1.2.2 - found
===>py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/_sqlite3.so - not found
===> Verifying install for
/usr/local/lib/python2.6/site-packages/_sqlite3.so in
/usr/ports/databases/py-sqlite3
===>   Vulnerability check disabled, database not found
===>   License check disabled, port has not defined LICENSE
=>  Python-2.6.5.tgz is not in /usr/ports/lang/python26/distinfo.
=>  Either /usr/ports/lang/python26/distinfo is out of date, or
=>  Python-2.6.5.tgz is spelled incorrectly.
*** Error code 1

Stop in /usr/ports/databases/py-sqlite3.
*** Error code 1

Stop in /usr/ports/www/py-django.
*** Error code 1

Stop in /usr/ports/www/py-django.
___
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: ssh-agent and ssh-add on FreeBSD

2010-11-29 Thread Alexander Best
On Mon Nov 29 10, Brandon Gooch wrote:
> On Mon, Nov 29, 2010 at 8:40 AM, bluethundr  wrote:
> > Hey list
> >
> >  On my CentOS machines I usually keep track of my rsa key with
> > ssh-agent, ssh-add and keychain
> >
> >  I would like to know
> >
> > a) how to install keychain under FreeBSD
> > and
> > b) how to fix this error:
> >
> > [bluethu...@lbsd2:~]#ssh sum1
> > Enter passphrase for key '/home/bluethundr/.ssh/id_rsa':
> > [bluethu...@lbsd2:~]#exec ssh-agent bash

^^ this looks wrong. i think you want eval `ssh-agent` so the envars get set.
   otherwise ssh-add won't know where to look for a running ssh-agent.

cheers.
alex


> > [bluethu...@lbsd2:~]#ssh-add
> > Could not open a connection to your authentication agent.a
> >
> >
> > Whenever I try to ssh to another box on the network (with a homedir
> > shared amongst all centos  and FreeBSD machines) it prompts me for my
> > passphrase. Usually on the CentOS boxes exec ssh-agent bash does the
> > trick. Anyone have any idea why this isn't working on the FreeBSD box?
> >
> > thanks!!
> 
> The man page for ssh-agent is very informative:
> 
> http://www.freebsd.org/cgi/man.cgi?query=ssh-agent&sektion=1
> 
> I read it recently when setting up my system to do as you're trying to do.
> 
> Of course, don't hesitate to refer to the EXCELLENT FreeBSD Handbook,
> it is absolutely one of the best references I've ever seen for any
> software:
> 
> http://www.freebsd.org/doc/handbook/openssh.html
> 
> Good luck!
> 
> -Brandon

-- 
a13x
___
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: msk0 interface stops working when downloading

2010-11-29 Thread Gary Gatten


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of John Baldwin
Sent: Monday, November 29, 2010 8:54 AM
To: freebsd-curr...@freebsd.org
Cc: Andrew Moran; freebsd-questions@freebsd.org
Subject: Re: msk0 interface stops working when downloading

On Tuesday, November 23, 2010 6:25:06 pm Andrew Moran wrote:
> 
> Hey guys,
> 
> After banging my head against this for a few hours, I've decided to ask for 
help.  I installed FreeBSD 8.1 amd64 on a Shuttle J1 4100 system (tech 
specs here http://us.shuttle.com/J1_4100.aspx).   I installed from DVD and the 
install went fine.
> 
> I notice when I pkg_add -r anything,  the network stops responding. 
> 
> Some details:
> 
> 1) I can reproduce it 100% by downloading a large file. low traffic like 
the SSH connection does not trigger it.   I think it's being triggered by 
traffic above a certain rate. 
> 2) I can recover by restarting the network interfaces (/etc/rc.d/netif stop;  
/etc/rc.d/netif start)
> 3) I see no errors in dmesg or /var/log/messages.  Nothing at all.
> 4) I've tried the following in /etc/sysctl.conf:
> net.inet.tcp.tso=0
> net.inet.tcp.inflight.enable=0
> 
> and in /boot/loader.conf:
> hw.pci.enable_msix="0"
> hw.pci.enable_msi="0"
> hw.bce.tso_enable="0"
> 
> But the problem persists.
> 
> The interface is identified as:
> 
> mskc0:  port 0xe800-0xe8ff mem 
0xfebfc000-0xfebf irq 17 at device 0.0 on pci2
> msk0:  on 
mskc0
> msk0: Ethernet address: 80:ee:73:01:60:7d
> miibus0:  on msk0
> e1000phy0:  PHY 0 on miibus0
> e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
> mskc0: [ITHREAD]

When I've seen this on my netbook I did a tcpdump on another machien on the 
same hub and found that my msk0 device was spewing an endless stream of pause 
frames.  I've only had this problem with a gigE switch, it works fine for me 
on a 10/100 switch.

-- 
John Baldwin
___
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"


" When I've seen this on my netbook I did a tcpdump on another machien on the 
same hub and found that my msk0 device was spewing an endless stream of pause 
frames. "

If there's an option to disable Ethernet flow control, (commonly used on Gig 
stuff) perhaps disabling it will prevent the unwanted "spewing".  Unwaanted 
spewing is always bad.








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email 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: CURRENT: Issue with ZFS and 2TB WD HDD (WDC WD20EURS-63Z9B1 80.00A80)

2010-11-29 Thread James R. Van Artsdalen
O. Hartmann wrote:
> Attached to the system are three WD harddrives with ZFS as filesystem
> on GPT partitioning scheme.

Please send the output of "camcontrol devlist" and "zpool status" on
FreeBSD-8.1.  Then export the pool in FreeBSD-8.1, boot FreeBSD-9 with
verbose booting and send the output of "camcontrol devlist", "zpool
import BACKUP" and the part of /var/log/messages that shows FreeeBSD
searching for the pool during the import.

It might be useful to know what disk controller is being used.

> =>34  3907029101  ada3  GPT  (1.8T)
>   344062- free -  (2.0M)
> 4096  3907025039 1  freebsd-zfs  (1.8T)

It is not related to your problem, but how did that unused space wind up
before partition 1?
___
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"


Broken port?

2010-11-29 Thread Modulok
List,

I tried to install django with sqlite support from ports and got the
error shown below. What do I do to fix this? Do I email a port
maintainer or something? I used portsnap to update my ports collection
before trying the install. I'm on 8.1-RELEASE amd64.

Thanks!
-Modulok-

Error Below:

===>  Installing for py26-django-1.2.3
===>   py26-django-1.2.3 depends on file: /usr/local/bin/python2.6 - found
===>   py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/mod_python/_psp.so - found
===>   py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/psycopg2/_psycopg.so - found
===>   py26-django-1.2.3 depends on package: py26-MySQLdb>=1.2.2 - found
===>   py26-django-1.2.3 depends on file:
/usr/local/lib/python2.6/site-packages/_sqlite3.so - not found
===>Verifying install for
/usr/local/lib/python2.6/site-packages/_sqlite3.so in
/usr/ports/databases/py-sqlite3
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
=> Python-2.6.5.tgz is not in /usr/ports/lang/python26/distinfo.
=> Either /usr/ports/lang/python26/distinfo is out of date, or
=> Python-2.6.5.tgz is spelled incorrectly.
*** Error code 1

Stop in /usr/ports/databases/py-sqlite3.
*** Error code 1

Stop in /usr/ports/www/py-django.
*** Error code 1

Stop in /usr/ports/www/py-django.
___
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: CURRENT: Issue with ZFS and 2TB WD HDD (WDC WD20EURS-63Z9B1 80.00A80)

2010-11-29 Thread krad
On 29 November 2010 16:41, Leonidas Tsampros  wrote:

> "O. Hartmann"  writes:
> > I'm running a newly setup FreeBSD 9.0-CURRENT/amd64 SMP box. The former
> > OS was FreeBSD 8.1-PRE/amd64. Attached to the system are three WD
> > harddrives with ZFS as filesystem on GPT partitioning scheme. Two 1TB
> > HDD are spanning a volume with 2 TB capacity which is quite fast due to
> > parallel access through ZFS. The underlying layout is, as mentioned,
> > GPT, bot devices are named /dev/ada1p1 and /dev/ada2p1. The thir drive
> > is a WD Caviar Green 2TB HDD acting as a compressed ZFS backup media,
> > also based on a GPT partitioning scheme and known as device /dev/ada3p1.
> > In FreeBSD 8.2-PRE/amd64 I can use the JBOD volume resembled from two
> > 1TB HDD without problems, mounting is all right, dismounting, also with
> > the 2TB HDD, labeld as BACKUP00 volume in ZFS. Doing a "zpool export" on
> > both ZFS volumes works fine in FBSD 8, importing is also no problem. The
> > system's log does not show any kind of irregularities, errors or
> > something else indicating soemthing weird with one of the three devices.
> >
> > Exporting both volumes in FreeBSD 8 works. But importing them in FreeBSD
> > 9.0-CURRENT/amd64 as with the most recent make world of today fails on
> > the 2TB HDD (ZFS pool/volume BACKUP00). Issuing "zpool import BACKUP00"
> > results in
> >
> > cannot import 'BACKUP': no such pool available
> >
> > and on console I receive message
> >
> > ZFS WARNING: Unable to attach to ada1
> >
> > But the drive is and was ada3!
> >
> > Looking with zpool status, I get the follwoing picture:
> >
> >   pool: BACKUP00
> >  state: FAULTED
> > status: One or more devices could not be used because the label is
> missing
> > or invalid.  There are insufficient replicas for the pool to
> > continue
> > functioning.
> > action: Destroy and re-create the pool from a backup source.
> >see: http://www.sun.com/msg/ZFS-8000-5E
> >  scrub: none requested
> > config:
> >
> > NAMESTATE READ WRITE CKSUM
> > BACKUP00FAULTED  0 0 0  corrupted data
> >   ada3  UNAVAIL  0 0 0  corrupted data
> >
> >   pool: THOR00
> >  state: ONLINE
> >  scrub: none requested
> > config:
> >
> > NAMESTATE READ WRITE CKSUM
> > THOR00  ONLINE   0 0 0
> >   ada1p1ONLINE   0 0 0
> >   ada2p1ONLINE   0 0 0
> >
> > errors: No known data errors
> >
> >
> > This picture differs from what I see i FreeBSD 8.2-PRE/amd issuing the
> > same command!
> >
> > I did a full "zpool scrub" on both pools - no effect.
> >
> > Surprisingly, the GPT partition of the pool BACKUP00 isn't shown in
> > FreeBSD 9, while I see ada3p1 in FreeBSD 8.2.
> > gpart show ada3 lists this:
> >
> > =>34  3907029101  ada3  GPT  (1.8T)
> >   344062- free -  (2.0M)
> > 4096  3907025039 1  freebsd-zfs  (1.8T)
> >
> > The drive in question is a WesternDigital Caviar Green WD ( > WD20EURS-63Z9B1 80.00A80> at scbus7 target 0 lun 0 (pass3,ada3)).
> >
> > Can someone explain what#s going on? The drive in question is one of the
> > new 4k sized physical block devices. Why is FreeBSD 8 dealing with the
> > HDD, FreeBSD 9 not? Any help at this point? Hope the volume is not lost.
> >
> > Thanks in advance,
> >
> > Oliver
> >
>
> Hi Oliver,
>
> just a wild guess and maybe completely wrong: are the ZFS version numbers
> and zpool version numbers
> the same across 8.1 and 9-CURRENT ?
>
> Best Regards,
> Leonidas
> ___
> 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"
>


i think both are on version 15, however a v22 patch is in testing and will
probably hit head fairly soon
___
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: CURRENT: Issue with ZFS and 2TB WD HDD (WDC WD20EURS-63Z9B1 80.00A80)

2010-11-29 Thread Leonidas Tsampros
"O. Hartmann"  writes:
> I'm running a newly setup FreeBSD 9.0-CURRENT/amd64 SMP box. The former
> OS was FreeBSD 8.1-PRE/amd64. Attached to the system are three WD
> harddrives with ZFS as filesystem on GPT partitioning scheme. Two 1TB
> HDD are spanning a volume with 2 TB capacity which is quite fast due to
> parallel access through ZFS. The underlying layout is, as mentioned,
> GPT, bot devices are named /dev/ada1p1 and /dev/ada2p1. The thir drive
> is a WD Caviar Green 2TB HDD acting as a compressed ZFS backup media,
> also based on a GPT partitioning scheme and known as device /dev/ada3p1.
> In FreeBSD 8.2-PRE/amd64 I can use the JBOD volume resembled from two
> 1TB HDD without problems, mounting is all right, dismounting, also with
> the 2TB HDD, labeld as BACKUP00 volume in ZFS. Doing a "zpool export" on
> both ZFS volumes works fine in FBSD 8, importing is also no problem. The
> system's log does not show any kind of irregularities, errors or
> something else indicating soemthing weird with one of the three devices.
>
> Exporting both volumes in FreeBSD 8 works. But importing them in FreeBSD
> 9.0-CURRENT/amd64 as with the most recent make world of today fails on
> the 2TB HDD (ZFS pool/volume BACKUP00). Issuing "zpool import BACKUP00"
> results in
>
> cannot import 'BACKUP': no such pool available
>
> and on console I receive message
>
> ZFS WARNING: Unable to attach to ada1
>
> But the drive is and was ada3!
>
> Looking with zpool status, I get the follwoing picture:
>
>   pool: BACKUP00
>  state: FAULTED
> status: One or more devices could not be used because the label is missing
> or invalid.  There are insufficient replicas for the pool to
> continue
> functioning.
> action: Destroy and re-create the pool from a backup source.
>see: http://www.sun.com/msg/ZFS-8000-5E
>  scrub: none requested
> config:
>
> NAMESTATE READ WRITE CKSUM
> BACKUP00FAULTED  0 0 0  corrupted data
>   ada3  UNAVAIL  0 0 0  corrupted data
>
>   pool: THOR00
>  state: ONLINE
>  scrub: none requested
> config:
>
> NAMESTATE READ WRITE CKSUM
> THOR00  ONLINE   0 0 0
>   ada1p1ONLINE   0 0 0
>   ada2p1ONLINE   0 0 0
>
> errors: No known data errors
>
>
> This picture differs from what I see i FreeBSD 8.2-PRE/amd issuing the
> same command!
>
> I did a full "zpool scrub" on both pools - no effect.
>
> Surprisingly, the GPT partition of the pool BACKUP00 isn't shown in
> FreeBSD 9, while I see ada3p1 in FreeBSD 8.2.
> gpart show ada3 lists this:
>
> =>34  3907029101  ada3  GPT  (1.8T)
>   344062- free -  (2.0M)
> 4096  3907025039 1  freebsd-zfs  (1.8T)
>
> The drive in question is a WesternDigital Caviar Green WD ( WD20EURS-63Z9B1 80.00A80> at scbus7 target 0 lun 0 (pass3,ada3)).
>
> Can someone explain what#s going on? The drive in question is one of the
> new 4k sized physical block devices. Why is FreeBSD 8 dealing with the
> HDD, FreeBSD 9 not? Any help at this point? Hope the volume is not lost.
>
> Thanks in advance,
>
> Oliver
>

Hi Oliver,

just a wild guess and maybe completely wrong: are the ZFS version numbers and 
zpool version numbers
the same across 8.1 and 9-CURRENT ?

Best Regards,
Leonidas
___
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: gateway_enable="NO"

2010-11-29 Thread Ian Smith
In freebsd-questions Digest, Vol 339, Issue 1, Message: 20
On Mon, 29 Nov 2010 01:40:21 +0100 Lokadamus  wrote:
 > Am 25.11.2010 05:38, schrieb Lamac Lamaco:
 > > The system installed now and in adresses /etc or /etc/rc.d there is no
 > > script.
 > > Does system work in default as ROUTER?
 > > I ask this question, because i tried it works.
 > > As it is written  "gateway_enable="NO" # Set to YES if this host will be a
 > > gateway" in the address ->  /etc/defaults/rc.conf
 > >   But if I write  gateway_enable="NO"  in the address /etc/rc.conf , my
 > > system will work in as ROUTER. I say this because the host in my system's
 > > local network can ping my system's global IP. As i know it can be only in
 > > ROUTER.

No, being able to ping any address on any interface on a system is not 
the same as being able to route packets elsewhere through that system.

Only specific firewall rules would prevent that, if you had some need to 
deny inside net hosts access to some service/s bound to your outside IP.

If a local network host can ping anywhere outside through your system, 
then it's acting as a gateway aka router for that host; not otherwise.

 > > Thanks.

No worries.

 > No, in default FreeBSD isn't working as a router.

Right.

 > Look with sysctl at:
 > net.inet.ip.fw.default_to_accept
 > When is it set to 1, FreeBSD is working as a router, with a value of 0 
 > it doesn't work as a router.

Wrong; sysctl net.inet.ip.fw.default_to_accept has nothing to do with 
this; gateway_enable=YES causes setting sysctl net.inet.ip.forwarding=1

 > Look with tcpdump where networktraffic is going.
 > 
 > http://www.freebsd.org/doc/handbook/network-routing.html

Good advice.

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: msk0 interface stops working when downloading

2010-11-29 Thread John Baldwin
On Tuesday, November 23, 2010 6:25:06 pm Andrew Moran wrote:
> 
> Hey guys,
> 
> After banging my head against this for a few hours, I've decided to ask for 
help.  I installed FreeBSD 8.1 amd64 on a Shuttle J1 4100 system (tech 
specs here http://us.shuttle.com/J1_4100.aspx).   I installed from DVD and the 
install went fine.
> 
> I notice when I pkg_add -r anything,  the network stops responding. 
> 
> Some details:
> 
> 1) I can reproduce it 100% by downloading a large file. low traffic like 
the SSH connection does not trigger it.   I think it's being triggered by 
traffic above a certain rate. 
> 2) I can recover by restarting the network interfaces (/etc/rc.d/netif stop;  
/etc/rc.d/netif start)
> 3) I see no errors in dmesg or /var/log/messages.  Nothing at all.
> 4) I've tried the following in /etc/sysctl.conf:
> net.inet.tcp.tso=0
> net.inet.tcp.inflight.enable=0
> 
> and in /boot/loader.conf:
> hw.pci.enable_msix="0"
> hw.pci.enable_msi="0"
> hw.bce.tso_enable="0"
> 
> But the problem persists.
> 
> The interface is identified as:
> 
> mskc0:  port 0xe800-0xe8ff mem 
0xfebfc000-0xfebf irq 17 at device 0.0 on pci2
> msk0:  on 
mskc0
> msk0: Ethernet address: 80:ee:73:01:60:7d
> miibus0:  on msk0
> e1000phy0:  PHY 0 on miibus0
> e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
> mskc0: [ITHREAD]

When I've seen this on my netbook I did a tcpdump on another machien on the 
same hub and found that my msk0 device was spewing an endless stream of pause 
frames.  I've only had this problem with a gigE switch, it works fine for me 
on a 10/100 switch.

-- 
John Baldwin
___
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: linking against shared libraries not in default path

2010-11-29 Thread Anton Shterenlikht
On Mon, Nov 29, 2010 at 03:00:45PM +0100, Tijl Coosemans wrote:
> On Monday 29 November 2010 14:50:59 Anton Shterenlikht wrote:
> > I compiled some numerical libraries under my home
> > directory, including static and shared libs. The
> > shared lib is
> > 
> > % ls ./src/libslatec.so.1
> > ./src/libslatec.so.1
> > %
> > 
> > Now I'd like to test shared libraries, so I do 
> > 
> > % gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec
> > % ./test01.x 
> > /libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by 
> > "test01.x"
> > %
> > 
> > How can I tell the executable to look for a shared library
> > in a specific directory? I tried setting LIBRARY_PATH, but
> > it didn't help.
> 
> The name of the variable is LD_LIBRARY_PATH. It is described in the
> rtld(1) manpage. You can also add it to the executable using -R as in:
> 
> % gfortran45 -o test01.x test01.o qc6a.o -L./src/ -R -lslatec

Tijl, thank you.
Both options work for me on amd64 and ia64.

thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh-agent and ssh-add on FreeBSD

2010-11-29 Thread Brandon Gooch
On Mon, Nov 29, 2010 at 8:40 AM, bluethundr  wrote:
> Hey list
>
>  On my CentOS machines I usually keep track of my rsa key with
> ssh-agent, ssh-add and keychain
>
>  I would like to know
>
> a) how to install keychain under FreeBSD
> and
> b) how to fix this error:
>
> [bluethu...@lbsd2:~]#ssh sum1
> Enter passphrase for key '/home/bluethundr/.ssh/id_rsa':
> [bluethu...@lbsd2:~]#exec ssh-agent bash
> [bluethu...@lbsd2:~]#ssh-add
> Could not open a connection to your authentication agent.a
>
>
> Whenever I try to ssh to another box on the network (with a homedir
> shared amongst all centos  and FreeBSD machines) it prompts me for my
> passphrase. Usually on the CentOS boxes exec ssh-agent bash does the
> trick. Anyone have any idea why this isn't working on the FreeBSD box?
>
> thanks!!

The man page for ssh-agent is very informative:

http://www.freebsd.org/cgi/man.cgi?query=ssh-agent&sektion=1

I read it recently when setting up my system to do as you're trying to do.

Of course, don't hesitate to refer to the EXCELLENT FreeBSD Handbook,
it is absolutely one of the best references I've ever seen for any
software:

http://www.freebsd.org/doc/handbook/openssh.html

Good luck!

-Brandon
___
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"


ssh-agent and ssh-add on FreeBSD

2010-11-29 Thread bluethundr
Hey list

 On my CentOS machines I usually keep track of my rsa key with
ssh-agent, ssh-add and keychain

 I would like to know

a) how to install keychain under FreeBSD
and
b) how to fix this error:

[bluethu...@lbsd2:~]#ssh sum1
Enter passphrase for key '/home/bluethundr/.ssh/id_rsa':
[bluethu...@lbsd2:~]#exec ssh-agent bash
[bluethu...@lbsd2:~]#ssh-add
Could not open a connection to your authentication agent.a


Whenever I try to ssh to another box on the network (with a homedir
shared amongst all centos  and FreeBSD machines) it prompts me for my
passphrase. Usually on the CentOS boxes exec ssh-agent bash does the
trick. Anyone have any idea why this isn't working on the FreeBSD box?

thanks!!

-- 
Here's my RSA Public key:
gpg --keyserver pgp.mit.edu --recv-keys B6D6EAC3
___
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: linking against shared libraries not in default path

2010-11-29 Thread Tijl Coosemans
On Monday 29 November 2010 14:50:59 Anton Shterenlikht wrote:
> I compiled some numerical libraries under my home
> directory, including static and shared libs. The
> shared lib is
> 
> % ls ./src/libslatec.so.1
> ./src/libslatec.so.1
> %
> 
> Now I'd like to test shared libraries, so I do 
> 
> % gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec
> % ./test01.x 
> /libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by 
> "test01.x"
> %
> 
> How can I tell the executable to look for a shared library
> in a specific directory? I tried setting LIBRARY_PATH, but
> it didn't help.

The name of the variable is LD_LIBRARY_PATH. It is described in the
rtld(1) manpage. You can also add it to the executable using -R as in:

% gfortran45 -o test01.x test01.o qc6a.o -L./src/ -R -lslatec


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


Re: linking against shared libraries not in default path

2010-11-29 Thread Igor V. Ruzanov
On Mon, 29 Nov 2010, Anton Shterenlikht wrote:

|I compiled some numerical libraries under my home
|directory, including static and shared libs. The
|shared lib is
|
|% ls ./src/libslatec.so.1
|./src/libslatec.so.1
|%
|
|Now I'd like to test shared libraries, so I do 
|
|% gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec
|% ./test01.x 
|/libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by 
"test01.x"
|%
|
|How can I tell the executable to look for a shared library
|in a specific directory? I tried setting LIBRARY_PATH, but
|it didn't help.
|
Ooops, sorry, you must give full path of shared object, *NOT* a file name:
ldconfig -m ./src in your test example.


+---+
! CANMOS ISP Network!
+---+
! Best regards  !
! Igor V. Ruzanov, network operational staff!
! e-Mail: ig...@canmos.ru   !
+---+
___
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: linking against shared libraries not in default path

2010-11-29 Thread Igor V. Ruzanov
On Mon, 29 Nov 2010, Anton Shterenlikht wrote:

|I compiled some numerical libraries under my home
|directory, including static and shared libs. The
|shared lib is
|
|% ls ./src/libslatec.so.1
|./src/libslatec.so.1
|%
|
|Now I'd like to test shared libraries, so I do 
|
|% gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec
|% ./test01.x 
|/libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by 
"test01.x"
|%
|
|How can I tell the executable to look for a shared library
|in a specific directory? I tried setting LIBRARY_PATH, but
|it didn't help.
|
|Perhaps I completely misunderstand how shared libraries work..
|
|Please advise
|
ldconfig -m ./src/libslatec.so.1 (in your example)

+---+
! CANMOS ISP Network!
+---+
! Best regards  !
! Igor V. Ruzanov, network operational staff!
! e-Mail: ig...@canmos.ru   !
+---+
___
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"


linking against shared libraries not in default path

2010-11-29 Thread Anton Shterenlikht
I compiled some numerical libraries under my home
directory, including static and shared libs. The
shared lib is

% ls ./src/libslatec.so.1
./src/libslatec.so.1
%

Now I'd like to test shared libraries, so I do 

% gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec
% ./test01.x 
/libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by 
"test01.x"
%

How can I tell the executable to look for a shared library
in a specific directory? I tried setting LIBRARY_PATH, but
it didn't help.

Perhaps I completely misunderstand how shared libraries work..

Please advise

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


binutils problem? WAS [Re: static linking error: ELF binary type "0" not known. Exec format error. Binary file not executable.]

2010-11-29 Thread Anton Shterenlikht
- Forwarded message from Marcel Moolenaar  -
On Nov 10, 2010, at 5:32 AM, Anton Shterenlikht wrote:

[ia64]
> ia64% file a.out 
> a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, 
> not stripped

[amd64]
> amd64% file a.out 
> a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically 
> linked, for FreeBSD 9.0 (900023), not stripped

The branding on ia64 is wrong. The executable is not marked as being
a FreeBSD executable. It's declared as SYSV, whereas on amd64 it's
properly declared as FreeBSD.

This is a binutils problem.
FYI,

-- 
Marcel Moolenaar
xcl...@mac.com

- End forwarded message -


Anybody here can explain better what Marcel meant
by "binutils problem", and how to fix it?

I've binutils-2.20.1_3 installed from devel/binutils.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ZFS based machine to build a backup server ?

2010-11-29 Thread krad
On 29 November 2010 10:54, Arthur Chance  wrote:

> On 11/29/10 09:56, Frank Bonnet wrote:
>
>> Would it be safe to use a FreeBSD + ZFS based machine to build
>> a backups server to store sensitive data ?
>>
>> In a word is FreeBSD + ZFS stable and mature ?
>>
>
> That's a regular theological debate round here, and some people will say
> yes, and others an emphatic no. I'm personally happy with ZFS raidz, others
> prefer UFS + mirroring + journalling.
>
> Speaking with far too many years of experience as a sysadmin, no single
> backup solution is ever truly adequate. You want off site backups as well as
> on site. For the off site backups, take a look at tarsnap:
>
> http://www.tarsnap.com/
>
> --
> "Although the wombat is real and the dragon is not, few know what a
> wombat looks like, but everyone knows what a dragon looks like."
>
>-- Avram Davidson, _Adventures in Unhistory_
>
> ___
> 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"
>


It does all come down to risk analysis. In my experience company politics
have far to much influence on this than I like.
___
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: ZFS based machine to build a backup server ?

2010-11-29 Thread Arthur Chance

On 11/29/10 09:56, Frank Bonnet wrote:

Would it be safe to use a FreeBSD + ZFS based machine to build
a backups server to store sensitive data ?

In a word is FreeBSD + ZFS stable and mature ?


That's a regular theological debate round here, and some people will say 
yes, and others an emphatic no. I'm personally happy with ZFS raidz, 
others prefer UFS + mirroring + journalling.


Speaking with far too many years of experience as a sysadmin, no single 
backup solution is ever truly adequate. You want off site backups as 
well as on site. For the off site backups, take a look at tarsnap:


http://www.tarsnap.com/

--
"Although the wombat is real and the dragon is not, few know what a
wombat looks like, but everyone knows what a dragon looks like."

-- Avram Davidson, _Adventures in Unhistory_
___
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: ZFS based machine to build a backup server ?

2010-11-29 Thread Christer Solskogen
On Mon, Nov 29, 2010 at 10:56 AM, Frank Bonnet  wrote:

> In a word is FreeBSD + ZFS stable and mature ?
>

Yes.
But do it with a machine with a lot of memory and run 64bit.

-- 
chs,
___
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"


ZFS based machine to build a backup server ?

2010-11-29 Thread Frank Bonnet

Hello


Would it be safe to use a FreeBSD + ZFS based machine to build
a backups server to store sensitive data ?

In a word is FreeBSD + ZFS stable and mature ?

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"


Re: Web mail for not local domains.

2010-11-29 Thread krad
On 28 November 2010 20:56, Grant Peel  wrote:

> Openwebmail 1.53
>
> -Grant
>
> -Original Message- From: Jim Pazarena
> Sent: Sunday, November 28, 2010 2:42 PM
> To: freebsd-questions@freebsd.org
> Subject: Re: Web mail for not local domains.
>
>
> On 2010-11-28 9:36 AM, Jorge Biquez wrote:
>
>> Hello all.
>>
>> I was wondering if you can suggest the best application you consider for
>> the following.
>>
>
> roundcube
> --
> Jim Pazarena fqu...@paz.bz
> ___
> 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"
>


all of the above will do it fine. Just make sure you set them up to do it
via imap not pop3. Google mail should work fine as well as that can hook
into imap accounts
___
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"


CURRENT: Issue with ZFS and 2TB WD HDD (WDC WD20EURS-63Z9B1 80.00A80)

2010-11-29 Thread O. Hartmann
I'm running a newly setup FreeBSD 9.0-CURRENT/amd64 SMP box. The former 
OS was FreeBSD 8.1-PRE/amd64. Attached to the system are three WD 
harddrives with ZFS as filesystem on GPT partitioning scheme. Two 1TB 
HDD are spanning a volume with 2 TB capacity which is quite fast due to 
parallel access through ZFS. The underlying layout is, as mentioned, 
GPT, bot devices are named /dev/ada1p1 and /dev/ada2p1. The thir drive 
is a WD Caviar Green 2TB HDD acting as a compressed ZFS backup media, 
also based on a GPT partitioning scheme and known as device /dev/ada3p1.
In FreeBSD 8.2-PRE/amd64 I can use the JBOD volume resembled from two 
1TB HDD without problems, mounting is all right, dismounting, also with 
the 2TB HDD, labeld as BACKUP00 volume in ZFS. Doing a "zpool export" on 
both ZFS volumes works fine in FBSD 8, importing is also no problem. The 
system's log does not show any kind of irregularities, errors or 
something else indicating soemthing weird with one of the three devices.


Exporting both volumes in FreeBSD 8 works. But importing them in FreeBSD 
9.0-CURRENT/amd64 as with the most recent make world of today fails on 
the 2TB HDD (ZFS pool/volume BACKUP00). Issuing "zpool import BACKUP00" 
results in


cannot import 'BACKUP': no such pool available

and on console I receive message

ZFS WARNING: Unable to attach to ada1

But the drive is and was ada3!

Looking with zpool status, I get the follwoing picture:

  pool: BACKUP00
 state: FAULTED
status: One or more devices could not be used because the label is missing
or invalid.  There are insufficient replicas for the pool to 
continue

functioning.
action: Destroy and re-create the pool from a backup source.
   see: http://www.sun.com/msg/ZFS-8000-5E
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
BACKUP00FAULTED  0 0 0  corrupted data
  ada3  UNAVAIL  0 0 0  corrupted data

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

NAMESTATE READ WRITE CKSUM
THOR00  ONLINE   0 0 0
  ada1p1ONLINE   0 0 0
  ada2p1ONLINE   0 0 0

errors: No known data errors


This picture differs from what I see i FreeBSD 8.2-PRE/amd issuing the 
same command!


I did a full "zpool scrub" on both pools - no effect.

Surprisingly, the GPT partition of the pool BACKUP00 isn't shown in 
FreeBSD 9, while I see ada3p1 in FreeBSD 8.2.

gpart show ada3 lists this:

=>34  3907029101  ada3  GPT  (1.8T)
  344062- free -  (2.0M)
4096  3907025039 1  freebsd-zfs  (1.8T)

The drive in question is a WesternDigital Caviar Green WD (WD20EURS-63Z9B1 80.00A80> at scbus7 target 0 lun 0 (pass3,ada3)).


Can someone explain what#s going on? The drive in question is one of the 
new 4k sized physical block devices. Why is FreeBSD 8 dealing with the 
HDD, FreeBSD 9 not? Any help at this point? Hope the volume is not lost.


Thanks in advance,

Oliver

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