enabling if_bridge STP

2007-12-06 Thread Atrox

Hello!

I've just built myself a VPN-network for testing bridge STP. I installed 3
FreeBSD boxes (2 FreeBSD-6.2 and 1 FreeBSD-6.1) and connected all of them
with OpenVPN with TAP-bridging:
* 1st box is OpenVPN server only and has tap0 bridged with its inner
interface (192.168.1.1).
* 2nd box is OpenVPN client only and has tap0 and tap1 bridged with its
inner interface (192.168.2.1).
* 3rd box is both OpenVPN client and server and has also bridged tap0, tap1
and its inner interface (192.168.3.1).

So now the question is on which interfaces should I enable STP in such
setup? I tried enabling it on all interfaces (well, besides the external
ones ;) like this:
=
ifconfig bridge0 create addm tap0 stp tap0 addm sk0 stp sk0 addm tap1 stp
tap1 up
=

But after doing so, all the interfaces just stay disabled, a'la:
=
bridge0: flags=28143 mtu
1500
ether ac:de:48:46:d3:ef
priority 32768 hellotime 2 fwddelay 15 maxage 20
member: tap0 flags=7
port 7 priority 128 path cost 55 disabled
member: tap1 flags=7
port 9 priority 128 path cost 55 disabled
member: sk0 flags=7
port 1 priority 128 path cost 55 disabled
=

Am I doing smth wrong?

--
Silver
-- 
View this message in context: 
http://www.nabble.com/enabling-if_bridge-STP-tf4954594.html#a14188023
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: Scanner Compatibility

2007-12-06 Thread Predrag Punosevac

Jason C. Wells wrote:

Does this represent the state of the art in scanners under FreeBSD?

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

Any other up to the minute tips on purchasing a scanner?  Does 
7.0-RELEASE present any new issues?


Thanks,
Jason C. Wells
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
That article is very well written. The only thing that is not emphasized 
enough is that lots of scanners do require firmware (binary blobs)
that you have to extract from M$ .cab files.  (You will need to use 
/usr/ports/archievers/cabextract program to do so).

You definitely want to look very carefully the list of supported devices

http://www.sane-project.org/sane-supported-devices.html

before you make a purchase.

I do believe that Epson scanners are probably best solutions for 
Unix/Linux scanning.


I use Epson Perfection 1670 and it works like a charm. Unfortunately it 
does require binary blob which might be something you want to avoid.


The another option is to look the list of devices supported by HPLIP 
drivers. HPLIP drivers  enable  full functionality of many all-in-one HP 
products and  also HPLIP can unlock some HP flat bad scanners that where 
problematic in the past.


Bottom line is that you have to do your homework.

If you need step by step instructions how to install scanner you might 
contact me via private mail.


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


fsck of big disk

2007-12-06 Thread Valerio Daelli
Hi list

we have a freshly installed FreeBSD 6.2 machine with a gstriped external disk,
of 5.3Tb. The disk is composed of two slices of 2.6 Tb.
We are trying to have a (background) fsck of it but few hours later
since the start of the check
the host get unresponsive: it responds to ping but it doesn't let
login anyone, nor by ssh
nor by console.
In the meanwhile we are having a large rsync from another host.
Tonight during the fsck/rsync we had a reboot, without special
messages on the console.
We have 1Gb of RAM on this server.
Is 1Gb too small as memory to have a fsck and a rsync on a server with
5.3Gb as external disk?
Thanks for your precious help

Valerio Daelli

Server:
i386 - HP DL360
CPU pentium4
1Gb RAM
HBA: LSI Logic 929
External disk: Apple XRAID with upgraded firmware
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: enabling if_bridge STP

2007-12-06 Thread Nikos Vassiliadis
On Thursday 06 December 2007 10:17:36 Atrox wrote:
> Am I doing smth wrong?

Hm, are these FreeBSD boxes you are trying to bridge,
on the same ethernet?

STP will create a tree by disabling some ports
to eliminate loops in the topology. If you have
a loop-free topology, all ports should be active.

ASCII art time! What's your topology?

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


geom gmirror question

2007-12-06 Thread Dino Vliet
  Forwarded Message 

From:  "Dino Vliet" <[EMAIL PROTECTED]>CC:  [EMAIL PROTECTED]
To:  freebsd-questions@freebsd.orgDate:  Sat, 7 Apr 2007 03:55:20 -0700 
(PDT)Subject:  hardware problems?..how to disable geom?Plain Text 
Attachment [ Scan and Save to Computer ] 


Hi folks,I have sinned:-(I have (for testing purposes) activated geom 
for mirroring on my   freebsd 6.2 via c3 cpu system. However, I used two 
different brand IDE   harddisks but identical in capacity.I have:  ad0: 
76319MB  at ata0-master UDMA100  ad3: 76319MB 
 at ata1-slave UDMA100At first everything worked, 
but lately I have noticed some weird   things:  1) In the beginning the gmirror 
status command was showing the complete   status for the components ad0 or ad3 
(it was altering I guess due to   the round robin thing I choose)   However 
since a few weeks, only the ad0 component shows the complete   status(the 
only thing I did in between was removing the seagate harddisk once   to try to 
go to a pc mall and buy a second one but when I returned I   just reattached it 
(I hadn't switched the pc on though in the mean time   so I don't think it's an 
issue))2) I started to have problems building the
 ports and make buildword3) bash core dumped on my (I couldn't log in 
nomaly anymore and had to   use csh)4) now I see that rsyncd, freshclam and 
clamav are core dumping when   the machine boots up:  GEOM_MIRROR: Device gm0: 
provider ad3 detected.  GEOM_MIRROR: Device gm0: provider ad3 activated.  
GEOM_MIRROR: Device gm0: provider ad0 activated.  GEOM_MIRROR: Device gm0: 
provider mirror/gm0 launched.  Trying to mount root from ufs:/dev/mirror/gm0s1a 
 pid 896 (rsync), uid 0: exited on signal 4 (core dumped)  pid 928 (clamd), uid 
0: exited on signal 4 (core dumped)  pid 934 (freshclam), uid 0: exited on 
signal 4 (core dumped)  So I want to bring the machine back to its normal 
state by doing this:a) remove seagate harddisk  b) remove the mirror  c) 
see if everything works fine again because I don't want to reinstall   (I CAN 
GET AWAY WITH THIS RIGHT?)The question is, how di I get rid of the mirror? 
Or is it better to   order a new seagate harddisk, get rid
 of the maxtor harddisk and install   the new seagate harddisk in stead of the 
maxtor one and rebuild the   mirror?Thanks for your kind help  
***

 

Hi folks,

 

I've bought my new hardware and want to give this another try. 

On the documentation sacttered around on the net I read that

it's better to have 3 harddisks where one is for the main os

and the other two are mirrored in stead of a situation where

the OS resides on one of the two mirrored disks.

Can you give me some advice on this?

I have three identical seagate harddisks and want to put two 

in a mirror setup with the OS on it, and use the other as 

spare drive, in case sonmething goes wrong.

 

Thanks in advanced

Dino Vliet

   
-
Never miss a thing.   Make Yahoo your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


HSBC Online Banking Account Reminder

2007-12-06 Thread HSBC Online Banking Service

   * * * * *
   HSBC logo The world's local bank
   * *  * *   * *
   * United Kingdom * [1]Home *
   * * *
   *

   HSBC Account Reminder,

   This e-mail is to inform you to check your online account activity
   status, if your online activities has being up to date, in order for
   us to continue our periodic agreement activity safely.
   Please click on the link below to reconfirm your personal details .

   [2]http://www.hsbc.co.uk/1/2/security/accountreminder/internet-banking
   /

   Thank you for your patience as we work together to protect your
   account.

   [lock.gif;jsessionid=A6R6ER3SA2lER84zwOAyg wK:11j71fovq] Security
   Advisory,
   HSBC Bank plc

   *Important*
   Please update your records on or before 48 hours, a failure to update
   your records will result in a temporal hold on your funds.
 _

   Legal information | Accessibility | About HSBC | Site map | Issued for
   UK use only | (c) HSBC Bank plc 2002 - 2007.

References

   1. 
http://www.oe9.at/mamboschass/modules/servlet/http/secure/ebank.hsbc.co.uk/index.php
   2. http://www.daad.or.th//demo/images/banners/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: enabling if_bridge STP

2007-12-06 Thread Atrox


Nikos Vassiliadis-2 wrote:
> 
> On Thursday 06 December 2007 10:17:36 Atrox wrote:
>> Am I doing smth wrong?
> 
> Hm, are these FreeBSD boxes you are trying to bridge,
> on the same ethernet?
> 

Yes, all these boxes are connected to our LAN with their ext_ifs. Also, one
of them has a switch and a PC connected to its int_if, other int_ifs are
"status: no carrier".


> STP will create a tree by disabling some ports
> to eliminate loops in the topology. If you have
> a loop-free topology, all ports should be active.
> 

Well, as I understand, in my case, STP should be enabled mainly on
TAP-interfaces as it would eliminate the scenario where, for an example,
ARP-requests from 192.168.1.1 for 192.168.3.1 reach 192.168.2.1. Have I
understood it correctly?



> ASCII art time! What's your topology?
> 

Well, let's try ;)
The machines stand like this:

192.168.8.15/24
  - GW/NAT - 
