Re: perl, rrdtool issue

2012-11-14 Thread Laszlo Danielisz
Actually I did portupgrade -rf, and still have the issue with that 
bsdpan-RRDp-0.99.0.
And because of that my munin isn't working, I'm getting email like:

"Can't locate Munin/Common/Defaults.pm in @INC (@INC contains: 
/usr/local/lib/perl5/5.12.4/BSDPAN /usr/local/lib/perl5/site_perl/5.12.4/mach 
/usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach 
/usr/local/lib/perl5/5.12.4 .) at 
/usr/local/lib/perl5/site_perl/5.12.4/Munin/Master/Update.pm line 14."


On 2012 November 15 Thursday at 8:37 AM, Olivier Nicole wrote: 
> Laszlo,
> 
> > Yesterday I issued the following command which I regretted: portupgrade 
> > -CPy, and this little tool installed perl 5.12 while perl 5.10 was already 
> > on the system. Since then everything is messed up.
> > Now I deleted perl 5.10 and reinstalled perl 5.10 and everything which 
> > depends on it and still have the following error:
> > 
> 
> 
> What I usually do is upgrading every Perl packages after I upgraded Perl.
> 
> Something like portupgrade -R perl should do.
> 
> Or do it manually, one port at a time if you are afraid to break something 
> else.
> 
> For having done it recently, from perl to rrdtool it's less than 10
> ports to get it back working.
> 
> best regards,
> 
> olivier
> 
> > # portversion -v
> > [Updating the pkgdb  in /var/db/pkg ... - 626 packages 
> > found (-1 +0) (...) done]
> > Stale dependency: bsdpan-RRDp-0.99.0 --> perl-5.10.1_7 -- manually run 
> > 'pkgdb -F' to fix, or specify -O to force.
> > 
> > I tried pkgdb -F but it can't fix, also tried to delete rrdtool and 
> > reinstall, but still the same issue. I'm running 8.3-RELEASE-p3.
> > 
> > Do you have any idea how to solve this issue?
> > 
> > Thx!
> > Laszlo
> > ___
> > freebsd-questions@freebsd.org (mailto: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 
> > (mailto:freebsd-questions-unsubscr...@freebsd.org)"
> > 
> 
> ___
> freebsd-questions@freebsd.org (mailto: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 
> (mailto: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"


Amanda not working in 8.3

2012-11-14 Thread Olivier Nicole
Hi,

Since I updated all my servers from previous versions of FreeBSD to
8.3 (p4), Amanda started failing for any big back-up.

I cannot trace the problem and would appreciate some help.

For one of the big file system, I did a manual tar-gzip-ssh to amanda
server. It proceeded well, so it seems it is not a timeout in process
or network.

TIA.

Olivier
___
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: perl, rrdtool issue

2012-11-14 Thread Olivier Nicole
Laszlo,

> Yesterday I issued the following command which I regretted: portupgrade -CPy, 
> and this little tool installed perl 5.12 while perl 5.10 was already on the 
> system. Since then everything is messed up.
> Now I deleted perl 5.10 and reinstalled perl 5.10 and everything which 
> depends on it and still have the following error:

What I usually do is upgrading every Perl packages after I upgraded Perl.

Something like portupgrade -R perl should do.

Or do it manually, one port at a time if you are afraid to break something else.

For having done it recently, from perl to rrdtool it's less than 10
ports to get it back working.

best regards,

olivier

> # portversion -v
> [Updating the pkgdb  in /var/db/pkg ... - 626 packages 
> found (-1 +0) (...) done]
> Stale dependency: bsdpan-RRDp-0.99.0 --> perl-5.10.1_7 -- manually run 'pkgdb 
> -F' to fix, or specify -O to force.
>
> I tried pkgdb -F but it can't fix, also tried to delete rrdtool and 
> reinstall, but still the same issue. I'm running 8.3-RELEASE-p3.
>
> Do you have any idea how to solve this issue?
>
> Thx!
> Laszlo
> ___
> 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"


perl, rrdtool issue

2012-11-14 Thread Dánielisz László
Hi Guys,

Yesterday I issued the following command which I regretted: portupgrade -CPy, 
and this little tool installed perl 5.12 while perl 5.10 was already on the 
system. Since then everything is messed up.
Now I deleted perl 5.10 and reinstalled perl 5.10 and everything which depends 
on it and still have the following error:


# portversion -v
[Updating the pkgdb  in /var/db/pkg ... - 626 packages found 
(-1 +0) (...) done]
Stale dependency: bsdpan-RRDp-0.99.0 --> perl-5.10.1_7 -- manually run 'pkgdb 
-F' to fix, or specify -O to force.

I tried pkgdb -F but it can't fix, also tried to delete rrdtool and reinstall, 
but still the same issue. I'm running 8.3-RELEASE-p3.

Do you have any idea how to solve this issue?

Thx!
Laszlo
___
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: why sync during shutdown when sync already done?

2012-11-14 Thread Polytropon
On Wed, 14 Nov 2012 19:32:46 -0700, Gary Aitken wrote:
> It's my understanding that the sequence of numbers one sees output when
> shutdown is issued reflect writes of cached items.
> Is that correct?
> 
> If so, why does:
>   sync
>   shutdown -r now
> still show cached items being written?

Issuing the "sync" command simply tells the OS to sync
any modified file I/O buffers (cache) that aren't written
yet. It does not imply that the OS will do it _exactly now_,
and even more, that it will _have done_ it when the command
returns. So if you call sync(), the kernel will be
instructed to perform the syncing operation. But keep
in mind that the actual device drivers (e. g. for the
hard disk in question) may delay the transfer to the
disk, but tell the kernel that the operation has been
completed. This minimal time window can probably be
ignored, but from my understanding, syncing is a
"multi-staged process". The "shutdown sync" seems to
have a specific timeout that makes sure things get
written definitely.

That's why even the famous

# sync ; sync ; sync ; reboot

sequence would have the same effect. :-)



-- 
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: curious -- what's /tmp/fam-root ?

2012-11-14 Thread Polytropon
On Wed, 14 Nov 2012 13:22:06 -0700, Gary Aitken wrote:
> Just curious; what's the purpose of /tmp/fam-root, and what is written there?
> Is it simply where the os writes stuff which is sensitive,
> and putting it in a rwx-- directory avoids potential security issues
> regarding file access?
> or is there more to it than that?

I think this is part of FAM - file alternation monitor,
and the particular directory is for root, that's why
it is "user-protected". I'm not sure if this is part
of the OS, cf. port gio-fam-backend (belongs to GIO,
which probably belongs to something else that is then
required by again something else...).


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


Proposition

2012-11-14 Thread Li Hao

Greetings,

I am Mr. Li Hao, CFO of China Merchants Bank, P.R.C. I have a discreet 
proposition for you to the tune of 105 Million EUR. Please reply for details.

Warmest,
LH

___
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: Advanced Format Drive ?

2012-11-14 Thread Warren Block

On Wed, 14 Nov 2012, Ronald F. Guilmette wrote:


I'm looking at the examples section of the gpart(8) man page.  May I
assume that if I just want to merely ``try out'' GPT... you know...
taking it out on the road for a first time test run... that I can
just do the first five (5) commands listed under EXAMPLES and then
that will be enough to go ahead and try installing FreeBSD into the
created freebsd-ufs partition?

Even assuming that the answer is yes, I have still more questions...
Where are these magic numbers coming from??  I am specifically talking
about the number "34" in the "-b 34" option and also the number "162"
in the "-b 162" option.  Tha man page just tosses those into the example
command lines without saying a word about them.  And you can probably
guess what it is that is especially troubling to me about them... neither
one of them is divisible by 8 (i.e. 4KB/512B).  So would the examples
in the current gpart(8) man page produce an Epic Fail when and if they
were used with a modern "Advanced Format" drive?


-b is the beginning block of a partition.  34 is a magic value, the size 
of a standard GPT partition table.  A good overall reference on GPT is 
the Wikipedia page: http://en.wikipedia.org/wiki/GUID_Partition_Table


Remember that the man page is a reference, not a tutorial.  I wanted 
more specific notes that followed best practices, and that was the 
source for this article:

http://www.wonkity.com/~wblock/docs/html/disksetup.html

In general, you create a "partition scheme" first.  This can be MBR, 
GPT, or others.  (But use GPT.)


Rather than combine the bootcode with the partition table, GPT just uses 
a small partition for it.  Since the standard GPT allows for up to 128 
partitions, there's no reason not to use them.


Next come other partitions for UFS or ZFS filesystems or swap.

That's it, really.  The rest is details the man page can explain, like 
additional options for alignment.  (The creation of the first UFS 
partition in the article does not use -a because older versions of gpart 
did unexpected things when -a and -b were combined.  The alignment 
produced is correct.)

___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Gary Aitken
> did the following:
>booted to backup disk
>dump -0aR -h 0 -f /usr/backup/dump_var_0_20121113_1920 /dev/ada0p4
>(repeat for /tmp, /usr, / partitions to be safe)
>repartitioned the main disk using gpart
>newfs the modified partitions (var, tmp, usr)
>rewrote the boot block and boot partition (#1)
>mount /dev/ada0p4 /mnt/ssd/var
>cd /mnt/ssd/var
>restore -r /usr/backup/dump_var_0_20121113_1920
>Cannot find file dump list

ok, after digging around in my notes and memory I have a better understanding
of what actually happened:

I went through several reboot sequences, between the backup disk and
the main disk.

After generating the /var dump file on the backup disk while booted from the
backup disk, I did a shutdown -r to reboot the main disk; can't remember why.
What I do remember is that the dump itself, running as root from ttyv5, 
appeared to terminate normally, with no error message; I got the # prompt.
However, as the shutdown was happening, I saw the message:
  Dump failed, partition too small
on ttyv1 -- despite the fact that the command completed without any message
on the controlling terminal, ttyv5.

The destination file-system was nowhere near full, and the source was read-only,
so I stupidly assumed the output was ok and the message was the result of
some other niggly thing.

Obviously dump ran out of space (the file is exactly a multiple 
of the block size and apparently truncated), and the dump directory can't be 
found.  But where it ran out of space is unclear to me, as the destination 
file system was nowhere near full before or after the event, and contains
two much larger intact dump sets (for / and /usr) and one of those was 
written after the truncated ones.

The question I have is:
  Why didn't the dump failure message show up on the controlling terminal? 
 
It's not clear which partition ran out of space.  Does dump use /tmp or /var?  
/tmp and /var on the running backup os are relative small (512MB), and the 
filesystem being dumped was the same size and ~70% full.  If dump uses /tmp 
and tmp runs out of space and the tty output of dump is depending on a socket 
in /tmp, that might cause a problem.  But once the process terminates, if it 
cleans up after itself there's no trace of the overflow.

crazy?  it was kinda late at night...
___
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: Advanced Format Drive ?

2012-11-14 Thread Warren Block

On Wed, 14 Nov 2012, Ronald F. Guilmette wrote:


(And I gather from everything that has been said
so far in this thread that if the alignment is set wrong, then the user
is likely to pay a Big Price in terms of performance, right?)


Yes.


... and I am almost tempted to file a formal PR about this, i.e. the fact
that ``guided'' partitioning doesn't allow the user to specify the alignment
of _anything_.


There are a couple PRs like that already.


Or do I need to set the alignment separately, e.g. my manually running
bsdlabel?  (Normally, I've just been using what noadays is being
called "guided" partitioning, you know, with the friendly curses-based
GUI.  So As with fdisk, I have no real experience using bsdlabee from
teh command line.  But I guess it is time that i learned how.)


I don't know of a way to make fdisk and bsdlabel do the correct
alignment.


That also is rather entirely perplexing to me, especially given all else
that I have learned already from and within this conversation.


fdisk and bsdlabel are old tools.  Disks have had 512-byte blocks for a 
very long time.



For example, I've learned that when one is using modern "Advanced
Format) (4KB blocksize) hard disks, it is Bad (capital `B') to allow
any partition to be aligned to anything other than (at least) a 4KB
boundary, _and_ that newfs has already, apparently been modified/updated
so that it's minimum default fragment size is 4KB.


The larger size was an option to newfs, the defaults have just been 
changed.



Given these facts, I am more than a little surpised to learn (or rather
just to realize) that the good old traditional fdisk and bsdlabel tools
do not have ways to explicitly specify minimum alignment _and_ that
these tools are still being distributed with FreeBSD.


There may be a way, I haven't bothered to look.  As I said, gpart does 
everything fdisk and bsdlabel can do.

___
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: well, try here first...

2012-11-14 Thread Perry Hutchison
Robert Bonomi  wrote:
> > Date: Wed, 14 Nov 2012 05:48:48 +0100
> > From: Polytropon 
> > Subject: Re: well, try here first...
> >
> > On Tue, 13 Nov 2012 20:20:51 -0700, Chad Leigh Shire.Net LLC wrote:
> > > 
> > > To be fair, a lot of the same rules exist for English.  The
> > > comma is not optional or left to preferences in English,
> > > either.  There are definite rules and it brings structure.
> >
> > That matches what I've learned in school, but it doesn't match
> > realitiy anymore. :-)
> >
> > A famous thing is "comma in lists": Unlike German, where "and"
> > substitutes a comma, in English it seems to be valid to put a
> > comma infront of "and":
>
> In 'classic' English (as taught in the 60s and earlier), a comma
> was _required_ before a trailing 'and' in a list of 3 or more
> items, and forbidden if there were only two items.

By the time I got to high school (mid-60's), the comma before 'and'
(or 'or') in a list of three or more was being taught as optional.
My junior-in-college daughter tells me it is still being taught
that way today.  She and I have each come to the conclusion that
it should _not_ be considered optional, because omitting it can
sometimes cause the last two items in the list to appear as one
item (at least on a first reading -- and one should not need to
read things a second time to understand the punctuation).

Last I heard, we have the Associated Press to thank for this
travesty, their style manual having been revised in the late
1950's or early 1960's to say something along the lines of "don't
use a comma in that situation unless it's necessary for clarity."
I suppose it may have had something to do with saving a fraction
of a second of Teletype time, and a minuscule amount of space in
a newspaper column (which could occasionally lengthen/shorten a
story by an entire line), every time such a construct turned up
in a news story.  Neither column space nor Teletype time was
exactly inexpensive back then.

> The accepted 'rules' changed about the time "new math" was foisted
> on the world.  The most visible ones involved comma placement, and
> punctuation inside trailing quotes.
>
>   The password is "frodo."
>   It is 5 characters long.
>
>   The password is "frodo."
>   It is 6 characters long.
>
> BAH, HUMBUG!!! 
>
> Make the first one:
>   The password is "frodo". 
> and all the ambiguity goes away.<*snarl*>

I think the AP may have been behind this one too, although I don't
see how the rationalization could have involved either space or
transmission time.  Meanwhile, a question mark or exclamation point
in the same circumstances is supposed to be placed inside _or_
outside the closing quotation mark, depending on whether or not it
is part of the material being quoted.  IMO it makes more sense to
apply that same rule to periods and commas also.
___
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: Advanced Format Drive ?

2012-11-14 Thread Ronald F. Guilmette

In message , 
Warren Block  wrote:

>On Tue, 13 Nov 2012, Ronald F. Guilmette wrote:
>
>> OK.  I think that I always was doing that anyway.  But I want to be sure
>> that I understand... If the size of the BSD partition is a multiple of,
>> say, !MB, then the _alignment_ of that partition will likewise (auto-
>> magically) be at least 1MB also?
>
>No.  If you start with $0.63, and only add full dollars or tens, you 
>will still never have an integer amount of dollars.

OK.  I understand.  However in my personal opinion, what this indicates
to me is that the ``guided'' partitioning GUI stuff that is (nowadays)
presented to the user who is installing FreeBSD 9.x could perhaps be
called "mis-guided", given that there is no place that I have seen
within this ``guided'' process where the user is even allowed to specify
partition alignment.  (And I gather from everything that has been said
so far in this thread that if the alignment is set wrong, then the user
is likely to pay a Big Price in terms of performance, right?)

... and I am almost tempted to file a formal PR about this, i.e. the fact
that ``guided'' partitioning doesn't allow the user to specify the alignment
of _anything_.

>> Or do I need to set the alignment separately, e.g. my manually running 
>> bsdlabel?  (Normally, I've just been using what noadays is being 
>> called "guided" partitioning, you know, with the friendly curses-based 
>> GUI.  So As with fdisk, I have no real experience using bsdlabee from 
>> teh command line.  But I guess it is time that i learned how.)
>
>I don't know of a way to make fdisk and bsdlabel do the correct 
>alignment.

That also is rather entirely perplexing to me, especially given all else
that I have learned already from and within this conversation.

For example, I've learned that when one is using modern "Advanced
Format) (4KB blocksize) hard disks, it is Bad (capital `B') to allow
any partition to be aligned to anything other than (at least) a 4KB
boundary, _and_ that newfs has already, apparently been modified/updated
so that it's minimum default fragment size is 4KB.

Given these facts, I am more than a little surpised to learn (or rather
just to realize) that the good old traditional fdisk and bsdlabel tools
do not have ways to explicitly specify minimum alignment _and_ that
these tools are still being distributed with FreeBSD.

Do the most recent versions of fdisk and bsdlabel that are now shipping
with FreeBSD at least mirror the change that has been introduced into
newfs?  I mean do they also always round everything to (minimum) 4KB
boundaries?  If not, then I can see the possibility of a lot of people
using these tools and then ending up with some quite perplexing problems.

And as long as we are on the subject...

I'm now looking through the fdisk man page (in far more detail than I ever
have before) and I am seeing some comments about alignment, but for me at
least, they are all cryptic at best.  (Not that they wern't already, long
before now.  I confess that I've never really dregded into this stuff very
much, but on the rare occasions when I have tried to do so in the past, it
was, as I remember, already rather befuddling.)

For example, here are some excerpts from the fdisk man page:

 If you hand craft your disk layout, please make sure that the FreeBSD
 slice starts on a cylinder boundary.

...

 Note: the start offset will be rounded upwards to a head boundary
 if necessary, and the end offset will be rounded downwards to a
 cylinder boundary if necessary.

These passages didn't make any sense to me even the first time I read them,
years ago, and they appear to make even less now... now that we are in
an age when disks have these 4KB physical read/write units (rather than
the old standard of 512B), and also when, as I understand it, "disk
geometry" has long ago become largely if not entirely just a convenient
fiction, told by disk drives to their controllers in order to make ancient
legacy BIOSes and other ancient legacy software happy.

Why was it ever of any special value to start something on a ``cylinder''
boundary?  And more to the point, is it_still_ of any actual value to do
so?  And of course I have the same question for the ends of things...
Why was it ever of any value to *end* things on a ``cylinder'' boundary,
and does doing that still have any value at all in the modern era?

And of course, I have all the same questions regarding ``head'' boundaries.
What in God's name was ever beneficial about starting a partition (or anything
else for that matter) on a ``head'' boundary?  And is this at all relevant
for any hardware that's been manufactured within the last 10 years?

(And by the way, I am an old geezer, and I _do_ remember the ancient
times when disk drives actually told the real unvarnished truth, and
when OSes actually did go to some lengths to try to implement optimized
disk usage strategies, e.g. to try to keep the heads as close t

why sync during shutdown when sync already done?

2012-11-14 Thread Gary Aitken
It's my understanding that the sequence of numbers one sees output when
shutdown is issued reflect writes of cached items.
Is that correct?

If so, why does:
  sync
  shutdown -r now
still show cached items being written?

___
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: Mounting SD card.

2012-11-14 Thread Warren Block

On Wed, 14 Nov 2012, Mike Clarke wrote:


On Wednesday 14 November 2012 19:43:30 Fernando Apesteguía wrote:


If I boot the system and plug the SD card in, the green led
doesn't even switch on and there is only a /dev/da0 that I can not
mount. If I boot the system with the card plugged in, the green led is
on and there is a /dev/da0s1 device that I can't still mount because
mount_msdosfs returns an Input/Output error after some time.


I think that's pretty much standard behaviour. The solution appears to be
to "wake" it up with the following incantation:

dd if=/dev/null of=/dev/da0 count=0

That's what works here. See the thread starting with



true > /dev/da0

is a little shorter and safer.  The search keywords for this are "GEOM 
retaste" or "retasting".___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Warren Block

On Wed, 14 Nov 2012, Matthias Apitz wrote:


El día Wednesday, November 14, 2012 a las 09:45:22AM -0700, Warren Block 
escribió:


One of the (in my opinion) most interesting reference sources
for dump/restore also mentions this format:

# mount /dev/da0s1 /mnt
# mkdir /tmp/oldvar
# cd /tmp/oldvar
# restore -ruf /mnt/var.dump


Yes, -u "unlinks" an existing file before restoring that file, useful
for restoring dumps over an existing filesystem.  Leave out the -u when
restoring to a new filesystem and the restore will go faster.


# umount /mnt


And that points out a mistake: /mnt can't be unmounted while it is the
PWD.  Fixed.


I think PWD is /tmp/oldvar and not /mnt;


Yes, you're correct.  Re-fixed.  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: OT: problems with gpl-licensed software

2012-11-14 Thread Robert Bonomi

> Date: Wed, 14 Nov 2012 16:09:32 -0700 (MST)
> From: Dale Scott 
> Subject: Re: OT: problems with gpl-licensed software
>
> > Thinking about extending or dual-licensing a gpl-licensed software ? 
> > https://lkml.org/lkml/2012/11/7/338
>
> IANAL, but my understanding from researching the GPL is that if a piece 
> of software functions as an integrated part of some other software that 
ilicense under the GPL, then the software in question *can* be 
> considered to be a derived work of the other software - and under the 
> terms of the GPL must also be licensed by the GPL (even if the author has 
> copyright ownership and distributes their software separately, which are 
> the most common reasons I've seen given for why the GPL should not 
> apply).

nitpick -- if any GPL-licensed software is included in an executable,
then the _entire_ app *must* be GPL-licensed -- this is a condition
of the license of the  GPLed software 

the latest version of the GPL attempts to impose GPL licensing on stand-
alone apps that operate in an intimately connected fashion with a GPLed
app -- on the basis that it is a derived work, as you mention.  The 
'derived work' arqument is questionable, but has not been challenged
in court -- successfully or otherwise.

An owner of rights in an independantly developed piece of a GPLed app,
_can_ impose additional licensing requirements AS LONG AS those added
requirements do not conflict with the GPL terms.


___
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: 9.1 permissions in the / directory

2012-11-14 Thread Waitman Gobble
On Wed, Nov 14, 2012 at 2:12 PM, Joseph Mays  wrote:
>
> Have a recently set up 9.1 RC1 system. Someone (not me, just sayin') did a 
> chmod 600 in the / directory. Needless to say this caused numerous problems. 
> I tried to change them back as best I could by comparing them to an older 
> directory, but some things are still not right. Trying to log in, via either 
> console or ssh  as anyone other than root. Ssh gets:
>
> %ssh mays@[redacted]
> Password:
> Last login: Wed Nov 14 15:50:37 2012
> Could not chdir to home directory /home/mays: Permission denied
> /bin/tcsh: Permission denied
> Connection to [redacted] closed.
> %
>
> followed by a disconnect. Console complains about the /home/user directory 
> not being there (though it is and the permissions look normal), says it's 
> logging in with slash instead, then says "/bin/tcsh: no such file or 
> directory", though /bin/tcsh is there and permissions look fine. I'm 
> attaching a screenshot of the message log that shows up on console logins.
>
> So, two questions. What is causing the problem, and does anyone have anything 
> that shows what the normal / directory permissions for 9.1 RC1 should look 
> like?
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


/home is normally a link to /usr/home

lrwxr-xr-x root wheel home -> usr/home
drwxr-xr-x root wheel usr

is that what you have?

if it was done with -R then best bet is to restore from backup.


# mkdir foo
# ln -s foo boo
# ls -l
total 2
lrwxr-xr-x  1 root  wheel3 Nov 14 15:46 boo -> foo
drwxr-xr-x  2 root  wheel  512 Nov 14 15:46 foo

# chmod 600 *
# ls -l
total 2
lrwxr-xr-x  1 root  wheel3 Nov 14 15:46 boo -> foo
drw---  2 root  wheel  512 Nov 14 15:46 foo

# chmod 755 *
# ls -l
total 2
lrwxr-xr-x  1 root  wheel3 Nov 14 15:46 boo -> foo
drwxr-xr-x  2 root  wheel  512 Nov 14 15:46 foo


attachments are stripped, paste the text instead.

Waitman Gobble
San Jose California
___
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"


Power saving

2012-11-14 Thread Albert Shih
Hi everybody,

I'm trying to do some power saving on my laptop.

I've already do everything (almost) 

http://wiki.freebsd.org/TuningPowerConsumption

but still a very basic problem. When I boot my laptop under FreeBSD and I
do nothing the fan don't run. But if I do anything (launch firefox, launch
a find etc...) instantly the fan run (instantly= 1 or 2 sec). Event when I
just boot and the back of the laptop is very cold.

I can use my ear to known if I got a flashplugin in the web page...without
sound.the fan warn me:-(

But when I boot Windows 7 I can launch many thing simultaneous the fan
never run or after long moment and when the back of the laptop is hot. 

Any idea ? 

Regards.

NB: The Laptop is a Dell latitute E6220 and it's run FreeBSD 9/stable
-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
jeu 15 nov 2012 00:34:09 CET
___
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"


'device' representation in the filesystem questions

2012-11-14 Thread Robert Bonomi

it appears that FreeBSD, at least 8.0 and later:
   a) no longer uses 'raw' devices for anything
   b) no longer uses 'block' devices for anything
   c) randomly assigns device 'major' numbers
   d) doesn't use device 'minor' numbers for anything.
   e) as a result of c) and d), there is no way to
  establish 'device' physical characteristics
  from the 'node' information.

