Re: ZFS-Only FreeBSD and crashdump

2011-04-29 Thread Gour-Gadadhara Dasa
On Thu, 28 Apr 2011 19:40:00 +0300
Andriy Gapon  wrote:

> At the moment FreeBSD doesn't support dumping to ZFS zvols, if that's
> what you are asking.

At the moment I have root on UFS and freebsd-swap considering to move
both under ZFS. Is inability to dump to ZFS something I should be
concerned about?

I'm running (Free)PC_BSD 9.0 on x86_64 with 8GB and machine serves for
desktop usage.


Sincerely,
Gour 

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


Re: Password theft from memory?

2011-04-29 Thread RW
On Fri, 29 Apr 2011 12:00:00 -0400
Bob Hall  wrote:

> On Fri, Apr 29, 2011 at 01:54:06AM +0100, RW wrote:

> > but they aren't the same - that's what the quotes were about. 
> 
> Looking back, I don't see anything in your quotes that raises the
> issue of anonymous objects being used differently.


If you don't already know that memory is zeroed by default it
would be obtuse to infer that arbitrarily sized anonymous mappings are
zero-filled, just because a few bytes of padding are zero-filled.
Consequently your quote had no relevance to whether memory obtained by
malloc is zero-filled.

However, by taking that sentence out of context it was made unclear what
"extensions" referred to. A casual reader could have assumed that it
was possible to make zero-filled extensions to the object through mmap.
If that were true then your position, that the two cases are similar,
would be be quite reasonable. I assumed that you had misread the man
page. 
___
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: Ezjail and Flavours

2011-04-29 Thread Alejandro Imass
On Fri, Apr 29, 2011 at 3:46 PM, Alejandro Imass  wrote:
> Hi,
>

Answering myself here...

[snip]

> Mi idea is to soft-link the complete /usr/local directory of the
> compiling jail in the specific flavour so after the packages get
> installed I can just copy everything else over /usr/local
> It should be pretty safe either way I guess but probably there are
> people with a lot more experience with EzJail here ;-)
>

Did DID NOT work :-(

First, Ezjail copies first and installs the packages on first start of
the jail. I knew this but had forgotten so it is logical that first
copy the pkg install, duh!

Second, EzJail just copies the soft link and this of course will not
work just like that for obvious security reasons.

I erased the jail and tried a second time...

So here is what I did and seems to work:

1) Create your jail flavour standard with packages and all
2) Start the jail. This will install packages
3) Stop the jail
4) Copy the entire /usr/local of your compile jail to your new jail
5) Start the working jail

This seems easy enough and seems to be working perfectly!

What I have is different flavors of compiling jails: php52, php53,
catalyst 5.8, apache22, etc. Those are never used for production. Only
to compile and generate the packages for the EzJail flavours.

The other option would be to phisically copy the contents of
/usr/local to the flavour but I think it's a better idea to let the
packages install and _then_ copy /usr/local over that.

Anyway, it's working so cool!

Man, FBSD really rocks! Regardless of the thousands of technical
benefits, the clean cut separation of system and applications, _and_
Jails is to me, one the greatest things about FBSD.

--
Alejandro Imass

> Thanks!
>
> --
> Alejandro Imass
>
___
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: audacious-2.5.0 broken for anyone else?

2011-04-29 Thread Jimmie James

On 04/29/11 16:37, Roland Smith wrote:

On Fri, Apr 29, 2011 at 12:37:11AM -0400, Jimmie James wrote:

Removing audio/xmp fixes the xmp-audacious.so is not compatible with
this version of Audacious
Removing the icecast (libshout2) leaves Failed to load plugin
(/usr/local/lib/audacious/Output/icecast.so): Shared object
"libshout.so.5" not found, required by "icecast.so"


Audacious works fine here. But I don't have an icecast.so file in
/usr/local/lib/audacious/Output/.

I think it is a remainder of an older version that was not removed? There is
no icecast.so plugin in the pkg-plist of the current audacious-plugins port.

In my experience building Audacious tends to fail or produce incorrect results
when you are building it with a previous version installed. Therefore I tend
to remove Audacious and its plugins before installing the new version. Maybe
that helps?

Roland