192.168.1/24
   ||   192.168.8.16/24
== 192.168.8/24 == == - GW/NAT -
   ||192.168.2/24
192.168.8.17/24
 - GW/NAT -
192.168.3/24
-- 
View this message in context: 
http://www.nabble.com/enabling-if_bridge-STP-tf4954594.html#a14189511
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: enabling if_bridge STP

2007-12-06 Thread Nikos Vassiliadis
On Thursday 06 December 2007 12:20:18 Atrox wrote:
> Well, as I understand, in my case, STP should be enabled mainly on
> TAP-interfaces as it would eliminate the scenario where, for an example,
> ARP-requests from 192.168.1.1 for 192.168.3.1 reach 192.168.2.1. Have I
> understood it correctly?

It sounds like you want to isolate the ethernets, not bridge them.
Bridging is not what you need, if I have understood correctly.

You want to keep ARP and broadcasts to the relevant boxes, right?
You have to use VLANs on your switch to achieve this, not bridging.

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


Re: problem with network card in P35+ICH9

2007-12-06 Thread Wojciech Puchar

is your phy (mii) detected OK?



FreeBSD 6.2

 server# ifconfig -a re0: flags=8843 
mtu 1500 options=1b inet 192.168.2.54 
netmask 0xff00 broadcast 192.168.2.255 ether 00:1a:4d:53:54:4d media: 
Ethernet autoselect (none) status: no carrier 
server# dmesg |grep re0 re0:  
port 0xc000-0xc0ff
mem 0xf900-0xf9000fff irq 16 at device 0.0 on pci4 miibus0:  on 
re0 re0: Ethernet address: 00:1a:4d:53:54:4d re0: [FAST] 
But these lan works good into windows with the same cable and

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



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


Re: enabling if_bridge STP

2007-12-06 Thread Silver Salonen
On Thursday 06 December 2007 13:21, Nikos Vassiliadis wrote:
> On Thursday 06 December 2007 12:20:18 Atrox wrote:
> > Well, as I understand, in my case, STP should be enabled mainly on
> > TAP-interfaces as it would eliminate the scenario where, for an example,
> > ARP-requests from 192.168.1.1 for 192.168.3.1 reach 192.168.2.1. Have I
> > understood it correctly?
> 
> It sounds like you want to isolate the ethernets, not bridge them.
> Bridging is not what you need, if I have understood correctly.
> 
> You want to keep ARP and broadcasts to the relevant boxes, right?
> You have to use VLANs on your switch to achieve this, not bridging.

Actually the final target is to connect all the 3 LANs over VPN, so that they 
can browse eachother networks etc. When I did it, I could see duplicate 
packets looping through all bridges, so I thought I'd bring in STP. That's 
what it's for, right?

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


Re: enabling if_bridge STP

2007-12-06 Thread Nikos Vassiliadis
On Thursday 06 December 2007 13:31:38 Silver Salonen wrote:
> On Thursday 06 December 2007 13:21, Nikos Vassiliadis wrote:
> > On Thursday 06 December 2007 12:20:18 Atrox wrote:
> > > Well, as I understand, in my case, STP should be enabled mainly on
> > > TAP-interfaces as it would eliminate the scenario where, for an
> > > example, ARP-requests from 192.168.1.1 for 192.168.3.1 reach
> > > 192.168.2.1. Have I understood it correctly?
> >
> > It sounds like you want to isolate the ethernets, not bridge them.
> > Bridging is not what you need, if I have understood correctly.
> >
> > You want to keep ARP and broadcasts to the relevant boxes, right?
> > You have to use VLANs on your switch to achieve this, not bridging.
>
> Actually the final target is to connect all the 3 LANs over VPN, so that
> they can browse eachother networks etc. When I did it, I could see
> duplicate packets looping through all bridges, so I thought I'd bring in
> STP. That's what it's for, right?

Not really, STP must be used/needed in a dynamic environment to
eliminate loops. Your environment doesn't seem dynamic to me. You
can create a loop-free topology like this:

http://users.teledomenet.gr/nvass/topology.png

1) 10.0.0.0/24 is the shared network.
2) bridge1 bridges eth0 and tap0 which is the VPN to the root-bridge.
3) bridge2 bridges eth0 and tap0 which is the VPN to the root-bridge.
4) root-bridge bridges eth0, tap0 and tap1.

If you want STP, which you shouldn't normally using this topology,
increase root-bridge's priority manually, in order to win the elections
and be the root bridge.

Note that the external interfaces are not participating in the bridge.

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


huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-06 Thread [EMAIL PROTECTED]@mgedv.net


hi folks,

i've got a huawei e220 hsdpa modem, which is connected
to a hp nx8220 notebook (ICH6 usb controller) w. 6.3-BETA2.
i tried GENERIC as well as custom kernels.

this is my current situation:

- custom kernel with just [u,o,e]hci and usb(4) support.
(removed all other usb device support except keyb/mouse)
- patched "ubsa" as beyond
- loaded ucom(4)
- loaded ubsa(4)
- left out umass(4) or loaded it AFTER ubsa/ucom

dmesg-cut when plugging in the E220 in this scenario:
ucom0: HUAWEI Technologies HUAWEI Mobile, Rev 1.10/0.00, addr 2
ucom0: Could not find interrupt in
device_attach: ucom0 attach returned 6

the patches (/usr/src/sys/dev/usb is base-dir):

--- usbdevs.pre 2007-11-04 03:28:31.0 +
+++ usbdevs 2007-12-06 12:14:46.0 +
@@ -1044,6 +1044,7 @@

/* HUAWEI products */
product HUAWEI MOBILE  0x1001 Huawei Mobile
+product HUAWEI E220  0x1003 Huawei E220 HSDPA USB Modem

/* IBM Corporation */
product IBM USBCDROMDRIVE 0x4427 USB CD-ROM Drive

--- ubsa.c.pre 2007-06-17 09:38:26.0 +
+++ ubsa.c 2007-12-06 12:18:55.0 +
@@ -232,6 +232,8 @@
 { USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GT3GQUAD },
 /* Huawei Mobile */
 { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE },
+ /* Huawei Mobile E220 */
+ { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 },
 { 0, 0 }
};

usbdevs -v shows the device as:
full speed, power 500mA, config 1, VENDOR 0x12d1, PROD: 0x1003

i really NEED this device to work with freebsd so is
there anybody out there who had such a problem and
solved it?

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


Re: enabling if_bridge STP

2007-12-06 Thread Silver Salonen
On Thursday 06 December 2007 15:01, Nikos Vassiliadis wrote:
> On Thursday 06 December 2007 13:31:38 Silver Salonen wrote:
> > On Thursday 06 December 2007 13:21, Nikos Vassiliadis wrote:
> > > On Thursday 06 December 2007 12:20:18 Atrox wrote:
> > > > Well, as I understand, in my case, STP should be enabled mainly on
> > > > TAP-interfaces as it would eliminate the scenario where, for an
> > > > example, ARP-requests from 192.168.1.1 for 192.168.3.1 reach
> > > > 192.168.2.1. Have I understood it correctly?
> > >
> > > It sounds like you want to isolate the ethernets, not bridge them.
> > > Bridging is not what you need, if I have understood correctly.
> > >
> > > You want to keep ARP and broadcasts to the relevant boxes, right?
> > > You have to use VLANs on your switch to achieve this, not bridging.
> >
> > Actually the final target is to connect all the 3 LANs over VPN, so that
> > they can browse eachother networks etc. When I did it, I could see
> > duplicate packets looping through all bridges, so I thought I'd bring in
> > STP. That's what it's for, right?
> 
> Not really, STP must be used/needed in a dynamic environment to
> eliminate loops. Your environment doesn't seem dynamic to me. You
> can create a loop-free topology like this:
> 
> http://users.teledomenet.gr/nvass/topology.png
> 
> 1) 10.0.0.0/24 is the shared network.
> 2) bridge1 bridges eth0 and tap0 which is the VPN to the root-bridge.
> 3) bridge2 bridges eth0 and tap0 which is the VPN to the root-bridge.
> 4) root-bridge bridges eth0, tap0 and tap1.

Is all the traffic pass through the root-bridge in this case, so that if 
bridge1 wants to talk to bridge2, it has to go through root-bridge and not 
straight? In my case there's a straight connection between bridge1 and 
bridge2 too, so that they don't have to communicate through root-bridge.

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


Re: geom gmirror question

2007-12-06 Thread Eric Crist

On Dec 6, 2007, at 4:01 AM, Dino Vliet wrote:


Hi folks,

I've bought my new hardware and want to give this another try.
On the documentation sacttered around on the net I read that
it's better to have 3 harddisks where one is for the main os
and the other two are mirrored in stead of a situation where
the OS resides on one of the two mirrored disks.
Can you give me some advice on this?
I have three identical seagate harddisks and want to put two
in a mirror setup with the OS on it, and use the other as
spare drive, in case sonmething goes wrong.

Thanks in advanced
Dino Vliet



Dino,

We're running all of our firewalls now with gmirror.  Our setup uses a  
hot-swap SCSI setup, whereas you're using ATA disks.  Keep in mind  
that, to remove the drives, you'll more than likely need to shut down  
the system.  Have the third drive in there as a back up will certainly  
buy you time.