Is there a wizzard who can confirm/deny?

Or, if there's a better place to ask, can anyone point me there?

There are significant performance and 'addressability' issues when doing
i/o directly to 'fixed block' devices, especially 'write-once' media.`

The classical 'block' device type was a reliable indicator of 'fixed block'
behavior,  how does one make that determination today?

Is there any way to get 'classic' mag-tape behavior -- where, for example
a read(2) returned the lesser of the bytes in the block, and positioned
to the beginning of the next, regardless of whether the etire content of
the current block had been read ?`


___
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: OT: problems with gpl-licensed software

2012-11-14 Thread Dale Scott
> Thinking about extending or dual-licensing a gpl-licensed software ?
> https://lkml.org/lkml/2012/11/7/338

Interesting thread, but if you are implying that dual-licensing GPL software is 
in general dangerous, then I would respectfully disagree. The real issue in the 
linked thread seems to be over whether or not the authors of the file system 
code have total copyright ownership of their code.

IANAL, but my understanding from researching the GPL is that if a piece of 
software functions as an integrated part of some other software that is 
licensed under the GPL, then the software in question *can* be considered to be 
a derived work of the other software - and under the terms of the GPL must also 
be licensed by the GPL (even if the author has copyright ownership and 
distributes their software separately, which are the most common reasons I've 
seen given for why the GPL should not apply).

