Which gdb GUI do you use?

2010-03-18 Thread Yuri

I know there is ddd, but it has so many bugs that it makes it barely usable.
There is emacs, but I am not used to it and don't like it. It's love it 
or hate it usually for most people.
There is some GUI called Insight, for some reason it's not in ports. 
I've built it and it looks unstable.
Gives me an error message: thread.c:79: internal-error: inferior_thread: 
Assertion 'tp' failed. ...


Which GUI you use?

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


Re: Which gdb GUI do you use?

2010-03-18 Thread Fernando Apesteguía
On Thu, Mar 18, 2010 at 8:15 AM, Yuri y...@rawbw.com wrote:
 I know there is ddd, but it has so many bugs that it makes it barely usable.
 There is emacs, but I am not used to it and don't like it. It's love it or
 hate it usually for most people.
 There is some GUI called Insight, for some reason it's not in ports. I've
 built it and it looks unstable.
 Gives me an error message: thread.c:79: internal-error: inferior_thread:
 Assertion 'tp' failed. ...

 Which GUI you use?

None.

I faced the same limitations that you did with ddd. Occasionally I use
Ctrl-X a to get a window that shows the source code.

Cheers


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

___
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: Which version of FreeBSD is it?

2010-03-18 Thread Tim Judd
On 3/17/10, Антон Клесс antoniok@gmail.com wrote:
 That is what I suspected for.

 What is the most safe way to upgrade it, remembering that this is production
 server and I have to keep it working properly?

 6.2-RC1 - 6.2 RELEASE - 7.2 RELEASE - 8.0 RELEASE, or somehow in this
 style?

snip

Honestly, if a system is going to go through that large of a change,
here's what I'd recommend.  First scenario is the quickest running,
then continue with the second to keep it up-to-date


Since *ALL* configuration of base and ports is done by /etc and
/usr/local/etc, back up those two directories to a tarball.  they're
all text files so it should compress very well.  Note the packages
currently on your system with a simple pkg_info.  This gets you a
prime data set that can restore 99%+ functionality if used.

Scenario 1:
  pkg_info /root/pkg_info.txt
  tar -cPpzf /root/62rc1-config.tgz /etc /usr/local/etc /root/pkg_info.txt
  ** keep this /root/62rc1-config.tgz archive in a safe 2 spots.  2 spots.

  fresh install of 8.0R on the box.
  extract, at minimum, the /etc entries from the tarball kept safely
away from the box
  for each package listed in pkg_info.txt, install from packages that
package (just the QUICK way to bring a box to a usable state)
  extract the /usr/local/etc from the tarball.  **TRY** to restart
your services.

The reason I state 'try' is that config files may have changed from a
package version a.b to x.y, so you may need to tweak your config files
to match the current package.



Now that you have a live box again, able to serve requests, it's time
to keep it maintained.

Scenario 2:
  install portaudit
  run portaudit, fix any vulnerabilities
  ** at this time, your system is safe from most vulnerabilities
  run your favorite port management software to update the rest of the
ports who do not have vulnerability advisories.



I've used this tactic before, works well and WILL be faster than you
updating your system from 6.2 to 6.4 to 7.2 to 8.0


Let me know if you have questions.

--TJ
___
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: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/03/2010 22:06:30, Peter Steele wrote:
 Is there any facility in FreeBSD for generating a random hostname? We
 have a template with a fixed hostname that has to be changed after
 the template is closed. It would be useful to have a hostname
 generated randomly.

perl -le '@a=(a..z,0..9); print map {$a[rand @a]} (1..8)'

That gives you 2,821,109,907,456 different possibilities so you should
be able to use it for a while without too much fear of duplicates.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh5R8ACgkQ8Mjk52CukIwBvQCdF+DQpVJaEeO0UetodSBmLZ0t
NRkAn3Qgw8R2ovE5+in1iNN5CQ8kwwdT
=hC2G
-END PGP SIGNATURE-
___
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: Which version of FreeBSD is it?

2010-03-18 Thread Ruben de Groot
On Wed, Mar 17, 2010 at 04:56:20PM +0300, ?? ?? typed:
 I have the server that's running FreeBSD for the last few years, but I saw
 it only year ago and know nothing about when and how was installed FreeBSD
 on it.
 
 # uname -a
 FreeBSD myhost.net 6.2-RC1 FreeBSD 6.2-RC1 #4: Fri Mar  5 01:37:03 MSK
 2010 r...@myhost.net:/usr/obj/usr/src/sys/MYKERN  amd64
 
 Is it RELEASE, STABLE or what?

As others have said, it's a RELEASE candidate. But this kernel it's running
was compiled earlier this month (March 5).

Ruben

___
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: Generating a random hostname

2010-03-18 Thread Olivier Nicole
 Is there any facility in FreeBSD for generating a random hostname? We
 have a template with a fixed hostname that has to be changed after
 the template is closed. It would be useful to have a hostname

I have somewhere a Perl script that can be used/adapted to generate
pseudo English words.

You would have to work on the script though, because now it also add
numbers and other signs, to generate passwords.

Bests,

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: Which gdb GUI do you use?

2010-03-18 Thread Charlie Kester

On Thu 18 Mar 2010 at 00:15:30 PDT Yuri wrote:

I know there is ddd, but it has so many bugs that it makes it barely usable.
There is emacs, but I am not used to it and don't like it. It's love 
it or hate it usually for most people.
There is some GUI called Insight, for some reason it's not in ports. 
I've built it and it looks unstable.
Gives me an error message: thread.c:79: internal-error: 
inferior_thread: Assertion 'tp' failed. ...


Which GUI you use?


cgdb, but it's not a GUI.

___
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: Which version of FreeBSD is it?

2010-03-18 Thread Антон Клесс
2010/3/18 Ruben de Groot mai...@bzerk.org


 As others have said, it's a RELEASE candidate. But this kernel it's running
 was compiled earlier this month (March 5).

 Ruben




It is OK, course I have compiled my own kernel by commenting-out unused
devices in GENERIC kernconf-file. Sources was newer updated, I just dont
know how to do 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


Re: Which version of FreeBSD is it?