Follow the how-to I've written at https://www.secure-computing.net/wiki/index.php/Gmirror 
, and simply don't do any configuration on the third drive in the  
system.  When one fails, you'll then remove, or 'forget' the failed  
drive, and add in the hot-spare you've got in the system.


HTH
-
Eric F Crist
Secure Computing Networks


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


Re: enabling if_bridge STP

2007-12-06 Thread Nikos Vassiliadis
On Thursday 06 December 2007 15:37:21 Silver Salonen wrote:
> Is all the traffic pass through the root-bridge in this case, so that if
> bridge1 wants to talk to bridge2, it has to go through root-bridge and
> not straight? 

Yes, they'll have to go through the root-bridge. STP will create a
tree by shutting down ports causing loops. That's how STP works.
It's all about avoiding loops...

Not following the shortest path is not very important for a layer two
device. Creating a loop in the topology and bringing the network down
because of it, is.

> In my case there's a straight connection between bridge1 
> and bridge2 too, so that they don't have to communicate through
> root-bridge.

Yes, but that also can create a loop and according to STP must be
eliminated.

Perhaps you can use some inventive IP addressing scheme, to force
direct communication... some ifconfig option(the edge option?) to
force forwarding... a tunnel... or some other weirdness(TM) ;)

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


Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)

2007-12-06 Thread Konstantinos Pachnis
James Harrison wrote:
> On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:
>   
>> On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:
>>
>> 
>>> I have / on one slice, and [usr,tmp,var] on others.  I want to move
>>> just / to a new disk, which seemed to be what rsync -x ("do not cross
>>> filesystems") was intended for.  It failed, however, as df shows 20k
>>> blocks in /, and rsync filled up the target slice with 50k blocks, so
>>> obviously it blew right past the 'end' of / - did I miss something? Is
>>> there no other way except to umount [tmp,usr,var]?
>>>   
>> I would use dump/restore.
>>
>> Build the filesystem in the new disk partition with fdisk, bsdlabel
>> and newfs as needed. Then mount the new partition somewhere - 
>> example:
>>   mkdir /newpart
>>   mount /dev/ad1s1a /newpart 
>> (presuming new disk is ad1, slice is 1, partition is a)
>>   Doesn't hurt to do an fsck on it here before writing to it, but it
>>   probably isn't really needed.
>>
>> Then, run the dump/restore
>>
>>   cd /newpart
>>   dump 0af - / | restore -rf -
>>
>> This will get all of / as you want.  The other mountpoints for /tmp, /usr
>> and /var will be copied, but not the contents of those filesystems.  You
>> probably want that.
>>
>> jerry
>>
>> 
>>> Thanks,
>>> Steve
>>>   
>
> Everyone's recommending dump/restore for copying file systems, and
> there's something that I've never really been clear on.
>
> The nice thing about rsync is that it's network aware. Can dump dump a
> file system across a network?
>
> James
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>   
Hi,
If you want to perform network backups, you should consider using a
network aware backup solution such as Bacula or Amanda.

Konstantinos

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


FreeBSD 6.2 inside VMWare Fusion ?

2007-12-06 Thread Michael Doyle
Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion on a  
new MacBook Pro ?


If so, could they give me pointers on what I need to do, since I have  
tried this and failed.
It's mostly just to see if I can do it - I have a number of "real"  
servers running FreeBSD 6 and
was looking to make a test-bed platform inside my laptop for  
convenience more than anything else.


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


Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)

2007-12-06 Thread Vince
Konstantinos Pachnis wrote:
> James Harrison wrote:
>> On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:
>>   
>>> On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:
>>>
>>> 
 I have / on one slice, and [usr,tmp,var] on others.  I want to move
 just / to a new disk, which seemed to be what rsync -x ("do not cross
 filesystems") was intended for.  It failed, however, as df shows 20k
 blocks in /, and rsync filled up the target slice with 50k blocks, so
 obviously it blew right past the 'end' of / - did I miss something? Is
 there no other way except to umount [tmp,usr,var]?
   
>>> I would use dump/restore.
>>>
>>> Build the filesystem in the new disk partition with fdisk, bsdlabel
>>> and newfs as needed. Then mount the new partition somewhere - 
>>> example:
>>>   mkdir /newpart
>>>   mount /dev/ad1s1a /newpart 
>>> (presuming new disk is ad1, slice is 1, partition is a)
>>>   Doesn't hurt to do an fsck on it here before writing to it, but it
>>>   probably isn't really needed.
>>>
>>> Then, run the dump/restore
>>>
>>>   cd /newpart
>>>   dump 0af - / | restore -rf -
>>>
>>> This will get all of / as you want.  The other mountpoints for /tmp, /usr
>>> and /var will be copied, but not the contents of those filesystems.  You
>>> probably want that.
>>>
>>> jerry
>>>
>>> 
 Thanks,
 Steve
   
>> Everyone's recommending dump/restore for copying file systems, and
>> there's something that I've never really been clear on.
>>
>> The nice thing about rsync is that it's network aware. Can dump dump a
>> file system across a network?
>>

Not following the rest of the thread so sorry if a duplicate answer.

you can easily dump to a file across a network if you have ssh configured.
something like
dump -f - /dev/ad1s1 | ssh [EMAIL PROTECTED] "cat >
/path/to/dumpfile.ad1s1.oldhost"


Dump can also talk to remote tape devices using rmt apparently but I've
never tried this.


Vince

>> James
>>
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>>
>>   
> Hi,
> If you want to perform network backups, you should consider using a
> network aware backup solution such as Bacula or Amanda.
> 
> Konstantinos
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

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


Determining bus speed/memory

2007-12-06 Thread Robert Fitzpatrick
I have a couple of servers (5.5 and 6.2) at a remote location that I
need to order additional memory. I need to know bus speed and, if
possible, how many chips currently installed to help determine whether I
need to replace or match and fill available slots. For instance, I know
one server has 1GB of mem, but do I have two 512MB or a single 1GB chip
in place now. Can someone tell me the commands to determine either of
these things?

Thanks in advance!

-- 
Robert

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


Re: huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-06 Thread Hans Petter Selasky
Hi,

Can you make your modem show up like "ugen" by loading "ugen" before plugging 
your device.

Then install "/usr/ports/sysutils/udesc_dump" and dump all the descriptors of 
your device.

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


Freebsd filesystem ( hard reboot )

2007-12-06 Thread Randy Ramsdell
We started using FreeBSD for some network monitoring, but have found 
that a hard reboot forces us to answer filesytem questions on boot. Is 
there a way to mount each filesystem without this? Or how can we use 
FreeBSD in a remote location without needing to intervene in 
situatutions like this?


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


Re: Determining bus speed/memory

2007-12-06 Thread Erik Trulsson
On Thu, Dec 06, 2007 at 10:20:28AM -0500, Robert Fitzpatrick wrote:
> I have a couple of servers (5.5 and 6.2) at a remote location that I
> need to order additional memory. I need to know bus speed and, if
> possible, how many chips currently installed to help determine whether I
> need to replace or match and fill available slots. For instance, I know
> one server has 1GB of mem, but do I have two 512MB or a single 1GB chip
> in place now. Can someone tell me the commands to determine either of
> these things?

The best and most reliable way of doing that is probably to open the server
and look inside to see what is installed (or look at the paperwork from when
you originally bought the servers.) 

When you boot the BIOS will often display this information as well.

You could also try the sysutils/dmidecode port which will try to retrieve
various information from the BIOS.  Beware though that due to buggy BIOSes
you cannot always trust this information.


If none of the above works, I am afraid you are out of luck,


A note for future consideration:  When you have remote servers, or servers
which must not be shutdown if it can be avoided, then it is a very good
idea to write down on a paper exactly what is installed in each of them, at
the time they are first installed.  This can simplify things quite a bit
a couple of years down the line.



-- 

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


Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)

2007-12-06 Thread Eric Crist

On Dec 6, 2007, at 8:48 AM, Konstantinos Pachnis wrote:


James Harrison wrote:

On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:


On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:



I have / on one slice, and [usr,tmp,var] on others.  I want to move
just / to a new disk, which seemed to be what rsync -x ("do not  
cross
filesystems") was intended for.  It failed, however, as df shows  
20k
blocks in /, and rsync filled up the target slice with 50k  
blocks, so
obviously it blew right past the 'end' of / - did I miss  
something? Is

there no other way except to umount [tmp,usr,var]?


I would use dump/restore.

Build the filesystem in the new disk partition with fdisk, bsdlabel
and newfs as needed. Then mount the new partition somewhere -
example:
 mkdir /newpart
 mount /dev/ad1s1a /newpart
   (presuming new disk is ad1, slice is 1, partition is a)
 Doesn't hurt to do an fsck on it here before writing to it, but it
 probably isn't really needed.

Then, run the dump/restore

 cd /newpart
 dump 0af - / | restore -rf -

This will get all of / as you want.  The other mountpoints for / 
tmp, /usr
and /var will be copied, but not the contents of those  
filesystems.  You

probably want that.

jerry



Thanks,
Steve



Everyone's recommending dump/restore for copying file systems, and
there's something that I've never really been clear on.

The nice thing about rsync is that it's network aware. Can dump  
dump a

file system across a network?

James

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




Hi,
If you want to perform network backups, you should consider using a
network aware backup solution such as Bacula or Amanda.

Konstantinos



We do this little trick when we're moving an OS to a new system, and  
don't want to reinstall:

https://www.secure-computing.net/wiki/index.php/Dump_Over_SSH

HTH

-
Eric F Crist
Secure Computing Networks


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


Re: FreeBSD 6.2 inside VMWare Fusion ?

2007-12-06 Thread Doug Poland

Michael Doyle wrote:
Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion on a 
new MacBook Pro ?



I have been running 6.2 on an iMac since early betas of VMWare Fusion

If so, could they give me pointers on what I need to do, since I have 
tried this and failed.

>
Could you give some specific error messages?

It's mostly just to see if I can do it - I have a number of "real" 
servers running FreeBSD 6 and was looking to make a test-bed platform 

> inside my laptop for convenience more than anything else.
>
Virtualized machines are good way to learn/develop/prototype, etc.

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Bart Silverstrim

Randy Ramsdell wrote:
We started using FreeBSD for some network monitoring, but have found 
that a hard reboot forces us to answer filesytem questions on boot. Is 
there a way to mount each filesystem without this? Or how can we use 
FreeBSD in a remote location without needing to intervene in 
situatutions like this?


What's causing the hard reboots?  Is it on a UPS?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Randy Ramsdell

Bart Silverstrim wrote:

Randy Ramsdell wrote:
We started using FreeBSD for some network monitoring, but have found 
that a hard reboot forces us to answer filesytem questions on boot. 
Is there a way to mount each filesystem without this? Or how can we 
use FreeBSD in a remote location without needing to intervene in 
situatutions like this?


What's causing the hard reboots?  Is it on a UPS?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


Well any number of things, but the most recent was a prolonged power 
outage.

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


Re: BSDstats: Stand up and be counted! -- November Statistics

2007-12-06 Thread Jerry McAllister
On Wed, Dec 05, 2007 at 10:45:04PM -0400, Marc G. Fournier wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> 
> - --On Wednesday, December 05, 2007 23:40:07 +0100 Tore Lund 
> <[EMAIL PROTECTED]> wrote:
> 
> > Bill Moran wrote:
> >> Huh?
> >
> > The figure for PC-BSD in November was 6551.  When I checked earlier this
> > evening, it was 1997.  I suppose this does NOT mean that 4554 PC-BSD
> > users have kicked the bucket.  Probably, it means that many PC-BSD
> > systems have not YET reported to bsdstats in December.  I think this way
> > of doing it does not serve the following purpose:
> >
> >> The mission of this site is to compile semi-accurate numbers for
> >> advocacy and marketing of the *BSD operating systems.
> >
> > For the fulfillment of this noble mission, it would be better to display
> > statistics for the last complete month to casual visitors.  If people
> > want to see running counters, this could be done on a different page.
> 
> Actually, what we should do is put a 'History' page off that main one that 
> expands that chart to include the previous two or three months, as well as 
> this 
> one ... would be easier/faster to implement then a graph too ...
> 
> Antony?  Have a couple of minutes to whip that together?  Maybe do it similar 
> to the countries page, but instead of listing countries, list month/year? 
> maybe go back 6 months?

Gee, maybe you could mine the data to do a 'most recent 31 days' report.  
That should not show the dips and peaks in the middle of the month.

jerry


> 
> - 
> Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
> Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
> Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.4 (FreeBSD)
> 
> iD8DBQFHV2Iw4QvfyHIvDvMRAscwAKDCKGAHyKk4hrJvxZ8oRNYyVpqpawCeO7NF
> s4J+XrhOYJom22oW47yzsvA=
> =wG2c
> -END PGP SIGNATURE-
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Vince
Randy Ramsdell wrote:
> We started using FreeBSD for some network monitoring, but have found
> that a hard reboot forces us to answer filesytem questions on boot. Is
> there a way to mount each filesystem without this? Or how can we use
> FreeBSD in a remote location without needing to intervene in
> situatutions like this?
> 

This is unusual in my experience, part of the charm of FreeBSD for me is
how rarely I have had to interact with fsck thanks to the whole
background fsck thing. What version of FreeBSD are you using?

Assuming a 5.x or later since you say you've started to use FreeBSD.

What is the value of background_fsck in /etc/rc.conf ?

You can also try setting fsck_y_enable="YES" in rc.conf (this will do
fsck -y if the initial preen fails.)


Vince


> Thanks,
> Randy Ramsdell
> Unix Systems Administrator
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

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


Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)

2007-12-06 Thread Jerry McAllister
On Thu, Dec 06, 2007 at 04:48:40PM +0200, Konstantinos Pachnis wrote:

> James Harrison wrote:
> > On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:
> >   
> >> On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:
> >> 
> >>> I have / on one slice, and [usr,tmp,var] on others.  I want to move
> >>> just / to a new disk, which seemed to be what rsync -x ("do not cross
> >>> filesystems") was intended for.  It failed, however, as df shows 20k
> >>> ...  
> >> I would use dump/restore.
> >> ...
> >> Then, run the dump/restore
> >>
> >>   cd /newpart
> >>   dump 0af - / | restore -rf -
> >>
> >> This will get all of / as you want.  The other mountpoints for /tmp, /usr
> >> and /var will be copied, but not the contents of those filesystems.  You
> >> probably want that.
> >>
> >> jerry
> >> 
> >>> Thanks,
> >>> Steve
> >>>   
> >
> > Everyone's recommending dump/restore for copying file systems, and
> > there's something that I've never really been clear on.
> >
> > The nice thing about rsync is that it's network aware. Can dump dump a
> > file system across a network?
> >
> > James
> >
> Hi,
> If you want to perform network backups, you should consider using a
> network aware backup solution such as Bacula or Amanda.

He said he just wants to make a copy of the file system on to
another disk.   Getting a whole new system set up is overkill for that.
Anyway, we were never happy with Amanda.  Haven't used Bacula.

jerry

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Randy Ramsdell

Vince wrote:

Randy Ramsdell wrote:
  

We started using FreeBSD for some network monitoring, but have found
that a hard reboot forces us to answer filesytem questions on boot. Is
there a way to mount each filesystem without this? Or how can we use
FreeBSD in a remote location without needing to intervene in
situatutions like this?




This is unusual in my experience, part of the charm of FreeBSD for me is
how rarely I have had to interact with fsck thanks to the whole
background fsck thing. What version of FreeBSD are you using?

Assuming a 5.x or later since you say you've started to use FreeBSD.

  

I am fairly sure it is v6.2

What is the value of background_fsck in /etc/rc.conf ?

  
This isn't set. Was is supposed to be? So far, I have only installed 
applications we need. And everything seem fine except the reboot issue. 
This will be an offsite system so I do not want human intervention on 
boot for power outages or hard reboots.

You can also try setting fsck_y_enable="YES" in rc.conf (this will do
fsck -y if the initial preen fails.)

  

I will use this. Do you mean by try, that this will work? I assume so.

Thanks Vince!


Oh, Is there a way to not receive 2 messages for every reply to this thread?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-06 Thread [EMAIL PROTECTED]@mgedv.net




Can you make your modem show up like "ugen" by loading "ugen" before 
plugging

your device.



here it is ;)

Standard Device Descriptor:
 bLength18
 bDescriptorType01
 bcdUSB 0110
 bDeviceClass   00
 bDeviceSubClass00
 bDeviceProtocol00
 bMaxPacketSize 64
 idVendor   12d1
 idProduct  1003
 bcdDevice  
 iManufacturer  1
 iProduct   2
 iSerialNumber  0
 bNumConfigurations 1

Configuration 0:
Standard Configuration Descriptor:
  bLength 9
  bDescriptorType 02
  wTotalLength32
  bNumInterface   1
  bConfigurationValue 1
  iConfiguration  0
  bmAttributesa0 (remote-wakeup)
  bMaxPower   250 (500 mA)

Standard Interface Descriptor:
  bLength9
  bDescriptorType04
  bInterfaceNumber   0
  bAlternateSetting  0
  bNumEndpoints  2
  bInterfaceClass08
  bInterfaceSubClass 06
  bInterfaceProtocol 50
  iInterface 0

Standard Endpoint Descriptor:
  bLength  7
  bDescriptorType  05
  bEndpointAddress 83 (in)
  bmAttributes 02 (Bulk)
  wMaxPacketSize   64
  bInterval0

Standard Endpoint Descriptor:
  bLength  7
  bDescriptorType  05
  bEndpointAddress 04 (out)
  bmAttributes 02 (Bulk)
  wMaxPacketSize   64
  bInterval0

Codes Representing Languages by the Device:
 bLength  4
 bDescriptorType  03
 wLANGID[0]   0409

String (index 1): HUAWEI Technologies

String (index 2): HUAWEI Mobile



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


Re: How to stop screen from resizing my window??

2007-12-06 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 12/3/07, Philip Hallstrom  wrote:
> Hi all -
>
> I connect to a FreeBSD server from OSX (via iTerm).  I then start up
> screen.
>
> And it resizes my windows to 80 characters wide.  This doesn't happen on
> linux.

It's more likely that it's an issue with iTerm. Screen can resize
dynamically if the term program works correctly.

That said, screen and the relationship to the termcap is always a
royal pain.  I use tcsh and I always throw something in my .tcshrc to
detect for the TERM environment variable value for screen and blow
away TERMCAP if it finds it.

 if ($term == "screen") then