However, regardless of whether or not the software "must" be licensed by the 
GPL, the copyright holder holder has the right to provide the software under 
whatever license they want, which could be in addition to the GPL. If the 
purpose of dual-licensing is to allow the creation of a proprietary product 
that the GPL does not extend to, then copyright ownership should be sufficient. 
The typical difficulty an open source project has is demonstrating copyright 
ownership over every line of their code - which typically requires a CAA 
(Copyright Assignment Agreement) executed individually with each contributor 
unless the code is a work for hire (i.e. is entirely developed by a company's 
employees).

Other reading that may be interesting:

http://www.softwarefreedom.org/resources/2008/foss-primer.pdf
http://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins


- Original Message -
From: "jb" 
To: freebsd-questions@freebsd.org
Sent: Wednesday, November 14, 2012 5:24:26 AM
Subject: OT: problems with gpl-licensed software

Thinking about extending or dual-licensing a gpl-licensed software ?
https://lkml.org/lkml/2012/11/7/338

jb


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


9.1 permissions in the / directory

2012-11-14 Thread Joseph Mays
Have a recently set up 9.1 RC1 system. Someone (not me, just sayin') did a 
chmod 600 in the / directory. Needless to say this caused numerous problems. 
I tried to change them back as best I could by comparing them to an older 
directory, but some things are still not right. Trying to log in, via either 
console or ssh  as anyone other than root. Ssh gets:


%ssh mays@[redacted]
Password:
Last login: Wed Nov 14 15:50:37 2012
Could not chdir to home directory /home/mays: Permission denied
/bin/tcsh: Permission denied
Connection to [redacted] closed.
%

followed by a disconnect. Console complains about the /home/user directory 
not being there (though it is and the permissions look normal), says it's 
logging in with slash instead, then says "/bin/tcsh: no such file or 
directory", though /bin/tcsh is there and permissions look fine. I'm 
attaching a screenshot of the message log that shows up on console logins.


So, two questions. What is causing the problem, and does anyone have 
anything that shows what the normal / directory permissions for 9.1 RC1 
should look like?



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


Re: rm -rf and flags (schg, sunlnk)

2012-11-14 Thread Steve O'Hara-Smith
On Wed, 14 Nov 2012 14:38:50 -0600
Bryan Drewery  wrote:


> Two options:
> 
> find /PATH -flags schg -exec chflags noschg {} +
> or
> chflags -R noschg /PATH
> 
> Then
> 
> rm -rf /PATH

it's often quickest to:

rm -rf /PATH
chflags -R noschg /PATH
rm -rf /PATH

The other way requires two traversals of the full tree, this way
there's only one full traversal and a clean up which is small and fast.

-- 
Steve O'Hara-Smith 
___
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: curious -- what's /tmp/fam-root ?

2012-11-14 Thread jb
Gary Aitken  dreamchaser.org> writes:

> 
> Just curious; what's the purpose of /tmp/fam-root, and what is written there?
> Is it simply where the os writes stuff which is sensitive,
> and putting it in a rwx-- directory avoids potential security issues
> regarding file access?
> or is there more to it than that?

# procstat -af |grep -i fam
23038 polkitd12 s - rw---   1   0 UDS /tmp/fam-root/fam-
23040 gam_server  4 s - rw---   1   0 UDS /tmp/fam-root/fam-
23040 gam_server  7 s - rw---   1   0 UDS /tmp/fam-root/fam-
26654 thunar  7 s - rw---   1   0 UDS /tmp/fam-jb/fam-
...
# file /tmp/fam-root/fam-
/tmp/fam-root/fam-: socket

jb
 




___
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: Mounting SD card.

2012-11-14 Thread Mike Clarke
On Wednesday 14 November 2012 19:43:30 Fernando Apesteguía wrote:

> If I boot the system and plug the SD card in, the green led
> doesn't even switch on and there is only a /dev/da0 that I can not
> mount. If I boot the system with the card plugged in, the green led is
> on and there is a /dev/da0s1 device that I can't still mount because
> mount_msdosfs returns an Input/Output error after some time.

I think that's pretty much standard behaviour. The solution appears to be 
to "wake" it up with the following incantation:

 dd if=/dev/null of=/dev/da0 count=0

That's what works here. See the thread starting with 


-- 
Mike Clarke
___
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: rm -rf and flags (schg, sunlnk)

2012-11-14 Thread Bryan Drewery
On 11/14/2012 2:34 PM, Gary Aitken wrote:
> Assuming one makes a mirror of a file system for backup purposes,
> then renames the mirror and makes another one,
> then attempts to remove the original using "rm -rf",
> the rm will fail if any of the files have the schg or sunlnk bits set.
> 
> Is there an easy way around this problem other than traversing the whole 
> subtree,
> finding files with the flags set and unsetting them?
> 

Two options:

find /PATH -flags schg -exec chflags noschg {} +
or
chflags -R noschg /PATH

Then

rm -rf /PATH

> thanks,
> 
> Gary

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


rm -rf and flags (schg, sunlnk)

2012-11-14 Thread Gary Aitken
Assuming one makes a mirror of a file system for backup purposes,
then renames the mirror and makes another one,
then attempts to remove the original using "rm -rf",
the rm will fail if any of the files have the schg or sunlnk bits set.

Is there an easy way around this problem other than traversing the whole 
subtree,
finding files with the flags set and unsetting them?

thanks,

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


curious -- what's /tmp/fam-root ?

2012-11-14 Thread Gary Aitken
Just curious; what's the purpose of /tmp/fam-root, and what is written there?
Is it simply where the os writes stuff which is sensitive,
and putting it in a rwx-- directory avoids potential security issues
regarding file access?
or is there more to it than that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Mounting SD card.

2012-11-14 Thread Fernando Apesteguía
Hi,

I can't make my SD card reader work. It is from a 4 years old Compaq
PC. It works fine in Linux however. I'm using 9.0 release with stock
kernel. If I boot the system and plug the SD card in, the green led
doesn't even switch on and there is only a /dev/da0 that I can not
mount. If I boot the system with the card plugged in, the green led is
on and there is a /dev/da0s1 device that I can't still mount because
mount_msdosfs returns an Input/Output error after some time.


Any ideas on how to debug this?

This is an excerpt of dmesg:

...
Root mount waiting for: usbus7 usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub6: 2 ports with 2 removable, self powered
Root mount waiting for: usbus7 usbus2
uhub2: 4 ports with 4 removable, self powered
Root mount waiting for: usbus7
uhub7: 8 ports with 8 removable, self powered
Root mount waiting for: usbus7
Root mount waiting for: usbus7
ugen7.2:  at usbus7
umass0:  on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:6:0:-1: Attached to scbus6
Trying to mount root from ufs:/dev/ad4s2a [rw]...
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
(probe0:umass-sim0:0:0:0): Command Specific Info: 0xaa5540
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0:  Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
(probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0
(probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:1): SCSI status: Check Condition
(probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present)
(probe0:umass-sim0:0:0:1): Command Specific Info: 0xaa5540
da1 at umass-sim0 bus 0 scbus6 target 0 lun 1
da1:  Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
(probe0:umass-sim0:0:0:2): TEST UNIT READY. CDB: 0 40 0 0 0 0
(probe0:umass-sim0:0:0:2): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:2): SCSI status: Check Condition
(probe0:umass-sim0:0:0:2): SCSI sense: NOT READY asc:3a,0 (Medium not present)
(probe0:umass-sim0:0:0:2): Command Specific Info: 0xaa5540
da2 at umass-sim0 bus 0 scbus6 target 0 lun 2
da2:  Removable Direct Access SCSI-0 device
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
...

And this is the output of pciconf -lv:
hostb0@pci0:0:0:0:  class=0x06 card=0x2a6f103c chip=0x29c08086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82G33/G31/P35/P31 Express DRAM Controller'
class  = bridge
subclass   = HOST-PCI
pcib1@pci0:0:1:0:   class=0x060400 card=0x8086 chip=0x29c18086
rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82G33/G31/P35/P31 Express PCI Express Root Port'
class  = bridge
subclass   = PCI-PCI
uhci0@pci0:0:26:0:  class=0x0c0300 card=0x2a6f103c chip=0x29378086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) USB UHCI Controller'
class  = serial bus
subclass   = USB
uhci1@pci0:0:26:1:  class=0x0c0300 card=0x2a6f103c chip=0x29388086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) USB UHCI Controller'
class  = serial bus
subclass   = USB
ehci0@pci0:0:26:7:  class=0x0c0320 card=0x2a6f103c chip=0x293c8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) USB2 EHCI Controller'
class  = serial bus
subclass   = USB
hdac0@pci0:0:27:0:  class=0x040300 card=0x2a6f103c chip=0x293e8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) HD Audio Controller'
class  = multimedia
subclass   = HDA
pcib2@pci0:0:28:0:  class=0x060400 card=0x2a6f103c chip=0x29408086
rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) PCI Express Port 1'
class  = bridge
subclass   = PCI-PCI
pcib3@pci0:0:28:2:  class=0x060400 card=0x2a6f103c chip=0x29448086
rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) PCI Express Port 3'
class  = bridge
subclass   = PCI-PCI
uhci2@pci0:0:29:0:  class=0x0c0300 card=0x2a6f103c chip=0x29348086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801I (ICH9 Family) USB UHCI Controller'
class  = serial bus
subclass   = USB
uhci3@pci0:0:29:1:  class=0x0c

