Re: Glue records (was Re: ATTN GARY KLINE)

2010-11-08 Thread Jonathan McKeown
On Friday 05 November 2010 22:51:01 Robert Bonomi wrote:
  From owner-freebsd-questi...@freebsd.org  Fri Nov  5 02:26:31 2010
  From: Jonathan McKeown j.mcke...@ru.ac.za
  To: freebsd-questions@freebsd.org
  Date: Fri, 5 Nov 2010 10:27:38 +0200
  Subject: Glue records (was Re: ATTN GARY KLINE)
 
  When a nameserver delegates a zone, it's not responsible for any of that
  zone's records any more, with two exceptions. It provides NS records to
  indicate which nameservers /are/ responsible, and it retains
  responsibility for the A records of nameservers inside the zone - and
  only those nameservers. (That's glue.)
 
  There's no way a .com nameserver should be providing A records for hosts
  in the .au zone.

 sure there is.

Domain:  foo.com  (an aussie company)
   nameservers   ns1.alicesprings.au, ns2.umelbourneatperth.au

I think we're agreeing violently ;) The nameservers for the .com zone, when 
asked about foo.com, should reply with the hostnames of the two nameservers. 
It shouldn't reply with their IP addresses; the only nameservers that can do 
that are the ones serving the .au zone or the alicesprings.au and 
umelbourneatperth.au zones.

 They're still wrong to bw whinging about a lack o glue records.
 glue is needed _only_ when the nameserver is _in_ the domain it is the
 authoritative servr for.

 So, in the above frivolous example, foo.com does *NOT* need any glue
 records, but if ns1.alicesprings.au is an authoritative server for
 alicesprings.au, then *it* needs a glue record for that domain.

Well, the glue record will be ``above the cut'': if .au delegates 
alicesprings.au, it's the .au nameserver that provides the A record for 
ns1.alicesprings.au; but, yes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


zfs performance issues with iscsi (istgt)

2010-11-08 Thread DJ

After scratching my head for a few weeks, I've decided to ask for some help.

First, I've got two machines connected by gigabit ethernet, network performance 
is not a problem as I am able to substantially saturate the wire when not using 
iscsi [say iperf] or ftp. Both systems are 8.1-RELENG. They are both 
multi-core, 8G of RAM. 

Symptoms: When doing writes (size relatively independent) from a client to a 
server via iSCSI I seem to be
 hitting a wall between 18-26MB/s of write. This can be repeated continuously 
whether doing a newfs on a 2TB iscsi volume or doing a dd from /dev/zero to the 
iscsi target. I haven't compared read performance. What originally put me on to 
this was watching the newfs *fly* across the screen, and then hang for several 
seconds, and then *fly* again, and
 then pause. 

This looked like a write-delay problem, so I tweaked txgwrite values and/or the 
synctime values. This showed some improvements (iostat showed something closer 
to continuous write performance to the server but there was still a delay 
whether the write_limit was 384MB all the way up to 4GB. This tells me the 
spindles weren't holding the throughput back. The iostat size was never much 
beyond 20-26MB/s, peaks were frequently two-three times that, but then it would 
be 1MB/s for a few seconds which would bring us back to this average). CPU and 
network load were never the limiting factor, nor did the spindles ever get 
above 20-30% busy. 

So I added two USB keys that write at around 30-40MB/s, and mirrored them as a 
ZIL log. iostat verifies they are being used, but not continuously, it seems 
that the txgwrite value applies to writing to the ZIL. I also tried turning off 
the ZIL log and saw no particular performance increase (or
 decrease). When newfs (which jumps around a lot more than dd) the performance 
throughput does not change much at all. Even at 26K-40K pps, interrupt loads 
and such are not problematic, turning on polling does not change the 
performance appreciably.

The server is a RAIDZ2 of 15 drives @ 2TB each. So *write* throughput should 
be pretty fast sequentially (i.e. the dd case), but it is returning 
identically. This server does nothing much but istgt -- tried NCQ values from 
255 down to 32 to no improvement.

Even though network performance was not showing a particular limit, I *did* get 
from 18MB/s to 26MB/s by tweaking tcp sendbuf* and tcp send* values way beyond 
reason even though the TCP throughput hadn't been a problem in non iscsi 
operations.

So whatever i'm doing is not addressing the particular problem. The drives have 
plenty of available I/O, but instead of using it, or the RAM in the system, or 
the ZIL in the system, it seems
 largely idle, pegs the system with continuous (but not max speed) writes and 
halts the network transfers, and then continues on its way. 

Even if its a threading issue (i.e. we are single threading) there should be 
some way to make this behave like a normal system considering how much RAM, 
SSD, and other resources I'm trying to through at this thing. For example, 
after the buffer starts to empty, additional writes from the client should be 
accepted and NCQ should help reorder to process them in an efficient fashion, 
etc, etc. 

istgt settings:
istgt version 0.3
istgt extra version 20100707

    MaxSessions  32
    MaxConnections   32
    FirstBurstLength 65536
    MaxBurstLength   262144
    MaxRecvDataSegmentLength 262144

Local benchmarks like dd if=/dev/zero of=/tank/dump bs=1M count=12000 returns 
like 200MB/s. 12582912000 bytes transferred in 61.140903 secs (205801867 
bytes/sec), and show continuous (as expected) writes to the spindles. (200MB/s 
is pretty close to the max I/O speed we can expect given the port the 
controller is in and RAID overhead, etc with 7200 RPM drives, at 5900 RPM the 
number is about 80MB/s). 

If this is an istgt problem, is there a way to get reasonable performance out 
of it?

I know I'm not losing my mind here, so if someone has tackled this particular 
problem (or its sort), please chime in and let me know what tunable I'm 
missing. :)

Thanks very much, in advance,

DJ






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


Re: zfs performance issues with iscsi (istgt)

2010-11-08 Thread Svein Skogen (Listmail account)
On 08.11.2010 09:13, DJ wrote:
 
 After scratching my head for a few weeks, I've decided to ask for some help.
 
 First, I've got two machines connected by gigabit ethernet, network 
 performance is not a problem as I am able to substantially saturate the wire 
 when not using iscsi [say iperf] or ftp. Both systems are 8.1-RELENG. They 
 are both multi-core, 8G of RAM. 
 
 Symptoms: When doing writes (size relatively independent) from a client to a 
 server via iSCSI I seem to be
  hitting a wall between 18-26MB/s of write. This can be repeated continuously 
 whether doing a newfs on a 2TB iscsi volume or doing a dd from /dev/zero to 
 the iscsi target. I haven't compared read performance. What originally put me 
 on to this was watching the newfs *fly* across the screen, and then hang for 
 several seconds, and then *fly* again, and
  then pause. 

I'll snip down this mail a little bit to ask some control questions
(having recently had quite a wrestle with iSCSI myself).

-Is jumbo frames involved? (and enabled on the initiator, all switches
in between, and the target)
-What's the number of PPS (some switches have PPS issues, which becomes
painfully relevant for small block IO)?  (I got rid of most of my
problems when I replaced the Netgear GS724Tv3 switch with a Cisco SG-300)
-Are you running digests?
-Do you have TSO/TSOv2 enabled at the endpoints?
-Does top -HSC reveal anything?
-Does systat -vmstat 1 reveal anything?
-What's the ICMP (ping) roundtrip times between the initiator and target
IPs?

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: portmaster question

2010-11-08 Thread RW
On Sun, 7 Nov 2010 22:11:50 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Sun, 7 Nov 2010, Jerry wrote:
 
  When using 'portupgrade', I commonly use the '-r' flag in
  conjunction with the previously discussed '-a' flag. While not as
  through as the -u -p flags with 'portmanger', it does accomplish
  its goal.
 
 Isn't portupgrade -a equivalent to -arR?  I hope so, or I have a 
 correction to make...

Yes, unless -F is used, in which case -R causes a checksum-recursive
target to be used.
___
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 generate pi in c

2010-11-08 Thread Ian Smith
In freebsd-questions Digest, Vol 335, Issue 11, Message: 4
On Sat, 06 Nov 2010 01:00:34 -0700 per...@pluto.rain.com wrote:
  Julian Fagir g...@physik.tu-berlin.de wrote:
Does anyone has a generate-pi.c source code?
  ...
 1 #include stdlib.h
 2 #include string.h
 3 #include stdio.h
 4 
 5 // Change this for a more accurate result.
 6 long max = 1;
 7 double a, b;
 8 double pi;
 9 long counter;
10 long i;
11 
12 int main() {
13 for (i = 0; i max; i++) {
14 a = drand48();
15 b = drand48();
16 if (a*a + b*b = 1)
17 counter++;
18 }   
19 pi = 4*counter;

Surely that should be 'pi = 4 * counter / max;' otherwise even if the 
integer counter were only 1 (of 1), pi would already be 4 :)