2010-03-18 Thread Антон Клесс
18 марта 2010 г. 10:49 пользователь Tim Judd taj...@gmail.com написал:

 On 3/17/10, Антон Клесс antoniok@gmail.com wrote:
  That is what I suspected for.
 
  What is the most safe way to upgrade it, remembering that this is
 production
  server and I have to keep it working properly?
 
  6.2-RC1 - 6.2 RELEASE - 7.2 RELEASE - 8.0 RELEASE, or somehow in this
  style?

 snip

 Honestly, if a system is going to go through that large of a change,
 here's what I'd recommend.  First scenario is the quickest running,
 then continue with the second to keep it up-to-date


 Since *ALL* configuration of base and ports is done by /etc and
 /usr/local/etc, back up those two directories to a tarball.  they're
 all text files so it should compress very well.  Note the packages
 currently on your system with a simple pkg_info.  This gets you a
 prime data set that can restore 99%+ functionality if used.

 Scenario 1:
  pkg_info /root/pkg_info.txt
  tar -cPpzf /root/62rc1-config.tgz /etc /usr/local/etc /root/pkg_info.txt
  ** keep this /root/62rc1-config.tgz archive in a safe 2 spots.  2 spots.

  fresh install of 8.0R on the box.
  extract, at minimum, the /etc entries from the tarball kept safely
 away from the box
  for each package listed in pkg_info.txt, install from packages that
 package (just the QUICK way to bring a box to a usable state)
  extract the /usr/local/etc from the tarball.  **TRY** to restart
 your services.

 The reason I state 'try' is that config files may have changed from a
 package version a.b to x.y, so you may need to tweak your config files
 to match the current package.



 Now that you have a live box again, able to serve requests, it's time
 to keep it maintained.

 Scenario 2:
  install portaudit
  run portaudit, fix any vulnerabilities
  ** at this time, your system is safe from most vulnerabilities
  run your favorite port management software to update the rest of the
 ports who do not have vulnerability advisories.



 I've used this tactic before, works well and WILL be faster than you
 updating your system from 6.2 to 6.4 to 7.2 to 8.0


 Let me know if you have questions.

 --TJ




Well, while my skills about FreeBSD is not good enough to let me feel OK to
experiment with 6.2 to 6.4 to 7.2 to 8.0 updating, and while server is hard
to physically access, I guess that just to do fresh install of RELEASE and
re-configuring it in the way that Tim Judd taj...@gmail.com told, would be
much more quick and safe for my services running on this server now.

So the last question is which version (7.2 or 8.0) to choose. Am I right if
I say there would no problems with hardware compatibility on 8.0 if there
wasn't on 6.2?
___
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


Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Andy Wodfer
Hi,
We're setting up two backup servers where each server will have about 4TB of
harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we ran
into trouble with the 3ware controllers we have (9650SE-8LPML) because we
couldn't create a larger RAID5 than 1.99TB.

We are going to use FreeBSD 8.0 and Bacula, but first we obviously need to
create a working RAID.

My questions are:

- Are HighPoint RocketRaid controllers a good alternative to 3ware
controllers? Are RocketRaid controllers true hardware RAID?

- What should we look for in a RAID controller spec to see that it has
support for larger than 2TB RAIDs?

I've been looking at these:
http://www.highpoint-tech.com/USA_new/series_rr2300.htm
http://www.highpoint-tech.com/USA_new/series_rr3500.htm

Any FreeBSD recommendations? Or perhaps for another 3ware controller?

We're using SATAII drives.

Thanks for your help!

Best regards,
Andreas
___
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: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/03/2010 08:32:31, Matthew Seaman wrote:
 On 17/03/2010 22:06:30, Peter Steele wrote:
 Is there any facility in FreeBSD for generating a random hostname? We
 have a template with a fixed hostname that has to be changed after
 the template is closed. It would be useful to have a hostname
 generated randomly.
 
 perl -le '@a=(a..z,0..9); print map {$a[rand @a]} (1..8)'
 
 That gives you 2,821,109,907,456 different possibilities so you should
 be able to use it for a while without too much fear of duplicates.


Thinking about this some more, a good trick would be to generate a
hostname from the MAC address of the host, since that is guaranteed to
be unique.

Something like this:

% cat hngen
#!/usr/bin/perl

use strict;

MAIN:
{
use integer;

my @a   = ( 'a' .. 'z' );
my $mac = shift;
my $n   = '';

$mac =~ tr/://d;
$mac = hex $mac;# Convert to decimal integer

while ( $mac  0 ) {
$n = $a[ $mac % @a ] . $n;
$mac /= @a;
}
print $n\n;
}

% ./hngen 00:40:05:a5:8d:b7
bigdehkkt

It does mean that hosts from the same manufacturer will tend to have
similar names -- this might be construed as a feature...

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh7/gACgkQ8Mjk52CukIz4egCfc6ErdXCEhIYz3emGZmPN51YX
iYAAnjbBxLaAOh6pAUkfgdgZH/PyU/EM
=KZ8m
-END PGP SIGNATURE-
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Matthew Law

On Thu, March 18, 2010 8:37 am, Andy Wodfer wrote:
 Hi,
 We're setting up two backup servers where each server will have about 4TB
 of
 harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we
 ran
 into trouble with the 3ware controllers we have (9650SE-8LPML) because we
 couldn't create a larger RAID5 than 1.99TB.

 We are going to use FreeBSD 8.0 and Bacula, but first we obviously need to
 create a working RAID.

 My questions are:

 - Are HighPoint RocketRaid controllers a good alternative to 3ware
 controllers? Are RocketRaid controllers true hardware RAID?

 - What should we look for in a RAID controller spec to see that it has
 support for larger than 2TB RAIDs?

 I've been looking at these:
 http://www.highpoint-tech.com/USA_new/series_rr2300.htm
 http://www.highpoint-tech.com/USA_new/series_rr3500.htm

 Any FreeBSD recommendations? Or perhaps for another 3ware controller?

 We're using SATAII drives.

 Thanks for your help!

Is ZFS not an option? - you could save yourself a lot of money and hassle
with hardware RAID by moving to ZFS.  Either using onboard SATA ports on
the motherboard (and accept that you might have to shutdown the box to
swap failed disks out) or get a simple 8-port HBA in JBOD mode, e.g:

http://www.lsi.com/channel/products/hba/sas_sata_hbas/internal/lsisas3081er/index.html

You'll need plenty of RAM too, but IMHO it is worth the trade.

HTH,

Matt.


___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Andy Wodfer
On Thu, Mar 18, 2010 at 10:30 AM, Matthew Law m...@webcontracts.co.ukwrote:


 Is ZFS not an option?


I'm afraid ZFS is not an option for this customer. I use ZFS on other system
and it works great, but here the requirement is RAID5, hotswap, hotspare and
so on.

Cheers,
Andreas
___
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


shrink /usr size