Re: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Matthias Apitz
El día Wednesday, November 14, 2012 a las 09:45:22AM -0700, Warren Block 
escribió:

> > One of the (in my opinion) most interesting reference sources
> > for dump/restore also mentions this format:
> >
> > # mount /dev/da0s1 /mnt
> > # mkdir /tmp/oldvar
> > # cd /tmp/oldvar
> > # restore -ruf /mnt/var.dump
> 
> Yes, -u "unlinks" an existing file before restoring that file, useful 
> for restoring dumps over an existing filesystem.  Leave out the -u when 
> restoring to a new filesystem and the restore will go faster.
> 
> > # umount /mnt
> 
> And that points out a mistake: /mnt can't be unmounted while it is the 
> PWD.  Fixed.

I think PWD is /tmp/oldvar and not /mnt;

matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz   |  - No system with backdoors like Apple/Android
E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |  - No proprietary attachments
phone: +49-170-4527211   |  - Respect for open standards
___
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: Issues with smartd starting up at boot time - delays sever start?

2012-11-14 Thread Karl Pielorz



--On 13 November 2012 11:14 -0600 Dan Nelson  
wrote:



Can anyone think of a 'simple' fix for this? - Is there anything I can do
to '/usr/local/etc/rc.d/smartd' to make it run later in the startup
process?