20 
21 printf(%e\n, pi);
22 return(0);
23 }   
  ...
   This approximation is stupid ... Just take 'random' numbers and
   look whether they are in a circle (that's the a*a + b*b = 1).
  
  Not stupid, clever.  Very clever.  I rather doubt it resembles what
  the OP had in mind, but it is a brilliant example of what can be
  accomplished when one casts aside any perceived need to adopt a
  conventional approach.

Agreed, quite elegant.  Geometry being a bit rusty, I had to sketch it 
to really see it as simply the ratio of the area of the first quadrant 
of the unit circle (pi/4) to that of the unit square (1.0), times 4.

   The detail of this approximation heavily depends on the pseudo-rng
   you are using, as does its correctness
  
  Perhaps it would be useful in a PRNG test suite?
  
   (e.g., when your 'rng' always returns 10, pi would be computed to
   be 10) ...
  
  Bad example.  If abs(drand48()) always exceeded (0.5 * sqrt(2.0)),
  a*a + b*b would always exceed 1.0, thus counter would never be
  incremented and pi would be reported as zero.

That'd be one pretty sad PRNG :) but testing variance of the above
algorithm's result to best known double pi is likely a useful test.

And while a square enclosing a circle, it's hardly squaring the circle: 
http://en.wikipedia.org/wiki/Squaring_the_circle .. but an interesting 
read nonetheless for unrequited seekers of pi-foo :)

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


Re: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Polytropon
On Sun, 7 Nov 2010 22:07:29 +, Bruce Cran br...@cran.org.uk wrote:
 With the command-line you also choose the inefficiency of having to
 read the man page every time you want to do something you're not
 familiar with.

Not fully. The strength of the command line is (1st) that things
you learned can easily be transferred to new topics, and (2nd)
you can conclude from what you already know.

GUI usually is a discover new things each time; as a good
example I may point you to famous office suits that tend to
re-arrange their functionality with each release.



 Well-designed UIs allow you to easily discover how to do
 it without resorting to the Help file - and since people tend to have
 good visual memories they can remember it better than a string of
 characters.

Okay, you're comparing visual memory (looks like) to the
use of language (a foreign one, admitted), which is a
basic cultural means (the use of a language).

Following your argument, it is obvious that many GUI applications
are NOT well-designed, as they force their users to continuously
re-discover and re-learn things.

Additionally, GUI prohibits giving clear instructions. Those
that can be copied+pased are out of scope, of course. Instructions
look like childrens books - full of pictures. This is logical
as there is no benefit in DESCRIBING those pictures - would
be too much text, text scares users.

Learning CLI is like learning a language: If you're once
familiar with the elements of the language (its vocabulary,
its syntax, its use), you can express ANYTHING with it. With
GUI, you're just free to choose from a predefined and LIMITED
set of options. You can choose from ready-made sentences,
but you can't express your own statements.

The CLI approach leads to a continuous growth of knowledge
(that is portable), while the GUI approach often just leads
into stagnation.

A real benefit of GUI, as I can admit without any problems,
is that people judge by first sight. This is a visual impression
that has nothing to do with any knowledge, it's just like
saying I like Da Vinci's 'Mona Lisa', but I don't like Edvard
Munch's 'Scream'. Keep in mind this is a VALID statement
that does not require any knowledge to be formed.

By well-designed GUI, products can easily be placed on markets.
Advertising based on visual impression works much better for
masses (!) than product presentation based on actual features
(that require knowledge to form a statement about them).



 A good example of this is Subversion tagging/branching: in
 Windows I can use the menu option TortoiseSVN - branch/tag... to
 create a branch and have it done in a minute. Using the command-line
 I'd have to spend time reading up on the commandline parameters to
 achieve the same thing, since it's something I only do about once a
 year or so.

In a different Subversion GUI client, this functionality may
be found at a completely different place. CLI applications
usually have more things in common than GUI applications.

That said, you can easily see why generic UNIX knowledge, no
matter if achieved on BSD, Solaris, Linux or AIX, is portable,
while GUI knowledge, achieved in a Windows of version N, is
not portable to version N+1, as it is outdated. There even is
no generic knowledge, one may assume.



Let me ensure you that I'm NOT against GUI generically. I'm
even lazy when it comes to reconsidering my daily habits of
interacting with the system. :-)



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


Re: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Polytropon
On Sun, 7 Nov 2010 14:41:09 -0800, Chip Camden sterl...@camdensoftware.com 
wrote:
 Up to a point, yes.  But as options become more complex, either the GUI
 must also become more complex or you reach the tipping point where the
 complexity warrants the use of language instead of gestures.

This is a valid point. There was a statement - no idea who said
or wrote that - expressing it well, and I'm sure I'm mapping it
into context right now:

GUI makes simple tasks simpler.
It also makes complex tasks impossible.

As a GUI is only choosing from a predefined subset of options,
complex tasks make the corresponding GUI more complex. This may
proceed until the GUI isn't usable anymore.

At this point, it gets abandoned, naturally.

According to your point gestures vs. languages:

Consider being a child. When you didn't have the ability to use
language, you did point to objects and made a sound, ga! or
dah! or whatever. Later on, when you learned to use the language,
it started at not being perfect, but you kept learning it and
then used it to express wishes, thoughts, needs. In this way,
you did abandon pointing and dah!. Why? It should have worked
continuously - e. g. there was no obvious reason others would 
stop interacting with you at that non-language level. But that
is how intellectual development works. It is an evolutionary
consideration.

Applying this to GUI and CLI concepts, GUI, pointing and clicking,
resembles the childish way of nonverbal communication. CLI,
forming statements using a language, is like verbal communication.

The STRENGTH OF GUI (yes, I'm really saying that) is to aid using
language elements, CLI. Arranging windows, presenting information,
displaying structures, managing things. GUI alone, with no functional
substance behind it, is useless. Sadly, you'll find more and more
programs that have blingbling and experience, but are useless
to those who want to achieve a certain goal with it.



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


Re: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Bruce Cran
On Sun, 7 Nov 2010 23:17:23 -0700
Chad Perrin per...@apotheon.com wrote:

 I did give a nod to discoverability for GUIs, as you might note if
 you go back and read what you quoted back at me.  That's exactly what
 you're talking about.  I don't see why you have to pretend I didn't
 mention it, and try to paint the efficiencies on the other side of
 the trade-off as worthless in your response.  I thought my original
 description of the trade-off was pretty well balanced, despite the
 fact I have a preference for one side over the other where most tasks
 are concerned.

Sorry - I didn't mean to imply that it was worthless, just that I
believe the efficiency works the other way sometimes. For example I did
Linux development for a while earlier this year and found it to be
extremely inefficient compared to working in Windows, due to overuse of
terminals and command-line operation - and I grew up running BBC BASIC
and have been using FreeBSD for many years.  I love having the
command-line available and indeed often develop software using just an
xterm but I do think a well-designed GUI can increase productivity by
bringing things together that would otherwise be separate.

-- 
Bruce Cran
___
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: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Polytropon
On Sun, 7 Nov 2010 23:17:23 -0700, Chad Perrin per...@apotheon.com wrote:
 So, let's see here -- either I lose efficiency on things that aren't very
 familiar to me, because I have to type `foo --help` or `man foo` or
 something like that, or I lose efficiency on things I do all the time,
 because I have to mouse around a lot.
 
 Hmm.  I wonder which I should choose.

Why choose? Combine efficiently! :-)



 I
 select and middle click to paste quite a lot. 

This is much better than the ^C/^V approach, as seems to be
supported by every application, no matter which echosystem
it comes from.

Every?

Erm... no.

Did I recently talk about bloat? About reduction of functionality?
I did. Allow me to elaborate on an example. It's a Gtk version 2
example. Let's say it's X-Chat 2. It's the channel selection
dialog on startup.

In version 1 (using Gtk), you could select an item from a list
using doubleclick on that item. In version 2, you are forced to
select the item with one click, move the mouse to a button and
then click that. First: t(2cl)  t(1cl + move + 1cl).

Then what happens if you still doubleclick on a list item? It
becomes an input field. Well, hmmm... could be useful. Let's
put some text in there from another program window. Oops, the
window lost focus, and the input field got a list item again!
Okay, not a big deal, we'll be back soon.

After selecting the text (e. g. in a browser, a text editor,
whatever), again clicking the list item, it gets an input field.
Middle mouse... erm, middle mouse... middle mouse... why doesn't
this work? Buffer empty? Check in an xterm... no, text is in
the buffer. WHAT'S WRONG?!

So what did Gtk 2 achieve here?
1. increased time for selection
2. inability to use copy / paste
3. - the most annoying one - FORCING to type (even
   if this just means ^C/^V)