2010-03-18 Thread Aiza
/usr is the last partition in the slice. It has 15GB and only 600mb 
used. I would like to shrink /usr to 7GB leaving me 7GB for another new 
partition for mysql DB testing. How do I shrink /usr?

___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Svein Skogen (Listmail Account)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18.03.2010 10:35, Andy Wodfer wrote:
 On Thu, Mar 18, 2010 at 10:30 AM, Matthew Law m...@webcontracts.co.ukwrote:
 
 
 Is ZFS not an option?

 
 I'm afraid ZFS is not an option for this customer. I use ZFS on other system
 and it works great, but here the requirement is RAID5, hotswap, hotspare and
 so on.

You should consider the LSI Megaraid SAS as well. The aging 8308elp,
performs quite nicely with decent disks. Got one here (at home) handling
8 1T5 Barracudas in RAID50 (with coldspares), that routinely handles
400+mbytes/sec io, even in windows. It's been running in FreeBSD as
well, but until I can figure out how to get reliable backups (the MPT
issue shared with OpenSolaris) I'm stuck with windows on the box.
FreeBSD's mfiutil works works splendidly with the controller allowing
you to handle things like patrol-reads from an SSH session without much
trouble. As a SAS-controller, it eats both SAS and SATA disks, and
plain and simple just works.

//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
- +---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.
- 
 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/
- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh9YAACgkQODUnwSLUlKTZiwCeODrGVYneWFn9nKZDUJ5jhOdt
3boAoIM/HrcfpzKXNOsPic+QQ4ooaL5d
=Yya0
-END PGP SIGNATURE-
___
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: shrink /usr size

2010-03-18 Thread Антон Клесс
2010/3/18 Aiza aiz...@comclark.com

 /usr is the last partition in the slice. It has 15GB and only 600mb used. I
 would like to shrink /usr to 7GB leaving me 7GB for another new partition
 for mysql DB testing. How do I shrink /usr?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org




The same question: how to extend existed one?

I'm going to change HDD on server to a bigger one and dd from old to new,
but in this case the space visible to FreeBSD would be the same, how to make
it grow?
___
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: shrink /usr size

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/03/2010 09:36:44, Aiza wrote:
 /usr is the last partition in the slice. It has 15GB and only 600mb
 used. I would like to shrink /usr to 7GB leaving me 7GB for another new
 partition for mysql DB testing. How do I shrink /usr?

Backup the contents or /usr to a different partition, or preferably to
some external media.  Unmount /usr and destroy it by using bsdlabel(1)
to create two appropriately sized partitions in its place.  Create
filesystems on the new partitions using newfs(1).  Restore the backup of
/usr.  Edit /etc/fstab as appropriate and mount the new partitions.

Everything you really need to do this is on the root partition, but you
might find lack of vi(1) and various other utilities somewhat
inconvenient.  Also editing the label of a disk with mounted partitions
is a pretty risky operation and forbidden by default: you will need to
know the magic incarnation:

sysctl kern.geom.debugflags=16

Also, there's no real reason to keep the mysql data in its own partition
- -- if it was on a different disk that would be a different matter -- so
if your /var is big enough, you could just swap /var and /usr, which
saves you all that mucking around with partitions.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh+L8ACgkQ8Mjk52CukIzTxwCfWuPe6vDdoQIvbiQFxoLTp/Wu
PIAAn1YhLHwzKfcJF4BPssNt6WgvdXTN
=2DGA
-END PGP SIGNATURE-
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Erik Trulsson
On Thu, Mar 18, 2010 at 09:37:32AM +0100, Andy Wodfer wrote:
 Hi,
 We're setting up two backup servers where each server will have about 4TB of
 harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we ran
 into trouble with the 3ware controllers we have (9650SE-8LPML) because we
 couldn't create a larger RAID5 than 1.99TB.


That is strange, since all the 3ware 9000-series controllers (including
the 9650) are supposed to be able to handle arrays larger than 2TB.



-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/03/2010 10:09:55, Erik Trulsson wrote:
 On Thu, Mar 18, 2010 at 09:37:32AM +0100, Andy Wodfer wrote:
 Hi,
 We're setting up two backup servers where each server will have about 4TB of
 harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we ran
 into trouble with the 3ware controllers we have (9650SE-8LPML) because we
 couldn't create a larger RAID5 than 1.99TB.
 
 
 That is strange, since all the 3ware 9000-series controllers (including
 the 9650) are supposed to be able to handle arrays larger than 2TB.

Is it perhaps not a limitation in the 3ware controller, but rather the
2TB limit for a single slice imposed by the traditional DOS mbr?  In
which case, simply switching to using gpart(8) should solve the problem
and let you have much larger filesystems.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh/1EACgkQ8Mjk52CukIxwFQCfUsDOes4mAPBFLQUX6QvB/F97
4swAnRnKagfg86IG5gxBlMIBJOmmD7y+
=BGlc
-END PGP SIGNATURE-
___
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: shrink /usr size

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/03/2010 09:52:50, Антон Клесс wrote:
 2010/3/18 Aiza aiz...@comclark.com
 
 /usr is the last partition in the slice. It has 15GB and only 600mb used. I
 would like to shrink /usr to 7GB leaving me 7GB for another new partition


 The same question: how to extend existed one?

If, and only if, you have free space on your HDD following the partition
you want to expand, you can use bsdlabel to edit the partition table and
then growfs(8) to extend the filesystem into the new space.

 I'm going to change HDD on server to a bigger one and dd from old to new,
 but in this case the space visible to FreeBSD would be the same, how to make
 it grow?

However, in this case -- don't do that.  dd(1) is not the best choice.

Instead, use sade(8) or fdisk(8) and bsdlabel(8) to slice and partition
your new hard drive, install any necessary boot blocks etc.  Or use the
new gpart(8) stuff.  Create filesystems using newfs(1).  Mount the new
partitions temporarily under /mnt:

   # mount -t ufs -o rw /dev/ad2s1a /mnt
   # mount -t ufs -o rw /dev/ad2s1e /mnt/usr
   (etc...)

Then use dump(8) and restore(8) to duplicate the contents of your old
partitions onto your new HDD:

   # dump -0a -L -C 32 -f - /  | ( cd /mnt ; restore -rf - )
   # dump -0a -L -C 32 -f - /usr | ( cd /mnt/usr ; restore -rf - )
   (etc...)

Edit /mnt/etc/fstab appropriately, then unmount the partitions from your
new HDD, shutdown your system and reboot from the new HDD.