Try adding "mail" to the REQUIRE: line, since sendmail has that in its
PROVIDES: line.


Thanks, I'll give that a go when I get a chance,

-Karl
___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Warren Block

On Wed, 14 Nov 2012, Polytropon wrote:


On Wed, 14 Nov 2012 01:01:08 -0800 (PST), Jack Mc Lauren wrote:

There is no - . This is the correct format : restore rf /path/to/dump/files


Really? The manual at "man restore" mentions:

restore -r [-dDNuvy] [-b blocksize] [-f file | -P pipecommand]
[-s fileno]

And in the -r section:

  newfs /dev/da0s1a
  mount /dev/da0s1a /mnt
  cd /mnt

  restore rf /dev/sa0

So it seems that _both_ formats are supported (comparable to
tar).

One of the (in my opinion) most interesting reference sources
for dump/restore also mentions this format:

# mount /dev/da0s1 /mnt
# mkdir /tmp/oldvar
# cd /tmp/oldvar
# restore -ruf /mnt/var.dump


Yes, -u "unlinks" an existing file before restoring that file, useful 
for restoring dumps over an existing filesystem.  Leave out the -u when 
restoring to a new filesystem and the restore will go faster.



# umount /mnt


And that points out a mistake: /mnt can't be unmounted while it is the 
PWD.  Fixed.