I really can't stand it when BASIC functionality disappears
with NO understandable effect. Fatter libraries, longer time
until program is up, and then everything gets slower and much
less productive -- that must be bloat.




 I'm not opposed to use of
 the GUI per se; I just use TUIs much more often, because I use them for
 tasks that I perform an awful lot if they happen to benefit (in terms of
 efficiency and productivity) by the use of a TUI.  When they don't, I use
 a GUI instead.

That exactly is an educated standpoint - use whatever tool is
the best - instead of insisting that the tool HAS TO BE a GUI
tool, like saying: But I WANT the screwdriver to be a drill!
I've ALWAYS used screwdrivers as drills, and EVERYONE uses
screwdrivers as drills! Oh, and it should work as a hammer,
too.

By the way, TUI (text user interface) doesn't imply that is has
to be CLI (command line interface). A famous example from by
daily use is the Midnight Commander, a file manager that DOES
IT CORRECTLY. As many (most?) things you do is a source-target-
opertion (copying, moving, symlinking), the two-panel mode is
the ideal solution. Good keyboard controls and the use of the
very useful function keys is one of its strengths. Still, it
does operate in text mode (defaults to 80x25, but can be used
at any window size), so you can easily work with it over a
serial line or SSH.

GUI usually means abstraction. Abstraction adds layers, in
this way or another. At some point, this is good as you can
fit things together, but at some point, it gets unusable
because you can't address the things directly you NEED to
address directly.



 I wouldn't be willing to waste the time on little inefficiencies every
 single time I did *anything* with Subversion just for the dubious benefit
 of a one-time efficiency benefit once a year because I didn't remember off
 the top of my head how to branch, though. 

From computer science, just see what O notation means, and
see that constant compexity is traditionally better than linear
complexity: O(1)  O(n). :-)



 I suppose your mileage may vary, though.

It always depends on individual preferences, talents, knowledge
and experience. I'm always impressed by people who are more
advanced than me, who use minimalistic environments and can
work faster, more productive, more relaxed. Allthough the tools
they use may look archaic, not modern, old and difficult
to me, given knowledge and experience they DE FACTO are better
for them.




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


Re: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Polytropon
On Mon, 8 Nov 2010 09:43:01 +, Bruce Cran br...@cran.org.uk wrote:
 [...] I do think a well-designed GUI can increase productivity by
 bringing things together that would otherwise be separate.

Yes. Plain YES. I'm just waiting for the GUI that actually DOES that. :-)



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


UFS

2010-11-08 Thread Samuel Martín Moro
Hi,

We have a problem with a few of our users.
And I'm a bit speechless since I understood what are our commercials
doing... Whatever...

We are providing a pre-configured FreeBSD distribution, for
videosurveillance prupose.
It seems the machines sold with our distribution may come with at max 44TB
RAID space.
And more likely, all the RAID space is allocated in an only partition (UFS).

Note that these servers includes only 2GB of RAM.

So, since a few, custommers are calling, telling us that there's a problem
with their RAID space.
As far as I know, all these users are running our FreeBSD-6.2 based version.
They try to run fsck, wait  and eventually fsck stops, saying it can't
do anything (I haven't the exact error message...).


My boss came, and asked me wether I think upgrading these custommers to our
7.2 based version would fix that.
I told him I'm not up to date about that kind of info. But more likely,
UFS/fsck worked fine in 6.2, no way there's such a big change in 7 branch.


In my opinion, the only chance to get back the data would be to plug an
additional drive, make a huge swap file...
Knowing that context switching, on such an amount of RAM ... that would at
least take days.


In doubt: am I missing something? Is there an easier way?




Regards,

-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

Nobody wants to say how this works.
  Maybe nobody knows ...
  Xorg.conf(5)
___
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: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Matthias Apitz
El día Monday, November 08, 2010 a las 10:56:00AM +0100, Polytropon escribió:

 On Sun, 7 Nov 2010 23:17:23 -0700, Chad Perrin per...@apotheon.com wrote:
  So, let's see here -- either I lose efficiency on things that aren't very
  familiar to me, because I have to type `foo --help` or `man foo` or
  something like that, or I lose efficiency on things I do all the time,
  because I have to mouse around a lot.
  
  Hmm.  I wonder which I should choose.
 
 Why choose? Combine efficiently! :-)
...

Hi folks,

I think this philosofic discussion has little or nothing todo with
FreeBSD. Could you move this elsewhere, or off-list? Thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
___
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: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Bruce Cran
On Mon, 8 Nov 2010 11:00:59 +0100
Polytropon free...@edvax.de wrote:

 On Mon, 8 Nov 2010 09:43:01 +, Bruce Cran br...@cran.org.uk
 wrote:
  [...] I do think a well-designed GUI can increase productivity by
  bringing things together that would otherwise be separate.
 
 Yes. Plain YES. I'm just waiting for the GUI that actually DOES
 that. :-)

Try KDevelop. It brings together an editor, file manager,
debugger, etc. into a single application.  Similarly I find the KDE
file manager can increase productivity for _certain_ things such as
working on a remote filesystem (via ssh/samba/ftp) because it brings
ssh/ftp functionality to a file manager. I do still find it more
efficient to use the command-line when working locally though :)

-- 
Bruce Cran
___
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: portmaster question

2010-11-08 Thread Jerry
On Sun, 7 Nov 2010 22:11:50 -0700 (MST)
Warren Block wbl...@wonkity.com articulated:

 On Sun, 7 Nov 2010, Jerry wrote:
 
  When using 'portupgrade', I commonly use the '-r' flag in
  conjunction with the previously discussed '-a' flag. While not as
  through as the -u -p flags with 'portmanger', it does accomplish
  its goal.
 
 Isn't portupgrade -a equivalent to -arR?  I hope so, or I have a 
 correction to make...

From the man:

-a
--allDo with all the installed packages.  Equivalent to
 specify '*' as pkgname_glob.

-r
--recursive  Act on all those packages depending on the given
 packages as well.

-R
--upward-recursive   Act on all those packages required by the given
 packages as well. (When specified with -F,
 fetch recursively, including the brand new,
 uninstalled ports that an upgraded port requires)

I don't see anything that specifically states the the -R  or -r flags are
in included with the -a flag; although I might be misinterpreting it.
If it was implied i think it should have been better documented.

Perhaps the only way to positively ascertain the correct answer would
be to actually study the apps code, something I have neither the time
nor inclination to do.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: UFS

2010-11-08 Thread Ivan Voras
On 11/08/10 11:01, Samuel Martín Moro wrote:

 In my opinion, the only chance to get back the data would be to plug an
 additional drive, make a huge swap file...
 Knowing that context switching, on such an amount of RAM ... that would at
 least take days.
 
 
 In doubt: am I missing something? Is there an easier way?

Basically, no.

You can't expect fsck a 44 TB drive with 2 GB of RAM, there is too much
information to be kept while checking.

However, IIRC there have been some committed patches in 7 and later
which reduced the amount of memory so going with at least 7-STABLE would
be better.

It would of course be even better to go with 8-STABLE or wait for 9.0
which should be released in several months and then either use UFS-SUJ
or ZFS.

___
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


static linking with gfortran?