Well, it's working now, following Oliver's advice so it's all good. The 
thing was, I'd never had an issue updating it before while it was 
installed, so it threw me for a loop. I have a note in my system 
tricks'n'tips file now about it.


Thanks all.

I am currently away on leave, traveling through time and will be 
returning last week.

Life is tough, but it's tougher when you're stupid.
___
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: audacious-2.5.0 broken for anyone else?

2011-04-29 Thread Roland Smith
On Fri, Apr 29, 2011 at 12:37:11AM -0400, Jimmie James wrote:
> Removing audio/xmp fixes the xmp-audacious.so is not compatible with 
> this version of Audacious
> Removing the icecast (libshout2) leaves Failed to load plugin 
> (/usr/local/lib/audacious/Output/icecast.so): Shared object 
> "libshout.so.5" not found, required by "icecast.so"

Audacious works fine here. But I don't have an icecast.so file in
/usr/local/lib/audacious/Output/.

I think it is a remainder of an older version that was not removed? There is
no icecast.so plugin in the pkg-plist of the current audacious-plugins port.

In my experience building Audacious tends to fail or produce incorrect results
when you are building it with a previous version installed. Therefore I tend
to remove Audacious and its plugins before installing the new version. Maybe
that helps?

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)


pgp3piv3RFHUZ.pgp
Description: PGP signature


Ezjail and Flavours

2011-04-29 Thread Alejandro Imass
Hi,

I've been using flavors for a while but only simple stuff like /etc and /pkg

So what I have is a bunch of base jails where I just install ports and
the copythe packages over to the flavours.

Now I want to create a Perl Catalyst base jail, but something I
installed via ports and others via CPAN.

Question: what gets executed first with EzJail? the pkg installation
or the file copy?

Mi idea is to soft-link the complete /usr/local directory of the
compiling jail in the specific flavour so after the packages get
installed I can just copy everything else over /usr/local
It should be pretty safe either way I guess but probably there are
people with a lot more experience with EzJail here ;-)

Thanks!

--
Alejandro Imass
___
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 concatenate 2 pdf files to 1?

2011-04-29 Thread Christopher J. Ruwe
On Thu, 28 Apr 2011 23:57:28 -0700 (PDT)
Dino Vliet  wrote:

> Dear freebsd userlist,
> here an application type of question. I have two pdf files and want
> to make 1 out of them by concatenating them. Does anyone have an idea
> how to do that on unix/linux as I don't have the pdf editor from
> Adobe.
> 
> So fileA.pd en fileB.pdf should become fileC.pdf (where C is A+B)
> 
> Brgds
> Dino
> ___
> 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"

You could also use pdfjoin from print/pdfjam.

Cheers,
-- 
Christopher J. Ruwe
TZ GMT + 2


signature.asc
Description: PGP signature


Re: Password theft from memory?

2011-04-29 Thread Bob Hall
On Fri, Apr 29, 2011 at 01:54:06AM +0100, RW wrote:
> On Thu, 28 Apr 2011 13:17:41 -0400
> Bob Hall  wrote:
> 
> > On Thu, Apr 28, 2011 at 12:10:10AM +0100, RW wrote:
> > > I'm not saying that anonymous mappings used by malloc aren't
> > > zero-filled, just that it's not mentioned anywhere in the mmap man
> > > page. I think it's just taken as read.
> > 
> > I just got what you're trying to say. Unfortunately, your quotes
> > mislead me about what you were concerned about. You're right, the man
> > page doesn't explicitly state whether anonymous mappings are zero
> > filled or not. Since man pages prioritize concision, I would expect
> > the page to explain how anonymous mappings are different from other
> > mappings, but not how they are the same.
> 
> but they aren't the same - that's what the quotes were about. 

Looking back, I don't see anything in your quotes that raises the issue
of anonymous objects being used differently.

> If the zero-filled extensions included whole pages that have the same
> status as the rest of the mapping then it would be reasonable to infer
> that anonymous mappings are similarly filled with zeroed-pages.
> 
> What that man page is talking about is a small padding region at the
> end of a file-backed mapping that isn't really intended for use and
> presumably could get re-zeroed at any moment since it has no backing
> store. It seems to me to be unreasonable to infer anything about
> anonymous mappings from this.