Source:

http://www.wonkity.com/~wblock/docs/html/backup.html#_em_dump_8_em_em_restore_8_em


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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Gary Aitken
On 11/14/12 01:30, Matthias Apitz wrote:
> El día Wednesday, November 14, 2012 a las 01:20:14AM -0700, Gary Aitken 
> escribió:
> 
>> I needed to expand a /var partition,
>> which required saving and restoring /var and /usr
>>
>> did the following:
>>booted to backup disk
>>dump -0aR -h 0 -f /usr/backup/dump_var_0_20121113_1920 /dev/ada0p4
>>(repeat for /tmp, /usr, / partitions to be safe)
>>repartitioned the main disk using gpart
>>newfs the modified partitions (var, tmp, usr)
>>rewrote the boot block and boot partition (#1)
>>mount /dev/ada0p4 /mnt/ssd/var
>>cd /mnt/ssd/var
>>restore -r /usr/backup/dump_var_0_20121113_1920
>>Cannot find file dump list
>>
>> Any ideas why I get the "Cannot find file dump list"?
>> What / where is it supposed to be?
> 
> You need to specify the file containing the DUMP with -f flag; and use
> the flag -r only to restore to the original location, or -x to restore
> into the current dir; check the man page for details;

Sorry all, a typing issue on my part when composing the email; problem remains:

# restore -iN -f /mnt/hd_ssd_backup/usr/backup/dump_tmp_0_20121113_1920
Cannot find file dump list

___
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: well, try here first...

2012-11-14 Thread RW
On Wed, 14 Nov 2012 00:58:02 -0600 (CST)
Robert Bonomi wrote:


> In 'classic' English (as taught in the 60s and earlier), a comma was
> _required_ before a trailing 'and' in a list of 3 or more items, and
> forbidden if there were only two items.

Not really:

http://oxforddictionaries.com/words/what-is-the-oxford-comma

Perhaps is should be taken to "chat", it has nothing to do with
FreeBSD.
___
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: well, try here first...

2012-11-14 Thread Erich Dollansky
Hi,

On Wed, 14 Nov 2012 03:58:14 +0100
Polytropon  wrote:

> On Wed, 14 Nov 2012 08:26:00 +0700, Erich Dollansky wrote:
> > Hi,
> > 
> > On Tue, 13 Nov 2012 17:07:38 -0800
> > Gary Kline  wrote:
> > 
> > > On Wed, Nov 14, 2012 at 04:47:48AM +0700, Erich Dollansky wrote:
> > > > Hi,
> > > > 
> > > > On Tue, 13 Nov 2012 11:00:07 -0800
> > > > Gary Kline  wrote:
> > > > 
> > > > > On Tue, Nov 13, 2012 at 09:12:55AM +0100, Polytropon wrote:
> > > > > > On Tue, 13 Nov 2012 15:10:33 +0700, Erich Dollansky wrote:
> > > > > > > Hi,
> > > > > > > > ja vohl.  futher dhclient is there.  I'll go
> > > > > > > > back to
> > > > > > > 
> > > > > > > you wanted to say 'jawohl'?
> > > > > > 
> > > > > > Jawohl mein Herr! :-)
> > > > > > 
> > > > >   What, no comma!?
> > > > 
> > > > what the Playboy did to the German language ...
> > > > 
> > > > Playboy's German tag line missed out on a comma too. It was
> > > > obviously a mistake. I have heard that they brought it back
> > > > after decades of no comma in the tag line.
> > > 
> > > 
> > >   do you mean that it was "Play boy"? or what? what was the
> > > tag line?
> > > 
> > Playboy alles was Maennern Spass macht
> 
> Ouch.
> 
> Unlike in English, the comma in German is an important symbol
> in grammar. It brings structure to sentences. In English, there
> is the "word order" that achieves this goal, and a comma is
> mostly optional or "left to preferences". In German, there are
> rules where to place a comma, and where not to. Those rules
> are relatively easy to understand, and luckily they do not
> leave much space for individual preferences. :-)
> 
> In the above example,
> 
>   Playboy, alles was Maennern Spass macht
> 
> or better using a hyphen
> 
>   Playboy - alles was Maennern Spass macht
> 
> would have been correct, as it's shown on the current web page
> in a correct manner.
> 
I have had to open playboy.de again. Just for the comma.