2010-11-08 Thread Anton Shterenlikht
On ia64 -current I'm trying to statically link
against gfortran45 libraries, following from
GCC fortran wiki (http://gcc.gnu.org/wiki/GFortranGettingStarted) :

% gfortran45 -static mach-fort.f90 -o z
% file z
z: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not 
stripped
% ./z
ELF binary type 0 not known.
./z: Exec format error. Binary file not executable.


What am I missing?

many thanks
anton

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


Re: is there a utillity...?

2010-11-08 Thread Duncan Young
On Wed, 3 Nov 2010 03:55:28 pm Dan Nelson wrote:
 In the last episode (Nov 02), Gary Kline said:
  On Wed, Nov 03, 2010 at 01:44:37AM +, Bruce Cran wrote:
   On Wednesday 03 November 2010 01:17:00 Gary Kline wrote:
The Bps Down is supposed to me 1M.  Up is 864Kbps.  I spent 
hours
googling around and trying things.  So far, not much.  ---It 
occured
that I _might_ be geting the full thru-put; that it is data 
that is
flowing in via the background that stalls things.  (I have just 
shut
off the automated flow.)
   
   You can run systat -if to see how much bandwidth is being used by the
   computer.  At 1M you should see around 120KB/s downlink.
  
  Yes... outstanding.  Is there any sort of GUI app tat has this in a geaph
  or histogram?
 
 Not a gui app, but I use netstat -I em0 1 a lot to watch my network
 activity.  Replace em0 with your nic device.  Gkrellm is a gui app that
 gives you little network histograms for each interface, but they're little :)
 
 


Text based real time graphing: slurm
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS License and Future

2010-11-08 Thread krad
On 6 November 2010 21:38, Roland Smith rsm...@xs4all.nl wrote:

 On Sat, Nov 06, 2010 at 02:30:16PM -0600, Chad Perrin wrote:
   Having said all that it really depends on whether you need the extra
   features of zfs. Personally I cant see how anyone with any important
 data
   can do without checksuming.
 
  I guess that depends on what you're doing with the data and what kind of
  external tools you have in place to protect/duplicate it in case of a
  problem.

 The GEOM_ELI class provides optional authentication/checksumming. See
 geli(8),
 especially the -a option.

 Roland
 --
 R.F.Smith   
 http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


im not sure on whether that you be a viable replacement, as it has to be a
fairly good checksum to avoid clashes, whilst also being quick so it doesnt
adversly affect disk performance. Also what does it do if it detects the
checksum doesnt match etc?
___
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: portmaster question

2010-11-08 Thread RW
On Mon, 8 Nov 2010 06:22:55 -0500
Jerry freebsd.u...@seibercom.net wrote:

 I don't see anything that specifically states the the -R  or -r
 flags are in included with the -a flag; although I might be
 misinterpreting it. If it was implied i think it should have been
 better documented.

-aRr isn't implied by -a, the rR options are ignored in the former.

I think it's fairly clear that recursing through installed
packages with consistent dependecies isn't going to find a package
that isn't in the set of all installed packages. The remaining question
is whether -Ra also recurses though new dependencies, and that's covered
in the entry for -R.

It doesn't really matter though, since -aRr is only a waste of
keystrokes.

 Perhaps the only way to positively ascertain the correct answer would
 be to actually study the apps code,

   opts.def_option(-a, --all,
Do with all the installed packages) {
  |$all|
  $recursive = false
  $upward_recursive = false
}
...
opts.def_option(-r, --recursive,
Do with all those depending on the given packages
 NEXTLINE  as well) {
  $recursive = true unless $all
}

opts.def_option(-R, --upward-recursive,
Do with all those required by the given packages
 NEXTLINE  as well / Fetch recursively if -F is specified) {
  $upward_recursive = true unless $all
  $fetch_recursive = true
}

...

  if $fetch_recursive
cmdargs  'checksum-recursive'
  else
cmdargs  'checksum'
  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


Re: ZFS License and Future

2010-11-08 Thread Arthur Chance

On 11/08/10 13:52, krad wrote:

On 6 November 2010 21:38, Roland Smithrsm...@xs4all.nl  wrote:


On Sat, Nov 06, 2010 at 02:30:16PM -0600, Chad Perrin wrote:

Having said all that it really depends on whether you need the extra
features of zfs. Personally I cant see how anyone with any important

data

can do without checksuming.


I guess that depends on what you're doing with the data and what kind of
external tools you have in place to protect/duplicate it in case of a
problem.


The GEOM_ELI class provides optional authentication/checksumming. See
geli(8),
especially the -a option.

Roland
--
R.F.Smith   
http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)



im not sure on whether that you be a viable replacement, as it has to be a
fairly good checksum to avoid clashes, whilst also being quick so it doesnt
adversly affect disk performance. Also what does it do if it detects the
checksum doesnt match etc?


Good point. Geli uses a crypto standard hash (HMAC/SHA256 is 
recommended) as it's all about authentication in the face of potentially 
malicious attack, and that's fairly expensive. ZFS by default uses the 
fletcher2 (= fletcher32) hash, which is simple and fast, as it's used to 
make sure that hardware hasn't accidentally mangled your data.


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

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


Re: removing files

2010-11-08 Thread Jerry McAllister
On Mon, Nov 08, 2010 at 11:40:20AM +0530, yoganjaneyulu kasetti wrote:

 hi,
 
 I have a problem for deleting files using scriptplease some one can
 guide me for the same.
 
 I have some files with the extension of .chk extension along with the
 extension of .log and .gjf extension in the folder called different *input
 folders. *I wanted to delete the .chk file extension having files. If i go
 to individual input folder manually i can delete the file with *rm* command
 line by but i would like to delete all the .chk files extension files at a
 time through scripting rather than manual. So please some one help me for
 the same.
 /student/sweety/gaussiandata/*1249624064640*/input
 
 /student/sweety/gaussiandata/*1261202703914*/input
 
 /student/sweety/gaussiandata/*1263357080155*/input
 
 /student/sweety/gaussiandata/*1289106407303*/input

Your examples given here don't seem to match quite what you are asking
as far as I see.   Maybe I am looking at it wrong.

But, anyway, can't you just the -R switch on the rm?

  cd top_of_tree_with_files_to_delete
  rm -R *.chk
  rm -R *.log
  rm -R *.gjk

Or am I missing something.

jerry

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


Re: ZFS License and Future

2010-11-08 Thread Svein Skogen (Listmail account)
On 08.11.2010 16:37, Arthur Chance wrote:
 On 11/08/10 13:52, krad wrote:
 On 6 November 2010 21:38, Roland Smithrsm...@xs4all.nl  wrote:

 On Sat, Nov 06, 2010 at 02:30:16PM -0600, Chad Perrin wrote:
 Having said all that it really depends on whether you need the extra
 features of zfs. Personally I cant see how anyone with any important
 data
 can do without checksuming.

 I guess that depends on what you're doing with the data and what
 kind of
 external tools you have in place to protect/duplicate it in case of a
 problem.

 The GEOM_ELI class provides optional authentication/checksumming. See
 geli(8),
 especially the -a option.

 Roland
 -- 
 R.F.Smith  
 http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much
 appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID:
 C321A725)


 im not sure on whether that you be a viable replacement, as it has to
 be a
 fairly good checksum to avoid clashes, whilst also being quick so it
 doesnt
 adversly affect disk performance. Also what does it do if it detects the
 checksum doesnt match etc?
 
 Good point. Geli uses a crypto standard hash (HMAC/SHA256 is
 recommended) as it's all about authentication in the face of potentially
 malicious attack, and that's fairly expensive. ZFS by default uses the
 fletcher2 (= fletcher32) hash, which is simple and fast, as it's used to
 make sure that hardware hasn't accidentally mangled your data.

But it's still not capable of true forward-error-correction. If we are
to embark upon creating a new solution, using something that is cheap
for normal cases but can still be used (albeit more expensively) for
error recovery would (imho) be better. Even if that means we get less
net storage out of the gross pool (it could perhaps be configurable?)

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Chad Perrin
On Mon, Nov 08, 2010 at 09:43:01AM +, Bruce Cran wrote:
 On Sun, 7 Nov 2010 23:17:23 -0700
 Chad Perrin per...@apotheon.com wrote:
 
  I did give a nod to discoverability for GUIs, as you might note if
  you go back and read what you quoted back at me.  That's exactly what
  you're talking about.  I don't see why you have to pretend I didn't
  mention it, and try to paint the efficiencies on the other side of
  the trade-off as worthless in your response.  I thought my original
  description of the trade-off was pretty well balanced, despite the
  fact I have a preference for one side over the other where most tasks
  are concerned.
 
 Sorry - I didn't mean to imply that it was worthless, just that I
 believe the efficiency works the other way sometimes. For example I did
 Linux development for a while earlier this year and found it to be
 extremely inefficient compared to working in Windows, due to overuse of
 terminals and command-line operation - and I grew up running BBC BASIC
 and have been using FreeBSD for many years.  I love having the
 command-line available and indeed often develop software using just an
 xterm but I do think a well-designed GUI can increase productivity by
 bringing things together that would otherwise be separate.

You probably found it inefficient because you did not bother to gain
sufficient familiarity with it to enjoy the efficiencies it provided.
Seriously.  In my experience, development on MS Windows with clicky GUI
tools like Visual Studio only seems more efficient when doing things that
are very well-worn paths to very uninteresting destinations for people
who have never bothered to learn a better way.  A well-configured Vim
provides a substantial efficiency boost for the competent user that
dwarfs the dubious benefits of things like Intellisense, for instance.

When developing software in a Unix(-like) environment, I typically have
*several* terminals open, running different programs.  For Ruby, for
instance, I might have a Vim terminal, an irb terminal, and a test suite
terminal, possibly including a second buffer in the test suite terminal
for running the program separately when appropriate -- rather than just
using just an xterm -- and it works better than any Visual Studio setup
I've encountered on MS Windows for similar development.  In fact, there
are whole classes of software that are effectively impossible to develop
effectively on MS Windows; it doesn't get much more inefficient than
that.

Sometimes a GUI that brings things together can help.  You're right about
that.  Unfortunately, such GUIs usually shoot themselves in the foot by
not just bringing things together, but actually replacing them so that
the benefits of the separate things are lost, resulting in a net loss of
productivity enhancement.  That's what I get from IDEs like Visual
Studio.

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


pgpbkrmkvI7BP.pgp
Description: PGP signature