dump and restore is much more efficient than using dd(1) as it copies
the actual files into a new filesystem.  It also understands more about
the internals of the filesystem than other backup software, so gives the
most accurate duplication.  The '-L' flag causes it to operate on a
snapshot of the source filesystem, which avoids the sort of problems you
can get dealing with live filesystems.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuh/icACgkQ8Mjk52CukIwS1wCfc3hdbwoagHNDKA3nY+wDZ9ar
f+YAn1J0CJrdkhKVuGInl7TixLsUqQ+7
=BOC0
-END PGP SIGNATURE-
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Konference
Hi
and what about Areca? Natively supported via arcmsr driver.

For SATA II
http://www.areca.com.tw/products/pcie.htm
(ARC-1230, ARC-1260)
or
http://www.areca.com.tw/products/pcie341.htm

On one installation I have successfully set up RAID5
with 8x 1TB SATA II drives on ARC-1220, approx 6.5TB filesystem

regards
Jiri

 - What should we look for in a RAID controller spec to see that it has
 support for larger than 2TB RAIDs?

 I've been looking at these:
 http://www.highpoint-tech.com/USA_new/series_rr2300.htm
 http://www.highpoint-tech.com/USA_new/series_rr3500.htm

 Any FreeBSD recommendations? Or perhaps for another 3ware controller?

 We're using SATAII drives.

 Thanks for your help!

 Best regards,
 Andreas
 ___
 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: Generating a random hostname

2010-03-18 Thread Peter Steele
Thinking about this some more, a good trick would be to generate a hostname 
from the MAC address of the host, since that is guaranteed to be unique.

In fact, this is what we are currently using. Unfortunately I guess I wasn't 
entirely clear. I was looking for a facility that actually *assigns* a random 
hostname, similar to what's provided in Windows. Generating the string itself 
obviously can be done in any number of ways, but once you have the string, 
there are at least of couple of files where this name needs to be inserted 
(/etc/hosts, /etc/rc.conf). When you create a master image in Windows, you can 
have it automatically assign a random hostname the first time the cloned image 
is booted. That's what I was looking for. My guess is that I'm going to have to 
update these files manually, running a script for example via rc.conf that 
disables itself after the first time the system boots. 

___
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: Which gdb GUI do you use?

2010-03-18 Thread Nathan Vidican
For what it's worth - Xcode on Mac OS/X, I do probably 75% of my development
there, then just compile/build on FreeBSD. Apple's got a similarly capable
O/S and their development suite is not only stable, but free and uses GCC.
In my situation, the code works fine on both O/S as I'm not writing any
kernel level stuff or anything. The Xcode IDE is a wonderful tool though for
writing userland stuff. I guess it really depends on your project, but if
you're looking for gui debugger/development suite it's worth a try.

-- 
Nathan Vidican
nat...@vidican.com

On Thu, Mar 18, 2010 at 3:15 AM, Yuri y...@rawbw.com wrote:

 I know there is ddd, but it has so many bugs that it makes it barely
 usable.
 There is emacs, but I am not used to it and don't like it. It's love it or
 hate it usually for most people.
 There is some GUI called Insight, for some reason it's not in ports. I've
 built it and it looks unstable.
 Gives me an error message: thread.c:79: internal-error: inferior_thread:
 Assertion 'tp' failed. ...

 Which GUI you use?

 Yuri

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

___
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: Which gdb GUI do you use?

2010-03-18 Thread Andrea Venturoli

On 03/18/10 08:15, Yuri wrote:

I know there is ddd, but it has so many bugs that it makes it barely
usable.
There is emacs, but I am not used to it and don't like it. It's love it
or hate it usually for most people.
There is some GUI called Insight, for some reason it's not in ports.
I've built it and it looks unstable.
Gives me an error message: thread.c:79: internal-error: inferior_thread:
Assertion 'tp' failed. ...

Which GUI you use?


emacs, really, although I found it tends to get a bit more annoying in 
the latest releases; maybe I should spend some time to upgrade myself, 
through.

However, I agree on your love/hate opinion.

 bye
av.
___
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


NAT overflow

2010-03-18 Thread Anton

   Hello everyone,

   I'm kind of noob in FreeBSD particularily, and in Unix systems at all
   :-= ). But, I've already mastered an router on freebsd 7.2, which
   worked fine u= ntil I installed their MySQL with huge database.

   Now, once a day, I have a problem - users do not have internet on
   their = computers, and I could not connect to Microsoft Windows server
   with RDP fro= m outside, but I could login via ssh on router. After
   rebbot - everything b= ecome  fine, everything works good and I have
   no problems, until next = overflow.

   So, I would like to ask 2 question:

   1) Cow could one monitor NATD daemon (via logs, or smth)

   2) How this could be worked around?

   I beg you pardon for this questions

   --

   --

   Best regards,

Anton= ;[1]mailto:an...@sng.by

Administrator

   Feel free to contact me

   via ICQ 363780596

   via Skype dobryak47

   via phone +375 29 3320987

References

   1. 3Dmailto:an...@sng.by;
___
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: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/03/2010 11:57:56, Peter Steele wrote:
 Thinking about this some more, a good trick would be to generate a
 hostname from the MAC address of the host, since that is guaranteed
 to be unique.
 
 In fact, this is what we are currently using. Unfortunately I guess I
 wasn't entirely clear. I was looking for a facility that actually
 *assigns* a random hostname, similar to what's provided in Windows.
 Generating the string itself obviously can be done in any number of
 ways, but once you have the string, there are at least of couple of
 files where this name needs to be inserted (/etc/hosts,
 /etc/rc.conf). When you create a master image in Windows, you can
 have it automatically assign a random hostname the first time the
 cloned image is booted. That's what I was looking for. My guess is
 that I'm going to have to update these files manually, running a
 script for example via rc.conf that disables itself after the first
 time the system boots.

Ahah!  Why didn't you say so?

That's pretty simple really.  Once you've generated the hostname, just
use hostname(1) to make it the live name of the machine.

This would have to be done with a small shell script, yes.  Probably the
easiest way to do that is a small RC script set to run just before
/etc/rc.d/hostname, and that stole^Wborrowed most of the logic from that
script about kenv and DHCP names, and hostname already being set.
The core actions that script has to do are:

if [ -z ${hostname} ] ; then
hostname=$( generate_hostname )
/bin/hostname ${hostname}.example.com
echo hostname=\${hostname}.example.com\  /etc/rc.conf
fi

Once hostname is set in /etc/rc.conf, this script will do nothing, and
the regular /etc/rc.d/hostname script will operate normally.