When an anonymous object first gets a pagein, it grabs a free page and
zeros it. Generally, the virtual memory system fetches new pages from a
cache of zeroed pages. In either case, pages are zeroed before a process
gets access.

This is part of the general background info on virtual memory and I
wouldn't expect it to be documented in the mmap man page.

Off topic, the maillist is apparently filtering out my posts. I've
looked at the webpage on filtering and can't find anything that explains
why I'm being filtered. I've tried posting from another system that I
posted successfully from previously, but no success. I've tried googling
and searching the mail archives for problems related to google mail, but
nothing came up.  If some mail expert can spot what's causing me to be
blocked and let me know, I'd be grateful.
> 
> 
> ___
> 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: Drive selection for gmirror

2011-04-29 Thread Michael Powell
Ireneusz Pluta wrote:

> Hello,
> 
> when selecting SATA drives for gmirror, boot device, connected to an
> on-board controller, should I look for so-called "enterprise grade", or
> "raid edition" drives (like for instance
> http://www.wdc.com/en/products/products.aspx?id=40), or I should rather
> focus on models closer to "consumer grade"? Will gmirror configuration
> significantly benefit from things like TLER, or it would rather be
> harmful, like when using these disks as single ones in desktop
> applications?
> 
This is an overly broad generalization, but I would tend to match RE drives 
with expensive hardware-only RAID controllers. They are touchy and really 
designed with TLER in mind. On the other end of the spectrum is a pure 
software RAID such as gmirror. I don't know all that much about the innards 
but I believe a pure software RAID run on JBOD will work with consumer grade 
drives just fine most of the time.

The in-between caveat is the so-called 'fakeraid' sets of controllers. These 
are what you're most likely to find as a cheap 'feature-add' on a consumer 
desktop motherboard. Things like Intel RAID Matrix and such are known not to 
work well with non-Windows environments. However, much of the time these 
will still work fine if RAID functionality is turned off in BIOS and the 
connected drives are JBOD, with a pure software RAID applied instead of 
trying to utilize the motherboard BIOS RAID.

My web development server at home has a pair of Raptors on an ICH5 
controller with gmirror and has been completely trouble free for about a 
year now. I'd stay away from the "Green" drives that spin down all the time. 
Even a pure software RAID solution is likely not going to be happy with 
them.

-Mike



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


webcamd started two times for the same webcam

2011-04-29 Thread David Demelier

Hello,

I have a little problem with the webcamd(8) rc script. It tries to start 
two times on the same peripheral :


Starting webcamd.
Attached ugen3.2[0] to cuse unit -1
Starting webcamd.
Webcamd is already running for ugen3.2.0
/usr/local/etc/rc.d/webcamd: WARNING: failed to start webcamd

I tried adding webcamd_flags="-d 3.2" but it does not solve.

Cheers,

--
David Demelier
___
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 concatenate 2 pdf files to 1?

2011-04-29 Thread Björn Oelke
Am 29.04.2011 um 08:57 schrieb Dino Vliet:
> 
> Dear freebsd userlist,
> here an application type of question. I have two pdf files and want to make 1 
> out of them by concatenating them. Does anyone have an idea how to do that on 
> unix/linux as I don't have the pdf editor from Adobe.
> 
> So fileA.pd en fileB.pdf should become fileC.pdf (where C is A+B)

You could use pdftk. (print/pdftk)
`pdftk in1.pdf in2.pdf cat output out.pdf`

-- 
BO .. http://kbct.de
P.S.: Moin.

___
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 concatenate 2 pdf files to 1?

2011-04-29 Thread Antonio Olivares
On Fri, Apr 29, 2011 at 1:57 AM, Dino Vliet  wrote:
> Dear freebsd userlist,
> here an application type of question. I have two pdf files and want to make 1 
> out of them by concatenating them. Does anyone have an idea how to do that on 
> unix/linux as I don't have the pdf editor from Adobe.
>
> So fileA.pd en fileB.pdf should become fileC.pdf (where C is A+B)
>
> Brgds
> Dino

You can use gs (ghostscript)  Try the following:

$ gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=fileC.pdf -dBATCH
fileA.pdf fileB.pdf

That should combine the 2 into 1.

Regards,

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


how to concatenate 2 pdf files to 1?

2011-04-29 Thread Dino Vliet
Dear freebsd userlist,
here an application type of question. I have two pdf files and want to make 1 
out of them by concatenating them. Does anyone have an idea how to do that on 
unix/linux as I don't have the pdf editor from Adobe.

So fileA.pd en fileB.pdf should become fileC.pdf (where C is A+B)

Brgds
Dino
___
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-Only FreeBSD and crashdump

2011-04-29 Thread Olivier Smedts
2011/4/29 Marco van Tol :
> On Thu, Apr 28, 2011 at 10:14:08PM +0300, Vladislav V. Prodan wrote:
>> 28.04.2011 19:40, Andriy Gapon wrote:
>> >At the moment FreeBSD doesn't support dumping to ZFS zvols, if that's what
>> >you are
>> >asking.
>>
>> And when do planning to add support? :)
>> Option to use to dump the usb-flash has its limitations, both on disk
>> size and write speed?
>
> Well, to be honest, how do you suppose dumping core to a software raid
> should work in a situation where the software has crashed? :-)