how to trace /dev/gpt/label to adaX to conroller?

2010-11-08 Thread Peter
iH,
  Is there any easy straight forward way to trace my /dev/gpt/data.zfs
disk to what ada device it is, and on what controller?

I've traced it manually by doing a gpart list adaX |grep data.zfs on each
adaX device, then somehow I found out what controller it is on [I think by
manually looking at serial number of the disk, and tracing cables].  This
was easy when I had 2 disks, but now I have 4, and figure there could be
an easier way instead of doing a 'for i' loop on each adaX device, tracing
cables, etc.

FreeBSD 8-STABLE if it makes a difference.

]Peter[
 I'm prolly doing something wrong.

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


Re: ZFS License and Future

2010-11-08 Thread Arthur Chance

On 11/08/10 16:08, Svein Skogen (Listmail account) wrote:

On 08.11.2010 16:37, Arthur Chance wrote:

On 11/08/10 13:52, krad wrote:

On 6 November 2010 21:38, Roland Smithrsm...@xs4all.nl   wrote:


On Sat, Nov 06, 2010 at 02:30:16PM -0600, Chad Perrin wrote:

Having said all that it really depends on whether you need the extra
features of zfs. Personally I cant see how anyone with any important

data

can do without checksuming.


I guess that depends on what you're doing with the data and what
kind of
external tools you have in place to protect/duplicate it in case of a
problem.


The GEOM_ELI class provides optional authentication/checksumming. See
geli(8),
especially the -a option.

Roland
--
R.F.Smith
http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much
appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID:
C321A725)



im not sure on whether that you be a viable replacement, as it has to
be a
fairly good checksum to avoid clashes, whilst also being quick so it
doesnt
adversly affect disk performance. Also what does it do if it detects the
checksum doesnt match etc?


Good point. Geli uses a crypto standard hash (HMAC/SHA256 is
recommended) as it's all about authentication in the face of potentially
malicious attack, and that's fairly expensive. ZFS by default uses the
fletcher2 (= fletcher32) hash, which is simple and fast, as it's used to
make sure that hardware hasn't accidentally mangled your data.


But it's still not capable of true forward-error-correction. If we are
to embark upon creating a new solution, using something that is cheap
for normal cases but can still be used (albeit more expensively) for
error recovery would (imho) be better. Even if that means we get less
net storage out of the gross pool (it could perhaps be configurable?)


Presuming you're talking about ZFS, the hash isn't intended to correct 
hardware errors, it's only there to detect them. Correction comes from 
mirroring or the use of RAIDZ{1,2,3}. (I have personal experience of how 
well that works, as I had a disk in a RAIDZ array go bad suddenly, and I 
didn't lose any data.) Any new solution would almost certainly mimic 
ZFS's approach of arranging the data as a Merkel tree, and using 
multiple copies or N out of M shares for correction. I'm not sure GEOM's 
block orientation fits well with Merkel trees though, although I'd be 
happy to be corrected by a GEOM expert.


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

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


Entropy Key for FreeBSD?

2010-11-08 Thread Per olof Ljungmark

Hi,

Did anyone in the community try to adopt the Entropy Key
http://www.entropykey.com/
for use with FreeBSD?

As a non-programmer I would not even try but perhaps someone with better 
skills already did?


FWIW MirBSD seems to have a port of the keyd.

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: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Bruce Cran
On Mon, 8 Nov 2010 09:32:20 -0700
Chad Perrin per...@apotheon.com wrote:

 You probably found it inefficient because you did not bother to gain
 sufficient familiarity with it to enjoy the efficiencies it provided.
 Seriously.  In my experience, development on MS Windows with clicky
 GUI tools like Visual Studio only seems more efficient when doing
 things that are very well-worn paths to very uninteresting
 destinations for people who have never bothered to learn a better
 way.  A well-configured Vim provides a substantial efficiency boost
 for the competent user that dwarfs the dubious benefits of things
 like Intellisense, for instance.

If you're clicking lots you're doing something wrong :)

I think the key thing is well-configured. I've found that far
too many users have poorly-configured systems that require them to drop
to a terminal and type commands when they want to run builds, find where
something's defined etc. That involves find, grep etc. which is far
less efficient than clicking the (the built-in) Go to definition
command or hitting the shortcut key within an IDE; I know the same can
be done in vim by defining macros for building, running ctags/cscope
etc. 
I'm not convinced about IntelliSense either, really. At one job I
found people dependended totally on it, and complained when it broke. I
find I use it as a productivity enhancement when I know roughly what
parameters a function takes but can't remember the ordering - it's
more useful when you have a huge framework like Java or .NET, or an
overly complex API like WinAPI (e.g. CreateFile). Too many people _do_
depend on it though, which I think introduces an inefficiency in their
work.
In terms of efficient use of Visual Studio it takes time to learn and
become a competent user: for example I hardly ever use the menus since
they're so slow to access. I hardly leave the keyboard and hate
watching people waste time for example clicking Build, moving to the
Build Solution entry and clicking when I could have done it in a
fraction of the time using Ctrl-Shift-B.

I know vim, with suitable plugins and macros, can be made to be more
efficient than Visual Studio since it doesn't require ever using the
mouse but the upfront investment in time to learn and configure it is
something I've never done, mainly because I've always had more
important things to learn and the inefficiencies of GUI editors don't
really worry me.

-- 
Bruce Cran
___
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: Tips for installing windows and freeBSD both.. anyone??

2010-11-08 Thread Charlie Kester

On Mon 08 Nov 2010 at 02:06:24 PST Matthias Apitz wrote:


I think this philosofic discussion has little or nothing todo with
FreeBSD. Could you move this elsewhere, or off-list? Thanks


It's also a very very OLD argument.  Surely the debating points have
already been collected on a webpage somewhere?  If not, I would suggest
the participants direct their energies into creating one, so that their
wisdom shall be preserved for posterity.

___
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: UFS

2010-11-08 Thread Adam Vande More
On Mon, Nov 8, 2010 at 5:50 AM, Ivan Voras ivo...@freebsd.org wrote:

 On 11/08/10 11:01, Samuel Martín Moro wrote:

  In my opinion, the only chance to get back the data would be to plug an
  additional drive, make a huge swap file...
  Knowing that context switching, on such an amount of RAM ... that would
 at
  least take days.
 
 
  In doubt: am I missing something? Is there an easier way?

 Basically, no.

 You can't expect fsck a 44 TB drive with 2 GB of RAM, there is too much
 information to be kept while checking.

 However, IIRC there have been some committed patches in 7 and later
 which reduced the amount of memory so going with at least 7-STABLE would
 be better.

 It would of course be even better to go with 8-STABLE or wait for 9.0
 which should be released in several months and then either use UFS-SUJ
 or ZFS.


Another option would to place UFS on top a gjournal then your fsck become
much, much less intensive.  However there are several problems with this
suggestion as gjournal isn't available for your version, and adding gjournal
to an existing FS is a non-trivial task and would probably not be feasible.
Perhaps you could evaluate it for your next product build though.

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


Re: ZFS License and Future

2010-11-08 Thread Roland Smith
On Mon, Nov 08, 2010 at 05:08:33PM +0100, Svein Skogen (Listmail account) wrote:
  The GEOM_ELI class provides optional authentication/checksumming. See
  geli(8),
  especially the -a option.
snip
  im not sure on whether that you be a viable replacement, as it has to be
  a fairly good checksum to avoid clashes, whilst also being quick so it
  doesnt adversly affect disk performance. Also what does it do if it
  detects the checksum doesnt match etc?

Personally I've never enabled the checksumming because, and I quote from
geli(8), This will reduce size of available storage and also reduce
speed.

  Good point. Geli uses a crypto standard hash (HMAC/SHA256 is
  recommended) as it's all about authentication in the face of potentially
  malicious attack, and that's fairly expensive. ZFS by default uses the
  fletcher2 (= fletcher32) hash, which is simple and fast, as it's used to
  make sure that hardware hasn't accidentally mangled your data.

But with geli(8) one can choose between HMAC/MD5, HMAC/SHA1, HMAC/RIPEMD160,
HMAC/SHA256, HMAC/SHA384 and HMAC/SHA512. With the recommeded HMAC/SHA256
you'll loose 11% of the provider's capacity. Presumably MD5 is fastest while
SHA512 is the slowest, while MD5 has a higher chance of collisions.

 But it's still not capable of true forward-error-correction. If we are
 to embark upon creating a new solution, using something that is cheap
 for normal cases but can still be used (albeit more expensively) for
 error recovery would (imho) be better. Even if that means we get less
 net storage out of the gross pool (it could perhaps be configurable?)

I'm not sure what you mean by true forward-error-correction. But if you want
to make _really sure_ that a spinning disk hasn't mangled the data you should:

- Calculate a checksum of a data block in memory.
- Write the data block to disk (with write caching disabled to make as sure as
  possible that the data is on disk when the write finishes. That is a _huge_
  performance penalty)
- Read the data back from disk (and not from the cache!) and compare with the
  original checksum.
- If the read checksum control fails, mark the block as bad and repeat at
  another location

Personally I don't see how this is going to be fast without compromising on
correctness. If you keep the disk write cache enabled to the best of my
knowledge there is no way for the OS to know for sure that the data is
actually on the plates, so the read-back and comparison stage might not mean
anything. 

And for SSDs we might need another type of filesystem entirely. Some concepts
in UFS2 (like e.g. cylinder groups) pretty much useless on SSDs.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpKFkwsVfoVZ.pgp
Description: PGP signature


apache13 to apache22

2010-11-08 Thread Fbsd8
As I do a complete fresh install of 8.1 I saw that apache13 is no longer 
being supported, so thought this is the time I will move to apache22.


Now everything went real easy until testing my websites. In apache13 the 
.css (style sheet) calls for a blue background. The .css file is in the 
same directory as the html files making up the website. In apache13 I 
got the blue background but in apache22 I get a white background. I 
checked the apache22 htppd.config file for any info on css but found none.


Are .css (style sheet) handled differently in apache22?

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

2010-11-08 Thread Warren Block

On Mon, 8 Nov 2010, RW wrote:


-aRr isn't implied by -a, the rR options are ignored in the former.

I think it's fairly clear that recursing through installed
packages with consistent dependecies isn't going to find a package
that isn't in the set of all installed packages.


That sentence makes me a little dizzy.  I think you mean that since -a 
is equivalent to listing all packages on the command line, -r or -R are 
redundant.


So portupgrade \* (i.e., -a) is a superset of

portupgrade -r libexample

because all the dependencies of libexample are included in the \* and so 
portupgrade will see they need to be updated because a port they depend 
on has been updated...  Right?

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


Re: ZFS License and Future

2010-11-08 Thread Svein Skogen (Listmail account)
On 08.11.2010 18:47, Arthur Chance wrote:
*snip*
 
 Presuming you're talking about ZFS, the hash isn't intended to correct
 hardware errors, it's only there to detect them. Correction comes from
 mirroring or the use of RAIDZ{1,2,3}. (I have personal experience of how
 well that works, as I had a disk in a RAIDZ array go bad suddenly, and I
 didn't lose any data.) Any new solution would almost certainly mimic
 ZFS's approach of arranging the data as a Merkel tree, and using
 multiple copies or N out of M shares for correction. I'm not sure GEOM's
 block orientation fits well with Merkel trees though, although I'd be
 happy to be corrected by a GEOM expert.

No, I'm talking about knowing that a file has been corrupted is a little
better than not knowing it has been corrupted. But it still won't help
bring back the file.

And I'm ... all too familiar with redundancy strategies (and backups).
Including their shortcomings. Speaking of which: Has there been any
progress on properly backing up ZFS on FreeBSD yet? (including the metadata)

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: apache13 to apache22

2010-11-08 Thread Frank Shute
On Mon, Nov 08, 2010 at 02:18:19PM -0500, Fbsd8 wrote:

 As I do a complete fresh install of 8.1 I saw that apache13 is no longer 
 being supported, so thought this is the time I will move to apache22.
 
 Now everything went real easy until testing my websites. In apache13 the 
 .css (style sheet) calls for a blue background. The .css file is in the 
 same directory as the html files making up the website. In apache13 I 
 got the blue background but in apache22 I get a white background. I 
 checked the apache22 htppd.config file for any info on css but found none.
 
 Are .css (style sheet) handled differently in apache22?

AFAIK they're not.

It sounds like the stylesheet isn't being served up (white background
is default).

Examine the apache error log. By default it's in /var/log. Also look
in the regular apache log and it could be the stylesheet is getting a
404.

Is server root the same in httpd.conf for 2.2 as it is for 1.3? Could
be the cause of the problem. 2.2 uses a different root by default
IIRC.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


___
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: [2nd try] OpenGL 3.3 and 4.0/4.1 for FreeBSD?

2010-11-08 Thread C. P. Ghost
On Sun, Nov 7, 2010 at 3:46 AM, Chris Brennan xa...@xaerolimit.net wrote:
 On Sat, Nov 6, 2010 at 7:34 PM, C. P. Ghost cpgh...@cordula.ws wrote:

 Sorry to repeat my question:


 http://lists.freebsd.org/pipermail/freebsd-questions/2010-November/223379.html

 but I got no replies at all.

 Anyone with accelerated 3D on FreeBSD out there using
 binary drivers and the new OpenGL APIs? Some practical
 recommendations as to GPUs and drivers? Pointers? Hints?

 TIA,
 -cpghost.

 I'm using the binary driver (out of ports) for my nVidia chipset video card,
 works fine so far, but I am not doing anything fancy yet.

Ah, thank you. Good to know. Did you try something 3D, or just
the usual 2D stuff (e.g. dri/drm etc...)? It's 3D acceleration I'm
interested in, particular the new OpenGL APIs -- and with a bit
of luck, CUDA and/or OpenCL stuff as well.

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS License and Future

2010-11-08 Thread C. P. Ghost
On Mon, Nov 8, 2010 at 7:38 PM, Roland Smith rsm...@xs4all.nl wrote:
 On Mon, Nov 08, 2010 at 05:08:33PM +0100, Svein Skogen (Listmail account) 
 wrote:
 But it's still not capable of true forward-error-correction. If we are
 to embark upon creating a new solution, using something that is cheap
 for normal cases but can still be used (albeit more expensively) for
 error recovery would (imho) be better. Even if that means we get less
 net storage out of the gross pool (it could perhaps be configurable?)

 I'm not sure what you mean by true forward-error-correction. But if you want
 to make _really sure_ that a spinning disk hasn't mangled the data you should:

Maybe something like Reed-Solomon ECC in different blocks.
Should a data block go bad, it could be rebuilt on-the-fly from
those ECC blocks:

http://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction
http://www.eccpage.com/

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: removing files

2010-11-08 Thread Frank Shute
On Mon, Nov 08, 2010 at 10:48:18AM -0500, Jerry McAllister wrote:

 On Mon, Nov 08, 2010 at 11:40:20AM +0530, yoganjaneyulu kasetti wrote:
 
  hi,
  
  I have a problem for deleting files using scriptplease some one can
  guide me for the same.
  
  I have some files with the extension of .chk extension along with the
  extension of .log and .gjf extension in the folder called different 
  *input
  folders. *I wanted to delete the .chk file extension having files. If i go
  to individual input folder manually i can delete the file with *rm* command
  line by but i would like to delete all the .chk files extension files at a
  time through scripting rather than manual. So please some one help me for
  the same.
  /student/sweety/gaussiandata/*1249624064640*/input
  
  /student/sweety/gaussiandata/*1261202703914*/input
  
  /student/sweety/gaussiandata/*1263357080155*/input
  
  /student/sweety/gaussiandata/*1289106407303*/input
 
 Your examples given here don't seem to match quite what you are asking
 as far as I see.   Maybe I am looking at it wrong.
 
 But, anyway, can't you just the -R switch on the rm?
 
   cd top_of_tree_with_files_to_delete
   rm -R *.chk
   rm -R *.log
   rm -R *.gjk
 
 Or am I missing something.
 
 jerry