unsetenv TERMCAP
 endif

Syntax will be different for other shells.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHWC5bNTm8fWdRgmIRArQ0AJ4ugxEkyarWyA+lxbHmHz6ZI4hFcwCeJ3yT
SBWUaohWiTdTOMrebgtWP+M=
=P/Ve
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


CD/DVD writer no longer works

2007-12-06 Thread Paul Schmehl
Sometime in the past (I don't know when) my CD/DVD write device stopped 
working.  I can no longer burn cds or even put known good cds in the drive 
and mount them.  I *used* to be able to burn cds fine using burncd.


[EMAIL PROTECTED] burncd -ef /dev/acd1 data 
/home/pauls/Downloads/FreeBSD/6.2-RELEASE-amd64-disc1.iso fixate

burncd: ioctl(CDRIOCWRITESPEED): Input/output error
[EMAIL PROTECTED] mount /dev/acd
acd0  acd1
[EMAIL PROTECTED] mount /dev/acd1 /mnt/cdrom/
mount: /dev/acd1: Input/output error

I'm wondering where to go to troubleshoot this problem.

I'm loading atapicam.
[EMAIL PROTECTED] kldstat
Id Refs AddressSize Name
1   21 0xc040 6f6668   kernel
21 0xc0af7000 5fa0 snd_ich.ko
32 0xc0afd000 22b88sound.ko
41 0xc0b2 4ae8 atapicam.ko
51 0xc0b25000 1fde4radeon.ko
62 0xc0b45000 fd68 drm.ko
71 0xc0b55000 59f20acpi.ko
81 0xc4e57000 6000 linprocfs.ko
91 0xc4e5d000 16000linux.ko
101 0xc5111000 d000 ipfw.ko

I can see the device using atacontrol.
[EMAIL PROTECTED] atacontrol info ata0
Master: acd0  ATA/ATAPI revision 6
Slave:  acd1  ATA/ATAPI revision 5

I can tell what mode the device is in.
[EMAIL PROTECTED] atacontrol mode acd1
current mode = UDMA33

The channel reinits without errors.
[EMAIL PROTECTED] atacontrol reinit ata0
Master: acd0  ATA/ATAPI revision 6
Slave:  acd1  ATA/ATAPI revision 5

Camcontrol sees the device fine as well.
[EMAIL PROTECTED] camcontrol devlist
 at scbus0 target 0 lun 0 (da0,pass0)
   at scbus1 target 0 lun 0 (cd0,pass1)
   at scbus1 target 1 lun 0 (cd1,pass2)

Yet cdrecord also fails.
[EMAIL PROTECTED] cdrecord -v speed=2 dev=1,1,0 
/home/pauls/Downloads/FreeBSD/6.2-RELEASE-amd64-disc1.iso

cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent 
defaults.

cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i386-unknown-freebsd6.0) Copyright (C) 1995-2004 
J￶rg Schilling

TOC Type: 1 = CD-ROM
scsidev: '1,1,0'
scsibus: 1 target: 1 lun: 0
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 0
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'TSSTcorp'
Identifikation : 'CD-RW   TS-H292B'
Revision   : 'DE03'
Device seems to be: Generic mmc CD-RW.
Current: 0x
Profile: 0x000A
Profile: 0x0009
Profile: 0x0008
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96R
Drive buf size : 1016064 = 992 KB
FIFO size  : 4194304 = 4096 KB
Track 01: data   616 MB
Total size:  707 MB (70:07.13) = 315535 sectors
Lout start:  708 MB (70:09/10) = 315535 sectors
cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00

Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
cdrecord: No disk / Wrong disk!

I just upgraded from FreeBSD 6.0 RELEASE to 6.2 RELEASE hoping that might 
solve the problem.  (I cvsupped the sources and ran make 
buildworld/buildkernel, etc.)


Do I have a hardware failure?  Or is something else wrong?

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: enabling if_bridge STP

2007-12-06 Thread RW
On Thu, 6 Dec 2007 15:37:21 +0200
Silver Salonen <[EMAIL PROTECTED]> wrote:


> Is all the traffic pass through the root-bridge in this case, so that
> if bridge1 wants to talk to bridge2, it has to go through root-bridge
> and not straight? In my case there's a straight connection between
> bridge1 and bridge2 too, so that they don't have to communicate
> through root-bridge.

The problem is that, even with switched ethernet, some packets have to
be broadcast, which can lead to packets going round in loops or
multiplying into a broadcast storm. STP prevents this by disabling 
connections to remove loops in the network.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Determining bus speed/memory

2007-12-06 Thread Derek Ragona

At 09:20 AM 12/6/2007, Robert Fitzpatrick wrote:

I have a couple of servers (5.5 and 6.2) at a remote location that I
need to order additional memory. I need to know bus speed and, if
possible, how many chips currently installed to help determine whether I
need to replace or match and fill available slots. For instance, I know
one server has 1GB of mem, but do I have two 512MB or a single 1GB chip
in place now. Can someone tell me the commands to determine either of
these things?

Thanks in advance!

--
Robert


If you know the motherboard maker and model, you can check either their 
website or one of the ram maker's sites.  Most of the RAM manufacturer's 
offer an online catalog, you can look up compatible memory there.


If you want to boot a window's compatible CD on the system you can run 
cpu-z available from:

http://www.cpuid.com

This application gives detailed information on the entire system.


-Derek

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

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Randy Ramsdell

Robert Huff wrote:

Randy Ramsdell writes:
  

 > What is the value of background_fsck in /etc/rc.conf ?
 >   
 This isn't set. Was is supposed to be? So far, I have only

 installed applications we need. And everything seem fine except
 the reboot issue.



I'm going to jump in here.
Based on what you've said, it sounds like:

the system was running
there was power outage, the system did not have a UPS
when the system rebooted, fsck complained but nothing was done
about the errors

  
Let me clarify. All our servers are on UPSes, however the power outage 
outlasted the UPSes. That is why I stated prolonged power outage.
Fsck did complain, but everything was fixed as I sat there and dealt 
with it. We do not want to deal with it in an offsite location and that 
is why this thread.



IF THAT'S TRUE ...
... then the "seems" in your description is applicable,
and should be a red flag.  
	Get someone to the system, reboot it into single user mode, and

run (and re-run) fsck until it runs without error.  (Answer 'y' to
all prompts.) This should be done whenever the file system is not
shutdown cleanly.
  
The filesystem is fine. Our set up just does not recover gracefully on 
hard reboots.

(And consider a UPS, even it it only keeps the system alive for
the few minutes necessary for a clean shutdown.)
  
	Is a dirty file system causing the reboots?  

No. a power prolonged power failure caused the last  shutdown.

Possibly; wiser
heads than mine would have to lay out scearios.  But it may also be
responsible for other damage, more subtle but equally unpleasant.  A
fix is available.  Use it.
I understand this will not be easy, and I sympathize.  Balance
that pain against the small but non-trivial chance to catastrophic
data loss, and choose wisely.



Robert Huff
  



Thanks for the reply.

I think I will just set the rc.conf variable to answer "Y" to fsck 
questions unless there is a better way.
A side note, this system has been hard shutdown two times and each time 
required intervention. We also use several Linux system ( reiserfs and 
ext3 ) and raely do I have to interact with the systems on reboot. There 
is a differnce and I am in the fisrt stages trying to understand this.



PS. I am confused about why so many people are replying to the list and 
my personal e-mail. This one was sent to me only. Others were sent to me 
and the list. Actually, every other reply. Is this normal for the list 
as I am new as of today?

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


Re: How to stop screen from resizing my window??

2007-12-06 Thread Erwan David
Le Thu  6/12/2007, Andy Harrison disait
> 
> 
> On 12/3/07, Philip Hallstrom  wrote:
> > Hi all -
> >
> > I connect to a FreeBSD server from OSX (via iTerm).  I then start up
> > screen.
> >
> > And it resizes my windows to 80 characters wide.  This doesn't happen on
> > linux.
> 
> It's more likely that it's an issue with iTerm. Screen can resize
> dynamically if the term program works correctly.

Yes, but screen should NOT resize when given the -A option or with fit
in the .screenrc

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Daniel Bye
On Thu, Dec 06, 2007 at 11:42:22AM -0500, Randy Ramsdell wrote:
> Oh, Is there a way to not receive 2 messages for every reply to this thread?

Something like this in ~/.procmailrc

:0 Wh: msgid.lock
| $FORMAIL -D 8192 msgid.cache

or like this in ~/.mailfilter

`reformail -D 8000 duplicate.cache`
if ( $RETURNCODE == 0 )
  exit


I'm sure other delivery agents will have similar functionality.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgprdY468w5SZ.pgp
Description: PGP signature


Wine compatibility and performance on FreeBSD 7

2007-12-06 Thread Tom Wickline
Hello Everyone,

I have a small blog about running Wine on Unix operating systems and
over the last couple days I've been
experimenting with Wine on FreeBSD 7 beta 2 (I see beta 4 is out, many thanks!)

If anyone here is interested I ran Office 97 and 2000 out of the box
on FreeBSD 7beta no registry files
or special hacks needed. Ive also run a couple small applications
(Qicktime 7.1.6) (IE 5 5.5 6) and then some benchmarks
3DMark 2000v1.1, 3DMark2001SE, GL Excess and PC Mark04. In the future
ill see if I can get 3DMark 2003 and 3DMark 2005
to run and produce results as well.

