Re: Could any port be sucking up bandwidth?

2011-01-25 Thread Charlie Kester

On Tue 25 Jan 2011 at 22:49:40 PST Gary Kline wrote:

Guys,

Before the 11th of January I was streaming both audio and video
streams with little to zero wait time.  In other words, I could
stream about 50 minutes of audio with only a second or two of pause
time delay [[AKA congestion]].  After that date there was a steep
decline in streaming performance and I went at upgrading my server
with a vengeance to see if that fixed things.  Upgrading my 700
ports only led to other things breaking.  I am wondering if anyone
else in North America has a DSL connection and has seen the kind of
degradation in performance after doing (something) to their FreeBSD
servers.

I have around 1Mb down and 864Kb up ... according to the telco.  Any
ideas will be much appreciated.


This kind of random fishing expedition is unlikely to succeed.  You need
to take a more methodical approach to the problem.

Luckily, Kris Kennaway did a presentation a while ago that teaches you
the *right* way to fish:

http://www.youtube.com/watch?v=Mfb5_uG7BCA

Learn what diagnostic tools are available, where they're appropriate,
and how to use them.

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


REPOST: Re: help requested in fixing disk label mistake

2011-01-25 Thread Scott Bennett
 A few days ago, I posted here regarding damage resulting from a typing
error and, a few minutes later, posted a followup to correct an error in my
description of the problem.  Thus far I've gotten no responses.  In case the
lack of response is simply due to the message having gotten lost in the flow,
I'm reposting it below.  I hope that someone who is more familiar with the
details of bsdlabels and glabels can help me understand how to correct the
problem because I'm loath at this point to embark upon an ill-informed trial-
and-error experimentation program to recover label and file system(s).

Scott
 repost follows.
 I just wrote:
> A couple of days ago, I reorganized the internal hard drive of my machine
>to reclaim space that used to be occupied by another operating system for use
>with my now exclusively FreeBSD system.  I used a stand-alone partition manager
>to edit the slices down to just two slices.  I then attempted to bsdlabel the
>first slice, but made a bit of a slip.  When I should have typed
>
>   bsdlabel -w ad0s1
>
>I actually typed
>
>   bsdlabel -w da0s1
>
>Oops.
> I went ahead with the work on the internal drive (ad0), and the system
>is up and running fine.  Now I'd like to try to fix the damage done to the
>external drive that I relabeled by mistake.  That drive's layout before the
>damage was done was a single slice, divided into two partitions (da0s1 and
  ^
>da0s2), each of which was then glabel'ed.  The moment I rewrote the bsdlabel
 ^
 Yet another pair of mistakes on my part.  Those should have said da0s1d
and da0s1e.  Sorry for any confusion.
 
>for the first slice by mistake, the two partitions' entries in /dev/label
>vanished, of course.  I checked and discovered that the only external drive
>for which I had not kept backup copies of the bsdlabel information was that
>drive. :-(  Fortunately, the full backups of the file systems that I needed
>to reload onto the internal drive were in the first partition of the external
>drive in question (used to be s1d, now s1a for the time being), so by mounting
>/dev/da0s1a I still had full access to the file system containing the backups.
> My hypothesis is if I can somehow rewrite a correct bsdlabel for the
>affected slice, that the system will then recognize the glabel metadata for
>the two partitions immediately, and the /dev/label entries will appear right
>away like magic.  Unfortunately, without a backup file of the bsdlabel
>information, I'm unsure how to accomplish that.  Is there some way that I can
>discover the exact size in sectors of the first partition, so that I could
>edit the bsdlabel information and redefine it as two partitions of the correct
>sizes and offsets?  Is there some field in dumpfs(8) output that would give me
>what I need (allowing, of course, for the fact that the first partition
>is actually one sector longer than anything dumpfs(8) would know about due to
>the glabel metadata in the final sector of the partition)?  Or is my hypothesis
>stated above actually incorrect, and if so, why/how?
> PLEASE send any replies to ME DIRECTLY (or at least Cc: me directly)
>because I receive this list in digest form and am at least a week and a half
>behind on my reading. :-}  Thanks much in advance for any helpful ideas.


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
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"


Could any port be sucking up bandwidth?

2011-01-25 Thread Gary Kline
Guys,

Before the 11th of January I was streaming both audio and video
streams with little to zero wait time.  In other words, I could
stream about 50 minutes of audio with only a second or two of pause
time delay [[AKA congestion]].  After that date there was a steep
decline in streaming performance and I went at upgrading my server
with a vengeance to see if that fixed things.  Upgrading my 700
ports only led to other things breaking.  I am wondering if anyone
else in North America has a DSL connection and has seen the kind of
degradation in performance after doing (something) to their FreeBSD
servers.

I have around 1Mb down and 864Kb up ... according to the telco.  
Any ideas will be much appreciated.


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.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: include file not found

2011-01-25 Thread Da Rock

On 01/26/11 14:13, Da Rock wrote:

Ok, I'm here again... next question (same quest).

FWIW this is about getting a l2tp vpn working for android connections. 
I have come across a carrier grade system called l2tpns which I'm 
trying to build to see if it will work.


I've built libcli (but without clitest) and it has installed the 
header files under /usr/local/include. When I build l2tpns I get:


gcc -Wall -Wformat-security -Wno-format-zero-length  -g -O3 -I. 
-DLIBDIR='"/lib/l2tpns"' -DETCDIR='"/etc/l2tpns"' -DSTATISTICS 
-DSTAT_CALLS -DRINGBUFFER -DHAVE_EPOLL -DBGP -c -o arp.o arp.c

In file included from arp.c:8:
/usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
In file included from arp.c:9:
/usr/include/netinet/if_ether.h:96: error: field 'sin_addr' has 
incomplete type
/usr/include/netinet/if_ether.h:97: error: field 'sin_srcaddr' has 
incomplete type

In file included from arp.c:11:
l2tpns.h:15:20: error: libcli.h: No such file or directory
In file included from arp.c:11:
l2tpns.h:772: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:772: warning: its scope is only this definition or 
declaration, which is probably not what you want

l2tpns.h:773: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:774: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:797: warning: 'struct cli_def' declared inside parameter list
arp.c:20: error: 'ETH_ALEN' undeclared here (not in a function)
arp.c: In function 'sendarp':
arp.c:29: error: storage size of 'sll' isn't known
arp.c:54: error: 'PF_PACKET' undeclared (first use in this function)
arp.c:54: error: (Each undeclared identifier is reported only once
arp.c:54: error: for each function it appears in.)
arp.c:54: error: 'ETH_P_RARP' undeclared (first use in this function)
arp.c:57: error: 'AF_PACKET' undeclared (first use in this function)
arp.c:29: warning: unused variable 'sll'
gmake: *** [arp.o] Error 1

Incidentally I changed the include in arp.c from linux/if_packet.h to 
netinet/if_ether.h. My problem lies in the file not found error for 
libcli.h, though. ls /usr/local/include shows libcli.h there as 
expected with the same permissions as the other header files there.


Any ideas?

Sorry- scratch that. My output now looks like:

gcc -Wall -Wformat-security -Wno-format-zero-length  -g -O3 -I. 
-I/usr/include -I/usr/local/include  -DLIBDIR='"/lib/l2tpns"' 
-DETCDIR='"/etc/l2tpns"' -DSTATISTICS -DSTAT_CALLS -DRINGBUFFER 
-DHAVE_EPOLL -DBGP -c -o arp.o arp.c

In file included from arp.c:8:
/usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
In file included from arp.c:9:
/usr/include/netinet/if_ether.h:96: error: field 'sin_addr' has 
incomplete type
/usr/include/netinet/if_ether.h:97: error: field 'sin_srcaddr' has 
incomplete type

arp.c:20: error: 'ETH_ALEN' undeclared here (not in a function)
arp.c: In function 'sendarp':
arp.c:29: error: storage size of 'sll' isn't known
arp.c:54: error: 'PF_PACKET' undeclared (first use in this function)
arp.c:54: error: (Each undeclared identifier is reported only once
arp.c:54: error: for each function it appears in.)
arp.c:54: error: 'ETH_P_RARP' undeclared (first use in this function)
arp.c:57: error: 'AF_PACKET' undeclared (first use in this function)
arp.c:29: warning: unused variable 'sll'
gmake: *** [arp.o] Error 1

I'll try and work it out on my own, but if anyone wants to chip it'd be 
very welcome. Sorry for the cruft :)

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


include file not found

2011-01-25 Thread Da Rock

Ok, I'm here again... next question (same quest).

FWIW this is about getting a l2tp vpn working for android connections. I 
have come across a carrier grade system called l2tpns which I'm trying 
to build to see if it will work.


I've built libcli (but without clitest) and it has installed the header 
files under /usr/local/include. When I build l2tpns I get:


gcc -Wall -Wformat-security -Wno-format-zero-length  -g -O3 -I. 
-DLIBDIR='"/lib/l2tpns"' -DETCDIR='"/etc/l2tpns"' -DSTATISTICS 
-DSTAT_CALLS -DRINGBUFFER -DHAVE_EPOLL -DBGP -c -o arp.o arp.c

In file included from arp.c:8:
/usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
In file included from arp.c:9:
/usr/include/netinet/if_ether.h:96: error: field 'sin_addr' has 
incomplete type
/usr/include/netinet/if_ether.h:97: error: field 'sin_srcaddr' has 
incomplete type

In file included from arp.c:11:
l2tpns.h:15:20: error: libcli.h: No such file or directory
In file included from arp.c:11:
l2tpns.h:772: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:772: warning: its scope is only this definition or declaration, 
which is probably not what you want

l2tpns.h:773: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:774: warning: 'struct cli_def' declared inside parameter list
l2tpns.h:797: warning: 'struct cli_def' declared inside parameter list
arp.c:20: error: 'ETH_ALEN' undeclared here (not in a function)
arp.c: In function 'sendarp':
arp.c:29: error: storage size of 'sll' isn't known
arp.c:54: error: 'PF_PACKET' undeclared (first use in this function)
arp.c:54: error: (Each undeclared identifier is reported only once
arp.c:54: error: for each function it appears in.)
arp.c:54: error: 'ETH_P_RARP' undeclared (first use in this function)
arp.c:57: error: 'AF_PACKET' undeclared (first use in this function)
arp.c:29: warning: unused variable 'sll'
gmake: *** [arp.o] Error 1

Incidentally I changed the include in arp.c from linux/if_packet.h to 
netinet/if_ether.h. My problem lies in the file not found error for 
libcli.h, though. ls /usr/local/include shows libcli.h there as expected 
with the same permissions as the other header files there.