I think that it is a bit more complicated. Especially as Playboy is
here the brand

'Alles, was Maennern Spass macht' is the tag line and needs a comma
after alles.

Playboy does it now properly in the header of their site but wrongly in
the title. Your second line with the hyphen is there the best option if
there would be the comma after alles.

I never would have believed that Playboy becomes part of a serious
discussion which started with an sshd problem.

Ok, the world knows now the importance of Playboy for the IT world.

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


OT: problems with gpl-licensed software

2012-11-14 Thread jb
Thinking about extending or dual-licensing a gpl-licensed software ?
https://lkml.org/lkml/2012/11/7/338

jb


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


Installations

2012-11-14 Thread Vitor Rodrigues Tanamachi
Good morning
I'm difucudade to install the graphics and installation of the Oracle
database and 11XE Caché database in FreeBSD 9. Could someone help me?
I need to make these facilities for my CBT.
Thank you for your attention
___
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: Old file reappeared by itself

2012-11-14 Thread Peter Vereshagin
Hello.

2012/11/14 14:25:27 +0400 Artem Kuchin  => To Friedrich 
Locke :
AK> > Have you ever call the police ?
AK> 
AK> Ever - yes, in this case - no.

Have police ever called you? ;-)

AK> > It happened today again! I checked file today and the file was

Then it's much easier if it happens again.

If it's the zone then BIND may seem to overwrite the file? I can do this in
the case it's a primary zone service. I'm informed it's all about the primary
not a secondary zone service but hence BIND isn't a piece of cake who knows.

Since that you can do this:

  - chmod file(s) for BIND to read-only it.

  - monitor certain directories for changes. I have no idea about the tool to
handle this task but it's quite possible with inotify() system call and/or
the sgi fam protocol, particularly its sysutils/gamin implementation.

AK> ? ?,
AK> ? ?
AK>  "?? ?? ??"

... Content-Type: text/plain; charset="us-ascii"; ?