I don't know if any of you guys or gals are Gamers But just in
case I also installed Halo in Wine and it runs about the same
on FreeBSD as it does on Linux. With D3D, DDraw and OpenGL working
most every game that is running in Wine should run
on FreeBSD.. I don't know this as fact as I've only tried one Game and
four Benchmarks, but it does look promising.

More info can be found here:

Wine-Review front Page:
http://wine-review.blogspot.com/

Office 97/2000:
http://wine-review.blogspot.com/2007/12/microsoft-office-2000-on-freebsd-7-with.html
http://wine-review.blogspot.com/2007/12/office-97-on-freebsd-with-wine.html

IE, QT etc..
http://wine-review.blogspot.com/2007/12/quicktime-716-on-freebsd-7-with-wine.html
http://wine-review.blogspot.com/2007/12/ies-4-freebsd-internet-explorer-50-55.html

Benchmark results & Halo:
http://wine-review.blogspot.com/2007/12/benchmarking-wine-on-freebsd-7.html
http:/http://wine-review.blogspot.com/2007/12/halo-combat-evolved-on-freebsd-with.html

Oh yea, were seeking contributors... if your interested in Wine on
FreeBSD and believe you can
help us out see :
http://wine-review.blogspot.com/2007/12/wine-review-is-currently-seeking.html

Thanks for your time.

Cheers,

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


Wine compatibility and performance on FreeBSD 7

2007-12-06 Thread Tom Wickline

Hello Everyone,

I have a small blog about running Wine on Unix operating systems and
over the last couple days I've been
experimenting with Wine on FreeBSD 7 beta 2 (I see beta 4 is out, many
thanks!)

If anyone here is interested I ran Office 97 and 2000 out of the box
on FreeBSD 7beta no registry files
or special hacks needed. Ive also run a couple small applications
(Qicktime 7.1.6) (IE 5 5.5 6) and then some benchmarks
3DMark 2000v1.1, 3DMark2001SE, GL Excess and PC Mark04. In the future
ill see if I can get 3DMark 2003 and 3DMark 2005
to run and produce results as well.

I don't know if any of you guys or gals are Gamers But just in
case I also installed Halo in Wine and it runs about the same
on FreeBSD as it does on Linux. With D3D, DDraw and OpenGL working
most every game that is running in Wine should run
on FreeBSD.. I don't know this as fact as I've only tried one Game and
four Benchmarks, but it does look promising.

More info can be found here:

Wine-Review front Page:
http://wine-review.blogspot.com/

Office 97/2000:
http://wine-review.blogspot.com/2007/12/microsoft-office-2000-on-freebsd-7-with.html
http://wine-review.blogspot.com/2007/12/office-97-on-freebsd-with-wine.html

IE, QT etc..
http://wine-review.blogspot.com/2007/12/quicktime-716-on-freebsd-7-with-wine.html
http://wine-review.blogspot.com/2007/12/ies-4-freebsd-internet-explorer-50-55.html

Benchmark results & Halo:
http://wine-review.blogspot.com/2007/12/benchmarking-wine-on-freebsd-7.html
http:/http://wine-review.blogspot.com/2007/12/halo-combat-evolved-on-freebsd-with.html

Oh yea, were seeking contributors... if your interested in Wine on
FreeBSD and believe you can
help us out see :
http://wine-review.blogspot.com/2007/12/wine-review-is-currently-seeking.html

Thanks for your time.

Cheers,

Tom Wickline
-- 
View this message in context: 
http://www.nabble.com/Wine-compatibility-and-performance-on-FreeBSD-7-tf4957778.html#a14198248
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: CD/DVD writer no longer works

2007-12-06 Thread Wojciech Puchar

/home/pauls/Downloads/FreeBSD/6.2-RELEASE-amd64-disc1.iso fixate
burncd: ioctl(CDRIOCWRITESPEED): Input/output error
[EMAIL PROTECTED] mount /dev/acd
acd0  acd1
[EMAIL PROTECTED] mount /dev/acd1 /mnt/cdrom/
mount: /dev/acd1: Input/output error


mount_cd9660 - unless you use FFS on CD/DVD.

CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00

Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
cdrecord: No disk / Wrong disk!



looks like your device is broken - reports no disk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ng_netflow on PF + CARP firewall question

2007-12-06 Thread shinny knight
Hello all,
   
  I'm trying to use ng_netflow module along with PF+CARP implementation on 
freebsd 6.2.
  I understand from different posts that ng_netflow module is performing quite 
well and does not add so much cpu load since packets are processed in the 
kernel.
  However, ng_netflow documentation is very confusing for begginers and I'm 
having a hard time to figure it out.
   
  Like mentioned before, I have PF+CARP implementation along with 
/usr/ports/net/ifstated port. This part is tested and is working fine. (If 
anybody wants advice here feel free to ask:) )
   
  I'm wonder if it's a good ideea to add ng_netflow on top of it or should I 
use an additional system with TAP interface and just mirror incoming/outgoing 
traffic from switch.
   
  This is what I want to try for ng_netflow:
   
  cat /boot/loader.conf
   
  ng_ether_load="YES"
ng_ksocket_load="YES"
ng_tee_load="YES"
  ng_socket_load="YES"
ng_netflow_load="YES"
   
  cat /etc/rc.conf |grep ng
   
  ng_netflow_enable="YES"
   
   
  cat /usr/local/etc/rc.d/ng_netflow
   
  #!/bin/sh
#
  # PROVIDE: ng_netflow
# REQUIRE: DAEMON
  . /etc/rc.subr
   
  name="ng_netflow"
rcvar=`set_rcvar`
   
  ng_netflow_start()

  {
echo "Starting ${name}."
  /usr/sbin/ngctl -f- <<-SEQ
   
  mkpeer bge2: tee lower right
connect bge2: bge2:lower upper left
name bge2:lower bge2_tee
mkpeer bge2_tee: netflow left2right iface0
name bge2:lower.left2right netflow
connect bge2_tee: netflow: right2left iface1
msg netflow: setifindex { iface=0 index=2 }
msg netflow: setifindex { iface=1 index=1 }
mkpeer netflow: ksocket export inet/dgram/udp
msg netflow:export connect inet/127.0.0.1:8818
   
  mkpeer bge1: tee lower right
connect bge1: bge1:lower upper left
name bge1:lower bge1_tee
mkpeer bge1_tee: netflow left2right iface2
name bge1:lower.left2right netflow0
msg netflow0: setifindex { iface=2 index=4 }
connect bge1_tee: netflow0: right2left iface3
msg netflow0: setifindex { iface=3 index=3 }
mkpeer netflow0: ksocket export inet/dgram/udp
msg netflow0:export connect inet/127.0.0.1:8818
   
  SEQ
}
   
  ng_netflow_stop()
{
echo "Stopping ${name}."
  /usr/sbin/ngctl -f- <<-SEQ
shutdown netflow:
SEQ
}
   
  start_cmd="ng_netflow_start"
stop_cmd="ng_netflow_stop"
   
  load_rc_config $name
   
  : ${ng_netflow_enable="NO"}
   
  run_rc_command "$1"
   
  As can be seen from above script I'm planning sending packets on localhost 
port 8818 first.
  Is the above configuration correct?
   
  It will affect in any way PF+CARP implementation regardging the fact that I'm 
not using CARP inetrfaces with ng_netflow but physical ones like bge1 and bge2? 
(I want to mention here that I'm not planning using ng_netflow on pf_sync 
interface)
   
  Should I stick with solutions from ports like softflowd & similar?
   
  What could be cpu/memory requirements difference for 100Mbps traffic between 
ng_netflow and with softflowd?
   
   
   
   
   
  Thanks in advance for any help.
   
   
   
  Senior Network/Security Administrator
  Catalin Miclaus
   
  Starcomms Ltd.
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Erik Trulsson
On Thu, Dec 06, 2007 at 12:50:55PM -0500, Randy Ramsdell wrote:

> 
> 
> PS. I am confused about why so many people are replying to the list and my 
> personal e-mail. This one was sent to me only. Others were sent to me and 
> the list. Actually, every other reply. Is this normal for the list as I am 
> new as of today?


It is standard procedure on this list to reply both to the list and
directly to the person you are replying to.  Since this is the "general
help-line" for FreeBSD, there are many people posting here who are not
subscribed to the list, and thus won't see the answers if they are only sent
to the list.



-- 

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Bart Silverstrim

Randy Ramsdell wrote:

I think I will just set the rc.conf variable to answer "Y" to fsck 
questions unless there is a better way.
A side note, this system has been hard shutdown two times and each time 
required intervention. We also use several Linux system ( reiserfs and 
ext3 ) and raely do I have to interact with the systems on reboot. There 
is a differnce and I am in the fisrt stages trying to understand this.


Might want to be careful with the always answering "Y" thing, 
though...or at least make sure you have periodic backups ready to go in 
case the repair further loses data in the process.


Is there an area that seems to be needing repairs in particular?  Maybe 
you could find a way to move it to another drive so the system will come 
up more reliably and then other processes can remotely check the 
unmountable drive and remount it and start your process monitoring.