Any ideas?
___
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: gmake format

2011-01-25 Thread APseudoUtopia
On Tue, Jan 25, 2011 at 8:37 PM, Da Rock
 wrote:
> You'll have to excuse my ignorance (and my curious mind...), but I can't
> seem to find a straight answer to this. I know linux uses gmake, and gmake
> is installed via ports on FreeBSD, but does that mean gmake will only create
> linux binaries using the abi compatibility?
>
> Is it possible to translate the Makefile to use make instead and build as a
> native binary instead?

No, gmake can make binaries that work on freebsd. For example, the
Atheme IRC services require gmake, not make on freebsd (at least, last
I checked). It's just a difference in the format of the Makefile.
___
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: gmake format

2011-01-25 Thread Da Rock

On 01/26/11 12:05, RW wrote:

On Wed, 26 Jan 2011 11:37:58 +1000
Da Rock  wrote:

   

You'll have to excuse my ignorance (and my curious mind...), but I
can't seem to find a straight answer to this. I know linux uses
gmake, and gmake is installed via ports on FreeBSD, but does that
mean gmake will only create linux binaries using the abi
compatibility?

 

No.

Broadly speaking ports that build from source install native binaries,
and binaries that use the linux ABI are installed by the port from
linux binary packages.

   
Ok, thanks guys. The clears up that question for me, but I'm still about 
as clear as mud on what I'm trying to achieve :) I am determined to 
succeed though... it won't beat me!

___
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: gmake format

2011-01-25 Thread RW
On Wed, 26 Jan 2011 11:37:58 +1000
Da Rock  wrote:

> You'll have to excuse my ignorance (and my curious mind...), but I
> can't seem to find a straight answer to this. I know linux uses
> gmake, and gmake is installed via ports on FreeBSD, but does that
> mean gmake will only create linux binaries using the abi
> compatibility?
>

No.

Broadly speaking ports that build from source install native binaries,
and binaries that use the linux ABI are installed by the port from
linux binary packages.

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


Best RAID setup

2011-01-25 Thread Don O'Neil
I'm getting ready to setup a new FreeBSD 8.1 64 bit server and wanted to
know everyone's thoughts on which way to go. software RAID 5 (or 10) or
hardware RAID 5 (or 10). I currently have a 3Ware card in one of my servers
and it works great, but I haven't really been keeping up on what the latest
RAID support is. How is the ZFS support these days? Is it production ready?
What about hardware RAID, is there a compatibility list somewhere with what
hardware (or pseudo hardware) RAID controllers are supported? 

 

I'm just looking for the most stable, and production ready RAID that can
handle at least 1 TB disks and create volumes in the 3-4 TB range. Any
thoughts, feedback, caveats, etc. are welcomed.

 

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"


gmake format

2011-01-25 Thread Da Rock
You'll have to excuse my ignorance (and my curious mind...), but I can't 
seem to find a straight answer to this. I know linux uses gmake, and 
gmake is installed via ports on FreeBSD, but does that mean gmake will 
only create linux binaries using the abi compatibility?


Is it possible to translate the Makefile to use make instead and build 
as a native binary instead?

___
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: How to label a GELI device

2011-01-25 Thread Rolf G Nielsen

2011-01-25 19:37, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 07:28:25PM +0100, Rolf Nielsen wrote:

X-Spam-Level:

2011-01-25 19:13, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote:


Correct me if I'm wrong anyone.
You need to first label da0s1d

e.g. like so

glabel label data da0s1d

then geli init the labeled device

e.g. like so

geli init -l 256 -s 4096 label/data


Unfortunately, this step overwrites the label.


It does not. I just tested it with a file backed md device, and
hexdumped it after each step (creating the file, mdconfig it, label the
md device and encrypting it).
After the first two steps, I got just zeros, after labeling it, I got
the last sector containing the label, and after encrypting it, I got the
second last sector (i.e. the last sector of the labeled device)
containing the eli data and the last secor still containing the label.

If it does overwrite the label, you most likely specified the da0s1d to
the geli init command. You need to specify label/data (replace "data"
with the name you choose).


Ah!  That is, in fact, exactly what I did.  I didn't realize
that the glabeled device was actually shrunk by 1 sector.

Thanks!



You're welcome. Hope you got it working in the end. :)
___
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"


Streams fail, more/less.

2011-01-25 Thread Gary Kline
The _last_ thing that I need to resolve--or at least to understand, is why
streams suddenly stopped working about two weeks ago.  With all the other
hassles, I didn't want to check and see if streams worked here on my server
--they don't.  The streams stall after a few seconds or a few minutes on my
Ubuntu desktop.  The youtube streams always worked before.  No more.  

Meanwhile I have no trouble downloading source or packages at 110 to 170kpbs .
 But the streams fail: both audio and video.  I have zero idea even where to
 begin looking to fix this problem.

 Anybody know?

 thanks in advance,

 gary


 PS: some audio will streams at very slow rate ... but usually stops after a
 few minutes.





-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.97a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
___
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"


dhcpd does not log

2011-01-25 Thread Toomas Aas

Hello!

I have isc-dhcp41-server-4.1.2,1 installed on FreeBSD 8.1 amd64 and it  
is working well, except that it generates no log.