It could be that the OP has more files than the glob can handle. (With
most shells there's a restrictionor used to be).

I'm also reluctant to use a glob with rm without the -i.

With find(1) you can do a dry run first before giving it the -delete
argument.

The OP also wants to use -maxdepth 1 with find(1) if he doesn't want to
traverse the tree below his target dir.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


___
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: [2nd try] OpenGL 3.3 and 4.0/4.1 for FreeBSD?

2010-11-08 Thread Chris Brennan
On Mon, Nov 8, 2010 at 3:38 PM, C. P. Ghost cpgh...@cordula.ws wrote:

 On Sun, Nov 7, 2010 at 3:46 AM, Chris Brennan xa...@xaerolimit.net
 wrote:
  On Sat, Nov 6, 2010 at 7:34 PM, C. P. Ghost cpgh...@cordula.ws wrote:
 
  Sorry to repeat my question:
 
 
 
 http://lists.freebsd.org/pipermail/freebsd-questions/2010-November/223379.html
 
  but I got no replies at all.
 
  Anyone with accelerated 3D on FreeBSD out there using
  binary drivers and the new OpenGL APIs? Some practical
  recommendations as to GPUs and drivers? Pointers? Hints?
 
  TIA,
  -cpghost.
 
  I'm using the binary driver (out of ports) for my nVidia chipset video
 card,
  works fine so far, but I am not doing anything fancy yet.

 Ah, thank you. Good to know. Did you try something 3D, or just
 the usual 2D stuff (e.g. dri/drm etc...)? It's 3D acceleration I'm
 interested in, particular the new OpenGL APIs -- and with a bit
 of luck, CUDA and/or OpenCL stuff as well.

 Thanks,
 -cpghost.

 --
 Cordula's Web. http://www.cordula.ws/


For shiggles I set up e17 with bling. Works just fine. my laptop can't
really do all that much but this seems to work well.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS License and Future

2010-11-08 Thread Svein Skogen (Listmail account)
On 08.11.2010 21:44, C. P. Ghost wrote:
 On Mon, Nov 8, 2010 at 7:38 PM, Roland Smith rsm...@xs4all.nl wrote:
 On Mon, Nov 08, 2010 at 05:08:33PM +0100, Svein Skogen (Listmail account) 
 wrote:
 But it's still not capable of true forward-error-correction. If we are
 to embark upon creating a new solution, using something that is cheap
 for normal cases but can still be used (albeit more expensively) for
 error recovery would (imho) be better. Even if that means we get less
 net storage out of the gross pool (it could perhaps be configurable?)

 I'm not sure what you mean by true forward-error-correction. But if you 
 want
 to make _really sure_ that a spinning disk hasn't mangled the data you 
 should:
 
 Maybe something like Reed-Solomon ECC in different blocks.
 Should a data block go bad, it could be rebuilt on-the-fly from
 those ECC blocks:
 
 http://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction
 http://www.eccpage.com/

Something along those lines was what I had in mind. ;)

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: removing files

2010-11-08 Thread Jerry McAllister
On Mon, Nov 08, 2010 at 08:49:12PM +, Frank Shute wrote:

 On Mon, Nov 08, 2010 at 10:48:18AM -0500, Jerry McAllister wrote:
 
  On Mon, Nov 08, 2010 at 11:40:20AM +0530, yoganjaneyulu kasetti wrote:
  
   hi,
   
   I have a problem for deleting files using scriptplease some one 
   can
   guide me for the same.
   
   I have some files with the extension of .chk extension along with the
   extension of .log and .gjf extension in the folder called different 
   *input
   folders. *I wanted to delete the .chk file extension having files. If i 
   go
   to individual input folder manually i can delete the file with *rm* 
   command
   line by but i would like to delete all the .chk files extension files 
   at a
   time through scripting rather than manual. So please some one help me for
   the same.
   /student/sweety/gaussiandata/*1249624064640*/input
   
   /student/sweety/gaussiandata/*1261202703914*/input
   
   /student/sweety/gaussiandata/*1263357080155*/input
   
   /student/sweety/gaussiandata/*1289106407303*/input
  
  Your examples given here don't seem to match quite what you are asking
  as far as I see.   Maybe I am looking at it wrong.
  
  But, anyway, can't you just the -R switch on the rm?
  
cd top_of_tree_with_files_to_delete
rm -R *.chk
rm -R *.log
rm -R *.gjk
  
  Or am I missing something.
  
  jerry
 
 It could be that the OP has more files than the glob can handle. (With
 most shells there's a restrictionor used to be).
 
 I'm also reluctant to use a glob with rm without the -i.
 
 With find(1) you can do a dry run first before giving it the -delete
 argument.

Well, if that is the problem, find is the answer.   
It should do everything he wants.

jerry


 
 The OP also wants to use -maxdepth 1 with find(1) if he doesn't want to
 traverse the tree below his target dir.
 
 
 Regards,
 
 -- 
 
  Frank
 
  Contact info: http://www.shute.org.uk/misc/contact.html
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


pam services under ldap

2010-11-08 Thread bluethundr
Hello List


 I am attempting to setup various pam modules to consult our new LDAP
services in order to do what it needs to do. My LDAP server is FreeBSD
but the clients are CentOS...

 I have setup my /etc/pam.d sudo file on the client (for example) this
way in the attempt to accomplish this via LDAP:

 [r...@vircent03:~]#cat /etc/pam.d/sudo
#%PAM-1.0
auth   include  system-auth
auth   required pam_ldap.so
accountinclude  system-auth
accountrequired pam_ldap.so
password   include  system-auth
password   required pam_ldap.so
sessionoptional pam_keyinit.so revoke
sessionrequired pam_limits.so
sessionrequired pam_ldap.so


but even tho the user is part of the %wheel group under LDAP it is
unable to sudo to any other account (including root). If I try to sudo
this is what happens:

[bluethu...@vircent03:~]#sudo bash
[sudo] password for bluethundr:
bluethundr is not in the sudoers file.  This incident will be reported.

It would appear that sudo support for ldap is compiled in:

[r...@vircent03:~]#ldd $(which sudo)| grep -i ldap
libldap-2.3.so.0 = /usr/lib/libldap-2.3.so.0 (0x00552000)


This is how I setup my ldap.conf file

[r...@vircent03:~]#cat /etc/openldap/ldap.conf
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

#BASE   dc=example, dc=com
#URIldap://ldap.example.com ldap://ldap-master.example.com:666

#SIZELIMIT  12
#TIMELIMIT  15
#DEREF  never
URI ldap://ldap.acadaca.net/
BASE dc=acadaca,dc=net
TLS_CACERTDIR /etc/openldap/cacerts
sudoers_base ou=sudoers,ou=Services,dc=acadaca,dc=net


In my openldap logs on the LDAP server there appears to be no activity
when I sudo. however in the secure logs on the client I do..

Nov  8 16:05:34 VIRCENT03 su: pam_unix(su-l:session): session opened
for user root by bluethundr(uid=500)
Nov  8 16:05:37 VIRCENT03 su: pam_unix(su-l:session): session opened
for user bluethundr by bluethundr(uid=0)
Nov  8 16:05:44 VIRCENT03 sudo: bluethundr : user NOT in sudoers ;
TTY=pts/5 ; PWD=/home/bluethundr ; USER=root ; COMMAND=/bin/bash


I do see other events in secure.log that appear to be pam successes
however. am i interpreting this correctly that at least part of the
system is communicating with pam on the ldap server?


thanks


-- 
Here's my RSA Public key:
gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9

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


Re: ZFS License and Future

2010-11-08 Thread David Brodbeck
On Mon, Nov 8, 2010 at 12:01 PM, Svein Skogen (Listmail account)
svein-listm...@stillbilde.net wrote:
 And I'm ... all too familiar with redundancy strategies (and backups).
 Including their shortcomings. Speaking of which: Has there been any
 progress on properly backing up ZFS on FreeBSD yet? (including the metadata)

I use zetaback on my OpenSolaris systems; I don't know of any reason
it wouldn't work on FreeBSD, since it's just using snapshots and zfs
send/receive.  IMHO it's really only suitable for disaster recovery
backups, not archival, though, because zfs send streams are not
guaranteed to be compatible between filesystem versions.
___
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


Xorg support for adding a graphics card

2010-11-08 Thread doug
When I slid froward from FreeBSD 7.2 and Xorg (whatever) to 8.0 and xorg-7.4_4 
I lost the ability to use the graphics card I had added to my Dell PE300 built 
in the last century. I was told the ability to have two cards in one box was 
lost due to int10 provided by libpciaccess.


Is this still the case? The BIOS on the PE300 does not allow the on-board card 
to 'disappear'. I can not find any information to suggest things have changed.


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
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: Xorg support for adding a graphics card

2010-11-08 Thread Jerry
On Mon, 8 Nov 2010 17:08:23 -0500 (EST)
d...@safeport.com d...@safeport.com articulated:

 When I slid froward from FreeBSD 7.2 and Xorg (whatever) to 8.0 and
 xorg-7.4_4 I lost the ability to use the graphics card I had added to
 my Dell PE300 built in the last century. I was told the ability to
 have two cards in one box was lost due to int10 provided by
 libpciaccess.
 
 Is this still the case? The BIOS on the PE300 does not allow the
 on-board card to 'disappear'. I can not find any information to
 suggest things have changed.

Isn't there a jumper on the motherboard that can be used to disable
the on board card? Not all motherboards had one but it is worth a check
anyway, assuming you have not done so all ready.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
Every dog has its day, but the nights belong to the pussycats.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS License and Future

2010-11-08 Thread Roland Smith
On Mon, Nov 08, 2010 at 09:44:29PM +0100, C. P. Ghost wrote:
 On Mon, Nov 8, 2010 at 7:38 PM, Roland Smith rsm...@xs4all.nl wrote:
  On Mon, Nov 08, 2010 at 05:08:33PM +0100, Svein Skogen (Listmail account) 
  wrote:
  But it's still not capable of true forward-error-correction. If we are
  to embark upon creating a new solution, using something that is cheap
  for normal cases but can still be used (albeit more expensively) for
  error recovery would (imho) be better. Even if that means we get less
  net storage out of the gross pool (it could perhaps be configurable?)
 
  I'm not sure what you mean by true forward-error-correction. But if you 
  want
  to make _really sure_ that a spinning disk hasn't mangled the data you 
  should:
 
 Maybe something like Reed-Solomon ECC in different blocks.
 Should a data block go bad, it could be rebuilt on-the-fly from
 those ECC blocks:

And how do you detect that a block has gone bad, other than reading back what
you wrote and finding a difference? Because that would still be slow.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpUlzPtH4rC3.pgp
Description: PGP signature


Re: ZFS License and Future

2010-11-08 Thread krad
On 8 November 2010 22:35, Roland Smith rsm...@xs4all.nl wrote:

 On Mon, Nov 08, 2010 at 09:44:29PM +0100, C. P. Ghost wrote:
  On Mon, Nov 8, 2010 at 7:38 PM, Roland Smith rsm...@xs4all.nl wrote:
   On Mon, Nov 08, 2010 at 05:08:33PM +0100, Svein Skogen (Listmail
 account) wrote:
   But it's still not capable of true forward-error-correction. If we are
   to embark upon creating a new solution, using something that is cheap
   for normal cases but can still be used (albeit more expensively) for
   error recovery would (imho) be better. Even if that means we get less
   net storage out of the gross pool (it could perhaps be configurable?)
  
   I'm not sure what you mean by true forward-error-correction. But if
 you want
   to make _really sure_ that a spinning disk hasn't mangled the data you
 should:
 
  Maybe something like Reed-Solomon ECC in different blocks.
  Should a data block go bad, it could be rebuilt on-the-fly from
  those ECC blocks:

 And how do you detect that a block has gone bad, other than reading back
 what
 you wrote and finding a difference? Because that would still be slow.

 Roland
 -y
 R.F.Smith   
 http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)