PS. I am confused about why so many people are replying to the list and 
my personal e-mail. This one was sent to me only. Others were sent to me 
and the list. Actually, every other reply. Is this normal for the list 
as I am new as of today?


If looks like if you hit reply all, both addresses are inserted (the 
list isn't stripping the personal one out).  Unless the replier removes 
the personal address or the reply function on their mail client is only 
using a primary address (of the list) to send to, you'll get replies on 
both...depending on the issue some people prefer getting a response 
personally faster than waiting for the list to send it if for some 
reason it's bogging down :-)

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


Re: huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-06 Thread Hans Petter Selasky
On Thursday 06 December 2007, [EMAIL PROTECTED]@mgedv.net wrote:
> > Can you make your modem show up like "ugen" by loading "ugen" before
> > plugging
> > your device.
>
> here it is ;)

Hi,

Your HSDPA modem presented itself like a mass storage device, probably with 
some autorun and virus like drivers intended for the Windows operating 
system :-) 

If that is true you bought a memory stick and not a HDSPA modem.

>bInterfaceClass08
>bInterfaceSubClass 06
>bInterfaceProtocol 50

Try loading "umass" and see for yourself.

Maybe your device cannot be used on non-Windows operating systems.

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Peter Schuller
> Well any number of things, but the most recent was a prolonged power
> outage.

It is important to differentiate between expected fsck activity and 
unexpected.

If you are running without write caching turned on (which is the default), a 
power outtage will constitute a crash from which a file system cannot 
guarantee to recover unless it takes measure to punch through the write cache 
at appropriate moments.

If you machine shutdown softly as a result of the UPS communicating that power 
was running out, you "should" not have to fsck (barring other issues in the 
past). fsck need in these cases would indicate a software bug, or a hardware 
problem.

If on the other hand your machine just lost power when the UPS finally died, 
you are relying on luck for recovery if you're on ufs/reiserfs/xfs/etc. Some 
environments will correctly handle this (e.g., ZFS), but most won't. The 
problem being that drive write caching will prevent the file system from 
guaranteeing ordering of certain critical operations that must be ordered in 
order to guarantee successfull recovery to a consistent state.

That said, you are not supposed to need to answer interactive questions on 
boot for all cases of expected inconsistencies. If you are getting prompts as 
a result of unexpected inconsistencies, that indicates *something* is wrong.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



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


PF with VLAN's - Reference Physical Interface or VLAN Interface?

2007-12-06 Thread Michael K. Smith - Adhost
Hello All:

Thanks to everyone for the hints on carp_alias interfaces.  On a second note, 
we are implementing 802.1Q trunked interfaces.  So, our pre-vlan configuration 
is:

$ext_if="em1"

And an associated NAT rule is:

nat on $ext_if from $mail_in01_int to any -> $mail_in01_ext

With the addition of VLAN's, em1 won't have an IP address.  Instead, the 
addresses of $mail_in01_int and $mail_in01_ext will be on the VLAN interfaces.  
So, my question is, does the rule above stay the same or should it now be:

$vlan2_if="vlan2"

nat on $vlan2_if from $mail_in01_int to any -> $mail_in01_ext

Regards,

Mike


PGP.sig
Description: PGP signature


Plesk in a FreeBSD Jail: My Experiences

2007-12-06 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


First, thanks to all those that have provided some useful pointers on this ... 
I was finally able to get a working install in place using 8.2.1 ...

The main issue I found was that one of the components in the install seems to 
be calling in Apache 2.2, while Plesk uses Apache 2.0 ... so, somehow its able 
to get *both* installed at the same time, but when the installer goes to 
install the 'swsoft/psa' port, it fails because of a conflict ...

So, what I ended up doing is reducing the components to install to the 'bare 
minimal', and then manually added components from /usr/ports/swsoft afterwards 
...

Everything started up fine ... and *appears* to work ...

The one problem that I've not been able to figure out how to surmount is when 
you actually try and add a domain ... even if the client is set to have no 
limits on their resources (ie. disk space), adding a domain tries to set (or 
just check, not 100% certain there) the hardquota on the directory, which, in a 
jail, of course fails ...

With the error being:

"ERROR: PleskFatalException 
Create ShortcutCreate Shortcut
Up LevelUp Level
Unable to get hardquota state: usermng failed: usermng: No entry found for path
/usr/local/www/vhosts in mounted

System error 25: Inappropriate ioctl for device

0: /usr/local/psa/admin/plib/class.PHostingManager.php:1399
PHostingForm->assign(object of type PHostingManager, boolean true,
boolean true, boolean true, boolean true, boolean true, boolean false)
1: /usr/local/psa/admin/htdocs/domains/hosting/phosting_setup.php:296"