Setting the hostname with /bin/hostname is all that is specifically
necessary for the local machine.  It doesn't really need to be added to
/etc/hosts, although that's not a bad idea.

An alternative might be to run everything using DHCP and get the DHCP
server to generate names and dish them out to the clients.

Of course, it would be good to add the new hostname to some sort of
networked database, like the DNS or NIS or LDAP so that other hosts can
know how to get to it, but that's a different problem.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuiLKEACgkQ8Mjk52CukIz1HgCeNa1kZhojxvBYNKWmYixoSGFv
e+gAnj4WEHRjzghZ0fmt2xTv1FvaAWGQ
=DUDg
-END PGP SIGNATURE-
___
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


International Spotlight at WIBC Asia: Seeking New Growth Horizons

2010-03-18 Thread The World Islamic Banking Conference | Asia Summit
To view this in your browser click here 

 
 
 

  International Spotlight at WIBC Asia: Seeking New Growth Horizons




 
 
Dear Banking  Finance Leader,


As the leading players in the Islamic  finance industry continue to adapt 
business strategies in order to further strengthen  and consolidate its 
position in the aftermath of the global economic crisis,  the 1st Annual World 
Islamic Banking Conference: Asia  Summit (WIBC Asia 2010) could not come at a 
more opportune time as industry leaders seek new growth  paradigms and markets.


   

Seeking New Growth Horizons


Held under the theme of Seeking New Growth Horizons, WIBC Asia  2010 provides a 
powerful platform for assessing the future outlook for Islamic finance in key 
Asian markets, including  China, Japan, Pakistan, Malaysia, Indonesia, Brunei, 
Singapore, and Australia.  Industry leaders will probe recent developments in 
high-potential Asian markets  and assess relative growth opportunities.



 

H.E. Heng Swee Keat
Governor
Monetary Authority of  Singapore   Speaking recently at the 16th Annual WIBC in 
Bahrain last December, H.E. Heng Swee Keat, the Governor of the Monetary 
Authority of  Singapore, said he was pleased that MEGA has decided to bring 
WIBC Asia to Singapore. He  noted that: 


Islamic  finance will provide an increasingly important bridge in the growing  
connectivity between the Middle East and Asia.  Singapore  is pleased to help 
catalyse deeper relations between these two high-growth  regions. WIBC Asia 
will provide a unique  platform for the industry to share experiences from 
established centres of  Islamic finance.

WIBC Asia 2010 complements  the objectives of the global WIBC event, enabling 
industry leaders to further enhance  their presence in the dynamically evolving 
Asian markets for Islamic finance. Building on WIBC's 17 years of tracking the  
developments and scoping the trends in the global Islamic banking and finance  
industry, WIBC Asia 2010 will feature insightful debates on the substantial  
issues facing the development of Islamic finance across Asia  as recession 
gives way to recovery and new international growth markets open  up.


 

 Don't Miss WIBC Asia 2010

WIBC Asia will be held in Singapore on  the 14th  15th of June 2010 and will 
attract more than 300 industry  leaders looking to capitalise on exciting new 
growth opportunities for Islamic  finance in Asian markets.

Join the industry leaders and secure your  place today by contacting Andrew on 
and...@megaevents.net.  We look forward to welcoming you to the inaugural WIBC 
Asia Summit. 


Yours sincerely,

David  McLean
Managing Director
The 1st Annual World Islamic Banking Conference: Asia Summit
A MEGA Brand
 
 
 

Sponsorship  Exhibition   Opportunities at WIBC Asia 2010
The 1st Annual World Islamic Banking Conference: Asia Summit will provide 
unrivalled   high-impact brand visibility and ensure that you are at the 
forefront of shaping   the future of the high growth  Islamic finance market. 
WIBC Asia 2010 also presents a unique   opportunity to nurture key client 
relationships in a substantive and   issues-driven programme.

To discuss your specific business needs please   contact Sophie Shah at 
sop...@megaevents.net


 
 
New Insights to Shape the Future: Special  Group Delegate Packages
More than 300 industry leaders will gather at WIBC Asia 2010. Take advantage of 
the special Group Delegate packages to send your executive team to participate 
in the
1st Annual World Islamic Banking Conference: Asia Summit.

To receive further details on attending the  WIBC Asia please email Andrew 
Chopra at and...@megaevents.net




 


 

 

 
MEGA BRANDS. MEGA CLIENTS. MARKET LEADERS.
MEGA is the market leading business information firm focused on  achieving 
business results for the global Islamic
banking  finance  industry since 1993. The portfolio of MEGA brands represents 
the  landmark industry conferences
and our  clients are the leading players  in the international financial 
markets.

 
 
Is this email going to your junk/bulk folder? You have to add 
wibc_a...@megaevents.net to your address book
or add our domain *...@megaevents.net to your white list filters to ensure that 
you will receive it in your inbox

If you wish to unsubscribe, please click here. Your request will be completed 
within 3 business days.

___
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: Availability of pm-utils

2010-03-18 Thread Lowell Gilbert
Carmel carmel...@hotmail.com writes:

 Is 'pm-utils http://pm-utils.freedesktop.org/wiki/ available in the
 ports system? I am unable to locate it if it does exist.

I don't think it is.

I suspect it would be a big porting job; 
it looks thoroughly Linux-centric these days.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Mike Tancsa

At 04:37 AM 3/18/2010, Andy Wodfer wrote:

Hi,
We're setting up two backup servers where each server will have about 4TB of
harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we ran
into trouble with the 3ware controllers we have (9650SE-8LPML) because we
couldn't create a larger RAID5 than 1.99TB.



Are you sure its the controller that was giving that error ?  I ran 
into something similar with my Areca controller on a backup server. I 
ended up creating 2 raid sets, one for the boot OS and the other for 
the backup spool and used gpart for the larger than 2TB RS. Perhaps 
the same needs to be done on the 3ware


eg

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a1.9G496M1.3G28%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da1s1d 29G 10G 16G39%/usr
/dev/da1s1e 33G5.0G 26G16%/var
/dev/da0s1d 61G 50G6.4G89%/var/db
/dev/da2p1 2.6T797G1.6T33%/backup
zbackup1   2.7T1.2T1.4T46%/zbackup1

I would go for the 3ware over the RocketRaid.  We have used the 3ware 
cards for some time and they have been very reliable for us. The disk 
replacement process is well designed and has been reliable for us 
over the years. We also use some of the Areca cards and they have 
been good too.  Not much experience with the RocketRaid.


---Mike



Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/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