--
Peter Vereshagin  (http://vereshagin.org) pgp: A0E26627 
___
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: portsnap

2012-11-14 Thread ajtiM
On Wednesday 14 November 2012 00:37:47 Elias Chrysocheris wrote:
> Yeap. Same here:
> 
> pluto# portsnap fetch update
> Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
> Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
> Latest snapshot on server matches what we already have.
> No updates needed.
> Ports tree is already up to date.
> 
> 
> How can it be possible? 3 years now that I use FreeBSD there was not even a
> single day that we didn't have updates in the ports tree. How can it be
> possible for two consecutive days to have "No updates needed."?
> 
> Something is wrong...
> 
> Regards
> Elias

We have updates but I red somewhere about problem with server. Should be nice 
to the users if someone sent email to mailing list about a problem.


Mitja

http://www.redbubble.com/people/lumiwa
___
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: Old file reappeared by itself

2012-11-14 Thread Artem Kuchin


13.11.2012 17:24, Friedrich Locke:

Be very careful, watch your back.
Someone may be trying to get you paranoid! And you are following their 
game.

Does anyone else have access to your host ?


I doubt it. The only access to the host is via ssh. The last log is not 
damaged or altered, the all.log is no altered too.

The only person who accessed the server is me.
Also, the file is restored in some previous condition, but i do not make 
backups of it and copies are not stored anywhere.
I doubt that someone made copies from 2011 and 2012 to the overwrite it. 
That seems highly unlikely.



Have you ever call the police ?


Ever - yes, in this case - no.


Do you monitor access to your box?


Yes. Nothing suspicious found.
I really suspect that this is a filesystem glitch.





On Tue, Nov 13, 2012 at 10:51 AM, Artem Kuchin > wrote:



12.11.2012 14:07, Artem Kuchin:

The machines runs 4 jails. Everything is in the jails except
NAMED.
Named is run on the root host (if i may say so) itself.
There is a zone file there which i changed last week.
Today in the morning i try to open a site and host name is not
found. It worked on friday.
I went to see the the zone file. IT WAS DATED 2010  I open
it and the serial number is
something like 201103021. I do all my serials using dates, so,
while the file date is 2010
the content is from 2011 and it sure does looks so.
Then i go to secondary zone (slave) on another server and
there i find the zone from last week.
I checked all logs  and did not find anything special. The
zone file from 2010 just reappeared
from nowhere kill all the new changes.
As i said, i saw things like this in the past. It happened
insides jails and was related to files
for web sites and i thought that i and someone else messed up.
No i think i saw the same thing.


It happened today again! I checked file today and the file was
dated 5 oct 2012 but content was
from a week ago except the serial. I changed it yesterday. No
automatic  backup or restore is running.
Uptime is 321 day.  last says not one has logged in since yerterday.
I am going crazy.


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




--
? ?,
? ?
 "?? ?? ??"
www.itlegion.ru
www.hostilla.ru
+7 (495) 232-0338

___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Polytropon
On Wed, 14 Nov 2012 01:01:08 -0800 (PST), Jack Mc Lauren wrote:
> There is no - . This is the correct format : restore rf /path/to/dump/files

Really? The manual at "man restore" mentions:

 restore -r [-dDNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno]

And in the -r section:

   newfs /dev/da0s1a
   mount /dev/da0s1a /mnt
   cd /mnt

   restore rf /dev/sa0

So it seems that _both_ formats are supported (comparable to
tar).

One of the (in my opinion) most interesting reference sources
for dump/restore also mentions this format:

# mount /dev/da0s1 /mnt
# mkdir /tmp/oldvar
# cd /tmp/oldvar
# restore -ruf /mnt/var.dump
# umount /mnt

Source:

http://www.wonkity.com/~wblock/docs/html/backup.html#_em_dump_8_em_em_restore_8_em



-- 
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Matthias Apitz
El día Wednesday, November 14, 2012 a las 01:01:08AM -0800, Jack Mc Lauren 
escribió:

> Hi
> There is no - . This is the correct format : restore rf /path/to/dump/files

from man restore(8):

RESTORE(8)  FreeBSD System Manager's Manual
RESTORE(8)

NAME
 restore, rrestore — restore files or file systems from backups made
with
 dump

SYNOPSIS
 restore -i [-dDhmNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno]
 restore -R [-dDNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno]
 restore -r [-dDNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno]
 restore -t [-dDhNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno] [file ...]
 restore -x [-dDhmNuvy] [-b blocksize] [-f file | -P pipecommand]
 [-s fileno] [file ...]

...

matthias

-- 
Sent from my FreeBSD netbook

Matthias Apitz   |  - No system with backdoors like Apple/Android
E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |  - No proprietary attachments
phone: +49-170-4527211   |  - Respect for open standards
___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Jack Mc Lauren





 From: Polytropon 
To: free...@dreamchaser.org 
Cc: FreeBSD Mailing List  
Sent: Wednesday, November 14, 2012 12:27 PM
Subject: Re: ugh.  dump / restore problem(s) "Cannot find file dump list"
 
On Wed, 14 Nov 2012 01:20:14 -0700, Gary Aitken wrote:
>   mount /dev/ada0p4 /mnt/ssd/var
>   cd /mnt/ssd/var
>   restore -r /usr/backup/dump_var_0_20121113_1920
>   Cannot find file dump list

>>The last command looks wrong. The restore program requires
>>the dump file to be provided via -f, so
>>
>>    # restore -rf /usr/backup/dump_var_0_20121113_1920
>>
>>should work. You can find an example in "man restore".


Hi
There is no - . This is the correct format : restore rf /path/to/dump/files

good luck :)
___
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Polytropon
On Wed, 14 Nov 2012 01:20:14 -0700, Gary Aitken wrote:
>   mount /dev/ada0p4 /mnt/ssd/var
>   cd /mnt/ssd/var
>   restore -r /usr/backup/dump_var_0_20121113_1920
>   Cannot find file dump list

The last command looks wrong. The restore program requires
the dump file to be provided via -f, so

# restore -rf /usr/backup/dump_var_0_20121113_1920

should work. You can find an example in "man restore".



-- 
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: ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Matthias Apitz
El día Wednesday, November 14, 2012 a las 01:20:14AM -0700, Gary Aitken 
escribió:

> I needed to expand a /var partition, 
> which required saving and restoring /var and /usr
> 
> did the following:
>   booted to backup disk
>   dump -0aR -h 0 -f /usr/backup/dump_var_0_20121113_1920 /dev/ada0p4
>   (repeat for /tmp, /usr, / partitions to be safe)
>   repartitioned the main disk using gpart
>   newfs the modified partitions (var, tmp, usr)
>   rewrote the boot block and boot partition (#1)
>   mount /dev/ada0p4 /mnt/ssd/var
>   cd /mnt/ssd/var
>   restore -r /usr/backup/dump_var_0_20121113_1920
>   Cannot find file dump list
> 
> Any ideas why I get the "Cannot find file dump list"?
> What / where is it supposed to be?

You need to specify the file containing the DUMP with -f flag; and use
the flag -r only to restore to the original location, or -x to restore
into the current dir; check the man page for details;

matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz   |  - No system with backdoors like Apple/Android
E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |  - No proprietary attachments
phone: +49-170-4527211   |  - Respect for open standards
___
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"


ugh. dump / restore problem(s) "Cannot find file dump list"

2012-11-14 Thread Gary Aitken
I needed to expand a /var partition, 
which required saving and restoring /var and /usr

did the following:
  booted to backup disk
  dump -0aR -h 0 -f /usr/backup/dump_var_0_20121113_1920 /dev/ada0p4
  (repeat for /tmp, /usr, / partitions to be safe)
  repartitioned the main disk using gpart
  newfs the modified partitions (var, tmp, usr)
  rewrote the boot block and boot partition (#1)
  mount /dev/ada0p4 /mnt/ssd/var
  cd /mnt/ssd/var
  restore -r /usr/backup/dump_var_0_20121113_1920
  Cannot find file dump list

Any ideas why I get the "Cannot find file dump list"?
What / where is it supposed to be?

I was able to get some stuff back from one of the files,
but only by doing:

  #restore -if /usr/backup/dump_usr_0_201121113_1920
  restore > verbose
  restore > add libdata
  restore > extract
  Extract requested files
  You have not read any tapes yet
  If you are extracting just a few files, start with the last volume
  and work towards the first; restore can quickly skip tapes that
  have no further files to extract.  Otherwise, begin with volume 1.
  Specify next volume #: 1
  Mount tape volume 1
  Enter "none" if there are no more tapes
  otherwise enter tape name (default: /usr/backup/dump_usr_0_20121113_1920)
  unknown tape header type -2
  abort [yn] n
  resync restore, skipped 786 blocks
  extract file ...
...
  Add links
  Set directory mode, owner, and times.
  Set owner / mode for '.' [yn] y
  restore >

If I did not enter  after the "otherwise enter tape name",
but rather entered "none"
I did not get all of the desired contents.
  
Can anyone shed light on this problem?
I have been able to restore most everything from a cp I had done
at the same time, but I'm not very confident in the results.  
Fortunately, user data was on a different disk.

Obviously, should have done a
  restore -rN ...
before repartitioning.  Ugh.

Related question:
  I now realize I should not have answered "y" to the set owner / mode
question, as it changed the mode to the default for root instead of
doing what I thought which was restoring the owner / mode to what was
saved in the dump.  Will
  restore -x /usr/backup/dump...
correct the owner and mode? (and group and flags?)

Thanks,

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