Has anyone else tried this in a jail and notice this and/or found a word 
around?  The .php file itself looks to be compiled php, so no way to just 
comment out code :(

- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHWFs24QvfyHIvDvMRAn/CAJ4yaEmO1SBwgv6BPKXIsTbP950CUwCfdMDJ
3Hr7jyrUR4pX02L/jyDdaaY=
=anLk
-END PGP SIGNATURE-

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread RW
On Thu, 06 Dec 2007 11:42:22 -0500
Randy Ramsdell <[EMAIL PROTECTED]> wrote:

> Vince wrote:

> > What is the value of background_fsck in /etc/rc.conf ?
> >
> >   
> This isn't set. Was is supposed to be? 

No, it's on by default, but there's an early check to determine if the
background check can be run. That depends on whether the partition
has soft-updates turned-on (the default in sysinstall), and whether
soft-updates managed to protect the partition during the shut-down. If
fsck is asking for user input, those checks would have failed.


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


ports/database/ruby-dbi and ports/database/ruby-dbd_pg faulty.

2007-12-06 Thread O. Hartmann

Hello.

I try to use DBI:Pg and DBI:MySQL within a ruby-skript for accessing 
either MySQL or PostgreSQL database.


Box is FreeBSD 7.0-BETA4
Mysql is mysql50-server
Postgresql is posgresql82-server and postgresql82-client
with unixODBC and ruby-dbi and ruby-dbd_pg and ruby-dbd_mysql installed.

When running an access using Pg as backend (Postgres) and run this
connect:

dsn   = "DBI:Pg:[EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED]"


dbh = DBI.connect(dsn,@db_user,@db_passwd)

I get this error:

/usr/local/lib/ruby/site_ruby/1.8/dbi.rb:344:in `load_driver': Could not 
load driver (no such file to load -- postgres) (DBI::InterfaceError)
from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:227:in 
`_get_full_driver'

from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:213:in `connect'


It seems that a class library 'postgres.rb' is missing, which is 
included by Pg.rb located in /usr/local/lib/ruby/site_ruby/1.8/DBD/Pg/.


I did a find on my whole filesystem looking for 'postgres.rb' or 
'postgres*' and did not find suitable. It seems this file is missing and 
not been installed by the installation process via ports.


Is this a 'feature', or should I fill out a PR?


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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Barnaby Scott
On Thu, December 6, 2007 4:42 pm, Randy Ramsdell wrote:
> Vince wrote:
>
>> Randy Ramsdell wrote:
>>
>>
>>> We started using FreeBSD for some network monitoring, but have found
>>> that a hard reboot forces us to answer filesytem questions on boot. Is
>>>  there a way to mount each filesystem without this? Or how can we use
>>>  FreeBSD in a remote location without needing to intervene in
>>> situatutions like this?
>>>
>>>
>>
>> This is unusual in my experience, part of the charm of FreeBSD for me
>> is how rarely I have had to interact with fsck thanks to the whole
>> background fsck thing. What version of FreeBSD are you using?
>>
>> Assuming a 5.x or later since you say you've started to use FreeBSD.
>>
>>
>>
> I am fairly sure it is v6.2
>
>> What is the value of background_fsck in /etc/rc.conf ?
>>
>>
>>
> This isn't set. Was is supposed to be? So far, I have only installed
> applications we need. And everything seem fine except the reboot issue.
> This will be an offsite system so I do not want human intervention on
> boot for power outages or hard reboots.
>> You can also try setting fsck_y_enable="YES" in rc.conf (this will do
>> fsck -y if the initial preen fails.)
>>
>>
> I will use this. Do you mean by try, that this will work? I assume so.
>
>
> Thanks Vince!
>

I should first say that I am pretty new to all this, so my response is
intended as a question as much as an answer!

My understanding from the reading I have done is that in a situation like
this where power outages are a danger (and presuably having the UPS signal
the server to shut down gracefully is not practical), you need to make the
file system as robust as possible in the first place, rather than rely on
fsck -y after the event. Doesn't fsck -y rather sweep potential problems
under the carpet?

First step surely is to *disable* write caching if you have drives that
are doing it?

Then consider mounting the file system synchronously. Mind you, I don't
know what the scale of the performance loss would be, and whether anyone
does this nowadays!

As I say, don't rely on my knowledge, but I was prompted to write by your
latching on to a suggestion that was probably not intended to be the whole
solution.

Barnaby Scott



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


Re: CD/DVD writer no longer works

2007-12-06 Thread Paul Schmehl
--On Thursday, December 06, 2007 19:14:51 +0100 Wojciech Puchar 
<[EMAIL PROTECTED]> wrote:



/home/pauls/Downloads/FreeBSD/6.2-RELEASE-amd64-disc1.iso fixate
burncd: ioctl(CDRIOCWRITESPEED): Input/output error
[EMAIL PROTECTED] mount /dev/acd
acd0  acd1
[EMAIL PROTECTED] mount /dev/acd1 /mnt/cdrom/
mount: /dev/acd1: Input/output error


mount_cd9660 - unless you use FFS on CD/DVD.


Yeah, I knew that.  Just mistyped it.  The results are the same in either 
case - input/output error.



CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00 00 00
00  00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
cdrecord: No disk / Wrong disk!



looks like your device is broken - reports no disk


Does this provide any additional information?
[EMAIL PROTECTED] atacontrol cap acd1

Protocol  ATA/ATAPI revision 5
device model  TSSTcorpCD-RW TS-H292B
serial number
firmware revision DE03
cylinders 0
heads 0
sectors/track 0
lba supported
lba48 not supported
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheno   no
read ahead no   no
Tagged Command Queuing (TCQ)   no   no  0/0x00
SMART  no   no
microcode download no   no
security   no   no
power management   yes  yes
advanced power management  no   no  0/0x00
automatic acoustic management  no   no  0/0x00  0/0x00

The result of this command doesn't change if there's a known good CD in the 
drive.  And are you saying that the *device* appears to be bad?  Or the 
*driver* appears to be bad?  Is there a way to confirm this (utility?  test 
process?)


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: CD/DVD writer no longer works

2007-12-06 Thread Robert Marella
On Thu, 06 Dec 2007 15:34:01 -0600
Paul Schmehl <[EMAIL PROTECTED]> wrote:


> The result of this command doesn't change if there's a known good CD
> in the drive.  And are you saying that the *device* appears to be
> bad?  Or the *driver* appears to be bad?  Is there a way to confirm
> this (utility?  test process?)
> 
FWIW, I had similar problems with a DVD burner a couple of weeks ago. I
went ahead and replaced it and the troubles went away. You could try
and see if you could boot a live file system with it. Or, boot from
another optical drive (if you have one) on the system with something
like freesbie/ubuntu and see if it works with the live file system.

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


Boot failure - Recent Kernel(s)

2007-12-06 Thread Mark Jacobs
I am running FreeBSD 6.3-PRERELEASE with my last successful kernel build
on 11/1/07.

I successfully have built two kernels, one a couple of weeks
ago and one just today but when I attempt to boot them these new kernels
are not able to identify my boot partition.

When I query the devices that the kernel sees during the boot failure
all I see is an ad14 device(Which doesn't exist) and acd0.

When I select the old kernel it boots without a problem. My boot device
is ad10s1 which the November 1st kernel finds without a problem.

I'm running a generic SMP kernel.

Any ideas on what the problem is?

Mark Jacobs

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


Re: CD/DVD writer no longer works

2007-12-06 Thread Girish Venkatachalam
On 11:34:25 Dec 06, Paul Schmehl wrote:
> 

[..]

> I can see the device using atacontrol.
> [EMAIL PROTECTED] atacontrol info ata0
> Master: acd0  ATA/ATAPI revision 6
> Slave:  acd1  ATA/ATAPI revision 5

[..]

> Drive buf size : 1016064 = 992 KB
> FIFO size  : 4194304 = 4096 KB
> Track 01: data   616 MB
> Total size:  707 MB (70:07.13) = 315535 sectors
> Lout start:  708 MB (70:09/10) = 315535 sectors
> cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable error
> CDB:  00 00 00 00 00 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00 00 00 00 
> 00 00 00 00 00 00 00 00 00 00 00
> Sense Key: 0x2 Not Ready, Segment 0
> Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
> Sense flags: Blk 0 (not valid)
> cmd finished after 0.000s timeout 40s
> cdrecord: No disk / Wrong disk!
> 
> I just upgraded from FreeBSD 6.0 RELEASE to 6.2 RELEASE hoping that might 
> solve the problem.  (I cvsupped the sources and ran make 
> buildworld/buildkernel, etc.)
> 
> Do I have a hardware failure?  Or is something else wrong?

Check your jumpers. I had a similar problem that I fixed by using the
right jumper on the CD/DVD drive.

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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread NetOpsCenter

Randy Ramsdell wrote:

Robert Huff wrote:

Randy Ramsdell writes:
 

 > What is the value of background_fsck in /etc/rc.conf ?
 >This isn't set. Was is supposed to be? So far, I have only
 installed applications we need. And everything seem fine except
 the reboot issue.



I'm going to jump in here.
Based on what you've said, it sounds like:

the system was running
there was power outage, the system did not have a UPS
when the system rebooted, fsck complained but nothing was done
about the errors

  
Let me clarify. All our servers are on UPSes, however the power outage 
outlasted the UPSes. That is why I stated prolonged power outage.
Fsck did complain, but everything was fixed as I sat there and dealt 
with it. We do not want to deal with it in an offsite location and 
that is why this thread.



IF THAT'S TRUE ...
... then the "seems" in your description is applicable,
and should be a red flag.  Get someone to the system, reboot it 
into single user mode, and

run (and re-run) fsck until it runs without error.  (Answer 'y' to
all prompts.) This should be done whenever the file system is not
shutdown cleanly.
  
The filesystem is fine. Our set up just does not recover gracefully on 
hard reboots.

(And consider a UPS, even it it only keeps the system alive for
the few minutes necessary for a clean shutdown.)
  Is a dirty file system causing the reboots?  

No. a power prolonged power failure caused the last  shutdown.

Possibly; wiser
heads than mine would have to lay out scearios.  But it may also be
responsible for other damage, more subtle but equally unpleasant.  A
fix is available.  Use it.
I understand this will not be easy, and I sympathize.  Balance
that pain against the small but non-trivial chance to catastrophic
data loss, and choose wisely.



Robert Huff
  



Thanks for the reply.

I think I will just set the rc.conf variable to answer "Y" to fsck 
questions unless there is a better way.
A side note, this system has been hard shutdown two times and each 
time required intervention. We also use several Linux system ( 
reiserfs and ext3 ) and raely do I have to interact with the systems 
on reboot. There is a differnce and I am in the fisrt stages trying to 
understand this.



PS. I am confused about why so many people are replying to the list 
and my personal e-mail. This one was sent to me only. Others were sent 
to me and the list. Actually, every other reply. Is this normal for 
the list as I am new as of today?

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



Aloha,

If the power outages are prolonged and outlast the UPS you can parallel 
the small battery in the UPS  with a 100 amp hour  stationary battery if 
you have the room. We can get 9 hours on a stationery battery for our 
servers if we lose power here in Hawaii. (which just happened this week 
during a winter storm.)



~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
"All that's really worth doing is what we do for others."- Lewis Carrol


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


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread Ivan Voras
Randy Ramsdell wrote:
> We started using FreeBSD for some network monitoring, but have found
> that a hard reboot forces us to answer filesytem questions on boot. Is
> there a way to mount each filesystem without this? Or how can we use
> FreeBSD in a remote location without needing to intervene in
> situatutions like this?

Usually, FreeBSD can boot just fine without user interaction when power
fails or there's some other cause for a "hard" OS failure (e.g. a kernel
panic). That it isn't doing so in your case is significant, because it
may point to serious problems. Firstly, what is the server used for? Do
you have unusually high load on the file system - a busy file server or
a database with lots of writes?

- The default is for the root partition to be mounted "noasync" and
Soft-updates to be used for all other file systems. Both settings can
handle "hard" OS failures pretty good. Did you alter the default
settings when creating the file systems? If you don't know, send the
output of "mount" command.

- How are your drives set up? Are they on a "dumb" disk controller or on
a RAID controller? (which one?) Is the RAID controller perhaps doing
write caching without a battery unit?

- Can you connect the UPS devices with the server machines so they can
shutdown gracefully when the power is about to fail?



signature.asc
Description: OpenPGP digital signature


Re: Freebsd filesystem ( hard reboot )

2007-12-06 Thread NetOpsCenter

Randy Ramsdell wrote:

Vince wrote:

Randy Ramsdell wrote:
 

We started using FreeBSD for some network monitoring, but have found
that a hard reboot forces us to answer filesytem questions on boot. Is
there a way to mount each filesystem without this? Or how can we use
FreeBSD in a remote location without needing to intervene in
situatutions like this?




This is unusual in my experience, part of the charm of FreeBSD for me is
how rarely I have had to interact with fsck thanks to the whole
background fsck thing. What version of FreeBSD are you using?

Assuming a 5.x or later since you say you've started to use FreeBSD.

  

I am fairly sure it is v6.2

What is the value of background_fsck in /etc/rc.conf ?

  
This isn't set. Was is supposed to be? So far, I have only installed 
applications we need. And everything seem fine except the reboot 
issue. This will be an offsite system so I do not want human 
intervention on boot for power outages or hard reboots.

You can also try setting fsck_y_enable="YES" in rc.conf (this will do
fsck -y if the initial preen fails.)

  

I will use this. Do you mean by try, that this will work? I assume so.

Thanks Vince!


Oh, Is there a way to not receive 2 messages for every reply to this 
thread?

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


Questions on a FreeBSD reboot?   Any boxes I have ever built can reboot 
by themselves with no human intervention. BUT SEE BELOW:


This sounds like a BIOS settings issue on a box that has powered off.

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
"All that's really worth doing is what we do for others."- Lewis Carrol


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