Re: Anybody uses VMWare on FreeBSD?

2010-03-18 Thread Paul Schmehl

--On Wednesday, March 17, 2010 13:28:45 -0700 Yuri y...@rawbw.com wrote:


I can't build it, I am getting the following errors. And message to
freebsd-emulation@ from 02/10 was never answered.



Don't bother.  VirtualBox is eminently better and free.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson

___
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: FreeBSD and vmware

2010-03-18 Thread Paul Schmehl
--On Wednesday, March 17, 2010 21:34:43 +0100 Erik Norgaard 
norga...@locolomo.org wrote:



Hi:

I have a dual boot Windows/FreeBSD which I use for work, I just tried today
to create a virtual machine with vmware on windows to start up the installed
FreeBSD.

This works except for three problems:

- The disk device is renamed, I suppose I can just dublicate the entries in
the fstab, the devices not found won't be mounted, I'll get an error but
problem solved?

- I can't see the network devices from vmware

- I can't start xwindows, no monitor is found

Any clues?



Yes.  Use VirtualBox.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson

___
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: Irritating delay in mouse in kde4

2010-03-18 Thread Paul Schmehl
--On Wednesday, March 17, 2010 12:49:02 -0600 Warren Block wbl...@wonkity.com 
wrote:



On Wed, 17 Mar 2010, Paul Schmehl wrote:


I recently upgraded from FreeBSD 7.2 STABLE to 8.0 STABLE.  I also upgraded
from KDE3 to KDE4 and rebuilt all my ports.  Everything seems to work fine
except the mouse.  There is an irritating delay that I can't seem to get rid
of.  For example, if I mouse to the address line in Firefox and begin typing
in a url, nothing happens until I move the mouse.  Then, suddenly, what I
typed will appear in the address bar.

If I'm working in a shell, for example running portupgrade, nothing happens
until I move the mouse.  Then suddenly portupgrade will start working.

Has anyone seen this type of behavior?  Have any idea what the cause might
be  or where to look to troubleshoot the issue?


Do you have an AllowEmptyInput line in xorg.conf?  If so, remove it.

If you need to disable HAL input device detection, use
   Option AutoAddDevices false

-Warren Block * Rapid City, South Dakota USA



Perfect!  That was the answer.  Thanks, Warren.  As usual you are quite helpful.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson

___
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


gvinum drives extremely slow after upgrade

2010-03-18 Thread Alejandro Imass
Hi,

After successfully upgrading my system from 6.2 to 8.0-RELEASE I
notice that my gvinum drives are extremely slow. Every command I type
takes forever to execute. I know this question is way too generic, but
does anyone have a clue as to what this problem may be? Or any hints
on what and how to test what is going on?

Thanks in advance,
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: shrink /usr size

2010-03-18 Thread Frank Wißmann

Hello!

? ? schrieb:

2010/3/18 Aiza aiz...@comclark.com


/usr is the last partition in the slice. It has 15GB and only 600mb used. I
would like to shrink /usr to 7GB leaving me 7GB for another new partition
for mysql DB testing. How do I shrink /usr?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org





The same question: how to extend existed one?

I'm going to change HDD on server to a bigger one and dd from old to new,
but in this case the space visible to FreeBSD would be the same, how to make
it grow?


Use growfs. But that only works with an empty space after the partition 
you intend to grow. man growfs will give you some hints.


Greetings Frank

--
GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE 
Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y?


When pack meets pack in the jungle
and no one will move from the trail
wait till the leaders have spoken
it may be fair words shall prevail

(Rudyard Kipling)
___
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: Generating a random hostname

2010-03-18 Thread Peter Steele
I've ended up writing a service that runs after netif is complete and sets the 
hostname based on the MAC address and also updates /etc/hosts. It does what I 
need...

Thanks for all the replies on 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

API to find the memory usage of a process.

2010-03-18 Thread Jayadev Kumar
Hi,

I  need to find the memory usage of a process, from inside the process.
Is there any system call
do this ? I was trying to find it from 'top' utility source code. I couldn't
find the port which it is coming
from yet.

Thanks,
Jayadev.
___
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: NAT overflow

2010-03-18 Thread Michael Powell
Anton wrote:

 
Hello everyone,
 
I'm kind of noob in FreeBSD particularily, and in Unix systems at all
:- ). But, I've already mastered an router on freebsd 7.2, which
worked fine u ntil I installed their MySQL with huge database.
 
Now, once a day, I have a problem - users do not have internet on
their  computers, and I could not connect to Microsoft Windows server
with RDP fro m outside, but I could login via ssh on router. After
rebbot - everything b ecome  fine, everything works good and I have
no problems, until next  overflow.
 
[snip]

It is unclear whether or how MySQL is involved with NAT. If it is somehow 
being used to store NAT session data it might be a possibility. If such is 
the case all recent MySQL versions by default time out an idle connection, 
and unless the client detects this and reconnects automatically it is a 
problem. You can extend the idle delay window to its maximum by placing 
wait_timeout = 31536000 after the other contents of the global section (will 
have [mysqld] at the top) of your my.cnf. Even this will eventually drop a 
connection if idle for longer than this period, but it is as long as you can 
configure so you hope something pings the database before this expires.

As far as the NAT is concerned itself, an overflow can happen from not 
enough memory in the pool to contain all the session data for the volume of 
traffic you experience through the router. This should result in dropped 
connections which then become automatically reestablished very soon after. 
It should not necessarily cause all traffic to cease once a day.

The NAT pool and memory resources, as well as session time out values are 
tunable. However, it is not clear which NAT and firewall solution you are 
using, so it is difficult to provide any insight until we know the solution 
we are discussing. I have used all three over the years, but have used pf 
long enough now that what I recall from ipfw and ipfilter days is rusty. 
Others on this list are more informed than myself as well, so when we know 
specifically what NAT you are using and more details of the problem maybe 
more help will pop up.

-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


natd opening partition

2010-03-18 Thread Brian Wolman
Hey there, I run a test server here at the house that also runs natd to
share internet across the network. The past few weeks my free space on
/var was running dangerously low. After some investigation, I found out
that the used space was actually an open file, and here is what lsof
showed me:

natd  1736  root4w  VREG   0,84 410420438 23670 /var (/dev/ad4s1d)

Normally, natd is only supposed to open it's log file:

natd 34254  root4w  VREG   0,84   218703 23582 /var/log/alias.log

I've since disabled logging to alias.log and the problem has not
re-occurred, however I would still like to know what I could have done
to cause that, or if maybe it's some kind of bug.

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