Approximately the same way you suppose dumping core on a block device
should work when the device driver has crashed !

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
___
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: serial console install

2011-04-29 Thread Matthew Seaman
On 28/04/2011 23:25, Paul Macdonald wrote:
> (the DC sees the installer over vga when they shoudn't, same ISO!!)
> 
> any suggestions?
> 

It's frequently a BIOS option to redirect the console to a serial device
or not.

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: Drive selection for gmirror

2011-04-29 Thread Matthew Seaman
On 28/04/2011 23:13, Ireneusz Pluta wrote:
> when selecting SATA drives for gmirror, boot device, connected to an
> on-board controller, should I look for so-called "enterprise grade", or
> "raid edition" drives (like for instance
> http://www.wdc.com/en/products/products.aspx?id=40), or I should rather
> focus on models closer to "consumer grade"? Will gmirror configuration
> significantly benefit from things like TLER, or it would rather be
> harmful, like when using these disks as single ones in desktop
> applications?

gmirror doesn't do all of the really fancy stuff an expensive hardware
RAID card will.  So, if one disk in a mirror fails a write, the mirror
breaks and has to be resynch'd.  With gmirror that means manually
entering a sequence of commands to remove and re-add the drive to the
gmirror.

"Enterprise" grade drives can be much more reliable over all as they are
designed for 100% duty, whereas with consumer grade the expectation is
that the drive will be turned off much of the time.  This is typically
one of the distinguishing features between SAS and SATA as well.
"Green" drives can be particularly bad with FreeBSD, as they frequently
end up spinning up and down continuously, which both wastes a lot of
power and also shortens the life of the drive: neither of which adds to
the actual (rather than claimed) green credentials of the device.

Decide how much disk space you want, and what your budget is, then buy
the best quality drives that match your criteria.  I'd turn off TLER.

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: ZFS-Only FreeBSD and crashdump

2011-04-29 Thread Vladislav V. Prodan

28.04.2011 22:25, Yuri Pankov wrote:

Why not just use your swap partition as dumpdev?

For example?
When ZFS is started, it initializes the swap and core dump data will be 
erased, not having to perform savecore?


--
Vladislav V. Prodan
VVP24-UANIC
+380[67]4584408
+380[99]4060508
vla...@jabber.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ZFS-Only FreeBSD and crashdump

2011-04-29 Thread Marco van Tol
On Thu, Apr 28, 2011 at 10:14:08PM +0300, Vladislav V. Prodan wrote:
> 28.04.2011 19:40, Andriy Gapon wrote:
> >At the moment FreeBSD doesn't support dumping to ZFS zvols, if that's what 
> >you are
> >asking.
> 
> And when do planning to add support? :)
> Option to use to dump the usb-flash has its limitations, both on disk 
> size and write speed?

Well, to be honest, how do you suppose dumping core to a software raid
should work in a situation where the software has crashed? :-)

Marco van Tol

-- 
Je moet me niet dood maken met een blije mus
___
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"