The read doesnt need to be done at write time, it only needs to be done when
the block is read by the system. If an issue is found than the corrective
measures are executed. For you important data in my opinion you should
always set the copies attribute to 3. This is obviously very costly in terms
of storage but its just a trade off for the data.
___
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: Copy all users between systems

2010-11-08 Thread mattibj...@bredband.net

Hello Matthew,


On 10/29/2010 04:51 PM, Matthew Seaman wrote:

On 29/10/2010 12:46, Laszlo Nagy wrote:

I would like to copy all user accounts, including root from an already
installed 8.0 system to a fresh new 8.1 system.

My plan is to boot into single user mode, then copy these:

/etc/passwd
/etc/master.passwd
/etc/group

then run pwd_mkdb and finally restart the system. (Obviously, I also
need to copy user home directories)

Will this be enough? Did I miss something?


That should be sufficient, assuming you aren't using NIS or LDAP or some
other userdb.

AFAIR there weren't any changes to the standard system accounts between
8.0 and 8.1, but in general you should also run 'mergemaster -p' to
merge in any such when copying the master.passwd file between different
OS versions.  (mergemaster -p does some other stuff besides merging the
system user accounts, but it's all pretty harmless)

Restarting the system may not actually be necessary, but it's a good
idea if you can spare the down-time.



Its never bad to be careful but shouldn't it be enough to change init mode?



Cheers,

Matthew




//Mattias
___
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: Administrating more than 10 servers

2010-11-08 Thread mattibj...@bredband.net

Hello there,


On 10/25/2010 04:19 AM, Randy Belk wrote:

This is a must read for multiple UNIX server administration,
http://www.cae.tntech.edu/~mwr/unix_infrastructure_management_from_scratch.pdf
.



Just want to thank you for the PDF, very interesting. If you are in town 
I can buy you a beer or similar :)




On Sun, Oct 24, 2010 at 2:45 PM, Ahmed Ossamaah...@master-zone.net  wrote:


Hi folks,

Lately I was put in charge to administrate 12 FreeBSD servers, and I was
wonder what is the best way to administrate/monitor/follow-up/update/patch
these servers such that all work like a clockwise with each other with the
exact same updates?

I wrote few scripts that notifies me with system failure and updates, but I
want to manage the servers more efficiently.

Any advice/guide is much appreciated.
___
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








//Mattias
___
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: Xorg support for adding a graphics card

2010-11-08 Thread doug

On Mon, 8 Nov 2010, Jerry wrote:


On Mon, 8 Nov 2010 17:08:23 -0500 (EST)
d...@safeport.com d...@safeport.com articulated:


When I slid froward from FreeBSD 7.2 and Xorg (whatever) to 8.0 and
xorg-7.4_4 I lost the ability to use the graphics card I had added to
my Dell PE300 built in the last century. I was told the ability to
have two cards in one box was lost due to int10 provided by
libpciaccess.

Is this still the case? The BIOS on the PE300 does not allow the
on-board card to 'disappear'. I can not find any information to
suggest things have changed.


Isn't there a jumper on the motherboard that can be used to disable
the on board card? Not all motherboards had one but it is worth a check
anyway, assuming you have not done so all ready.


I was not aware of the possibility - 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: portmaster question

2010-11-08 Thread RW
On Mon, 8 Nov 2010 12:50:21 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Mon, 8 Nov 2010, RW wrote:
 
  -aRr isn't implied by -a, the rR options are ignored in the former.
 
  I think it's fairly clear that recursing through installed
  packages with consistent dependecies isn't going to find a package
  that isn't in the set of all installed packages.
 
 That sentence makes me a little dizzy.  I think you mean that since
 -a is equivalent to listing all packages on the command line, -r or
 -R are redundant.
 
 So portupgrade \* (i.e., -a) is a superset of
 
 portupgrade -r libexample
 
 because all the dependencies of libexample are included in the \* and
 so portupgrade will see they need to be updated because a port they
 depend on has been updated...  Right?

yes
___
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: Entropy Key for FreeBSD?

2010-11-08 Thread RW
On Mon, 08 Nov 2010 18:51:08 +0100
Per olof Ljungmark p...@intersonic.se wrote:

 Hi,
 
 Did anyone in the community try to adopt the Entropy Key
 http://www.entropykey.com/
 for use with FreeBSD?
 
 As a non-programmer I would not even try but perhaps someone with
 better skills already did?
 
 FWIW MirBSD seems to have a port of the keyd.

FreeBSD doesn't have a linux-style blocking /dev/random, so it couldn't
be used in quite the same way as in other OS.

Personally I think the key demographic for this is people with more
money than sense.
___
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: removing files

2010-11-08 Thread Eitan Adler
On Mon, Nov 8, 2010 at 2:20 AM, Pegasus Mc Cleaft k...@mthelicon.com wrote:
 On Monday 08 November 2010 06:10:20 yoganjaneyulu kasetti wrote:
 hi,

 I have a problem for deleting files using scriptplease some one can
 guide me for the same.

 I have some files with the extension of .chk extension along with the
 extension of .log and .gjf extension in the folder called different
 *input folders. *I wanted to delete the .chk file extension having
 files. If i go to individual input folder manually i can delete the file
 with *rm* command line by but i would like to delete all the .chk files
 extension files at a time through scripting rather than manual. So please
 some one help me for the same.
 /student/sweety/gaussiandata/*1249624064640*/input


        Could you, in your script do something like:

        cd /Path_to_Data_Root
        find . -name *.chk -print -prune -exec rm -rf {} \;
If you really want to delete all the .chk files extension files at a time
find path -name '*.chk' -print -prune -exec rm -rf {} + \;

-- 
Eitan Adler
___
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: removing files

2010-11-08 Thread Peter Boosten
On 9-11-2010 6:57, Eitan Adler wrote:
 If you really want to delete all the .chk files extension files at a time
 find path -name '*.chk' -print -prune -exec rm -rf {} + \;

And more efficient:

find path -name '*.chk' -delete

Peter

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


Re: Copy all users between systems

2010-11-08 Thread Matthew Seaman
On 08/11/2010 22:44, mattibj...@bredband.net wrote:
 Its never bad to be careful but shouldn't it be enough to change init mode?

This isn't SysV.  BSD init doesn't really do modes.  However, yes,
taking the system down to single user and then back up to multiuser is a
possibility.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Entropy Key for FreeBSD?

2010-11-08 Thread Per olof Ljungmark

On 11/09/10 01:09, RW wrote:

On Mon, 08 Nov 2010 18:51:08 +0100
Per olof Ljungmarkp...@intersonic.se  wrote:


Hi,

Did anyone in the community try to adopt the Entropy Key
http://www.entropykey.com/
for use with FreeBSD?

As a non-programmer I would not even try but perhaps someone with
better skills already did?

FWIW MirBSD seems to have a port of the keyd.


FreeBSD doesn't have a linux-style blocking /dev/random, so it couldn't
be used in quite the same way as in other OS.

Personally I think the key demographic for this is people with more
money than sense.


Could you please elaborate a bit over this?
___
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