In dhcpd.conf I have this line:
log-facility local4;

and in syslog.conf:
local4.*/var/log/dhcpd

The file /var/log/dhcpd exists with permissions 0600, owned by root. I  
have restarted dhcpd and syslogd and the entire server, but this has  
no effect. I have also tried removing the log-facility line from  
dhcpd.conf expecting that after restarting dhcpd the log messages  
appear in /var/log/messages, but they don't.


dhcpd is running with these arguments, as seen by ps:

/usr/local/sbin/dhcpd \
  -q -cf /usr/local/etc/dhcpd.conf \
  -lf /var/db/dhcpd/dhcpd.leases \
  -pf /var/run/dhcpd/dhcpd.pid \
  -user dhcpd -group dhcpd -chroot /var/db/dhcpd em0


--
Toomas Aas

___
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: more CPU being used than I have (?)

2011-01-25 Thread Chad Perrin
On Tue, Jan 25, 2011 at 06:20:02AM -0700, Dmitri Brengauz wrote:
> On Mon, Jan 24, 2011 at 8:07 PM, Chad Perrin  wrote:
> >
> > Do you have a reference to a relatively simple explanation of how that
> > weighting works (and why)?
> 
> man 1 ps:
> 
> %cpu  The CPU utilization of the process; this is a decaying average
>  over up to a minute of previous (real) time. Since the time
> base over which this is computed varies (since processes may be
> very young) it is possible for the sum of all %cpu fields to
> exceed 100%.

Unfortunately, that doesn't explain why.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgp8tkJorkGlG.pgp
Description: PGP signature


Re: How to label a GELI device

2011-01-25 Thread J. Porter Clark
On Tue, Jan 25, 2011 at 07:28:25PM +0100, Rolf Nielsen wrote:
> X-Spam-Level: 
> 
> 2011-01-25 19:13, J. Porter Clark skrev:
> > On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote:
> >>
> >> Correct me if I'm wrong anyone.
> >> You need to first label da0s1d
> >>
> >> e.g. like so
> >>
> >> glabel label data da0s1d
> >>
> >> then geli init the labeled device
> >>
> >> e.g. like so
> >>
> >> geli init -l 256 -s 4096 label/data
> >
> > Unfortunately, this step overwrites the label.
> 
> It does not. I just tested it with a file backed md device, and 
> hexdumped it after each step (creating the file, mdconfig it, label the 
> md device and encrypting it).
> After the first two steps, I got just zeros, after labeling it, I got 
> the last sector containing the label, and after encrypting it, I got the 
> second last sector (i.e. the last sector of the labeled device) 
> containing the eli data and the last secor still containing the label.
> 
> If it does overwrite the label, you most likely specified the da0s1d to 
> the geli init command. You need to specify label/data (replace "data" 
> with the name you choose).

Ah!  That is, in fact, exactly what I did.  I didn't realize
that the glabeled device was actually shrunk by 1 sector.

Thanks!

-- 
J. Porter Clark  
___
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: How to label a GELI device

2011-01-25 Thread Rolf Nielsen

2011-01-25 19:13, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote:


Correct me if I'm wrong anyone.
You need to first label da0s1d

e.g. like so

glabel label data da0s1d

then geli init the labeled device

e.g. like so

geli init -l 256 -s 4096 label/data


Unfortunately, this step overwrites the label.


It does not. I just tested it with a file backed md device, and 
hexdumped it after each step (creating the file, mdconfig it, label the 
md device and encrypting it).
After the first two steps, I got just zeros, after labeling it, I got 
the last sector containing the label, and after encrypting it, I got the 
second last sector (i.e. the last sector of the labeled device) 
containing the eli data and the last secor still containing the label.


If it does overwrite the label, you most likely specified the da0s1d to 
the geli init command. You need to specify label/data (replace "data" 
with the name you choose).


If I try

to repeat the glabel command, then the geli metadata is
overwritten.


That will give you a device node called /dev/label/data.eli, that you
can newfs and mount. Unfortunately, since you already encrypted da0s1d,
you may have to back it up, and restore the data after you've redone it.
I had this problem a few years ago, and I had to back up and restore,
but perhaps it's been made simpler now? Though I doubt it.


I think that this is the problem.


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


Re: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-25 Thread Yuri



Does reverting:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h

fixed problem?
   


Hi Paul,

So did the find that this particular checkin caused the problem led to 
some resolution? Is it fixed now in 8.X or 9.X?


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


Re: How to label a GELI device

2011-01-25 Thread J. Porter Clark
On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote:
> 
> Correct me if I'm wrong anyone.
> You need to first label da0s1d
> 
> e.g. like so
> 
> glabel label data da0s1d
> 
> then geli init the labeled device
> 
> e.g. like so
> 
> geli init -l 256 -s 4096 label/data

Unfortunately, this step overwrites the label.  If I try
to repeat the glabel command, then the geli metadata is
overwritten.

> That will give you a device node called /dev/label/data.eli, that you 
> can newfs and mount. Unfortunately, since you already encrypted da0s1d, 
> you may have to back it up, and restore the data after you've redone it. 
> I had this problem a few years ago, and I had to back up and restore, 
> but perhaps it's been made simpler now? Though I doubt it.

I think that this is the problem.

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


Re: upgrading a dozen of servers from 7.0 to 8.1