Re: Virtualbox on Freebsd

2010-03-18 Thread Paul Schmehl
--On Thursday, March 04, 2010 13:15:02 -0600 Paul Schmehl 
pschmehl_li...@tx.rr.com wrote:



I'm trying to build it from ports right now and running into all sorts of
issues with qt4 stuff.



After rebuilding all my ports (portupgrade -af) and fixing the problems 
encountered, VirtualBox is working perfectly.  I am now running 64 bit Windows 
7 in VirtualBox on my 8 STABLE workstation.


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson

___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Josh Paetzel
On Thursday 18 March 2010 03:37:32 Andy Wodfer wrote:
 Hi,
 We're setting up two backup servers where each server will have about 4TB
 of harddrives (for now) connected (4x1TB and 8x500GB drives). Last night
 we ran into trouble with the 3ware controllers we have (9650SE-8LPML)
 because we couldn't create a larger RAID5 than 1.99TB.
 
 We are going to use FreeBSD 8.0 and Bacula, but first we obviously need to
 create a working RAID.
 
 My questions are:
 
 - Are HighPoint RocketRaid controllers a good alternative to 3ware
 controllers? Are RocketRaid controllers true hardware RAID?
 
 - What should we look for in a RAID controller spec to see that it has
 support for larger than 2TB RAIDs?
 
 I've been looking at these:
 http://www.highpoint-tech.com/USA_new/series_rr2300.htm
 http://www.highpoint-tech.com/USA_new/series_rr3500.htm
 
 Any FreeBSD recommendations? Or perhaps for another 3ware controller?
 
 We're using SATAII drives.
 
 Thanks for your help!
 
 Best regards,
 Andreas

You are hitting an issue with DOS MBR limitations, not the RAID controller 
itself.  Either use GPT or put a filesystem on the raw device with no fdisk at 
all.  The latter strategy is the better one if you intend to ever grow the 
filesystem.

3ware controllers are the best game in town for FreeBSD.  We use them 
extensively both internally and for our customers at iXsystems.  You can flash 
the controller firmware from in the OS on FreeBSD using tw_cli.

You might also consider running ZFS on the hardware RAID instead of UFS.  You 
get the advantages of running a hardware RAID controller, plus the advantages 
of ZFS (namely no fsck)

r...@servant /usr/src -tw_cli /c0 show

Unit  UnitType  Status %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
--
u0RAID-6OK -   -   256K5587.88   RiWON 

r...@servant /usr/src -grep 'da0' /var/run/dmesg.boot
da0 at twa0 bus 0 target 0 lun 0
da0: AMCC 9690SA-4I4 DISK 4.08 Fixed Direct Access SCSI-5 device 
da0: 100.000MB/s transfers
da0: 122879MB (251658239 512 byte sectors: 255H 63S/T 15665C)

** small boot LUN

r...@servant /usr/src -grep 'da1' /var/run/dmesg.boot
da1 at twa0 bus 0 target 0 lun 1
da1: AMCC 9690SA-4I4 DISK 4.08 Fixed Direct Access SCSI-5 device 
da1: 100.000MB/s transfers
da1: 5599104MB (11466964993 512 byte sectors: 255H 63S/T 713785C)

** The rest of it

r...@servant /usr/src -zpool  status -v
  pool: a
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
a   ONLINE   0 0 0
  da1   ONLINE   0 0 0

errors: No known data errors

r...@servant /usr/src -df -h a
FilesystemSizeUsed   Avail Capacity  Mounted on
a 5.2T2.2T3.0T42%/a


-- 
Thanks,

Josh Paetzel
FreeBSD -- The power to serve


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


VirtualBox from the command line

2010-03-18 Thread Aiza

Does VirtualBox launch from the FBSD command line?
Is there a package for it in the pkg system?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: VirtualBox from the command line

2010-03-18 Thread Don O'Neil
You need to use 'vboxtool'... 

http://vboxtool.sourceforge.net/


 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Aiza
 Sent: Thursday, March 18, 2010 5:45 PM
 To: FreeBSD Questions
 Subject: VirtualBox from the command line
 
 Does VirtualBox launch from the FBSD command line?
 Is there a package for it in the pkg system?
 ___
 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


Xorg xorg-7.4_2 startup

2010-03-18 Thread doug
I have FreeBSD 7.2 built after the xorg-7.4_2 package I installed. Hardware is 
an IBM thinkpad T42p. I am trying to figure out if I have hardware or software 
issues. I built FreeBSD and installed Xorg 12/30/09. I am choosing not to use 
hal so:


 xorg.conf ---
Section ServerLayout
Identifier  X.org Configured
Screen  0  Screen0 0 0
InputDevice Mouse0 CorePointer
InputDevice Keyboard0 CoreKeyboard
#Option  DontZap   off
Option  AutoAddDevices false

 rc.conf ---
#hald_enable=YES
#dbus_enable=YES

For the first month, this all worked. with xorg starting ok (10-15 secs) or 
slowly (60 secs). Starting in Feburary, Xorg would hang locking the keyboard or 
take a complete unpredictable time to start.


FreeBSD was built w/o IPV6 support which is the only possible software issue I 
can think of (Packet sniffing suggested an IPV6 call is made during xdm start 
up).


If I do not start xdm, I can find nothing that does not work. When xdm starts 
everything works until the next power on. On a recent trip I left the system up 
for 2+ months, using it as my only workstation. I am stumped, flummoxed, and 
otherwise at a loss :)


_
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: VirtualBox from the command line

2010-03-18 Thread Adam Vande More
On Thu, Mar 18, 2010 at 7:44 PM, Aiza aiz...@comclark.com wrote:

 Does VirtualBox launch from the FBSD command line?
 Is there a package for it in the pkg system?


# VirtualBox -h
Sun VirtualBox Graphical User Interface 3.1.2_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Usage:
  --startvm vmname|UUIDstart a VM by specifying its UUID or name
  --rmode sdl|image  select different render mode (default is sdl)

There are other ways too, eg VBoxHeadless

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


Flash sometimes freezes firefox, also many npviewer.bin processes left running around

2010-03-18 Thread Yuri
Sometimes after some flash object is displayed firefox gets frozen for 
many few seconds,maybe ~20sec.

Do you see the same? Is there anyfix for this?

In additions I have 54 processes like this one
50006  ??  I  0:00.00 
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin 
/usr/local/lib/linux-mozilla/plugins/libflashplayer.so --connection

hanging around even after firefox process exits.