2011-01-25 Thread Radomskiy Yuriy
Hello.

Thank you and everyone who answered.

I will share my experinece to the list when I walk my way throught the upgrade )

21.01.2011, 17:13, "Odhiambo Washington" :
> On Fri, Jan 21, 2011 at 4:54 PM, Radomskiy Yuriy ; wrote:
>
>>  Hello!
>>
>>  I have around 15 servers running FreeBSD 7.0 across the country.
>>  I would like to upgrade them to 7.3 or even 8.1 using binary updates.
>>  They are primary mail servers all running apache-2.0 + php5-5.2.10,
>>  mysql-server-5.1, exim-4.69, dovecot-1.1
>>  They are almost identical - they were identical a couple of years ago, but
>>  now they have some minor differences (soft, settings, scripts)
>>  Hardware is all the same.
>>  All the servers are in production.
>>
>>  The steps I have to do and the questions about them i have:
>>  1. update all soft to current versions (including change of config files)
>>  apache - goto v2.2
>>  php - goto v5.3
>>  mysql - stick with 5.1
>>  exim - goto 4.73
>>  dovecot - goto 1.2.16
>>  q's:
>>  how can upgrading to apache 2.2 + php5.3 be done with minimal downtime?
>
> portupgrade -o lang/php52 lang/php5
>
> That will upgrade your php from 5.2.10 to 5.2.17. Please stick with
> php-5.2.x unless you are sure php-5.3 will not break some web apps you are
> running.
>
> upgrade php-extensions the same way.
>
> can i upgrade or is it better to rebuild it from the scratch (because of
>
>>  major version changes)?
>
> You can upgrade. Please follow the instructions from
> http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-7x-8x.txt
>
> Just note one thing I noticed while upgrading my servers:
>
> s/compat7x-`uname -m`-7.2.702000.200906.1.tbz/compat7x-`uname
> -m`-7.3.703000.201008.tbz/g
>
>>  2. do a binary upgrade of OS according to handbook
>>  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
>
> You can do that, but I personally prefer
> http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-7x-8x.txt.
> I have never used freebsd-update on any system I run, but that is out of
> choice, not any other reason!
>
>>  3. rebuil all the software again
>>  portupgrade -af
>
> If you follow
> http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-7x-8x.txt,
> there will not be any urgency in doing portupgrade -af.
..
___
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: How to label a GELI device

2011-01-25 Thread Rolf Nielsen

2011-01-25 15:07, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 10:45:52AM +0200, Nikos Vassiliadis wrote:

J. Porter Clark wrote:

I have an encrypted partition, /dev/da0s1d.  I can use geli
attach da0s1d and obtain a device /dev/da0s1d.eli, which is a
UFS filesystem.  All that works just fine.

I'd like to label /dev/da0s1d so that I don't have to refer to
the exact drive number, etc., which might change if I reboot
with a USB stick in the system or whatever.  But glabel puts the
label in the last sector, which is where GELI stores metadata.


You don't have to worry about this. geli uses the last sector for
its metadata and creates a device with one sector less to its clients.
The original device is 2048 sectors, the device geli provides is 2047
sectors:

moby# diskinfo /dev/md0 /dev/md0.eli
/dev/md0512 1048576 20480   0
/dev/md0.eli512 1048064 20470   0


There is no way for the "internal" GEOM to mess with the "external's"
metadata.


That's fine, but I want to label the "external" /dev/md0, not
the "internal" /dev/md0.eli.

What I eventually want to do is to "geli attach" the device
using a name that doesn't depend on drive numbering.



Correct me if I'm wrong anyone.
You need to first label da0s1d

e.g. like so

glabel label data da0s1d

then geli init the labeled device

e.g. like so

geli init -l 256 -s 4096 label/data

then

geli attach label/data

That will give you a device node called /dev/label/data.eli, that you 
can newfs and mount. Unfortunately, since you already encrypted da0s1d, 
you may have to back it up, and restore the data after you've redone it. 
I had this problem a few years ago, and I had to back up and restore, 
but perhaps it's been made simpler now? Though I doubt it.


Rolf Nielsen
___
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: How to label a GELI device

2011-01-25 Thread J. Porter Clark
On Tue, Jan 25, 2011 at 10:45:52AM +0200, Nikos Vassiliadis wrote:
> J. Porter Clark wrote:
> > I have an encrypted partition, /dev/da0s1d.  I can use geli
> > attach da0s1d and obtain a device /dev/da0s1d.eli, which is a
> > UFS filesystem.  All that works just fine.
> > 
> > I'd like to label /dev/da0s1d so that I don't have to refer to
> > the exact drive number, etc., which might change if I reboot
> > with a USB stick in the system or whatever.  But glabel puts the
> > label in the last sector, which is where GELI stores metadata.
> 
> You don't have to worry about this. geli uses the last sector for
> its metadata and creates a device with one sector less to its clients.
> The original device is 2048 sectors, the device geli provides is 2047
> sectors:
> > moby# diskinfo /dev/md0 /dev/md0.eli
> > /dev/md0512 1048576 20480   0
> > /dev/md0.eli512 1048064 20470   0
> 
> There is no way for the "internal" GEOM to mess with the "external's"
> metadata.

That's fine, but I want to label the "external" /dev/md0, not
the "internal" /dev/md0.eli.

What I eventually want to do is to "geli attach" the device
using a name that doesn't depend on drive numbering.

-- 
J. Porter Clark  
___
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: more CPU being used than I have (?)

2011-01-25 Thread Dmitri Brengauz
On Mon, Jan 24, 2011 at 8:07 PM, Chad Perrin  wrote:

> On Tue, Jan 25, 2011 at 01:02:46AM +, Craig Butler wrote:
> > On Mon, 2011-01-24 at 16:57 -0700, Chad Perrin wrote:
> > > I'm running a two-core laptop that, once in a great while, shows
> > > approximately 250% CPU usage by a single process in top.  How exactly
> > > does that work?
> > >
> > > Note: It's not entirely surprising that this particular process is
> > > consuming a lot of resources.  It's just surprising to me that it's
> > > consuming more than CPUs * 100%.
> >
> > Hi Chad
> >
> > Its to do with top using weighted CPU percentage... for some reason this
> > show peaks as more usage than 100% -- maybe something to do with the top
> > averaging out over a specific time.
> > I find that raw CPU mode gives a more accurate representation.
> >
> > raw mode is toggled by passing the -C argument to top.
>
> Do you have a reference to a relatively simple explanation of how that
> weighting works (and why)?
>
> --
> Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
>

man 1 ps:

%cpu  The CPU utilization of the process; this is a decaying average
 over up to a minute of previous (real) time. Since the time
base over which this is computed varies (since processes may be
very young) it is possible for the sum of all %cpu fields to
exceed 100%.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: snd_es137x && no recording from headset micro

2011-01-25 Thread Da Rock

On 01/25/11 23:27, Matthias Apitz wrote:

Hello,

I run FreeBSD 8.x in a VMWare hosted on Win7. The VM presents the Intel
HDA sound card of the laptop as AudioPCI ES1371-A and I have to use the driver
snd_es137x(4) which works fine with only the problem that I can not
manage to record from the headset micro.