linux-f10-flashplugin-10.0r45
nspluginwrapper-1.2.2_5
firefox-3.5.8,1

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


Re: API to find the memory usage of a process.

2010-03-18 Thread J. Johnston

On 03/18/10 10:28, Jayadev Kumar wrote:

Hi,

 I  need to find the memory usage of a process, from inside the process.
Is there any system call
do this ? I was trying to find it from 'top' utility source code. I couldn't
find the port which it is coming
from yet.

Thanks,
Jayadev.


the source for top is located in /usr/src/usr.bin/top


___
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


greylisting with sendmail recommendations

2010-03-18 Thread Jamie Griffin
Hello

I'm thinking of implementing a greylisting milter for sendmail. I just wanted 
to ask here first to see if anyone has any feedback on which one might be the 
best to go with. I was looking at milter-greylist from ports, which seems quite 
popular, does anyone use this and have you found it to be effective?

Thank you, Jamie
___
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: Flash sometimes freezes firefox, also many npviewer.bin processes left running around

2010-03-18 Thread Brandon Gooch
On Fri, Mar 19, 2010 at 1:47 AM, Yuri y...@rawbw.com wrote:
 Sometimes after some flash object is displayed firefox gets frozen for many
 few seconds,maybe ~20sec.
 Do you see the same? Is there anyfix for this?

 In additions I have 54 processes like this one
 50006  ??  I      0:00.00
 /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin
 /usr/local/lib/linux-mozilla/plugins/libflashplayer.so --connection
 hanging around even after firefox process exits.

 linux-f10-flashplugin-10.0r45
 nspluginwrapper-1.2.2_5
 firefox-3.5.8,1

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


I map a key to `killall npviewer.bin` -- crude and hack-ish, but it's
all that seems to work. I just refresh the browser page(s) containing
any other flash objects that I WANT to use or view (sometimes the
refresh happens automagically).

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


Re: VirtualBox from the command line

2010-03-18 Thread Warren Block

On Thu, 18 Mar 2010, Adam Vande More wrote:


On Thu, Mar 18, 2010 at 7:44 PM, Aiza aiz...@comclark.com wrote:


Does VirtualBox launch from the FBSD command line?
Is there a package for it in the pkg system?



# VirtualBox -h
Sun VirtualBox Graphical User Interface 3.1.2_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Usage:
 --startvm vmname|UUIDstart a VM by specifying its UUID or name
 --rmode sdl|image  select different render mode (default is sdl)

There are other ways too, eg VBoxHeadless


And VBoxSDL.  And VBoxManage.  You can even create VMs from the command 
line, but it's fairly involved.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: VirtualBox from the command line

2010-03-18 Thread Aiza
On Thu, Mar 18, 2010 at 7:44 PM, Aiza aiz...@comclark.com 
mailto:aiz...@comclark.com wrote:


Does VirtualBox launch from the FBSD command line?
Is there a package for it in the pkg system?


# VirtualBox -h
Sun VirtualBox Graphical User Interface 3.1.2_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Usage:
  --startvm vmname|UUIDstart a VM by specifying its UUID or name
  --rmode sdl|image  select different render mode (default is sdl)

There are other ways too, eg VBoxHeadless

--
Adam Vande More


I read the VirtualBox section in the handbook. Not very informative.
I also read the VirtualBox manual here
http://www.virtualbox.org/manual/ch02.html#startingvboxonlinux
The VirtualBox website http://www.virtualbox.org shows a GUI manager for 
configuring the host and guest setups. I did


pkg_add -r virtualbox

During the install got these messages

Your SDL library has been built with libvgl support, which means that 
you  can run almost any SDL application straight on your console (VESA 
2.0  compatible videocard is required). To do this you have to load the 
vesa kernel module or enable it in your kernel, and set environment 
variable SDL_VIDEODRIVER=vgl.


Since i Want to run virtualbox under vga I did this
set env SDL_VIDEODRIVER=vgl
added vesa_load=YES to /boot/loader.conf

At the end of the package install it says to
Add vboxdrv_load=YES   to /boot/loader.conf
and reboot which i did.

before launching do
mount -t procfs proc /proc
pw groupmod vboxusers -m root

To launch it enter VirtualBox on the command line.
[take special note of the capital letters V  B in
the command name]

I get msg  Failed to open the X11 display.

tried starting VBoxSDL   get this error
VBoxSDL: Error -1908 in suplibOsInit!
VBoxSDL: Kernel driver not installed
VBoxSDL: Tip! Make sure the kernel module is loaded.
It may also help to reinstall VirtualBox.


Tried starting  VBoxManager
VBoxManager: Command not found.

Tried starting VBoxHeadless
VBoxHeadless: Error -1908 in suplibOsInit!
VBoxHeadless: Kernel driver not installed
VBoxHeadless: Tip! Make sure the kernel module is loaded.
It may also help to reinstall VirtualBox.


Why don't virtual box GUI start in vga mode?

Is this telling me that I have to have Xorg and some
desktop running before VirtualBox's gui will function?

Are the scripts provided by vboxtool the only way to have
command line control of VirtualBox?
http://vboxtool.sourceforge.net/

See talk about vboxweb as alternate VirtualBox manager.
http://vboxweb.blogspot.com/
Does not look like this is out of development yet.
Anybody using 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


Re: greylisting with sendmail recommendations

2010-03-18 Thread Warren Block

On Fri, 19 Mar 2010, Jamie Griffin wrote:


I'm thinking of implementing a greylisting milter for sendmail. I just 
wanted to ask here first to see if anyone has any feedback on which 
one might be the best to go with. I was looking at milter-greylist 
from ports, which seems quite popular, does anyone use this and have 
you found it to be effective?


It works for me.  Article that's a bit old but probably still close: 
http://www.wonkity.com/~wblock/docs/greylist.pdf


-Warren Block * Rapid City, South Dakota USA
___
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: API to find the memory usage of a process.

2010-03-18 Thread Charlie Kester

On Thu 18 Mar 2010 at 18:30:00 PDT J. Johnston wrote:

On 03/18/10 10:28, Jayadev Kumar wrote:

Hi,

I  need to find the memory usage of a process, from inside the process.
Is there any system call
do this ? I was trying to find it from 'top' utility source code. I couldn't
find the port which it is coming
from yet.

Thanks,
Jayadev.


the source for top is located in /usr/src/usr.bin/top


whereis -sq foo

will get you the source directory for foo, assuming you installed the
system sources, or if foo is also the name of the port.

If foo was installed by a port with some other name, you can find it
with

pkg_info -W foo

___
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