The headset micro works fine in Win7 and it switches between the laptop
build-in micro and the headset micro on plug-in; as well while running
FreeBSD before as host system on this laptop I could record from both micro 
(using the
snd_hda(4) driver.

The output of /dev/sndstat is:

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0:  at io 0x2040 irq 16 kld snd_es137x [MPSAFE] 
(2p:4v/1r:4v channels duplex default)

i.e. there is only pcm0 and no pcm1 (should it?)

I also tried setting:

# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
# sysctl hw.snd.maxautovchans=4

mixer(1) says:

$ mixer
Mixer vol  is currently set to  85:85
Mixer pcm  is currently set to 100:100
Mixer line is currently set to  90:90
Mixer mic  is currently set to  83:83
Mixer cd   is currently set to  83:83
Mixer rec  is currently set to  72:72
Mixer igainis currently set to  90:90
Mixer line1is currently set to  83:83
Mixer phin is currently set to  86:86
Mixer videois currently set to  86:86
Recording source: mic

and I tried changing to all available recording devices:

$ mixer bla
...
rec devices: vol, line, mic, cd, line1, phin, phout, video

with no luck; any idea how could I record from headset micro?

   
I can't remember too much from Winblow$, but can you tell if VMWare is 
using wdm? Could it be a case of hardware already in use?


Alternatively, could the mixer settings be muted using wdm and the sound 
not coming through?


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


snd_es137x && no recording from headset micro

2011-01-25 Thread Matthias Apitz

Hello,

I run FreeBSD 8.x in a VMWare hosted on Win7. The VM presents the Intel
HDA sound card of the laptop as AudioPCI ES1371-A and I have to use the driver
snd_es137x(4) which works fine with only the problem that I can not
manage to record from the headset micro.

The headset micro works fine in Win7 and it switches between the laptop
build-in micro and the headset micro on plug-in; as well while running
FreeBSD before as host system on this laptop I could record from both micro 
(using the
snd_hda(4) driver.

The output of /dev/sndstat is:

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0:  at io 0x2040 irq 16 kld snd_es137x [MPSAFE] 
(2p:4v/1r:4v channels duplex default)

i.e. there is only pcm0 and no pcm1 (should it?)

I also tried setting:

# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
# sysctl hw.snd.maxautovchans=4

mixer(1) says:

$ mixer
Mixer vol  is currently set to  85:85
Mixer pcm  is currently set to 100:100
Mixer line is currently set to  90:90
Mixer mic  is currently set to  83:83
Mixer cd   is currently set to  83:83
Mixer rec  is currently set to  72:72
Mixer igainis currently set to  90:90
Mixer line1is currently set to  83:83
Mixer phin is currently set to  86:86
Mixer videois currently set to  86:86
Recording source: mic

and I tried changing to all available recording devices:

$ mixer bla
...
rec devices: vol, line, mic, cd, line1, phin, phout, video

with no luck; any idea how could I record from headset micro?

Thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: Tracing packets - asterisk issues

2011-01-25 Thread Arthur Chance

On 01/25/11 10:41, Da Rock wrote:

On 01/25/11 18:46, Bruce Ferrell wrote:

On 01/24/2011 11:13 PM, Da Rock wrote:

I have been trying to get some pointers on my asterisk issues and I've
only been hearing crickets chirping (Asterisk list and here). I need a
pointer or two so I can fix this issue, so I'll try another angle.

How do I trace IP packets across the network (pf firewall included)?
And would it be possible to read it visually (human readable)?

Cheers

Use tcpdump to do a capture file. something like this:

tcpdump -i eth0 -n -s 1500 -w sip.cap

then feed sip.cap to wireshark

filter for SIP and observe the SIP conversation

It's also possible to decode the RTP stream

I've been using tcpdump on the asterisk server and both interfaces of
the firewall as well as the log interface. Unfortunately, its not giving
me the answers I want so far. Follow a stream from beginning to end, so
to speak, but I've been having trouble matching it up; especially with
the log.

Is it possible with wireshark to do this kind of matching if I capture
on all these interfaces?


From the wireshark manual page:

INTERFACE
   MENU ITEMS
   File:Open
   File:Open Recent
   File:Merge
   Merge another capture file to the currently loaded one. The
   File:Merge dialog box allows the merge "Prepended",
   "Chronologically" or "Appended", relative to the already
   loaded one.

Looks like doing a chronological merge is what you need. Your machines 
had better have the same idea of what the time is though.

___
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: Tracing packets - asterisk issues

2011-01-25 Thread Da Rock

On 01/25/11 18:46, Bruce Ferrell wrote:

On 01/24/2011 11:13 PM, Da Rock wrote:
   

I have been trying to get some pointers on my asterisk issues and I've
only been hearing crickets chirping (Asterisk list and here). I need a
pointer or two so I can fix this issue, so I'll try another angle.

How do I trace IP packets across the network (pf firewall included)?
And would it be possible to read it visually (human readable)?

Cheers
 

Use tcpdump to do a capture file.  something like this:

tcpdump -i eth0 -n -s 1500 -w sip.cap

then feed sip.cap to wireshark

filter for SIP and observe the SIP conversation

It's also possible to decode the RTP stream
   
I've been using tcpdump on the asterisk server and both interfaces of 
the firewall as well as the log interface. Unfortunately, its not giving 
me the answers I want so far. Follow a stream from beginning to end, so 
to speak, but I've been having trouble matching it up; especially with 
the log.


Is it possible with wireshark to do this kind of matching if I capture 
on all these interfaces?


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


Re: Can't open serial line /dev/cuaa0: no such file or direcotry (2)

2011-01-25 Thread Michael Adams
Dear Greg,

Thanks for your reply.  I've avoided contacting you because I've been "doing
my homework" in an attempt to get up to speed.  However, I'm delighted to
hear from you, and must congratulate you on your work with Tempcontrol.

In fact, I've overcome the problem with port nomenclature in exactly the way
you suggested, and the error no longer appears.  I simply changed the value
in .temperaturecontrolrc to /dev/cuad0.

I do, however, have other problems with the programme: regardless of the
values that I pass to endtemp, none of the solenoids are responding and I
get no output on screen.

May I discuss this with you further?  Your program seems to be precisely
what I need, but unlike you, my problem in chilly East Anglia is keeping the
fermentation temperature up, not down, for most of the year!

Regards,

Michael Adams

On 23 January 2011 23:08, Greg 'groggy' Lehey  wrote:

> [format recovered]
>
> On Friday, 21 January 2011 at  0:04:12 +, Mike Adams wrote:
> > To whom it may concern: I'm using a programme called tempcontrol
> > from Greg Lehey on a Dell pentium running BSD 6.
>
> Do you mean FreeBSD 6.x?  I'm assuming so in the following.
>

FreeBSD 7.3 now.

>
> > When I run the programme, I get the above error.  ls /dev shows that
> > there is no cuaa0, only cuad0.  I see that this was changed to
> > standardize naming conventions.  I've tried sh makedev cuaa0, but
> > get the errorCan't open makedev: no such file or directory.
>
> makedev is obsolete.
>
> > I should be most grateful if someone can get me over this problem
>
> The device you're looking for is either /dev/ttyd0 or (probably)
> /dev/cuad0.  Quite possibly either would work.  Set it in your
> temperaturecontrolrc file.  Let me know if it works, and I'll update
> the sources.
>
> On Friday, 21 January 2011 at 12:51:25 +0100, Polytropon wrote:
> > On Fri, 21 Jan 2011 00:04:12 +, Mike Adams 
> wrote:
> >
> >> I've tried sh makedev cuaa0, but get the errorCan't open
> >> makedev: no such file or directory.
> >
> > I think "sh MAKEDEV" would be the correct call.
>
> From MAKEDEV(8):
>
> DESCRIPTION
> The MAKEDEV script was deprecated by devfs(5) and removed from FreeBSD
> after devfs(5) became mandatory.
>
> Basically, it can't work because the meaning of major and minor
> numbers has changed.
>
> > You could try to add a line like
> >
> >   linkcuad0   cuaa0
> >
> > to /etc/devfs.conf and then
> >
> >   # /etc/rc.d/devfs restart
>
> That would be the wrong solution.  Programs that come in source can be
> modified, and in this case the program provides for alternative device
> names.
>
> > but I may be possible that the program you're intending to use does
> > require the "conventional" serial driver ...
>
> I'm not aware of any such program.
>
> Greg
> --
> When replying to this message, please copy the original recipients.
> If you don't, I may ignore the reply or reply to the original recipients.
> For more information, see http://www.lemis.com/questions.html
> See complete headers for address and phone numbers.
> This message is digitally signed.  See
> http://www.lemis.com/grog/email/signed-mail.php for more details.
> If your Microsoft MUA reports problems, please read
> http://tinyurl.com/broken-mua
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Virtualbox - no /dev/acd0 in VM even if it's booting from CD [SOLVED]

2011-01-25 Thread Arthur Chance

On 01/24/11 21:44, Volodymyr Kostyrko wrote:

24.01.2011 15:22, Arthur Chance wrote:

I just upgraded to virtualbox-ose-3.2.12 (ditto the vbox kmod port), and
then tried to install a new VM. It booted from the CD fine but
sysinstall reported that it couldn't find a CD drive to install from.
Booting another VM that already existed showed the same problem -
/dev/ad0 exists but /dev/acd0 doesn't and there's no sign of it during
the device detection part of the boot.

Anyone else seeing this problem?

[snip]


VBoxManage showvminfo machine | grep Storage

Most likely you are using ICH6 based IE controller. Try switching to PIIX4.


That's fixed it. Many 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: Partitions greater than 1TB ?

2011-01-25 Thread Frank Bonnet

It does the trick, thank you

this could help

http://romain.blogreen.org/Blog/Updating_FreeBSD_7_%28i386%29_to_8_%28amd64%29





On 01/25/2011 12:51 AM, Devin Teske wrote:

On Mon, 2011-01-24 at 15:08 +0100, Frank Bonnet wrote:


Hello

I'm trying to install a new server ( HP Proliant 380 G7 ) which has
a 2.5 TB RAID Array.

It seems impossible to use the Freebsd sysinstall to partition this
raid array disks.


Correct. Currently sysinstall can only perform MBR partitioning
(partitions limited to 2TB max).

You want GPT partitioning.

See gpart(8)
--
Devin



I get an error message when running the partitionner

Error mounting /mnt/dev/da1s1e on /mnt/.user : input/output error

Anyone has infos about this problem ?

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"



_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_
___
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"



--

Frank BONNET

01.45.92.66.17

Service des Moyens Informatique Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr 

___
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: Tracing packets - asterisk issues

2011-01-25 Thread Bruce Ferrell
On 01/24/2011 11:13 PM, Da Rock wrote:
> I have been trying to get some pointers on my asterisk issues and I've
> only been hearing crickets chirping (Asterisk list and here). I need a
> pointer or two so I can fix this issue, so I'll try another angle.
>
> How do I trace IP packets across the network (pf firewall included)?
> And would it be possible to read it visually (human readable)?
>
> Cheers
Use tcpdump to do a capture file.  something like this:

tcpdump -i eth0 -n -s 1500 -w sip.cap

then feed sip.cap to wireshark

filter for SIP and observe the SIP conversation

It's also possible to decode the RTP stream
___
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"


Building FreeBSD virtual appliance

2011-01-25 Thread Ibrahim Harrani
Hello


I would like to create a vm appliance based on FreeBSD 8 for Vmware enviroment.
I would like to use vmware studio but it does not support FreeBSD. I
can install FreeBSD in a usual way and export this virtual machine.
But I am looking for alternative solutions.

D you have any idea?
___
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: How to label a GELI device

2011-01-25 Thread Nikos Vassiliadis

J. Porter Clark wrote:

I have an encrypted partition, /dev/da0s1d.  I can use geli
attach da0s1d and obtain a device /dev/da0s1d.eli, which is a
UFS filesystem.  All that works just fine.

I'd like to label /dev/da0s1d so that I don't have to refer to
the exact drive number, etc., which might change if I reboot
with a USB stick in the system or whatever.  But glabel puts the
label in the last sector, which is where GELI stores metadata.


You don't have to worry about this. geli uses the last sector for
its metadata and creates a device with one sector less to its clients.
The original device is 2048 sectors, the device geli provides is 2047
sectors:

moby# diskinfo /dev/md0 /dev/md0.eli
/dev/md0512 1048576 20480   0
/dev/md0.eli512 1048064 20470   0


There is no way for the "internal" GEOM to mess with the "external's"
metadata.


So, how do I make this work?



glabel apart from the generic device labeling, supports UFS labels which
are *part* of the filesystem, that is, you *don't* have external metadata
living in a sector outside the filesystem. Check tunefs manual page and
specifically the -L option.

HTH, Nikos
___
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: Tracing packets - asterisk issues

2011-01-25 Thread Arthur Chance

On 01/25/11 07:13, Da Rock wrote:

I have been trying to get some pointers on my asterisk issues and I've
only been hearing crickets chirping (Asterisk list and here). I need a
pointer or two so I can fix this issue, so I'll try another angle.

How do I trace IP packets across the network (pf firewall included)? And
would it be possible to read it visually (human readable)?


1: tcpdump on every machine the packets go through?

2: wireshark (in /usr/ports/net/wireshark). A very nice tool.

___
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: Onboard SATA Controller of Intel DH55HC Motherboard (FreeBSD 7.3 & FreeBSD 8.1)

2011-01-25 Thread perryh
Bahman Kahinpour  wrote:

> Is AHCI mode the best mode for SATA controller?
> (highest speed, utilizing all fancy features, ...)

In general, probably yes, provided the combination of hardware
and driver actually works properly _all_ the time :)

AHCI is new enough that the occasional hardware erratum or
driver bug might be more likely than with an older technology
such as IDE or ATA.
___
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"