Re: Booting from an aribrary disk in ZFS RAIDZ on 8.x

2013-03-07 Thread Doug Poland
On Thu, Mar 07, 2013 at 03:11:29PM +1030, Shane Ambler wrote:
 On 06/03/2013 14:54, Doug Poland wrote:
 On Wed, Mar 06, 2013 at 01:26:07PM +1030, Shane Ambler wrote:
 On 06/03/2013 05:14, Doug Poland wrote:
 
 I have 6 disks in a RAIDZ configuration.  All disks were sliced the
 same with gpart (da(n)p1,p2,p3) with bootcode written to index 1,
 swap on index 2 and freebsd-zfs on index 3.
 
 Given this configuration, I should be able to boot from any of the
 6 disks in the RAIDZ.  If this is a true statement, how do I make
 that happen from the loader prompt?
 
 You don't boot from an individual disk you boot from a zpool - all
 disks are linked together making one zpool disk.
 
 Something has to pick a physical device from which to boot, does it
 not?.  All the HP Smart Array 6i controller knows is I have 6 RAID 0
 disks to present to the OS.
 
 I meant to add if the bootcode is installed on each disk then pointing
 the bios to any individual disk as the primary boot device will lead
 to the boot process loading the zpool. Installing it on each disk
 gives the redundancy to match the raid in the zpool. If you only have
 one disk with bootcode and it is the one that needs replacing then you
 can't boot. Then having 100 disks in a pool with bootcode would be
 overkill, but the consistency may be easier to maintain.
 
So in my case, the HP SmartArray doesn't allow me to choose an
individual boot disk.  So it's up to the controller to keep trying to
boot from the next configured disk.  I believe I'm going to craft a
test to prove this out.

 I've had issues with this RAID controller in the past where it won't
 present the new disk to the OS.  I've had to reboot, go into the
 RAID config and tell it it's a single RAID 0 device (stupid, I
 know).
 
 When you think about it, as a raid controller it shouldn't make
 assumptions as to how to use the new disk, should it add it to an
 existing raid set, replace a missing drive or show it as a new single
 drive? Being able to specify per socket as permanently jbod could be
 useful feature though.
 
One would think.  I've been testing this on a similarly configured
machine and the controller eventually presents a new drive to the OS.
It takes a couple of minutes, but appears to work on this test box.

 The roll of /boot/zfs/zpool.cache is a mystery to me.  I belive it
 somehow tells ZFS what devices are in use.  What if a disk goes
 offline or is removed?
 
 
 As I understand it the zpool.cache contains the zpools mounted by the
 system. After reboot it then re-imports each zpool in the cache. I
 believe a recent commit enabled the vfs.root.mountfrom zpool to be
 imported even if there was no cache available.
 
 From what I have heard and seen the data about the zpool it belongs to
 and the role the disk plays in the zpool is stored on each disk and
 duplicated at the beginning and end of the disk. In my early
 experiments after starting clean even after gparting and zeroing out
 the start of the disks, zpool still says it belongs to a pool.
 
If that's the case, I wonder about the wisdom of re-using a drive from
my test configuration?  My plan has been to prove this out on test and
use the same disk from test and insert it into production.  One would
think ZFS is smart enough to recognize a different drive has been
inserted, even if it has the same gpart structure and came from a pool
with the same name.

Thanks for your help.

-- 
Regards,
Doug
___
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


Booting from an aribrary disk in ZFS RAIDZ on 8.x

2013-03-05 Thread Doug Poland
Hello,

I'm running ZFS filesystem ver 3, storage pool ver 14, on 8-STABLE
amd64. The kernel build is rather dated from around Feb 2010.

I have 6 disks in a RAIDZ configuration.  All disks were sliced
the same with gpart (da(n)p1,p2,p3) with bootcode written to index 1,
swap on index 2 and freebsd-zfs on index 3.

Given this configuration, I should be able to boot from any of the 6
disks in the RAIDZ.  If this is a true statement, how do I make that
happen from the loader prompt?

At the loader prompt when I type show, I get the following relevant
variables:

currdev=zfs0
loaddev=disk1a:
vfs.root.mountfrom=zfs:rpool

A peek at man loader(1) shows me two interesting variables:
root_disk_unit
rootdev

If disk0 is the legacy floppy device, presumably disk1a: maps to da0.
What variable do I set to signify boot from what I know as:

da0p1 == gpt/boot0 
da0p2 == gpt/swap0 
da0p3 == gpt/disk0
...
snip
...
da5p1 == gpt/boot5 
da5p2 == gpt/swap5 
da5p3 == gpt/disk5

Thanks very much in advance.  BTW, is it bad form to cross-post to
forums.freebsd.org?

-- 
Regards,
Doug
___
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: Portability of shell scripts from other *nixes

2012-01-25 Thread Doug Poland

On Jan 25, 2012, at 18:04 , Chuck Swiger wrote:

 On Jan 25, 2012, at 2:08 PM, Doug Poland wrote:
 The issue I'm having is the shebang line of the scripts in OS X is
 #!/bin/sh, and it turns out that is really an instance of bash, and
 the code contains some bashisms.  On FreeBSD I have bash in
 /usr/local/bin/bash.
 
 Is there an easy/best way to have a single shebang that works on
 both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
 any symlinking of /usr/local/bin/bash to /bin/sh.
 
 Try using something like:
 
  #!/usr/bin/env bash
 
 (If the shell scripts are something written by Apple rather than by 
 third-parties, please also consider filing a bug report.)
 
This gets me closer, but the scripts behave differently now on OS X.  For 
example, printf's don't output the same.  

-- 
Regards,
Doug



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


Re: UFS journal size

2011-09-21 Thread Doug Poland
On Wed, Sep 21, 2011 at 12:48:25PM +0300, Ross wrote:
 Quoting the manpage:
 
  -s jsize  Specifies size of the journal if only one provider is
used for both data and journal.  The default is one
gigabyte.  Size should be chosen based on provider's
load, and not on its size; recommended minimum is twice
the size of the physical memory installed.  It is not
recommended to use gjournal for small file systems
(e.g.: only few gigabytes big).
 
 My question is: if I have 4 or 8 GB of RAM should I create 8 or even
 16 GB journals?.. This seems huge especially if the fs size without
 journal is only 10 gigs. Or the recommended minimum is for systems low
 on RAM?

My experience has shown that speed of the underlying filessystem has a
huge impact on the required size of the journal.  I have a system
running hardware RAID-10 on a 3Ware SATA controller.  On a 100G
partition, rsync would regularly cause a panic until I got my journal up
above 10G.  This particular host has only 1G of RAM and a single 3.4GHz
P4 CPU.

Sizing this particular box using gjournal was painful until I got the
journal sizes large enough.  It turns out the journals had to be so
large (for the infrequent write burst) that a significant amount of disk
was chewed up for journals that were mostly unused.  

If I had to do it over again, I would have not used gjournal and simply
used softupdates.  YMMV

-- 
Regards,
Doug
___
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: Apache as reverse SSL proxy

2010-10-05 Thread Doug Poland
On Tue, Oct 05, 2010 at 02:32:11AM -0500, Ryan Coleman wrote:
 
 On Oct 5, 2010, at 2:05 AM, Adam Vande More wrote:
 
  On Tue, Oct 5, 2010 at 1:36 AM, Ryan Coleman ryan.cole...@cwis.biz wrote:
  
  On Oct 5, 2010, at 12:33 AM, Matthew Seaman wrote:
  
  Nowadays there is also the possibility of RFC2817 -- in essence
  you start an ordinary HTTP session, then issue a STARTTLS command
  and upgrade the connection to encrypted.  This will allow
  name-based virtual hosting with TLS to work as intended.
  Unfortunately, last I checked, while apache supports this, most
  web browsers do not.
  
  Throwing just my two bits in: Apache supports it, as does Firefox,
  and nothing else (maybe Safari does...).
  
  IE definitely does not. I looked into this before opting to go
  multiple static IPs at home for my webservers.
  
  
  IE 7+ does however support RFC 3546(SNI), which is the defacto
  standard for accomplishing SSL name based vhosts.
  http://en.wikipedia.org/wiki/Server_Name_Indication
 

Thanks all for the confirmation and information on apache, vhosts,
HTTPS, and reverse proxying.  In my situation, the clients are custom
written applications on embedded systems.  I don't know much about their
ability to conform with the latest RFC's but my guess is they will not.



___
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: Apache as reverse SSL proxy

2010-10-04 Thread Doug Poland
Hello,

I realize this is not a specific FreeBSD question, but a lot of
knowledgeable apache admins hang around here.  I am tasked with creating
a reverse SSL proxy in a DMZ.  A reverse proxy for http is simple, but
I'm finding it challenging understanding all that needs to take place
for apache 2.2.x to act as a reverse.

I've done an extensive amount of googling and reading mod_proxy and
mod_ssl docs, but to no avail.  Can someone point me to some docs or
configs?

TIA!

-- 
Doug

___
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: Apache as reverse SSL proxy

2010-10-04 Thread Doug Poland
On Mon, Oct 04, 2010 at 09:19:52PM -0500, Adam Vande More wrote:
 On Mon, Oct 4, 2010 at 5:15 PM, Doug Poland d...@polands.org wrote:
 
 Hello,
 
 I realize this is not a specific FreeBSD question, but a lot of
 knowledgeable apache admins hang around here.  I am tasked with
 creating a reverse SSL proxy in a DMZ.  A reverse proxy for http
 is simple, but I'm finding it challenging understanding all that
 needs to take place for apache 2.2.x to act as a reverse.
 
 I've done an extensive amount of googling and reading mod_proxy
 and mod_ssl docs, but to no avail.  Can someone point me to some
 docs or configs?
 
 
 Save your brain, and your computer's memory.  Use www/nginx or
 www/pound.
 
What also complicates the matter is that the reverse proxy is supposed
to act for several virtual hosts.  The documentation for www/pound
indicated HTTPS does not allow virtual hosting.  I seem to recall
bumping into this issue in the past that one cannot do named-based
vhosts on HTTPS.

Look like it's back to the drawing board...


-- 
Regards,
Doug
___
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: Massive portupgrade without being interrupted by configuration screens?

2010-10-02 Thread Doug Poland

On Oct 2, 2010, at 9:49, Brandon Gooch jamesbrandongo...@gmail.com wrote:

 On Sat, Oct 2, 2010 at 5:27 AM, Thomas Mueller
 mueller6...@bellsouth.net wrote:
 How can one do a massive portupgrade, as with -r or -R, without being 
 interrupted by options configuration screens for many individual ports?  
 Idea is to let it run unattended such as when I might run it starting just 
 before bedtime.  Doing make config ahead of time also gives the chance to 
 recover from a typo at the configuration screen (high risk).
 
 Best thing I can think of is, using multimedia/ffmpeg as an example, is 
 doing a dry run
 
 portupgrade -Rn multimedia/ffmpeg | tee -a wouldbe.log
 
 This would show what other packages would need to be portupgraded and avoid 
 reconfiguring up-to-date dependencies.  Then I would go to each of those 
 directories in the ports tree and run make config.
 
 Running make config-recursive in /usr/ports/multimedia/ffmpeg would 
 produce configuration screens for all dependencies, including those that are 
 up-to-date.
 
 I tried
 
 portupgrade -RCn multimedia/ffmpeg | tee -a wouldbe.log
 
 but then I got all dependency configuration screens, including those that 
 were up-to-date, and also the interface didn't work right: I got garbage 
 when trying to respond; it didn't write to the configuration screen but 
 produced non-color garbage to the background.
 
 Running make config-recursive in /usr/ports/multimedia/ffmpeg would 
 configure all dependencies, including those that are up-to-date and 
 therefore not in need of portupgrading, though make config-recursive seems 
 appropriate for a first build/install of a port.
 
 But I think there is no perfect way to be sure of doing all make configs 
 in advance, since selectable options could require additional dependencies.
 
 If you try to portupgrade perl to 5.12 and everything that depends on it, as 
 advised in UPDATING file, date 20100715, you will likely get a lot of 
 configuration dialog screens: I speak from experience, would surely like a 
 way to do all these make configs at the beginning.
 
 Tom
 
 Well, I'm not using portupgrade, but instead ports-mgmt/portmaster:
 
 # portmaster --force-config --no-confirm [...] lang/perl5.12
 
 Gets all of the config menus out of the way (--force-config), and
 doesn't sit waiting for confirmation to proceed with install
 (--no-confirm). I do this only the first time I build a port, or if I
 need to change a config option and reinstall.
 
 Works for me!
 
 -Brandon

If I understand the OPs question correctly, I believe setting the environment 
variable BATCH=yes will give desired results with portupgrade.  This will cause 
port compile defaults to be used in lieu of an existing /var/db/ports/*/options 
file. ___
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


Interpretting 3Ware error messages

2010-05-18 Thread Doug Poland
Hello,

I have a 7.2-R i386 system running a 3ware 9500S-4LP SATA 150
controller with 4 SATA drives.  I recently starting seeing the
following in my logs

smartd[906]: Device: /dev/twa0 [3ware_disk_00], 1 Currently unreadable
(pending) sectors
smartd[906]: Device: /dev/twa0 [3ware_disk_00], 1 Offline
uncorrectable sectors

Using the twi_cli program, I can examine the disk subsystem, but I do
not see any issues with an underlying drive.

Unit UnitType  Status %RCmpl  %V/I/M  Port  Stripe  Size(GB)

u0   RAID-10   OK -   -   - 64K 298.002
u0-0 RAID-1OK -   -   - -   -
u0-0-0   DISK  OK -   -   p2-   149.001
u0-0-1   DISK  OK -   -   p3-   149.001
u0-1 RAID-1OK -   -   - -   -
u0-1-0   DISK  OK -   -   p0-   149.001
u0-1-1   DISK  OK -   -   p1-   149.001


I suspect a disk problem, but cannot identify the individual disk or
the nature of the problem.  Can anyone shed some light on this?


-- 
Regards,
Doug

___
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: Interpretting 3Ware error messages

2010-05-18 Thread Doug Poland

On Tue, May 18, 2010 09:55, Matthew Seaman wrote:

 On 18/05/2010 15:43:25, Doug Poland wrote:
 Hello,

 I have a 7.2-R i386 system running a 3ware 9500S-4LP SATA 150
 controller with 4 SATA drives.  I recently starting seeing the
 following in my logs


 I suspect a disk problem, but cannot identify the individual disk
 or the nature of the problem.  Can anyone shed some light on this?



 Look at the SMART data for the disk(s) -- my guess is that you're
 seeing sectors failing and being re-mapped by the drive firmware.  If
 this is happening to any significant extent the disk may well be
 reaching the end of its usable life: happily you would seem to have
 been alerted to that in time to do something about it without needing
 to run around in a blind panic.

 There's a background task you can set up on 3ware controllers that
 will attempt to access all sectors of a disk specifically to bring to
 light problems like this, which otherwise could go unnoticed for a
 long time and lead to silent data corruption.

Will do, thanks for the info.


-- 
Regards,
Doug

___
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: restore via netcat not ending

2010-04-24 Thread Doug Poland
On Fri, Apr 23, 2010 at 08:30:28PM -0500, Doug Poland wrote:
 Hello,
 
 I've got a restore process running now that doesn't seem to want to
 end.  The dump (level 0) was made this morning and sent to another
 host on the network.  I reformatted the partition and am restoring the
 43GB dump as such...
 
 restore#  cd /data  nc -l 1234 | restore -rf-
 backup% nc restore 1234  data.dump
 
 I watched the file system slowly fill up for about 4 hours, then
 network and disk I/O dropped dramatically after the restore file
 system is roughly the same size as the dump file.  Yet the restore is
 still running.
 
What I ended up doing was hitting CTRL C on the host that was sending
the data.  Then the receiving host doing restore set the permissions
correctly and ended.  I wonder why reading a restore from stdin causes
this behavior?

-- 
Regards,
Doug
___
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: Installation on HP Proliant via iLO - Error mounting /dev/acd0 on /dist

2010-04-23 Thread Doug Poland
On Thu, Apr 22, 2010 at 06:36:39PM -0600, Tim Judd wrote:
 On 4/22/10, Ewald Jenisch a...@jenisch.at wrote:
  Hi,
 
  I'm having a hard time trying to install FreeBSD 8.0 on an HP
  Proliant server. To be specific I try to instal the amd64 variant of
  FreeBSD 8.0 on a ProLiant DL385 G1.
 
  Since the server is remote installation is to be done via the
  virtual CD/DVD of the iLO management.
 
  The install process runs smooth up to the point where the install
  process finishes formatting then I get the following error:
 
  Error mounting /dev/acd0 on /dist: Input/output error (5)
 
  and installation can't proceed.
 
  Interestingly that the installation runs from CD up to this point
  without any problem whatsoever. This can't be a problem with the
  CD/DVD since I've mounted the ISO-image via a virtual drive.
 
  I've already tried downloading the ISO again - same result.
 
  Likewise I tried with the CD-image instead of the DVD-image - same result
  :-(
 
  So here are my questions:
 
  o) has anybody seen symptoms like this on a HP proliant server when
  installation is done via the virtual CD/DVD-drive?
 
  o) Any cure against this?
 
Try a re-scan of the devices from the options menu.  If that doesn't
help, try connecting to an ISO image in iLO instead of an optical
device.  

-- 
Regards,
Doug
 
___
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


restore via netcat not ending

2010-04-23 Thread Doug Poland
Hello,

I've got a restore process running now that doesn't seem to want to
end.  The dump (level 0) was made this morning and sent to another
host on the network.  I reformatted the partition and am restoring the
43GB dump as such...

restore#  cd /data  nc -l 1234 | restore -rf-
backup% nc restore 1234  data.dump

I watched the file system slowly fill up for about 4 hours, then
network and disk I/O dropped dramatically after the restore file
system is roughly the same size as the dump file.  Yet the restore is
still running.

When I look at the file system, the parent directories are still owned
by root and 700.  Will this thing ever end?


-- 
Regards,
Doug

___
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: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On Tue, January 19, 2010 12:35, Chuck Swiger wrote:
 Hi--

 On Jan 19, 2010, at 10:04 AM, Doug Poland wrote:
 No joy.

 # sysctl kern.corefile=/var/crash/clamd.core
 # /usr/local/etc/rc.d/clamav-clamd start
  Starting clamav_clamd.
  Segmentation fault
 # ll /var/crash
  total 2
  -rw-r--r--  1 root  wheel  5 Apr 10  2005 minfree

 Please see man 5 core; in particular, clamd changes userid:

 By default, a process that changes user or group credentials
 whether real or effective will not create a corefile.  This behaviour
 can be changed to generate a core dump by setting the sysctl(8)
 variable
  kern.sugid_coredump to 1.

 ...so you will need to toggle that sysctl also.  I'd suggest doing
 something more like:

 mkdir /cores
 chmod 1777 /cores
 sysctl kern.sugid_coredump=1
 sysctl kern.corefile=/cores/%N.%P.core

 ...but adjust the path to be under /var or /usr if free diskspace
 makes doing so necessary.

Thanks for the suggestion and the pointer to man 5 core.  I
implemented your suggestions but still get no core dump.  Very
strange...



-- 
Regards,
Doug

___
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: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On Wed, January 20, 2010 15:05, Chuck Swiger wrote:
 Hi--

 On Jan 20, 2010, at 12:46 PM, Doug Poland wrote:
 Thanks for the suggestion and the pointer to man 5 core.  I
 implemented your suggestions but still get no core dump.  Very
 strange...

 Check your default resource limits (shell startup files 
 /etc/login.conf) and see whether coredumpsize is set to 0, maybe?

Nope, nothin'

% set | grep core | egrep -v grep
% env | grep core | egrep -v grep

% grep core /etc/login.c* | egrep -v #
/etc/login.conf::coredumpsize=unlimited:\


 If you build and run:

 % cat crash.c
 #include stdlib.h

 main()
 {
 char *bad = NULL;
 bad[0] = '1';
 }
 % cc -o crash crash.c
 % ./crash
 [1]16550 segmentation fault (core dumped)  ./crash
 % ls /cores
 crash.16550.core

 ...do you get this trivial program to dump core?

No, not on the system in question.  Just tried it on a plain-vanilla
8.0-RELEASE box I just built and I do get the the core dump there.

% echo $SHELL
/bin/tcsh


% uname -a
FreeBSD hostname.domain.com 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0:
Sat Sep 12 11:15:05 CDT 2009
r...@hostname.domain.com:/usr/obj/usr/src/sys/GENERIC-SERVER  i386


% cat /sys/i386/conf/GENERIC-SERVER
ident   GENERIC-SERVER
include GENERIC
options INCLUDE_CONFIG_FILE # Include this file in kernel
options QUOTA


% sysctl -a | grep core
kern.corefile: /var/coredumps/%U/%N.core
kern.nodump_coredump: 0
kern.coredump: 1
kern.sugid_coredump: 1
debug.elf32_legacy_coredump: 1


% touch /var/coredumps/file
% ll !$
ll /var/coredumps/file
-rw-r--r--  1 doug  wheel  0 Jan 20 15:13 /var/coredumps/file




-- 
Regards,
Doug

___
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: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On 2010-01-20 17:11, Boris Samorodov wrote:

On Wed, 20 Jan 2010 15:24:51 -0600 Doug Poland wrote:


% sysctl -a | grep core
kern.corefile: /var/coredumps/%U/%N.core


As CORE(5) says %U is a UID...


% touch /var/coredumps/file
% ll !$
ll /var/coredumps/file
-rw-r--r--  1 doug  wheel  0 Jan 20 15:13 /var/coredumps/file


... so you should have a directory /var/coredumps/UID  owned by
(well, at least have permissions to write by) this UID.


That was it, thanks for the keen vision!

--
Regards,
Doug
___
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


Trouble getting a core dump from clamd

2010-01-19 Thread Doug Poland
Hello,

I'm running 7.2-RELEASE-p3 i386 and am having an issue getting a core
dump from a program that is seg faulting.

Last night, inexplicably, clamd started to seg fault.  I was trying to
obtain a core dump for further analysis but no .core file can be
found.

I've tried the following in a tcsh:

# sysctl -a | grep core
kern.corefile: %N.core
kern.nodump_coredump: 0
kern.coredump: 1
kern.sugid_coredump: 0
debug.elf32_legacy_coredump: 0

# set ulimit=-c

# /usr/local/sbin/clamd /usr/local/etc/clamd.conf
Segmentation fault

# tail /var/log/messages
Jan 19 10:16:19 hostname kernel: pid 42315 (clamd), uid 106: exited on
signal 11


But I get no .core file.  Suggestions?



-- 
Regards,
Doug

___
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: Trouble getting a core dump from clamd

2010-01-19 Thread Doug Poland

On Tue, January 19, 2010 11:10, krad wrote:
 2010/1/19 Doug Poland d...@polands.org

 Hello,

 I'm running 7.2-RELEASE-p3 i386 and am having an issue getting a
 core dump from a program that is seg faulting.


 set a path in the sysctl variable kern.corefile. WIll make the core
 file easier to find if one is generated. Generally much tider as well
 then having core files littered all over the system

No joy.

# sysctl kern.corefile=/var/crash/clamd.core
# /usr/local/etc/rc.d/clamav-clamd start
  Starting clamav_clamd.
  Segmentation fault
# ll /var/crash
  total 2
  -rw-r--r--  1 root  wheel  5 Apr 10  2005 minfree

-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-14 Thread Doug Poland

On Thu, January 14, 2010 03:17, Ivan Voras wrote:
 Doug Poland wrote:

 Ok, I re-ran with same config, but this time monitoring the
 sysctls you requested* ( and the rest I was watching ):

 I failed to mention that

 kstat.zfs.misc.arcstats.size

 seemed to fluctuate between about 164,000,00 and 180,000,000 bytes
 during this last run

 Is that with or without panicking?

with a panic


 If the system did panic then it looks like the problem is a memory
 leak somewhere else in the kernel, which you could confirm by
 monitoring vmstat -z.

I'll give that a try.  Am I looking for specific items in vmstat -z?
arc*, zil*, zfs*, zio*?  Please advise.


-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-14 Thread Doug Poland

On Thu, January 14, 2010 08:50, Ivan Voras wrote:
 2010/1/14 Doug Poland d...@polands.org:

 kstat.zfs.misc.arcstats.size

 seemed to fluctuate between about 164,000,00 and 180,000,000 bytes
 during this last run

 Is that with or without panicking?

 with a panic


 If the system did panic then it looks like the problem is a memory
 leak somewhere else in the kernel, which you could confirm by
 monitoring vmstat -z.

 I'll give that a try.  Am I looking for specific items in vmstat
 -z?   arc*, zil*, zfs*, zio*?  Please advise.

 You should look for whatever is allocating all your memory between 180
 MB (which is your ARC size) and 1.2 GB (which is your kmem size).


OK, another run, this time back to vfs.zfs.arc_max=512M in
/boot/loader.conf, and a panic:

panic: kmem malloc(131072): kmem map too small: 1294258176 total
allocated

I admit I do not fully understand what metrics are important to proper
analysis of this issue.  In this case, I was watching the following
within 1 second of the panic:

sysctl kstat.zfs.misc.arcstats.size: 41739944
sysctl vfs.numvnodes: 678
sysctl vfs.zfs.arc_max: 536870912
sysctl vfs.zfs.arc_meta_limit: 134217728
sysctl vfs.zfs.arc_meta_used: 7228584
sysctl vfs.zfs.arc_min: 67108864
sysctl vfs.zfs.cache_flush_disable: 0
sysctl vfs.zfs.debug: 0
sysctl vfs.zfs.mdcomp_disable: 0
sysctl vfs.zfs.prefetch_disable: 1
sysctl vfs.zfs.recover: 0
sysctl vfs.zfs.scrub_limit: 10
sysctl vfs.zfs.super_owner: 0
sysctl vfs.zfs.txg.synctime: 5
sysctl vfs.zfs.txg.timeout: 30
sysctl vfs.zfs.vdev.aggregation_limit: 131072
sysctl vfs.zfs.vdev.cache.bshift: 16
sysctl vfs.zfs.vdev.cache.max: 16384
sysctl vfs.zfs.vdev.cache.size: 10485760
sysctl vfs.zfs.vdev.max_pending: 35
sysctl vfs.zfs.vdev.min_pending: 4
sysctl vfs.zfs.vdev.ramp_rate: 2
sysctl vfs.zfs.vdev.time_shift: 6
sysctl vfs.zfs.version.acl: 1
sysctl vfs.zfs.version.dmu_backup_header: 2
sysctl vfs.zfs.version.dmu_backup_stream: 1
sysctl vfs.zfs.version.spa: 13
sysctl vfs.zfs.version.vdev_boot: 1
sysctl vfs.zfs.version.zpl: 3
sysctl vfs.zfs.zfetch.array_rd_sz: 1048576
sysctl vfs.zfs.zfetch.block_cap: 256
sysctl vfs.zfs.zfetch.max_streams: 8
sysctl vfs.zfs.zfetch.min_sec_reap: 2
sysctl vfs.zfs.zil_disable: 0
sysctl vm.kmem_size: 1327202304
sysctl vm.kmem_size_max: 329853485875
sysctl vm.kmem_size_min: 0
sysctl vm.kmem_size_scale: 3


vmstat -z | egrep -i 'zfs|zil|arc|zio|files'
ITEM SIZE LIMIT  USED  FREE  REQUESTS
Files: 80,0,  116,  199,   850713
zio_cache:720,0,53562,   98, 86386955
arc_buf_hdr_t:208,0, 1193,   31,11990
arc_buf_t: 72,0, 1180,  120,11990
zil_lwb_cache:200,0,11580, 2594,62407
zfs_znode_cache:  376,0,  605,   55,  654

vmstat -m |grep solaris|sed 's/K//'|awk '{print vm.solaris:, $3*1024}'


  solaris: 1285068800


The value I see as the culprit is vmstat -m | grep solaris.  This
value fluctuates wildly during the run and is always near kmem_size at
the time of the panic.

Again, I'm not sure what to look for here, and you are patiently
helping me along in this process.  If you have any tips or can point
me to docs on how to easily monitor these values, I will endeavor to
do so.


-- 
Regards,
Doug

___
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


8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland
Hello,

I'm trying to get an 8.0-RELEASE-p2 amd64 box to not crash when
running benchmarks/unixbench.  The box in question has 4GB RAM running
6 SCSI disks in a RAID1Z.

dmesg | grep memory
real memory  = 4294967296 (4096 MB)
avail memory = 3961372672 (3777 MB)

zpool status
  pool: bethesda
 state: ONLINE
 scrub: none requested
config:

NAME   STATE READ WRITE CKSUM
bethesda   ONLINE   0 0 0
  raidz1   ONLINE   0 0 0
gpt/disk0  ONLINE   0 0 0
gpt/disk1  ONLINE   0 0 0
gpt/disk2  ONLINE   0 0 0
gpt/disk3  ONLINE   0 0 0
gpt/disk4  ONLINE   0 0 0
gpt/disk5  ONLINE   0 0 0


It appears unixbench causes the mem exhaustion when running the fstime
/ fsbuffer / fsdisk programs, depending on what I've got in
/boot/loader.conf

I began with a system with no tunables in /boot/loader.conf
(vm.kmem_size and vm.kmem_size_max).  Then I tried increasing
vm.kmem_size and vm.kmem_size_max a GB at a time, until I was at 4GB.

At every increase, the system panicked with a kmem exhaustion, until I
used the 4GB settings.  At that time, the system system became
unresponsive and had to be reset.

So the question is, can ZFS be tuned to not panic or hang no matter
what I throw at it?  In this case, it's the ancient and innocuous
unixbench utility.

This is a test box right now and I'm more than willing to try various
tests or tweaks to get 8.x FreeBSD/ZFS into a stable state.


-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland

On Wed, January 13, 2010 11:55, Ivan Voras wrote:
 Doug Poland wrote:

 So the question is, can ZFS be tuned to not panic or hang no matter
 what I throw at it?

 Apparently not.

   I began with a system with no tunables in /boot/loader.conf
   (vm.kmem_size and vm.kmem_size_max).  Then I tried increasing
   vm.kmem_size and vm.kmem_size_max a GB at a time, until I was at
 4GB.

 Try adding vfs.zfs.arc_max=512M to /boot/loader.conf.

Would you suggest tweaking the vm.kmem_size tunables in addition to
arc_max?



-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland

On Wed, January 13, 2010 12:35, Ivan Voras wrote:

 Try adding vfs.zfs.arc_max=512M to /boot/loader.conf.

 Would you suggest tweaking the vm.kmem_size tunables in addition to
 arc_max?

 No, unless they auto-tune to something lesser than approximately
 arc_max*3.

 I try to set arc_max to be a third (or a quarter) the kmem_size, and
 tune kmem_size ad_hoc to suit the machine and its purpose.

 The reason for this is that arc_max is just a guideline, not a hard
 limit... the ZFS ARC usage can and will spike to much larger values,
 usually in the most inopportune moment.

This is the state of the machine when it panicked this time:

panic: kmem_malloc(131072): kmem_map too small: 1296957440 total
allocated
cpuid = 1

/boot/loader.conf: vfs.zfs.arc_max=512M
vfs.numvnodes: 660
vfs.zfs.arc_max: 536870912
vfs.zfs.arc_meta_limit: 134217728
vfs.zfs.arc_meta_used: 7006136
vfs.zfs.arc_min: 67108864
vfs.zfs.zil_disable: 0
vm.kmem_size: 1327202304
vm.kmem_size_max: 329853485875

Using a handy little script I found posted in several places, I was
monitoring memory:

TEXT 15373968   14.66   MiB
DATA   1536957440   1465.76 MiB
TOTAL  1552331408   1480.42 MiB

Where TEXT = a sum of kldstat memory values
and   DATA = a sum of vmstat -m values

Is there a next step to try, or is this chasing a wild goose?


-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland

On Wed, January 13, 2010 13:57, Ivan Voras wrote:
 2010/1/13 Doug Poland d...@polands.org:

 This is the state of the machine when it panicked this time:

 panic: kmem_malloc(131072): kmem_map too small: 1296957440 total
 allocated
 cpuid = 1

 /boot/loader.conf: vfs.zfs.arc_max=512M
 vfs.numvnodes: 660
 vfs.zfs.arc_max: 536870912
 vfs.zfs.arc_meta_limit: 134217728
 vfs.zfs.arc_meta_used: 7006136
 vfs.zfs.arc_min: 67108864
 vfs.zfs.zil_disable: 0
 vm.kmem_size: 1327202304
 vm.kmem_size_max: 329853485875

 (from the size of arc_max I assume you did remember to reboot after
 changing loader.conf and before testing again but just checking - did
 you?)

Yes, I did reboot


 Can you monitor and record kstat.zfs.misc.arcstats.size sysctl while
 the test is running (and crashing)?

Certainly


 This looks curious - your kmem_max is ~~ 1.2 GB, arc_max is 0.5 GB and
 you are still having panics. Is there anything unusual about your
 system? Like unusually slow CPU, unusually fast or slow drives?

Don't think there is anything unusual.  This is 5 year old HP DL385.
It has two 2.6GHz Opteron 252 CPUs.  The disks are 6x36GB P-SCSI. 
There are behind an HP Smart Array 6i controller.  I had to configure
each drive as RAID0 in order make it visible to the OS.  Kinda hokey
if you ask me.

dmesg | grep -i CPU
CPU: AMD Opteron(tm) Processor 252 (2605.92-MHz K8-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs

smartctl -a /dev/da0
Device: COMPAQ   RAID 0  VOLUME   Version: OK
Device type: disk
Local Time is: Wed Jan 13 14:21:44 2010 CST
Device does not support SMART

dmesg | grep -i smart
ciss0: HP Smart Array 6i port 0x5000-0x50ff mem
0xf7ef-0xf7ef1fff,0xf7e8-0xf7eb irq 24 at device 4.0 on
pci2

 I don't have any ideas smarter than reducing arc_max by half then try
 again and continue reducing it until it works. It would be very
 helpful if you could monitor the kstat.zfs.misc.arcstats.size sysctl
 while you are doing the tests to document what is happening to the
 system. If it by any chance stays the same you should probably monitor
 vmstat -m.

OK, will do monitor on the next run.  Thanks for your help so far.


-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland

On Wed, January 13, 2010 13:57, Ivan Voras wrote:
 2010/1/13 Doug Poland d...@polands.org:


 Can you monitor and record kstat.zfs.misc.arcstats.size sysctl while
 the test is running (and crashing)?

 This looks curious - your kmem_max is ~~ 1.2 GB, arc_max is 0.5 GB and
 you are still having panics. Is there anything unusual about your
 system? Like unusually slow CPU, unusually fast or slow drives?

 I don't have any ideas smarter than reducing arc_max by half then try
 again and continue reducing it until it works. It would be very
 helpful if you could monitor the kstat.zfs.misc.arcstats.size sysctl
 while you are doing the tests to document what is happening to the
 system. If it by any chance stays the same you should probably monitor
 vmstat -m.


Ok, I re-ran with same config, but this time monitoring the sysctls
you requested* ( and the rest I was watching ):

panic: kmem_malloc(131072): kmem_map too small: 1292869632 total
allocated
cpuid = 0

* kstat.zfs.misc.arcstats.size: 166228176
  vfs.numvnodes: 2848
  vfs.zfs.arc_max: 536870912
  vfs.zfs.arc_meta_limit: 134217728
  vfs.zfs.arc_meta_used: 132890832
  vfs.zfs.arc_min: 67108864
  vfs.zfs.cache_flush_disable: 0
  vfs.zfs.debug: 0
  vfs.zfs.mdcomp_disable: 0
  vfs.zfs.prefetch_disable: 1
  vfs.zfs.recover: 0
  vfs.zfs.scrub_limit: 10
  vfs.zfs.super_owner: 0
  vfs.zfs.txg.synctime: 5
  vfs.zfs.txg.timeout: 30
  vfs.zfs.vdev.aggregation_limit: 131072
  vfs.zfs.vdev.cache.bshift: 16
  vfs.zfs.vdev.cache.max: 16384
  vfs.zfs.vdev.cache.size: 10485760
  vfs.zfs.vdev.max_pending: 35
  vfs.zfs.vdev.min_pending: 4
  vfs.zfs.vdev.ramp_rate: 2
  vfs.zfs.vdev.time_shift: 6
  vfs.zfs.version.acl: 1
  vfs.zfs.version.dmu_backup_header: 2
  vfs.zfs.version.dmu_backup_stream: 1
  vfs.zfs.version.spa: 13
  vfs.zfs.version.vdev_boot: 1
  vfs.zfs.version.zpl: 3
  vfs.zfs.zfetch.array_rd_sz: 1048576
  vfs.zfs.zfetch.block_cap: 256
  vfs.zfs.zfetch.max_streams: 8
  vfs.zfs.zfetch.min_sec_reap: 2
  vfs.zfs.zil_disable: 0
  vm.kmem_size: 1327202304
  vm.kmem_size_max: 329853485875
  vm.kmem_size_min: 0
  vm.kmem_size_scale: 3
* vmstat -m | grep solaris: 1496232960



-- 
Regards,
Doug

___
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: 8.0-R-p2 ZFS: unixbench causing kmem exhaustion panic

2010-01-13 Thread Doug Poland


 Ok, I re-ran with same config, but this time monitoring the sysctls
 you requested* ( and the rest I was watching ):

I failed to mention that

kstat.zfs.misc.arcstats.size

seemed to fluctuate between about 164,000,00 and 180,000,000 bytes
during this last run



-- 
Regards,
Doug

___
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


Advanced printing/layout tools

2010-01-01 Thread Doug Poland

Hello,

I've been tasked to print a phonebook style directory for an 
organization.  The data will be coming out of a MySQL database and can 
be easily saved as comma-delimited, or whatever text format I need.


My specific question is, what open source tools would one use to tackle 
a project like this?  I'm very comfortable in a CLI and do not 
require/desire a GUI.


Thank you and Happy New Year!

Doug Poland
___
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 printing/layout tools

2010-01-01 Thread Doug Poland

On 2010-01-01 11:42, Polytropon wrote:

On Fri, 01 Jan 2010 11:30:09 -0600, Doug Polandd...@polands.org  wrote:

Hello,

I've been tasked to print a phonebook style directory for an
organization.  The data will be coming out of a MySQL database and can
be easily saved as comma-delimited, or whatever text format I need.

My specific question is, what open source tools would one use to tackle
a project like this?  I'm very comfortable in a CLI and do not
require/desire a GUI.


I'd suggest to use awk + LaTeX. I've been very happy with this
combination for a various number of tasks - just as you mentioned:
Data coming from some kind of database (MySQL, CSV or whatever)
and should then be layouted.




Thanks for the info. I had a feeling I'd be introduced to LaTeX sooner
or later.  Should be plenty of web resources for such a venerable tool.


--
Regards,
Doug
___
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 printing/layout tools

2010-01-01 Thread Doug Poland

On 2010-01-01 14:18, Roland Smith wrote:

On Fri, Jan 01, 2010 at 07:36:25PM +0100, Polytropon wrote:

On Fri, 1 Jan 2010 19:24:21 +0100, Roland Smithrsm...@xs4all.nl  wrote:

If the material is more than one page (which I suspect is the case her), a
tabular environment for the complete list isn't such a good choice.

It would be a better idea to use a tabular environment for every single
entry. That way, every entry becomes a box for LaTeX to sort out how to fit
on a page


That's a very good advice - I needed to do that, too.
A tabular environment that grows larger than page height
won't be truncated automatically. The smaller the parts
of your document are (boxes that represent paragraphs,
tabulars, figures etc.), the more easily LaTeX can manage
them. In nearly every case, LaTeX does it right.

An option is to check how many entries fit onm one page
(or one column of the page) and then let awk count them.
If the amount is reached, the tabular is \end'ed, the
page / column break is given, and a new tabular is
\begin'ed.


Stacking boxes is TeX's job. And you should let it do that, because it is a
lot better at it than awk will ever be. ;-)


be installed, e. g. with pkg_add -r teTeX. Of course, you
stay in the free land of open source with this combination.


I prefer the TeXLive distribution, but that is a matter of taste I guess.


As far as I know, TeXLive cannot be installed automatically
via FreeBSD's ports / packages subsystem.


No, but installing it is easy. You mount the cd/dvd (image) and run
'tlinstall.sh'. The latest TeXLive comes with FreeBSD i386 and amd64 binaries.

The only thing is that you have to modify the ports (such as aucTeX) that
require TeX to point to the right bits. It's manageable.

Roland


Thanks for the info so far.  I have much to learn about LaTeX, that is 
certain.  To complicate matters, the output will be on US Letter, 
landscape, multi-column, multi-sided, booklet format.  No doubt LaTeX 
will handle the landscape, letter, and multi-column, but I'm not sure 
about booklet, multi-sided.  I have some experience with print/psutils 
doing duplex, booklet printing.



--
Regards,
Doug
___
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: hp 10-in mini?

2009-11-23 Thread Doug Poland


On Nov 23, 2009, at 16:54, Gary Kline kl...@thought.org wrote:


   gang,

   I rarely glance at any come-on advertisement, but I just got
   one by amazon that has a $380 HP Mini 10 computer for $200.

   I want to use something about this size for my type-and-speech
   computer.  I'm thinking more of the ASUS 9 notebook.  What
   are people's thoughts on this?

   (Yes, this is still an attempt to drive sales in a bad
   downturn. etc.  Still, altho these tiny computers many be
   manufactured in the same plant by the same corporation, it may
   not make any difference.)

   anybody on-list who cares to share?

   gary

My wife has one of these running XP. I've booted and run both 7.1- 
RELEASE and 8.0-RC2 from external USB. It's a nice little piece of  
hardware. Unfortunately, the wireless chipset was not recognized. I  
did not pursue it any further. 
___

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


VirtualBox build failure on 7.2-stable (amd64)

2009-10-10 Thread Doug Poland
Hello,

I'm trying to build VirtualBox 3.0.51.r22902_2 on 7.2-stable amd64 and
I keep getting the following failure:


kBuild: Compiling RuntimeR0Drv -
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebsd.c
In file included from
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h:60,
 from
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c:34:
/sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory
kmk[2]: ***
[/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o]
Error 1
The failing command:
@cc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused
-Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes
-Wnested-externs -O2 -fformat-extensions -ffreestanding
-fno-strict-aliasing -fno-common -finline-limit=8000
-fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer
-nostdinc -std=c99 -m64 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -Wundef
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/gen-sys-hdrs
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/include
-I/sys -I/sys/contrib/altq -I/sys/../include -I/usr/include
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/include
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release
-DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\/usr/local/share/virtualbox\
-DRTPATH_APP_PRIVATE_ARCH=\/usr/local/lib/virtualbox\
-DRTPATH_SHARED_LIBS=\/usr/local/lib/virtualbox\
-DRTPATH_APP_DOCS=\/usr/local/share/doc/virtualbox\ -DRT_OS_FREEBSD
-D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -D_KERNEL -DKLD_MODULE
-DIN_RING0 -DIN_RT_R0 -DIN_RT_R0 -DRT_WITH_VBOX
-DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL
-Wp,-MD,/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o.dep
-Wp,-MT,/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o
-Wp,-MP -o
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c
kmk[2]: *** Waiting for unfinished jobs
In file included from
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h:60,
 from
/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebsd.c:34:
/sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory
kmk[2]: ***
[/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/RuntimeR0Drv/r0drv/freebsd/assert-r0drv-freebsd.o]
Error 1
The failing command:
@cc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused
-Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes
-Wnested-externs -O2 -fformat-extensions -ffreestanding
-fno-strict-aliasing -fno-common -finline-limit=8000
-fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer
-nostdinc -std=c99 -m64 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -Wundef
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/gen-sys-hdrs
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/include
-I/sys -I/sys/contrib/altq -I/sys/../include -I/usr/include
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/include
-I/usr/tmp/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release
-DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\/usr/local/share/virtualbox\
-DRTPATH_APP_PRIVATE_ARCH=\/usr/local/lib/virtualbox\
-DRTPATH_SHARED_LIBS=\/usr/local/lib/virtualbox\

Re: Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Doug Poland
On Wed, Oct 07, 2009 at 03:22:33PM -0400, Maxim Khitrov wrote:
 Hello all,
 
 I have pf filtering traffic to our network. Is there any easy way to
 see the current bandwidth usage sorted by ip? Someone is using up
 almost 100% of total bandwidth and parsing pfctl -ss -v isn't
 getting me anywhere.
 
sysutils/pftop is your friend :)
___
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: panic: Journal overflow

2009-09-24 Thread Doug Poland

On Wed, September 23, 2009 21:07, Adam Vande More wrote:
 On Wed, Sep 23, 2009 at 6:35 PM, Doug Poland d...@polands.org wrote:

 Hello,

 I've got a 7.2-RELEASE (i386) box that has recently experienced
 several panics when writing to a gjournaled partition.  On this
 particular partition, the journal device is mixed in with the data
 provider.  In both cases, I was trying to copy a 19GB file from an
 external USB device (da1p16.journal) to the filesystem on a 3Ware
 RAID-10 (da7p0.journal).

 This afternoon I saw...

 panic: Journal overflow (joffset=xxx active=
 inactive=zz)
 cpuid = 1
 Uptime:
 Physical memory: 1011 MB
 Dumping 351MB

 Fatal trap 12: page fault while in kernel mode
 cpuid = 0, apic id = 00
 fault virtual address= 0xea60
 fault code   = supervisor write, page not present
 instructor pointer   = 0x20: 0xc04715b6
 stack pointer= 0x28: 0xe6ab0320
 frame pointer= 0x28: 0xe6ab03bc
 code segment = base 0x0, limit 0xf, type 0x1b
   DPL 0, pres 1, def32 1, gran 1
 processor eflags = interrupt enabled, resume, 10PL = 0
 current process  = 48 (gjournal da0p7)
 trap number  = 12

 Does this mean my journal is not big enough for the amount of
 data I'm trying to push through?


 No, it's kinda like the journal is a is a buffer and you overflowed
 it.  You can address this by two methods:

 1)  slow the rate of transfer
 2)  make a bigger journal

 Any suggestions on how to resolve this?


 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop/understanding-journaling.html


Well, that's what I was afraid of.  Looks like a training opportunity
to remove and re-implement journaling on an existing partition, after
backups, of course.  Thanks for your help.



-- 
Regards,
Doug

___
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


panic: Journal overflow

2009-09-23 Thread Doug Poland
Hello,

I've got a 7.2-RELEASE (i386) box that has recently experienced
several panics when writing to a gjournaled partition.  On this
particular partition, the journal device is mixed in with the data
provider.  In both cases, I was trying to copy a 19GB file from an
external USB device (da1p16.journal) to the filesystem on a 3Ware
RAID-10 (da7p0.journal).

This afternoon I saw...

panic: Journal overflow (joffset=xxx active= 
inactive=zz)
cpuid = 1
Uptime:
Physical memory: 1011 MB
Dumping 351MB

Fatal trap 12: page fault while in kernel mode
cpuid = 0, apic id = 00
fault virtual address= 0xea60
fault code   = supervisor write, page not present
instructor pointer   = 0x20: 0xc04715b6
stack pointer= 0x28: 0xe6ab0320
frame pointer= 0x28: 0xe6ab03bc
code segment = base 0x0, limit 0xf, type 0x1b
   DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, 10PL = 0
current process  = 48 (gjournal da0p7)
trap number  = 12

Does this mean my journal is not big enough for the amount of data I'm
trying to push through?  Any suggestions on how to resolve this?

I can provide a lot more data if necessary.  Thanks for your help!

-- 
Regards,
Doug

___
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


NFS issues on 8.0-BETA4

2009-09-11 Thread Doug Poland

Hello,

I have a 7.2-RELEASE(i386) server hosting NFSv3.  I've installed
8.0-BETA4(amd64) in a VMware 6.5 workstation virtual machine.

I cannot sucessfully mount exports from the NFSv3 server on the
8.0-BETA4 client.  All works well with 7.2 clients.

The strange thing is, the directory in which I mount the nfs
filesystem disappears, and I get an error when I attempt to access the
directory.


On working the server, I set these knobs in /etc/rc.conf:
mountd_flags=-l
nfs_reserved_port_only=NO
nfs_server_enable=YES
nfs_server_flags=-u -n 6
rpc_lockd_enable=YES
rpc_statd_enable=YES

On the client, I set these knobs in /etc/rc.conf:
nfs_client_enable=YES
rpc_lockd_enable=YES
rpc_statd_enable=YES

client#  mount -t nfs -o
nfsv3,retrycnt=3,intr,soft,rsize=32768,wsize=32768 fs:/usr/ports
/usr/ports

I get a long delay (several seconds)

client# echo $?
0

client# ls /usr/ports
ls: /usr/ports: Permission denied

client#  echo $?
1

client# mount -t nfs
fs:/usr/ports on /usr/ports (nfs)


client# umount /usr/ports
client#  ls -ld /usr/ports
drwxr-xr-x  2 root  wheel  512 Sep 11 08:54 /usr/ports

If I simplify the mount command, I get a different error:
client# mount -t nfs fs:/usr/ports /usr/ports
mount: /usr/ports: Permission denied
client# echo $?
64

client# mount -t nfs
fs:/usr/ports on /usr/ports (nfs)


Any suggestions?


-- 
Regards,
Doug



-- 
Regards,
Doug

___
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


Boot from RAIDZ in 8.0-BETA3?

2009-08-29 Thread Doug Poland

Hello,

I'm experimenting with trying to boot from a RAIDZ on 8.0-BETA3 (amd64). 
 The environment is VMware.  I've been googling and reading what I can 
on this procedure, which sounds possible, but I have been unable to 
successfully get a system up and running with my technique.


So far, this is what I've done...

Installed 8.0-BETA3 on virtual machine's /dev/ad0
Shutdown, added three, 8GB SCSI disks to the VM,
Power on VM:

gpart create -s GPT da0
gpart add -b 34 -s 128 -t freebsd-boot da0
gpart add -b 162 -s 16777021 -t freebsd-zfs da0
gpart create -s GPT da1
gpart add -b 34 -s 128 -t freebsd-boot da1
gpart add -b 162 -s 16777021 -t freebsd-zfs da1
gpart create -s GPT da2
gpart add -b 34 -s 128 -t freebsd-boot da2
gpart add -b 162 -s 16777021 -t freebsd-zfs da2
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da2
zpool create bethesda raidz /dev/da[0-2]p2
cd /bethesda/  dump -0aLC16 -f- / | restore -rf-
echo 'zfs_load=YES'  /bethesda/boot/loader.conf
echo 'vfs.root.mountfrom=zfs:bethesda'  /bethesda/boot/loader.conf
echo 'zfs_enable=YES'  /bethesda/etc/rc.conf
mkdir /boot/zfs
zpool export bethesda  zpool import bethesda

Shutdown, remove ad0 from the virtual machine,
Power on and it see...

scrolls off screen
error 4 lba 4292979877
error 4 lba 4292979883
error 4 lba 4292979883
error 4 lba 4292979882
ZFS: i/o error - all block copies unavailable
Invalid format

FreeBSD/i386 boot
Default: bethesda:/boot/kernel/kernel
boot:
error 4 lba 4293052915
error 4 lba 4293052914
error 4 lba 4293052915
error 4 lba 4292979494
error 4 lba 4292979493
error 4 lba 4292979493
error 4 lba 4292980438
error 4 lba 4292980437
error 4 lba 4292980437
ZFS: i/o error - all block copies unavailable
Invalid format

FreeBSD/i386 boot
Default: bethesda:/boot/kernel/kernel
boot:

And this is far as I have been able to get.  Can anyone identify what 
I'm doing wrong, or overlooking?  Pointers to docs, man pages, URLs 
appreciated.



--
Regards,
Doug
___
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: Partions per slice limitation removed?

2009-08-14 Thread Doug Poland

On Fri, August 14, 2009 05:47, Vincent Hoffman wrote:
 Mak Kolybabi wrote:
 On 2009-08-13 13:41, Doug Poland wrote:

 I thought I recalled reading, within the last few months, that
 there is no longer a 8 partition/slice limitation in FreeBSD.
 I've been googling and reading man pages to verify that but
 cannot find any documentation to support it. Was I dreaming?


 No, you were not dreaming. When in doubt, check the source. From
 head/sbin/bsdlabel/bsdlabel.c [1]:

 Allow bsdlabel to operate on labels that have at most 26
 partitions by virtue of there not being any (lower-case) letters
 avaliable for more partitions.

 [1]
 http://svn.freebsd.org/viewvc/base?view=revisionrevision=174501


 Indeed and from http://ivoras.sharanet.org/freebsd/freebsd8.html (a
 reasonably complete list of whats comming in 8.0) it says

 bsdlabel gets extended to 26 partitions

 Status: Committed to -CURRENT Will appear in 8.0: sure Author: Marcel
 Moolenaar web:
 http://lists.freebsd.org/pipermail/cvs-src/2007-December/084949.html

 bsdlabel is (finally!) extended to support more than 8 partitions.
 The new limit of 26 partitions comes from the number of lower-case
 letters.

 To make use of this change, GEOM_PART needs to be used instead of
 GEOM_BSD (this requires custom kernel configurations).

Ah, Ivan's site, that's where I saw it.  Thank you.  Kinda surprised
it didn't turn up on a google search.


-- 
Regards,
Doug

___
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


Partions per slice limitation removed?

2009-08-13 Thread Doug Poland
Hello,

I thought I recalled reading, within the last few months, that there
is no longer a 8 partition/slice limitation in FreeBSD.  I've been
googling and reading man pages to verify that but cannot find any
documentation to support it.  Was I dreaming?


-- 
Regards,
Doug

___
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: Moxa 8-port serial multiplexor, how-to

2009-08-05 Thread Doug Poland
On Wed, Aug 05, 2009 at 05:54:30PM -0600, Tim Judd wrote:
 On 7/29/09, Doug Poland d...@polands.org wrote:
  On Wed, July 29, 2009 12:04, WATANABE Kazuhiro wrote:
 
  At Fri, 24 Jul 2009 10:32:52 -0500,
  Doug Poland wrote:
  Hello,
 
  I'm trying to get a Moxa Technologies C168H/PCI 8-port mux card
  working in 7.2-RELEASE(i386).
 
  I've recompiled a GENERIC kernel with
 
options COM_MULTIPORT
 
  and loaded the puc(4) module.  I don't have any new ttyd? or cuad?
  devices in /dev.
 
  After reading the handbook(26.2) and man puc(4), sio(4).  man
  sio(4) talks about adding /boot/device.hints but not for my
  particular hardware.  I'm at a loss on how to continue.
 
  Suggestions, pointers, URLs welcome.
 
 
  Hi.
 
  If you want to load the puc(4) driver as a loadable module, you
  should load the sio(4) or uart(4) driver module as well.  But these
  drivers are included in the GENERIC kernel.  So you should to
  remove sio(4) or uart(4) from the kernel and load it as a loadable
  module.
 
  The other solution is to builtin the puc(4) driver to the
  kernel. i.e.:
 
 sio(4)  puc(4)  status
 or uart(4)
 
 module  module  work
 builtin builtin work
 builtin module  not work - current choice?
 module  builtin not work
 
 (module = loadable module, builtin = kernel builtin)
 
  Other modifications will not be needed for PCI multiport cards.
 
  Watanabe,
 
  I removed devices sio and uart from my kernel, loaded them as
  modules in /boot/loader.conf, and now I have 8 additional cuad?
  devices!
 
 
 Trying to help a buddy who also has a Moxa multiport serial card.  He
 followed this thread and isn't seeing the same success
 
 Doug,
 can I get the following in a pastebin or in this thread?
 
 pciconf -lvvv
 
Certainly...

hos...@pci0:0:0:0:  class=0x06 card=0x01511028 chip=0x25708086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82865G/PE/P, 82848P DRAM Controller / Host-Hub Interface'
class  = bridge
subclass   = HOST-PCI
vgap...@pci0:0:2:0: class=0x03 card=0x01511028 chip=0x25728086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82865G Integrated Graphics Device'
class  = display
subclass   = VGA
uh...@pci0:0:29:0:  class=0x0c0300 card=0x01511028 chip=0x24d28086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:1:  class=0x0c0300 card=0x01511028 chip=0x24d48086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:2:  class=0x0c0300 card=0x01511028 chip=0x24d78086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:3:  class=0x0c0300 card=0x01511028 chip=0x24de8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
class  = serial bus
subclass   = USB
eh...@pci0:0:29:7:  class=0x0c0320 card=0x01511028 chip=0x24dd8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) USB 2.0 EHCI Controller'
class  = serial bus
subclass   = USB
pc...@pci0:0:30:0:  class=0x060400 card=0x chip=0x244e8086 rev=0xc2 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/4/5/5/6/7/8/9,63xxESB) Hub Interface 
to PCI Bridge'
class  = bridge
subclass   = PCI-PCI
is...@pci0:0:31:0:  class=0x060100 card=0x chip=0x24d08086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) LPC Interface Bridge'
class  = bridge
subclass   = PCI-ISA
atap...@pci0:0:31:1:class=0x01018a card=0x01511028 chip=0x24db8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) EIDE Controller'
class  = mass storage
subclass   = ATA
atap...@pci0:0:31:2:class=0x01018f card=0x01511028 chip=0x24d18086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB (ICH5) SATA Controller'
class  = mass storage
subclass   = ATA
no...@pci0:0:31:3:  class=0x0c0500 card=0x01511028 chip=0x24d38086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) SMBus Controller'
class  = serial bus
subclass   = SMBus
no...@pci0:0:31:5:  class=0x040100 card=0x01511028 chip=0x24d58086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '815B104D

Re: Moxa 8-port serial multiplexor, how-to

2009-08-05 Thread Doug Poland
On Wed, Aug 05, 2009 at 06:34:45PM -0600, Tim Judd wrote:
 On 8/5/09, Doug Poland d...@polands.org wrote:
  On Wed, Aug 05, 2009 at 05:54:30PM -0600, Tim Judd wrote:
  On 7/29/09, Doug Poland d...@polands.org wrote:
   On Wed, July 29, 2009 12:04, WATANABE Kazuhiro wrote:
  
   At Fri, 24 Jul 2009 10:32:52 -0500,
   Doug Poland wrote:
   Hello,
  
   I'm trying to get a Moxa Technologies C168H/PCI 8-port mux card
   working in 7.2-RELEASE(i386).
  
   I've recompiled a GENERIC kernel with
  
 options COM_MULTIPORT
  
   and loaded the puc(4) module.  I don't have any new ttyd? or cuad?
   devices in /dev.
  
   After reading the handbook(26.2) and man puc(4), sio(4).  man
   sio(4) talks about adding /boot/device.hints but not for my
   particular hardware.  I'm at a loss on how to continue.
  
   Suggestions, pointers, URLs welcome.
  
  
   Hi.
  
   If you want to load the puc(4) driver as a loadable module, you
   should load the sio(4) or uart(4) driver module as well.  But
   these drivers are included in the GENERIC kernel.  So you should
   to remove sio(4) or uart(4) from the kernel and load it as a
   loadable module.
  
   The other solution is to builtin the puc(4) driver to the
   kernel. i.e.:
  
   sio(4)  puc(4)  status
   or uart(4)
   
   module  module  work
   builtin builtin work
   builtin module  not work - current choice?
   module  builtin not work
   
   (module = loadable module, builtin = kernel builtin)
  
   Other modifications will not be needed for PCI multiport cards.
  
   Watanabe,
  
   I removed devices sio and uart from my kernel, loaded them as
   modules in /boot/loader.conf, and now I have 8 additional cuad?
   devices!
  
 
  Trying to help a buddy who also has a Moxa multiport serial card.
  He followed this thread and isn't seeing the same success
 
  Doug,
  can I get the following in a pastebin or in this thread?
 
  pciconf -lvvv
 
  Certainly...
 
  hos...@pci0:0:0:0:  class=0x06 card=0x01511028 chip=0x25708086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82865G/PE/P, 82848P DRAM Controller / Host-Hub Interface'
  class  = bridge
  subclass   = HOST-PCI
  vgap...@pci0:0:2:0: class=0x03 card=0x01511028 chip=0x25728086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82865G Integrated Graphics Device'
  class  = display
  subclass   = VGA
  uh...@pci0:0:29:0:  class=0x0c0300 card=0x01511028 chip=0x24d28086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
  class  = serial bus
  subclass   = USB
  uh...@pci0:0:29:1:  class=0x0c0300 card=0x01511028 chip=0x24d48086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
  class  = serial bus
  subclass   = USB
  uh...@pci0:0:29:2:  class=0x0c0300 card=0x01511028 chip=0x24d78086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
  class  = serial bus
  subclass   = USB
  uh...@pci0:0:29:3:  class=0x0c0300 card=0x01511028 chip=0x24de8086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller'
  class  = serial bus
  subclass   = USB
  eh...@pci0:0:29:7:  class=0x0c0320 card=0x01511028 chip=0x24dd8086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) USB 2.0 EHCI Controller'
  class  = serial bus
  subclass   = USB
  pc...@pci0:0:30:0:  class=0x060400 card=0x chip=0x244e8086 rev=0xc2
  hdr=0x01
  vendor = 'Intel Corporation'
  device = '82801 Family (ICH2/3/4/4/5/5/6/7/8/9,63xxESB) Hub
  Interface to PCI Bridge'
  class  = bridge
  subclass   = PCI-PCI
  is...@pci0:0:31:0:  class=0x060100 card=0x chip=0x24d08086 rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) LPC Interface Bridge'
  class  = bridge
  subclass   = PCI-ISA
  atap...@pci0:0:31:1:class=0x01018a card=0x01511028 chip=0x24db8086 
  rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB/ER (ICH5/ICH5R) EIDE Controller'
  class  = mass storage
  subclass   = ATA
  atap...@pci0:0:31:2:class=0x01018f card=0x01511028 chip=0x24d18086 
  rev=0x02
  hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801EB (ICH5) SATA Controller'
  class  = mass storage
  subclass   = ATA
  no...@pci0:0:31:3:  class=0x0c0500 card=0x01511028 chip=0x24d38086 rev=0x02

Re: Moxa 8-port serial multiplexor, how-to

2009-07-29 Thread Doug Poland
On Wed, July 29, 2009 12:04, WATANABE Kazuhiro wrote:

 At Fri, 24 Jul 2009 10:32:52 -0500,
 Doug Poland wrote:
 Hello,

 I'm trying to get a Moxa Technologies C168H/PCI 8-port mux card
 working in 7.2-RELEASE(i386).

 I've recompiled a GENERIC kernel with

   options COM_MULTIPORT

 and loaded the puc(4) module.  I don't have any new ttyd? or cuad?
 devices in /dev.

 After reading the handbook(26.2) and man puc(4), sio(4).  man sio(4)
 talks about adding /boot/device.hints but not for my particular
 hardware.  I'm at a loss on how to continue.

 Suggestions, pointers, URLs welcome.


 Hi.

 If you want to load the puc(4) driver as a loadable module, you should
 load the sio(4) or uart(4) driver module as well.  But these drivers
 are included in the GENERIC kernel.  So you should to remove sio(4) or
 uart(4) from the kernel and load it as a loadable module.

 The other solution is to builtin the puc(4) driver to the
 kernel. i.e.:

   sio(4)  puc(4)  status
   or uart(4)
   
   module  module  work
   builtin builtin work
   builtin module  not work - current choice?
   module  builtin not work
   
   (module = loadable module, builtin = kernel builtin)

 Other modifications will not be needed for PCI multiport cards.

I removed devices sio and uart from my kernel, loaded them as modules
in /boot/loader.conf, and now I have 8 additional cuad? devices!

Many thanks for your help.

-- 
Regards,
Doug

___
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: Moxa 8-port serial multiplexor, how-to

2009-07-28 Thread Doug Poland

On Sat, July 25, 2009 01:46, Polytropon wrote:
 On Fri, 24 Jul 2009 10:32:52 -0500, Doug Poland d...@polands.org
 wrote:
 After reading the handbook(26.2) and man puc(4), sio(4).  man sio(4)
 talks about adding /boot/device.hints but not for my particular
 hardware.  I'm at a loss on how to continue.

 Suggestions, pointers, URLs welcome.

 The file is /boot/device.hints. For each serial port, the
 following dataset has to be completed:

   hint.sio.N.at=isa
   hint.sio.N.port=0x3F8   ---+
   hint.sio.N.flags=0x10   ---+--- set up
   hint.sio.N.irq=4---+

 Still, I don't know how to determine the correct addresses
 and IRQs, maybe the documentation belonging to the expansion
 card can help...

Yeah, their product manual(PDF) doesn't help with this type of
information.  I'll email them and see if they can give me these data.

 If I see this correctly, each serial port should then be
 visible as a /dev/cuadN device file.

Thanks for your help.


-- 
Regards,
Doug

___
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: mutt with muttprofile and GnuPG-Support

2009-07-28 Thread Doug Poland

On Tue, July 28, 2009 11:49, Christian Grube wrote:
 Hi,

 I was wondering, why there is no IMAP/SMTP-Support in mutt
 or mutt-devel. I have had mutt-ng and muttprofile on my debianbox
 and it works like a charm.

 Is there a small hint for me to provide the same functionality under
 FreeBSD 8?

I've been using mutt-devel for years with IAMP support.  A quick look
at the Makefile leads me to believe IMAP support is built in and not a
configurable knob.


-- 
Regards,
Doug

___
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


Moxa 8-port serial multiplexor, how-to

2009-07-24 Thread Doug Poland
Hello,

I'm trying to get a Moxa Technologies C168H/PCI 8-port mux card
working in 7.2-RELEASE(i386).

I've recompiled a GENERIC kernel with

  options COM_MULTIPORT

and loaded the puc(4) module.  I don't have any new ttyd? or cuad?
devices in /dev.

After reading the handbook(26.2) and man puc(4), sio(4).  man sio(4)
talks about adding /boot/device.hints but not for my particular
hardware.  I'm at a loss on how to continue.

Suggestions, pointers, URLs welcome.


-- 
Regards,
Doug

___
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: where to buy Atheros mini pci-exress?

2009-07-20 Thread Doug Poland

On Sun, July 19, 2009 00:22, Espartano wrote:
 Hi folk, someone know where can I buy an Atheros mini pci-express card

 I want to get one of this card (Atheros mini pci-express card) for my
 laptop to use with freebsd of course but I can't to find out where or
 in what web page I could buy one.


I bought Intel TrueMobile Wireless LAN MiniPCI Cards for some Dell
laptops from http://portablecomponentsforall.com/

HTH,

-- 
Regards,
Doug

___
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


Bridge network device for VirtualBox

2009-07-05 Thread Doug Poland

Hello,

I'm experimenting with the new VirtualBox port and wand to implement a 
bridged network interface on the FreeBSD host.  Could someone point me 
to some docs that may assist me?  BTW, the handbook advanced networking 
section, 
http://www.freebsd.org/doc/en/books/handbook/network-bridging.html, 
doesn't seem to apply to this application.


Thanks!

--
Regards,
Doug
___
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: Bridge network device for VirtualBox

2009-07-05 Thread Doug Poland
On Sun, Jul 05, 2009 at 10:39:57PM +0200, Beat Gaetzi wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 Doug Poland wrote:
  Hello,
  
  I'm experimenting with the new VirtualBox port and wand to implement a
  bridged network interface on the FreeBSD host.  Could someone point me
  to some docs that may assist me? 
 
 Only NAT networking is available at the moment. I've updated the wiki
 page a few minutes ago with some other not working features:
 http://wiki.freebsd.org/VirtualBox
 
 Maybe this helps.
 
Thanks for the heads-up.  

-- 
Regards,
Doug
___
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: Bridge network device for VirtualBox

2009-07-05 Thread Doug Poland

Martin Wilke wrote:

-BEGIN PGP SIGNED MESSAGE-
On Sun, Jul 05, 2009 at 03:10:07PM -0500, Doug Poland wrote:

Hello,

I'm experimenting with the new VirtualBox port and wand to implement a 
bridged network interface on the FreeBSD host.  Could someone point me 
to some docs that may assist me?  BTW, the handbook advanced networking 
section, 
http://www.freebsd.org/doc/en/books/handbook/network-bridging.html, 
doesn't seem to apply to this application.


That's true, bridge network isn't ported yet:

http://wiki.freebsd.org/VirtualBox

Thanks for the heads up.  I look forward to trying out the port when 
it's ready.


--
Regards,
Doug
___
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: POLL: Linux preferences from FreeBSD users

2009-07-03 Thread Doug Poland

Daniel Underwood wrote:

QUESTION: Of the various modern Linux distributions, which do you
prefer? and why?

I'm very interested to see the spread of opinion about Linux
distributions from FreeBSD fans.

I've been using FreeBSD since 2.2.1 and I implement and support FreeBSD 
whenever I can.  That said, many companies already have a *nix 
infrastructure and one must use what one is given.  I find Red Hat is 
the most common linux distribution out there.  CentOS is often used by 
these same companies for dev and test environments.


Occasionally end-users will ask me to recommend a version of linux to 
play with and I point them to Ubuntu.



--
Regards,
Doug

___
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: restoring a dump file across the network

2009-06-30 Thread Doug Poland
On Tue, Jun 30, 2009 at 03:40:07PM -0600, Tim Judd wrote:
 On 6/30/09, Dave dave.meh...@gmail.com wrote:
  Hello,
  I've got a dumpfile taken of one machine and placed on another.
  Now i want to push it to a third, i was wondering if this were
  doable? Machine 3 does not have dump/restore on it can't get it,
  so needs to have it sent over an encrypted ssh connection.
 

 If you don't have the restore program, a dumpfile won't help you.
 You'd have to tar with permissions and untar on the opposite side.

A technique I've used with success in the past is nc(1).

receiver# cd /somewhere
receiver# nc -l 1234 | restore -rf-
sender%  nc receiver 1234  dumpfile

YMMV

Regards,
Doug

___
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


Bootable GPT USB device

2009-06-14 Thread Doug Poland
Hello,

I'm trying to create a bootable USB drive using the new GEOM_PART_
partitioning technology. Following gpart(8), I've done this...

 gpart create -s GPT da0
 gpart bootcode -b /boot/pmbr da0
 gpart add -b 34 -s 128 -t freebsd-boot da0
 gpart bootcode -p /boot/gptboot -i 1 da0
 gpart add -b 162 -s 2097152 -t freebsd-ufs da0
 gpart add -b 2097314  -s 8388608 -t freebsd-swap da0
 gpart add -b 10485922 -s 2097152 -t freebsd-ufs da0
 gpart add -b 12583074 -s 8388608 -t freebsd-ufs da0
 gpart add -b 20971682 -s 135329773 -t freebsd-ufs da0

# gpart show
=   34  156301421  da0  GPT  (75G)
 341281  freebsd-boot  (64K)
16220971522  freebsd-ufs  (1.0G)
209731483886083  freebsd-swap  (4.0G)
   1048592220971524  freebsd-ufs  (1.0G)
   1258307483886085  freebsd-ufs  (4.0G)
   20971682  1353297736  freebsd-ufs  (65G)

 newfs -L boot /dev/da0p2
 newfs -L swap /dev/da0p3
 newfs -UL tmp /dev/da0p4
 newfs -UL var /dev/da0p5
 gjournal load
 gjournal label /dev/da0p6
 newfs -L usrgj /dev/da0p6.journal

 mkdir -p /mnt/{boot,var,tmp,usr}
 mount /dev/ufs/boot /mnt/boot/
 mount /dev/ufs/tmp  /mnt/tmp
 mount /dev/ufs/var  /mnt/var/
 mount -o async /dev/ufs/usrgj /mnt/usr/

 cd /mnt/boot  dump -0aLuC32 -f- /| restore -rf-
 cd /mnt/tmp   dump -0aLuC32 -f- /tmp | restore -rf-
 cd /mnt/var   dump -0aLuC32 -f- /var | restore -rf-
 cd /mnt/usr   dump -0aLuC32 -f- /usr | restore -rf-

I've tried this on two systems now, 7.1-RELEASE i386 and 7.2-STABLE
amd64.  In each case, I cannot boot from the newly create USB drive. 
I know each machine is capable of USB boot as I have a 4GB thumbdrive
created with the traditional bsdlabel partitioning tools.  Each box
boots nicely off that USB disk.

So, question is, what am I doing wrong?  And, how can use the new disk
partitioning GEOM class to create a bootable, external, USB drive? 
Many thanks in advance.

-- 
Regards,
Doug








___
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: Advices for a jailed MySQL server

2009-05-11 Thread Doug Poland

On Mon, May 11, 2009 14:19, Martin Turgeon wrote:
 Bill Moran a écrit :
 In response to Martin Turgeon free...@optiksecurite.com:

 Hi everyone,

 I'm starting to build a new dedicated MySQL server. I will be
 using FreeBSD 7.2-REL. My plan is to jail the latest version of
 MySQL 5.0 and to put the MySQL data outside the jail. My
 objective is to be able to update MySQL without down time. My
 objective would be to create another up to date MySQL jail and
 when I'm ready to make the switch, just point the new jail to the
 data outside the jail using something like a nullfs mount.

 Is someone using something like this?

 Did someone have any advice about how to update a MySQL server
 without down time?

 Did someone have any advice on how to tune a dedicated MySQL
 server running FreeBSD 7.2 (Dual core Xeon, 4G RAM, mirror RAID
 on a PERC5 controler 2x146G 15K)?

 Thanks everyone for sharing your precious knowledge :)

 I expect that what you're trying to do will work, however it's
 horrifically error-prone during the upgrade procedure (what if you
 forget to stop the first MySQL before you start the new one!)

 If you need to do anything zero-downtime, then you probably want to
 run multiple MySQL instances and use database replication to keep
 the data in sync.  That way you just switch which DB is master,
 then upgrade the slave ... rinse/repeat.


 Hi and thanks for your reply. Sorry for the late response...

 I thought about the risk of the procedure and that's why I asked here
  hoping that someone had a better idea!

 Do you mean to have another jail with an up to date slave MySQL, get
 it in sync with the master and then switch the config file of the
 slave to make it a master, restart the new MySQL, change the config
 so that the apps are connecting to the new DB?

You may want to research using MySQL in dual-master mode.  In this
architecture, each MySQL instance is both a master and a slave.  Some
care must be taken in the configuration but is well-documented and
googalable.  I recently deployed such a configuration using a jail for
each instance.  Upgrading from 5.1.33 to 5.1.34 was a snap and there
was no down time.  In my case, I use a DNS CNAME to identify the
master instance that all clients access.


-- 
Regards,
Doug

___
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: Advices for a jailed MySQL server

2009-05-11 Thread Doug Poland


On Mon, May 11, 2009 14:19, Martin Turgeon wrote:
 Bill Moran a écrit :
 In response to Martin Turgeon free...@optiksecurite.com:

 Hi everyone,

 I'm starting to build a new dedicated MySQL server. I will be
 using FreeBSD 7.2-REL. My plan is to jail the latest version of
 MySQL 5.0 and to put the MySQL data outside the jail. My
 objective is to be able to update MySQL without down time. My
 objective would be to create another up to date MySQL jail and
 when I'm ready to make the switch, just point the new jail to the
 data outside the jail using something like a nullfs mount.

 Is someone using something like this?

 Did someone have any advice about how to update a MySQL server
 without down time?

 Did someone have any advice on how to tune a dedicated MySQL
 server running FreeBSD 7.2 (Dual core Xeon, 4G RAM, mirror RAID
 on a PERC5 controler 2x146G 15K)?

 Thanks everyone for sharing your precious knowledge :)

 I expect that what you're trying to do will work, however it's
 horrifically error-prone during the upgrade procedure (what if you
 forget to stop the first MySQL before you start the new one!)

 If you need to do anything zero-downtime, then you probably want to
 run multiple MySQL instances and use database replication to keep
 the data in sync.  That way you just switch which DB is master,
 then upgrade the slave ... rinse/repeat.


 Hi and thanks for your reply. Sorry for the late response...

 I thought about the risk of the procedure and that's why I asked here
  hoping that someone had a better idea!

 Do you mean to have another jail with an up to date slave MySQL, get
 it in sync with the master and then switch the config file of the
 slave to make it a master, restart the new MySQL, change the config
 so that the apps are connecting to the new DB?

You may want to research using MySQL in dual-master mode.  In this
architecture, each MySQL instance is both a master and a slave.  Some
care must be taken in the configuration but is well-documented and
googalable.  I recently deployed such a configuration using a jail for
each instance.  Upgrading from 5.1.33 to 5.1.34 was a snap and there
was no down time.  In my case, I use a DNS CNAME to identify the
master instance that all clients access.


-- 
Regards,
Doug



-- 
Regards,
Doug

___
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


Source update tag RELENG_7_2 != 7.2-RELEASE ?

2009-05-06 Thread Doug Poland
Hello,

Yesterday I did a source update on an i386 box to 7.2.  My
supfile uses RELENG_7_2

host# more /usr/local/etc/cvsup/sup/supfile
*default base=/usr/local/etc/cvsup
*default delete use-rel-suffix compress
*default host=cvsup8.us.freebsd.org
*default prefix=/usr
*default release=cvs tag=RELENG_7_2
src-all

After canonical steps:

host# csup -L2 /usr/local/etc/cvsup/sup/supfile
host# cd /usr/src
host# make buildworld buildkernel
host# make installkernel
host# make installworld
host# mergemaster -iU
host# shutdown -r now

I get a kernel identified as:

host# uname -r
7.2-RC2

So, I'm pretty sure I'm running 7.2-RELEASE.  But my kernel still says
7.2-RC2.  Did I do something wrong here?


-- 
Regards,
Doug

___
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: When a System Dies; Getting back in operation again.

2009-05-04 Thread Doug Poland
On Mon, May 04, 2009 at 04:30:53PM +0200, Jonathan McKeown wrote:
 On Monday 04 May 2009 15:59:14 Jerry McAllister wrote:
  On Mon, May 04, 2009 at 10:31:16AM +0200, Jonathan McKeown wrote:
 
   If you have kept the right information beforehand, you can
   actually restore your dumps onto ``bare metal'' without doing a
   partial install first, and with the same newfs settings for each
   partition as you originally had. You need to use bsdlabel and
   dumpfs -m and keep the output for rebuilding. The rest of this
   message is the details.
 
  If you have a specific reason to want your new filesystems' to have
  identical superblock info, you can use dumpfs -m, but you don't need
  to worry about all that. ? Just fdisk, bsdlabel and then let newfs
  take its defaults.
 
 Which of your filesystems currently has softupdates disabled? You may
 not care - but the point is that using dumpfs in the way I described
 will preserve that information (along with all the other tuning
 options) for people who do care.
 
 If you're restoring a complete machine from backup, the less you have
 to think about, the better. Knowing that my filesystems are going to
 be restored with whatever tuning options I was previously running
 with, without my having to try and remember, gives me peace of mind
 ahead of time.
 
Excellent discussion.  Along the lines of the less you have to think
about,  is there a technique for restoring geom meta-data on bare
metal?  Say you have a system built upon gmirror and gjournal.  One must
manually create the mirror and journal before restoring from dump.  But
the vital geom meta-data describing your mirror/journal is on the dump.


-- 
Regards,
Doug
___
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


To file a PR, or not to file a PR. That is the question.

2009-05-04 Thread Doug Poland
Hello,

A server running 7.1-RELEASE(i386) recently starting deadlocking when
multiple UFS2 snaphosts are being manipulated (via sysutil/freebsd-snapshot).

Upon searching the PR database, I found a problem repart that appears
similar (kern/94769) but with my level of expertise, I'm not certain.
My question, should I go ahead a file a PR, in the hope that more
visability of the issue is better, and therefore more likely to receive
attention?  


-- 
Regards,
Doug
___
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


portupgrade fu... AKA there has to be a better way

2009-04-04 Thread Doug Poland

Hello,

I'm upgrading a server from 6.4 to 7.1 and am going through the relative
pain of re-compiling all the ports.  It's not as easy portupgrade -af
because of all the special handling instructions of many ports.

I have not found an easy way to keep track of the ports that need to
be forcibly updated but have not undergone a version change.  Because I
approach the upgrade in steps, I need to run portupgrade several times
but want to exclude stuff already compiled under 7.x.


What I need is a command like:

  # portupgrade -af -x already compiled on 7


Suggestions, comments, rebukes welcome.

--
Regards,
Doug
___
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: portupgrade fu... AKA there has to be a better way

2009-04-04 Thread Doug Poland

On Sat, April 4, 2009 14:06, Matthew Seaman wrote:
 Doug Poland wrote:
 Hello,

 I'm upgrading a server from 6.4 to 7.1 and am going through the
 relative pain of re-compiling all the ports.  It's not as easy
 portupgrade -af because of all the special handling instructions
 of many ports.

 I have not found an easy way to keep track of the ports that need
 to be forcibly updated but have not undergone a version change.
 Because I approach the upgrade in steps, I need to run portupgrade
 several times but want to exclude stuff already compiled under 7.x.

 What I need is a command like:

 # portupgrade -af -x already compiled on 7


 Suggestions, comments, rebukes welcome.

 Assuming you start the upgrade today, then:

 # portupgrade -af -x =2009-04-04

hmmm, I don't think it gets much easier than that.  Thanks!


-- 
Regards,
Doug

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


Re: is there a laptop ?

2009-03-12 Thread Doug Poland

Chris Whitehouse wrote:

Saifi Khan wrote:

Hi all:

i've looked at tuxmobil, bsdgroup.de etc and i don't want to use
ndiswrapper, or broadcom or additional PCMCIA card at all.

Is there a laptop model (available in market) that experienced
members would like to recommend wherein  . the WiFi 802.11 a/g (PCI 
based)

 . Ethernet port  . and ACPI work absolutely fine with FreeBSD 7.x ?


Coming in kinda late on this thread but...  I recently came across a 
Toshiba Satellite L350 (L355D-S7825).  It works quite nicely with 
7.1-STABLE.


The only issues are...

   * needed to build ath wireless driver based on some stuff I googled
   * Doesn't recognize on-board bluetooth, modem, or SD card reader.
   * The touchpad surface is flush with palm rest and triggered too easily
   * Display only does 1440x900
   * 2 hour battery life.

Pros:
* 7.1-STABLE amd64 runs great!
* Radeon video works great
* ath wireless and rl0 work great
* 2.0GHz AMD dual with 3GB RAM
* Only $600 from BestBuy
* 17 display
* Does Ubuntu 8.10 (amd64) flawlessly, even 64-bit flash

This is no high-end HP or Lenovo, but for $600US, it's not a bad laptop 
for 64-bit FreeBSD.  Never tried ACPI features, I just assume 
suspend/resume will not work and power on/off.  YMMV


--
Regards,
Doug

___
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


Issue with drive or host adapter in Sun Netra

2009-02-27 Thread Doug Poland
Hello,

I've got a Netra t1 105 running 7.1-RELEASE/sparc64.  The box has a
pair of 9GB SCSI drives that I've configured into a geom mirror. 
Recently, I saw in my log:

Feb 20 03:40:25 host kernel: sym0: unexpected disconnect
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): READ(10). CDB: 28 0 0
3b b2 2 0 0 20 0
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): CAM Status: SCSI Status
Error
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): SCSI Status: Check
Condition
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): UNIT ATTENTION asc:29,1
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): Power on occurred
Feb 20 03:40:43 host kernel: (da1:sym0:0:1:0): Retrying Command (per
Sense Data)
Feb 20 03:44:26 host kernel: sym0: unexpected disconnect
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): READ(10). CDB: 28 0 0
3d 43 42 0 0 20 0
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): CAM Status: SCSI Status
Error
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): SCSI Status: Check
Condition
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): UNIT ATTENTION asc:29,1
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Power on occurred
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Retrying Command (per
Sense Data)
Feb 20 03:46:36 host kernel: sym0:1:control msgout: 80 20 3 d.
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): READ(10). CDB: 28 0 0
3d 43 42 0 0 20 0
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): CAM Status: SCSI Status
Error
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): SCSI Status: Check
Condition
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): UNIT ATTENTION asc:29,1
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Power on occurred
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Retrying Command (per
Sense Data)
Feb 20 03:46:36 host kernel: (noperiph:sym0:0:-1:-1): SCSI BUS reset
detected.
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): lost device
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Invalidating pack
Feb 20 03:46:36 host kernel: GEOM_MIRROR: Device gm0: provider da1
disconnected.
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): Synchronize cache
failed, status == 0x4a, scsi status == 0x0
Feb 20 03:46:36 host kernel: (da1:sym0:0:1:0): removing device entry
Feb 20 03:46:36 host kernel:
g_vfs_done():mirror/gm0d[READ(offset=402800640, length=16384)]error =
6
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): READ(06). CDB: 8 10 90
b2 10 0
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): CAM Status: SCSI Status
Error
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): SCSI Status: Check
Condition
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): UNIT ATTENTION asc:29,2
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): Scsi bus reset occurred
Feb 20 03:46:36 host kernel: (da0:sym0:0:0:0): Retrying Command (per
Sense Data)

So I pull out the SCSI drive in question and replace it with a spare 
and the box doesn't recognize the new drive at all.  No mention of da1
in dmesg whatsoever.  I even did a camcontrol devlist and see only
da0.  Could I be dealing with a bad SCSI controller here?



-- 
Regards,
Doug

___
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: vi set comment #

2009-02-20 Thread Doug Poland

Johan Hendriks wrote:

How can i in vi set a # on multiple Lines to comment out some text.

I know it must be a simple thing but i can not seem to get it right.

Like in a config file i have the following

define service{
use generic-service
host_name   w2003hk03
service_description Explorer
check_command   check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}

And now i want to set a # to all the 6 lines.

Thanks for your time
Regards,
Johan 



This question is really more germane to a VIm mail list 
(http://www.vim.org/) , but I'll tell you how'd I'd do it.


First, turn on line numbers --

   :set nu

The you'd see something like --

 1
 2
 3   define service{
 4   use generic-service
 5   host_name   w2003hk03
 6   service_description Explorer
 7   check_command   check_nt!PROCSTATE!-d SHOWALL -l
 8   }
 9
10

Then replace the beginning of a line with a # symbol --

   :3,8s/^/#/

That's all there is too it.  BTW, VIm help is your friend

   :help replace


--
Regards,
Doug
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-27 Thread Doug Poland

Mel wrote:

On Monday 26 January 2009 16:39:35 Doug Poland wrote:

On Mon, Jan 26, 2009 at 09:21:55AM -0900, Mel wrote:

On Monday 26 January 2009 08:23:13 Doug Poland wrote:

On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:

per...@pluto.rain.com wrote:

I've got a network running different versions of FreeBSD (6.3,
7.0) on different architectures (i386, SPARC64).

What I'd like to do is export the ports hierarchy to all
machines, but preserving ports/packages for each
version/architecture.  I also want to make rebuilding indexes
run as fast as possible.

Right now, I simply exports(5) /usr/ports via NFSv3 ...

...


The following 2 lines on each machine in /etc/make.conf should
fix those problems:
PACKAGES=${PORTSDIR}/packages/${ARCH}
INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}

It would seem the package building tools (make package, portinstall
-p) do not honor the PACKAGES setting in /etc/make.conf.  The
package is simply deposited in /usr/ports/{category}/{pkgname}.  Is
there a way to force the package builder to use this knob?

make package respects it.

Curious... I tested it on two different machines, and make package did
not put the package in the expected location.  Perhaps I'm missing
something?


Ah, my bad:
Mk/bsd.port.mk:
do-package: ${TMPPLIST}
@if [ -d ${PACKAGES} ]; then \

$PACKAGES has to be created before it respected.


Ah ha!  Thanks for that info, and the reference to Mk/bsd.port.mk

--
Regards,
Doug
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland

per...@pluto.rain.com wrote:

I've got a network running different versions of FreeBSD
(6.3, 7.0) on different architectures (i386, SPARC64).

What I'd like to do is export the ports hierarchy to all machines,
but preserving ports/packages for each version/architecture.
I also want to make rebuilding indexes run as fast as possible.

Right now, I simply exports(5) /usr/ports via NFSv3 ...

...

The following 2 lines on each machine in /etc/make.conf should
fix those problems:
PACKAGES=${PORTSDIR}/packages/${ARCH}
INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}


To speed up building, it may also be useful to set WRKDIRPREFIX
to something like /var/ports or /var/tmp/ports, so that the work
directories are local rather than having to be accessed via NFS.



Thank you very much!

--
Regards,
Doug

___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland
On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
 per...@pluto.rain.com wrote:
 I've got a network running different versions of FreeBSD
 (6.3, 7.0) on different architectures (i386, SPARC64).

 What I'd like to do is export the ports hierarchy to all machines,
 but preserving ports/packages for each version/architecture.
 I also want to make rebuilding indexes run as fast as possible.

 Right now, I simply exports(5) /usr/ports via NFSv3 ...
 ...
 The following 2 lines on each machine in /etc/make.conf should
 fix those problems:
 PACKAGES=${PORTSDIR}/packages/${ARCH}
 INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}

It would seem the package building tools (make package, portinstall -p)
do not honor the PACKAGES setting in /etc/make.conf.  The package is
simply deposited in /usr/ports/{category}/{pkgname}.  Is there a way to
force the package builder to use this knob?

-- 
Regards,
Doug
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland
On Mon, Jan 26, 2009 at 09:21:55AM -0900, Mel wrote:
 On Monday 26 January 2009 08:23:13 Doug Poland wrote:
  On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
   per...@pluto.rain.com wrote:
   I've got a network running different versions of FreeBSD (6.3,
   7.0) on different architectures (i386, SPARC64).
  
   What I'd like to do is export the ports hierarchy to all
   machines, but preserving ports/packages for each
   version/architecture.  I also want to make rebuilding indexes
   run as fast as possible.
  
   Right now, I simply exports(5) /usr/ports via NFSv3 ...
  
   ...
  
   The following 2 lines on each machine in /etc/make.conf should
   fix those problems:
   PACKAGES=${PORTSDIR}/packages/${ARCH}
   INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}
 
  It would seem the package building tools (make package, portinstall
  -p) do not honor the PACKAGES setting in /etc/make.conf.  The
  package is simply deposited in /usr/ports/{category}/{pkgname}.  Is
  there a way to force the package builder to use this knob?
 
 make package respects it.
 
Curious... I tested it on two different machines, and make package did
not put the package in the expected location.  Perhaps I'm missing
something?

 portinstall -p might override it itself in /usr/local/etc/pkgtools.conf.
 Hurray for sane defaults.

I will check that out, thanks.

-- 
Regards,
Doug

___
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


Sharing ports hierarchy via NFS to different arch/versions.

2009-01-24 Thread Doug Poland
Hello,

I've got a network running different versions of FreeBSD (6.3, 7.0) on
different architectures (i386, SPARC64).

What I'd like to do is export the ports hierarchy to all machines, but
preserving ports/packages for each version/architecture.  I also want
to make rebuilding indexes run as fast as possible.

Right now, I simply exports(5) /usr/ports via NFSv3.  The problem
comes in with INDEX files and packages.  Indexes get updated only when
the host serving the export updates the hierarchy via portsnap update.
 If I create a package on SPARC64 and the package exists already for
an i386 build, then I've got an issue.

Can someone point me to a doc/google/man page that may give me some
guidance in setting up such an environment?



-- 
Regards,
Doug

___
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


Backup complete gmirror/gstripe/gjournal drives, how-to?

2008-12-06 Thread Doug Poland

Hello,

I've got a 7.1-PRERELEASE i386 box with 4 SATA drives configured in a 
RAID-10 using gmirror, gstripe, and gjournal.  Normally, I use dump and 
rsync for periodic backups on this machine, but I suspect that the 
gmirror/gstripe/gjournal information is not being backed up.


If my assumption is correct, how can I perform a one-time backup such 
that I could do a bare-metal restore?  The essence of the question being 
I want to preserve not only the data, but also the 
gmirror/gstripe/gjournal meta-data as well.


The only thought that comes to mind is to boot with a 7.1 live 
filesystem CD-ROM and dd each drive, piping the results to my backup 
machine.  e.g.,


host#  dd if=/dev/ad4  bs=2m | gzip | nc backuphost 12345
host#  dd if=/dev/ad6  bs=2m | gzip | nc backuphost 12346
host#  dd if=/dev/ad10 bs=2m | gzip | nc backuphost 12347
host#  dd if=/dev/ad12 bs=2m | gzip | nc backuphost 12348

Any thoughts, suggestions, caveats?

--
Regards,
Doug


P.S.

Here are the geom and fdisk details, if that helps...

host# gmirror list
Geom name: root
State: COMPLETE
Components: 4
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 5
ID: 127818465
Providers:
1. Name: mirror/root
   Mediasize: 1068802048 (1.0G)
   Sectorsize: 512
   Mode: r1w1e2
Consumers:
1. Name: ad4s1
   Mediasize: 1069254144 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 5
   ID: 3738169247
2. Name: ad6s1
   Mediasize: 1069254144 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 5
   ID: 3845503692
3. Name: ad10s1
   Mediasize: 1069254144 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 5
   ID: 4161988509
4. Name: ad12s1
   Mediasize: 1069254144 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 5
   ID: 2277790192

Geom name: duplex0
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 1
SyncID: 2
ID: 2584379190
Providers:
1. Name: mirror/duplex0
   Mediasize: 154676389888 (144G)
   Sectorsize: 512
   Mode: r1w1e2
Consumers:
1. Name: ad4s3
   Mediasize: 154676390400 (144G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 1
   SyncID: 2
   ID: 1342354069
2. Name: ad10s3
   Mediasize: 154676390400 (144G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 1
   SyncID: 2
   ID: 985541614

Geom name: duplex1
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 1
SyncID: 3
ID: 1552757394
Providers:
1. Name: mirror/duplex1
   Mediasize: 154676389888 (144G)
   Sectorsize: 512
   Mode: r1w1e2
Consumers:
1. Name: ad6s3
   Mediasize: 154676390400 (144G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 1
   SyncID: 3
   ID: 429168325
2. Name: ad12s3
   Mediasize: 154676390400 (144G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 1
   SyncID: 3
   ID: 1587593952


host#  gstripe list
Geom name: raid10
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 262144
ID: 4114245491
Providers:
1. Name: stripe/raid10
   Mediasize: 309352464384 (288G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: mirror/duplex0
   Mediasize: 154676389888 (144G)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 0
2. Name: mirror/duplex1
   Mediasize: 154676389888 (144G)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 1


host#  gjournal list
Geom name: gjournal 2147944994
ID: 2147944994
Providers:
1. Name: stripe/raid10.journal
   Mediasize: 308278722048 (287G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: stripe/raid10
   Mediasize: 309352464384 (288G)
   Sectorsize: 512
   Mode: r1w1e1
   Jend: 309352463872
   Jstart: 308278722048
   Role: Data,Journal


host# fdisk ad{4,6,10,12}
*** Working on device /dev/ad4 ***
parameters extracted from in-core disklabel are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 2088387 (1019 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 129/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 2088450, size 8385930 (4094 Meg), flag 0
beg: cyl 130/ head 0/ sector 1;
end: cyl 651/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 10474380, size 302102325 (147510 Meg), flag 0
beg: cyl 652/ head 0/ sector 1;
end: cyl 

Re: Backup complete gmirror/gstripe/gjournal drives, how-to?

2008-12-06 Thread Doug Poland

Wojciech Puchar wrote:
periodic backups on this machine, but I suspect that the 
gmirror/gstripe/gjournal information is not being backed up.


If my assumption is correct, how can I perform a one-time backup 
such that I could do a bare-metal restore?  The essence of the 
question being I want to


assuming you do gmirror first and then gstripe of gmirror then
use dd to read last sectors of each disk drive and each gmirror device.
and backup disklabels


Thanks for the suggestion.  I did, in fact, create a gstripe of two 
gmirrors.  If you don't mind me asking, how would one use the dd output 
you described above to restore those data?  Would it include the 
gjournal metadata as well?



--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LVM2 under FreeBSD ?

2008-09-07 Thread Doug Poland
On Sun, Sep 07, 2008 at 02:09:42PM +, nicodache wrote:
 Hello all,
 
 I'd like to use something like LVM under FreeBSD, as I have a server
 running FBSD 7 and I don't know what space to give to what partition,
 and as I plan on installing postfix+courier-imap soon, I'd like to
 have some way to share the 235GB left on my drive between /home (legal
 torrents), and /var (www, mails, etc)
 
 I had a look at GEOM and (g)vinum, and none of them seem to accept
 resize of partition, while LVM (under linux) accept hotresizing of
 ext2/3  ReiserFS filesystems.
 
 Do yoy know of any solution available as port that would provide me
 with the same features as LVM ? (resize of partitions while running,
 to adapt /var to my needs without copying, unmouting, resizing,
 rebooting, etc) Can LVM be used in FreeBSD ? can the default kernel
 read  write ext3 partitions ? I might try to install LVM on a primary
 partition.
 
Although it's still considered experimental, ZFS would give you similar
functionality as LVM2 (and more).  I recommend you start with:
http://wiki.freebsd.org/ZFS and the man pages.  If possible, experiment
a little before implementing, ZFS is a paradigm shift from normal
disk/volume management.


-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Supported External SATA to USB Hard Drive Enclosures

2008-08-22 Thread Doug Poland
Hello,

Can anyone recommend a manufacturer and/or model of external SATA to
USB external hard drive enclosures?  I've not had luck with the
devices I pick up off-the-shelf at my local big-box consumer
electronics stores.

BTW, I'm running FreeBSD i386 7.x.


-- 
Regards,
Doug

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


Re: Locate command

2008-07-09 Thread Doug Poland

Rem P Roberti wrote:

Whenever I do a locate command on a new installation I get this
message:

locate: database too small: /var/db/locate.database

Can someone give me a heads up on how to fix this?


create the locate database via:

man locate.updatedb(8)
man locate(1)

--
Regards,
Doug


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


Problems upgrading GNUTLS 2.2.2 to 2.4.0

2008-06-26 Thread Doug Poland

Hello,

I'm having issues upgrading GNUTLS 2.2.2 to 2.4.0.  The box in questions 
is running 7.0-STABLE i386.


The error message I'm receiving is...


===  Configuring for gnutls-2.4.0
aclocal.m4:16: warning: this file was generated for autoconf 2.62.
You have another version of autoconf.  It may work, but is not 
guaranteed to.

If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 
`autoreconf'.

configure.in:28: version mismatch.  This is Automake 1.10,
configure.in:28: but the definition used by this AM_INIT_AUTOMAKE
configure.in:28: comes from Automake 1.10.1.  You should recreate
configure.in:28: aclocal.m4 with aclocal and run automake again.
*** Error code 63

Stop in /usr/ports/security/gnutls.

I've installed devel/autoconf-2.62 but it makes no difference.  I've 
googled and tried lots of things to get autoconf to run but to no avail.


Any suggestions are appreciated.

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems upgrading GNUTLS 2.2.2 to 2.4.0

2008-06-26 Thread Doug Poland

Schiz0 wrote:

On Thu, Jun 26, 2008 at 11:09 AM, Doug Poland [EMAIL PROTECTED] wrote:

Hello,

I'm having issues upgrading GNUTLS 2.2.2 to 2.4.0.  The box in questions is
running 7.0-STABLE i386.

The error message I'm receiving is...


===  Configuring for gnutls-2.4.0
aclocal.m4:16: warning: this file was generated for autoconf 2.62.
You have another version of autoconf.  It may work, but is not guaranteed
to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically
`autoreconf'.
configure.in:28: version mismatch.  This is Automake 1.10,
configure.in:28: but the definition used by this AM_INIT_AUTOMAKE
configure.in:28: comes from Automake 1.10.1.  You should recreate
configure.in:28: aclocal.m4 with aclocal and run automake again.
*** Error code 63

Stop in /usr/ports/security/gnutls.

I've installed devel/autoconf-2.62 but it makes no difference.  I've googled
and tried lots of things to get autoconf to run but to no avail.

Any suggestions are appreciated.

--
Regards,
Doug


This isn't a solution, just an issue I had too.

When I upgraded from 2.2.5 to 2.4.0, I also got that message about a
version mis-match for Automake. However, this did not stop the build
process, and it installed successfully.

Interesting... I'm unable to continue the build process because of the 
error code.  How did you get around it?


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems upgrading GNUTLS 2.2.2 to 2.4.0 (SOLVED)

2008-06-26 Thread Doug Poland

Sean Cavanaugh wrote:


  Date: Thu, 26 Jun 2008 10:55:08 -0500
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  Subject: Re: Problems upgrading GNUTLS 2.2.2 to 2.4.0
 
  Schiz0 wrote:
   On Thu, Jun 26, 2008 at 11:09 AM, Doug Poland [EMAIL PROTECTED] wrote:
   Hello,
  
   I'm having issues upgrading GNUTLS 2.2.2 to 2.4.0. The box in 
questions is

   running 7.0-STABLE i386.
  
   The error message I'm receiving is...
  
  
   === Configuring for gnutls-2.4.0
   aclocal.m4:16: warning: this file was generated for autoconf 2.62.
   You have another version of autoconf. It may work, but is not 
guaranteed

   to.
   If you have problems, you may need to regenerate the build system 
entirely.

   To do so, use the procedure documented by the package, typically
   `autoreconf'.
   configure.in:28: version mismatch. This is Automake 1.10,
   configure.in:28: but the definition used by this AM_INIT_AUTOMAKE
   configure.in:28: comes from Automake 1.10.1. You should recreate
   configure.in:28: aclocal.m4 with aclocal and run automake again.
   *** Error code 63
  
   Stop in /usr/ports/security/gnutls.
  
   I've installed devel/autoconf-2.62 but it makes no difference. 
I've googled

   and tried lots of things to get autoconf to run but to no avail.
  
   Any suggestions are appreciated.
  
   --
   Regards,
   Doug
  
   This isn't a solution, just an issue I had too.
  
   When I upgraded from 2.2.5 to 2.4.0, I also got that message about a
   version mis-match for Automake. However, this did not stop the build
   process, and it installed successfully.
  
  Interesting... I'm unable to continue the build process because of the
  error code. How did you get around it?
 
  --
  Regards,
  Doug

My best guess would be to upgrade your automake to a version that's at 
least 1.10.1 like the message says which so happens to be the version 
that's in ports right now. upgrading autoconf prob wouldn't be bad either.
 

Thanks, upgrading automake to 1.10.1 made everything alright.

--
Regards,
Doug

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


Re: Best practice: sendmail and SMTP auth

2008-03-13 Thread Doug Poland
On Thu, Mar 13, 2008 at 01:43:11AM +, Matthew Seaman wrote:
 Derek Ragona wrote:
 At 02:19 PM 3/12/2008, Doug Poland wrote:
 Hello,
 
 Not sure if this is the most appropriate place for this question,
 but since all my servers are FreeBSD 6.x/7.x, I'll give it a go...
 
 I am considering setting up SMTP auth on a number of sendmail
 instances that I control.  After much googling and reading, it is
 not clear to me that a server with SMTP auth configured/enabled can
 relay mail in both auth and non-auth modes.
 
 If one sendmail configuration cannot accommodate both SMTP auth and
 access.db, does one setup a dedicated SMTP auth host with a
 SMART_HOST option and feed incoming email to an non-auth instance of
 sendmail?
 
 Sorry if my terminology is ambiguous, I'm not a sendmail
 professional by day.
 
 You can set up sendmail to do both auth and non-auth.  However best
 practice is to use auth only to control any spam relaying.  Check the
 sendmail.org website FAQ's for setting this up.  You will want to
 probably use cyrus-sasl or cyrus-sasl2 ports along with sendmail.
 
 A good solution to this is to use port 587 for Authenticated new mail
 submission and leave port 25 for the normal MTA-MTA type of (not
 authenticated) traffic.  Firstly, to enable authentication you need to
 compile sendmail against cyrus SASL2 (don't bother with SASL1 -- it's
 legacy only).  Now, you can either do that by installing sendmail from
 ports, or you can install the cyrus-sasl port and then make the base
 system sendmail link against it by adding this to /etc/make.conf:
 
 SENDMAIL_CFLAGS+=   -I/usr/local/include -DSASL=2
 SENDMAIL_LDFLAGS+=  -L/usr/local/lib
 SENDMAIL_LDADD+=-lsasl2
 
 I also like to use these two so that any milters etc. I build from
 ports interoperate with the base system sendmail.
 
 SENDMAIL_MILTER_IN_BASE=yes
 WITH_SENDMAIL_BASE= yes
 
 In order to do SMTP AUTH most effectively, you should enable STARTSSL
 support -- I alway feel better knowing that passwords are sent over an
 encrypted connection.  This is a guide to what you need in your
 $(hostname).mc to add STARTSSL with AUTH /required/ on mail submitted
 via port 587, but not provided on port 25:
 
 first: turn off the default MSA setup, which we'll provide our own
 settings for later:
 
 FEATURE(no_default_msa)dnl ## overridden with DAEMON_OPTIONS below
 
 [...]
 
 second: basic configuration for SMTP AUTH -- what mechanisms are
 supported Note that LOGIN should only ever be allowed over encrypted
 connections as it sends passwords in plain text.  You can also
 authenticate by using SSL certificates but that is handled directly by
 sendmail and you don't need to list EXTERNAL as a SASL mechanism.
 
 dnl ## Set SASL options
 TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
 define(`confAUTH_REALM', `your.domain.name')dnl
 define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
 define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')dnl
 
 [...]
 
 thirdly: insert the IP numbers of your servers into the following
 rules -- if you don't use IPv6 you can omit the lines for the external
 address, but you'll find things seem to work rather smoother if you
 keep the ::1 entries.
 
 The M=E flag says 'disable ETRN' and the M=Ea flag says 'require
 authentication (and disable ETRN)' M=A means 'don't offer
 authentication here' Note that I'm only requiring authentication on
 the external interfaces so I implicitly trust myself
 to submit e-mails via localhost:587 without it.  You requirements may
 differ.  See
 http://www.sendmail.org/~gshapiro/8.10.Training/DaemonPortOptions.html
 for an explanation of the capabilities of DAEMON_OPTIONS:
 
 dnl
 dnl Where the sendmail daemon should listen
 dnl
 DAEMON_OPTIONS(`Name=IPv4, Addr=12.34.56.78, M=A, Family=inet')dnl
 DAEMON_OPTIONS(`Name=IPv4, Addr=127.0.0.1, M=A, Family=inet')dnl
 DAEMON_OPTIONS(`Name=IPv6, Addr=::1, M=A, Family=inet6')dnl
 DAEMON_OPTIONS(`Name=IPv6, Addr=2000:aa:bb:cc::1, M=A, Family=inet6')dnl
 DAEMON_OPTIONS(`Name=MSA, Addr=12.34.56.78, Port=587, M=Ea')dnl
 DAEMON_OPTIONS(`Name=MSA, Addr=127.0.0.1, Port=587, M=E')dnl
 DAEMON_OPTIONS(`Name=MSA, Addr=2000:aa:bb:cc::1, Port=587, M=Ea, 
 Family=inet6')dnl
 DAEMON_OPTIONS(`Name=MSA, Addr=::1, Port=587, M=E, Family=inet6')dnl
 
 fourthly: enable SSL capabilities in sendmail.  See
 http://aput.net/~jheiss/sendmail/tlsandrelay.shtml for a good article
 on configuring this stuff (although ignore the section on compiling
 sendmail: you get that automatically built into the base system
 sendmail already)
 
 dnl
 dnl TLS stuff
 dnl
 define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl
 define(`confCACERT_PATH', `CERT_DIR')dnl
 define(`confCACERT', `CERT_DIR/cacert.pem')dnl
 define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
 define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
 define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
 define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl
 
 fifthly

Best practice: sendmail and SMTP auth

2008-03-12 Thread Doug Poland
Hello,

Not sure if this is the most appropriate place for this question, but
since all my servers are FreeBSD 6.x/7.x, I'll give it a go...

I am considering setting up SMTP auth on a number of sendmail
instances that I control.  After much googling and reading, it is not
clear to me that a server with SMTP auth configured/enabled can relay
mail in both auth and non-auth modes.

If one sendmail configuration cannot accommodate both SMTP auth and
access.db, does one setup a dedicated SMTP auth host with a SMART_HOST
option and feed incoming email to an non-auth instance of sendmail?

Sorry if my terminology is ambiguous, I'm not a sendmail professional
by day.


--
Regards,
Doug

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


Re: Recommended jet printer

2008-02-27 Thread Doug Poland

Ghirai wrote:

Hello list,

Can anyone recommend a jet color
printer that works with CUPS on FreeBSD,
somewhere in the low - mid range.

Thanks.


not sure if it's still being made but HP 6122 works nicely

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ionCube PHP Encoder / Loader on FreeBSD 6 / 7

2008-02-22 Thread Doug Poland

patrick wrote:

On Thu, Feb 21, 2008 at 8:57 AM, Doug Poland [EMAIL PROTECTED] wrote:

Hello,

 I'm having problems getting ionCube's PHP loader working on either
 6.3-RELEASE or 7.0-RC2 (both i386).  I've followed the install
 instructions, edited php.ini, installed compat5x and compat6x libraries,
 but just cannot get the loader to work.  Both boxes are running PHP 5.2.5.

 Have googled and read the ioncube forums.  I must be missing something
 obvious.

 Thanks in advance...


 Hi Doug,

 You may get more help if you provide some more details like log
 messages or specifics about what is not working.

 Patrick

Hi Patrick,

Thank you for the response.  My error was in the details, as you 
suggested.  I was using this statement for the loader:


zend_extension_ts = 
/usr/local/www/OllaCart/includes/ioncube/ioncube_loader_fre_5.2_ts.so


On my boxes, PHP was built without thread support, so I should have said 
this:


zend_extension = 
/usr/local/www/OllaCart/includes/ioncube/ioncube_loader_fre_5.2.so


Note the (_ts).  Now everything is working great.  Attention to detail...

--
Regards,
Doug

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


ionCube PHP Encoder / Loader on FreeBSD 6 / 7

2008-02-21 Thread Doug Poland

Hello,

I'm having problems getting ionCube's PHP loader working on either 
6.3-RELEASE or 7.0-RC2 (both i386).  I've followed the install 
instructions, edited php.ini, installed compat5x and compat6x libraries, 
but just cannot get the loader to work.  Both boxes are running PHP 5.2.5.


Have googled and read the ioncube forums.  I must be missing something 
obvious.


Thanks in advance...

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache 2.2.8 authdbm woes

2008-02-17 Thread Doug Poland
Hello,

For the past few days, I've been migrating a bunch of apache-1.3.41
vhosts to apache-2.2.8 (on the same machine, 6.3-RELEASE i386).  Many of
directories are protected with AuthType directives and I want to reuse the
existing .dat files.  

After working successfully for more than a day with the original .dat 
files, apache-2.2.8 suddenly decides that format is not supported.
Here's what the error log says:

This function has not been implemented on this platform: could not open
dbm (type DB) auth file: 
/usr/local/etc/apache22/auth/admin-passwords.dat

I'm fairly certain that the beginning of the error messages coincided
with the first modifications I made to the .dat files after copying them
from /usr/local/etc/apache to /usr/local/etc/apache22.  The syntax I
used to modify the files were:

dbmmanage admin-groups.dat add newAdminUser newAdminGroup
dbmmanage admin-passwords.dat adduser newAdminUser

I compiled apache-2.2.8 with the following options:

make -DWITH_BDB -DWITH_BDB_BASE

And have the following directives in the conf file:

AuthType Basic
AuthName Authorized Users
AuthBasicProvider dbm
AuthDBMType DB
AuthDBMUserFile etc/apache22/auth/admin-passwords.dat
AuthDBMGroupFile etc/apache22/auth/admin-groups.dat
require group newAdminGroup

In the apache-1.3.41 httpd.conf file, I used:

AuthName Authorized Users
AuthType Basic
AuthDBUserFile /usr/local/etc/apache/admin-passwords.dat
AuthDBGroupFile /usr/local/etc/apache/admin-groups.dat
require group newAdminGroup

This change in apache's behavior is very strange indeed.  I tried
copying the original .dat files and restarting apache, but to no avail.
I also must admit that I'm a little confused between AuthDBM/AuthDB and
and all the DBM/BDB options in FreeBSD's Make infrastructure

Many thanks for your consideration and assistance.


-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache 2.2.8 authdbm woes

2008-02-17 Thread Doug Poland

On Sun, February 17, 2008 08:19, Jeremy Chadwick wrote:
 On Sun, Feb 17, 2008 at 07:23:17AM -0600, Doug Poland wrote:
 Hello,

 You're likely suffering from this:

 http://www.freebsd.org/cgi/query-pr.cgi?pr=119711

 There were some recent changes to www/apache22 which specifically
 addressed the above:

 http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/apache22/Makefile

Thanks for the quick response.  I've read the pr description (119711)
but am still a little confused.  I used the new Makefile options:

   make -DWITH_BDB -DWITH_BDB_BASE

as mentioned in my OP.  The really weird thing is apache-2.2.8 worked
with AuthDBM for many tests, but then suddenly stopped working.

Perhaps my base install of Berkeley DB is having issues reading .dat
files generated from an earlier version?  How would one diagnose this?

Again, thanks for the help.


-- 
Regards,
Doug

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


buildkernel error going from 6.2-STABLE to 6.3-STABLE i386

2008-02-13 Thread Doug Poland

Hello,

I'm attempting to build a GENERIC kernel for 6.3-STABLE and am getting 
the following error message:


cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -c

/usr/src/sys/i386/isa/clock.c: In function `DELAY':
/usr/src/sys/i386/isa/clock.c:301: warning: implicit declaration of 
function `cpu_spinwait'
/usr/src/sys/i386/isa/clock.c:301: warning: nested extern declaration of 
`cpu_spinwait'

*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


This is a fresh cvsup using:
*default release=cvs tag=RELENG_6

The buildworld step worked without issue.  I've googled but have yet to 
find an answer.  Any ideas?


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 915resolution on HP Compaq

2008-02-01 Thread Doug Poland

Mike Barnard wrote:

Thanks Doug,

I have always been a sceptic when it comes to running the CURRENT
branch, but i guess there is a first time for everything... Ill load
up the CURRENT branch and see how it works.

Suprisingly, even the wireless card does not work. I'll post the
updates after moving on to CURRENT.


Mike,

Just to be clear, 7.x != CURRENT.  7.0 is at the Release Candidate 1 
stage right now and I've been using it successfully on my laptop, on my 
job, since last October/November.  I'm not recommending that you go to 
-CURRENT, but to 7.x.


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 915resolution on HP Compaq

2008-01-31 Thread Doug Poland

Mike Barnard wrote:

Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display
at 1280x800 screen reolution.

I first set it up using  xorgconfig, but i failed to start X. I got an
error saying

intel: No matching device section for instance (BUS ID PCI:0:2:1) found
GARTInt Unable to open /dev/agpgart (No such file or directory)

I tried to use the 915resolution port and this is what it give me.


# 915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.3

Intel chipset detected.  However, 915resolution was unable to
determine the chipset type.
Chipset Id: 2a008086
Please report this problem to [EMAIL PROTECTED]
#

I know that i have the Intel x3100 card and then 965GM chipset.

Has anyone managed to get X to display on a wide screen display at
1280x800 on this chipset?

If you're running FreeBSD 7.x and Xorg 7.3, I recommend using the 
intel driver.  915resolution is not necessary with this driver.


--
Regards,
Doug


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


Re: 915resolution on HP Compaq

2008-01-31 Thread Doug Poland

Mike Barnard wrote:

On 1/31/08, Doug Poland [EMAIL PROTECTED] wrote:

Mike Barnard wrote:

Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display
at 1280x800 screen reolution.

I first set it up using  xorgconfig, but i failed to start X. I got an
error saying

intel: No matching device section for instance (BUS ID PCI:0:2:1) found
GARTInt Unable to open /dev/agpgart (No such file or directory)

I tried to use the 915resolution port and this is what it give me.


# 915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.3

Intel chipset detected.  However, 915resolution was unable to
determine the chipset type.
Chipset Id: 2a008086
Please report this problem to [EMAIL PROTECTED]
#

I know that i have the Intel x3100 card and then 965GM chipset.

Has anyone managed to get X to display on a wide screen display at
1280x800 on this chipset?


If you're running FreeBSD 7.x and Xorg 7.3, I recommend using the
intel driver.  915resolution is not necessary with this driver.


darn... there we go again, i forgot to give the version i am running.

I have FreeBSD 6.3-STABLE, xorg 7.3_1 and yes with the
x11-drivers/xf86-video-intel port installed. I fell back to
915resolution since this intel driver failed. I was hoping to get some
joy with 915resolution, but realised that it does not support this
chipset as well :-(.

I deinstalled the intel driver and installed the i810 driver, but no
joy either. Im back to the intel driver and i still cannot get
1280x800 done. every time i startx i get the error i described
earlier. I checked and /dev/agpgart does not exist. Im sure i compiled
my kernel with device agp.

thanks for the assistance.


Hi Mike,

I had the same problems you were having on 6.2-STABLE and was not able 
to resolve them.


IIRC, the intel driver works *correctly* on 7.x only.  In my case, I 
also have an Intel wireless NIC that is also supported in 7.x only. 
These two issues forced me to 7.x and I've been working happily ever since.



HTH,
Doug


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


Re: FreeBSD 6.2 inside VMWare Fusion ?

2007-12-08 Thread Doug Poland
On Fri, Dec 07, 2007 at 02:38:31PM +, Michael Doyle wrote:

 On 6 Dec 2007, at 15:47, Doug Poland wrote:

 Michael Doyle wrote:
 Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion
  on a new MacBook Pro ?

 I have been running 6.2 on an iMac since early betas of VMWare
 Fusion

 If so, could they give me pointers on what I need to do, since I
 have tried this and failed.

 Could you give some specific error messages?

 I start a new Virtual Machine, select FreeBSD as the OS, FreeBSD 6
 the specific version (from the VM Ware Fusion menus)

 Then insert a FreeBSD 6.2 install disk in the drive and run through
 the setup process.  Select use entire disk, no boot manager, 
 install the Developer package, no additional packages... the
 install runs to completion.

 However, when, after installing the OS, I let the virtual machine
 reboot, it hangs after the POST without displaying the FreeBSD
 hardware probe messages.  No errors, nothing. It doesn't even get as
 far as the menu where you  select normal, or acpi disabled, etc.

 I downloaded an image created by someone else of a VMWare
 Workstation image, and that runs on my Mac under VMWare Fusion,
 but I am unable to compile and  install VMWare Tools (make all
 succeeded, but make install failed with a file not found  error...)

 If you like I can copy/paste those errors in a seperate email.
 I don't understand why I cannot create my own bootable VMWare image
 though ?

That is strange.  For testing, I just built a new VM using,

  VMWare Fusion v1.0 (51384)
  Mac OS X 10.5.1
  PC-BSD 1.4

All went as expected.  VMWare Fusion even survived the OS migration
from 10.4 to 10.5.  My only suggestions at this point would be...

* Try another OS as a guest, see if you get similar results
* Re-install VMWare Fusion
* Check the VMWare forums for similar issues.
* Purchase the latest Fusion version

Hope that helps...


-- 
Regards,
Doug




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


Re: FreeBSD 6.2 inside VMWare Fusion ?

2007-12-08 Thread Doug Poland
On Fri, Dec 07, 2007 at 02:38:31PM +, Michael Doyle wrote:
 
 On 6 Dec 2007, at 15:47, Doug Poland wrote:
 
 Michael Doyle wrote:
 Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion  
 on a new MacBook Pro ?
 
 I have been running 6.2 on an iMac since early betas of VMWare Fusion
 
 If so, could they give me pointers on what I need to do, since I  
 have tried this and failed.
 
 Could you give some specific error messages?
 
 I start a new Virtual Machine, select FreeBSD as the OS, FreeBSD 6 as
 the specific version (from the VM Ware Fusion menus)
 
 Then insert a FreeBSD 6.2 install disk in the drive and run through
 the setup process.  Select use entire disk, no boot manager, 
 install the Developer package, no additional packages... the install
 runs to completion.
 
 However, when, after installing the OS, I let the virtual machine
 reboot, it hangs after the POST without displaying the FreeBSD
 hardware probe messages.  No errors, nothing. It doesn't even get as
 far as the menu where you  select normal, or acpi disabled, etc.
 
 I downloaded an image created by someone else of a VMWare Workstation
 image, and that runs on my Mac under VMWare Fusion,  but I am unable
 to compile and  install VMWare Tools (make all succeeded, but make
 install failed with a file not found  error...)
 
 If you like I can copy/paste those errors in a seperate email. I don't
 understand why I cannot create my own bootable VMWare image though ?
 
That is strange.  For testing, I just built a new VM using,

  VMWare Fusion v1.0 (51384)
  Mac OS X 10.5.1
  PC-BSD 1.4

All went as expected.  VMWare Fusion even survived the OS mirgration
from 10.4 to 10.5.  My only suggestions at this point would be...

* Try another OS as a guest, see if you get similar results
* Re-install VMWare Fusion
* Check the VMWare forums for similar issues.
* Purchage the latest Fusion version

Hope that helps...

-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.2 inside VMWare Fusion ?

2007-12-06 Thread Doug Poland

Michael Doyle wrote:
Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion on a 
new MacBook Pro ?



I have been running 6.2 on an iMac since early betas of VMWare Fusion

If so, could they give me pointers on what I need to do, since I have 
tried this and failed.


Could you give some specific error messages?

It's mostly just to see if I can do it - I have a number of real 
servers running FreeBSD 6 and was looking to make a test-bed platform 

 inside my laptop for convenience more than anything else.

Virtualized machines are good way to learn/develop/prototype, etc.

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Major filesystem problems after crash on 7.0-BETA3 (SOLVED)

2007-11-28 Thread Doug Poland
On Tue, November 27, 2007 15:22, Kris Kennaway wrote:
 Doug Poland wrote:
 On Mon, November 26, 2007 15:03, Doug Poland wrote:
 On Mon, November 26, 2007 14:26, Doug Poland wrote:
 Hello,

 This morning my 7.0-BETA3 i386 system (Compaq nx7400) reset
 shortly after starting X11.  I didn't think much of it and went
 to get a cup of coffee while the background fsck took care of
 the file systems.

 Unforunately, something's still broke.  At first, when I tried
 to access the /var or /tmp filesystems, I received panics
 similar to:

 mode = 0100644, inum = 31127, fs = /tmp
 panic: ffs_valloc: dup alloc
 cpuid = 0
 Uptime: 9s
 Physical memory: 3435 MB
 Dumping 101 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) ** Automatic reboot in 15 seconds -
 press a key on the console to abort


 After doing some googling, it looked like my filesystems
 weren't really clean after several manual runs of fsck.  So I
 disabled softupdates on /var and /tmp and ran fsck on those
 file systems again.  After mounting them rw, I attempted to hit
 the filesystem again, this time getting a panic:

 panic: ffs_clusteralloc: map mismatch
 cpuid = 1
 Uptime: 6m40s
 Physical memory: 3435 MB
 Dumping 149 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) ** Automatic reboot in 15 seconds -
 press a key on the console to abort

 Is there a way to identify and fix these errors?  I'm thinking
 a newfs of both /var and /tmp is in order.  I don't really care
 about /tmp, and I've backed up /var using dump(8).  My concern
 is if I restore /var on top of a newfs'd filesystem, I'll
 restore my broken files and have the same problem again.

 Just a follow-up...  Everytime I run a  manual fsck on the
 problem filesystems, it returns:

 snip
 BLK(S) MISSING IN BITMAPS SALVAGE?
 snip
 * FILE SYSTEM WAS MODIFIED *


 So it would appear that fsck is unable to repair damage, is that
 correct?

 Well, having stumped all the experts, I decided to reinstall from
 7.0-BETA3 CD-ROM.  After a few minutes of writing to the disk after
 newfs, I got more panic: ffs_clusteralloc: map mismatch errors.
 Since the device I'm writing to is a 3-day old Maxtor OneTouch III
 external HD, I've decided it must be a hardware failure and am
 returing the drive.



 Yes, for whatever reason FreeBSD is unable to reliably perform I/O to
 the drive (hence the errors dumping).

 Kris

New external harddrive solved the problem quite nicely.


-- 
Regards,
Doug

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


Firefox 2.0.0.9 issues on 7.0-BETA3

2007-11-28 Thread Doug Poland
Hello,

I have a freshly installed 7.0-BETA3 i386 system and am having issues
with firefox 2.0.0.9.

Upon launching /usr/local/bin/firefox from a command line I am
immediately returned a cursor with an error code of 1.

% /usr/local/bin/firefox
% echo $?
1

I debugged both /usr/local/bin/firefox and
/usr/local/lib/firefox/run-mozilla.sh until I found the debugger
option, which I tried:

/usr/local/lib/firefox/run-mozilla.sh -g
/usr/local/lib/firefox/firefox-bin -d gdb

# /usr/local/lib/firefox/run-mozilla.sh -g \
  /usr/local/lib/firefox/firefox-bin -d gdb

MOZILLA_FIVE_HOME=/usr/local/lib/firefox
  
LD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/plugins:/usr/local/lib/browser_plugins:/usr/local/lib/browser_linux_plugins:/usr/local/lib/firefox
DISPLAY=:0.0
DYLD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
 
LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/components:/usr/local/lib/firefox
   SHLIB_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
  LIBPATH=/usr/local/lib/firefox:/usr/local/lib/firefox
   ADDON_PATH=/usr/local/lib/firefox
  MOZ_PROGRAM=/usr/local/lib/firefox/firefox-bin
  MOZ_TOOLKIT=
moz_debug=1
 moz_debugger=
/usr/bin/gdb /usr/local/lib/firefox/firefox-bin -x /tmp/mozargs.VoVJBX
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-marcel-freebsd...(no debugging
symbols found)...
(gdb) run
Starting program: /usr/local/lib/firefox/firefox-bin -d gdb
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...[New LWP
100191]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...[New Thread
0x29a01100 (LWP 100191)]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...[New LWP 100191]

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to LWP 100191]
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x2805c3e0 in ?? () from /libexec/ld-elf.so.1

I did some googling but nothing interesting turned up.  I find it
curious that the latest build of Thunderbird works, but linux-firefox
fails like it's native sibling.

All help is appreciated...



-- 
Regards,
Doug

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


Re: Firefox 2.0.0.9 issues on 7.0-BETA3

2007-11-28 Thread Doug Poland
On Wed, Nov 28, 2007 at 03:58:48PM -0500, Jeremy Gransden wrote:
 
 
  I did some googling but nothing interesting turned up.  I find it
  curious that the latest build of Thunderbird works, but linux-firefox
  fails like it's native sibling.
 
  All help is appreciated...
 
 
 
 what are the permissions on ~/.mozilla and its contents

~/.mozilla  700
~/.mozzilla/firefox 700
~/.mozilla/plugins  755


-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Firefox 2.0.0.9 issues on 7.0-BETA3

2007-11-28 Thread Doug Poland
On Wed, Nov 28, 2007 at 02:29:38PM -0600, Doug Poland wrote:
 Hello,
 
 I have a freshly installed 7.0-BETA3 i386 system and am having issues
 with firefox 2.0.0.9.
 
 Upon launching /usr/local/bin/firefox from a command line I am
 immediately returned a cursor with an error code of 1.
 
 % /usr/local/bin/firefox
 % echo $?
 1
 
 I debugged both /usr/local/bin/firefox and
 /usr/local/lib/firefox/run-mozilla.sh until I found the debugger
 option, which I tried:
 
 /usr/local/lib/firefox/run-mozilla.sh -g
 /usr/local/lib/firefox/firefox-bin -d gdb
 
 # /usr/local/lib/firefox/run-mozilla.sh -g \
   /usr/local/lib/firefox/firefox-bin -d gdb
 
 MOZILLA_FIVE_HOME=/usr/local/lib/firefox
   
 LD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/plugins:/usr/local/lib/browser_plugins:/usr/local/lib/browser_linux_plugins:/usr/local/lib/firefox
 DISPLAY=:0.0
 DYLD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
  
 LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/components:/usr/local/lib/firefox
SHLIB_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
   LIBPATH=/usr/local/lib/firefox:/usr/local/lib/firefox
ADDON_PATH=/usr/local/lib/firefox
   MOZ_PROGRAM=/usr/local/lib/firefox/firefox-bin
   MOZ_TOOLKIT=
 moz_debug=1
  moz_debugger=
 /usr/bin/gdb /usr/local/lib/firefox/firefox-bin -x /tmp/mozargs.VoVJBX
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and
 you are welcome to change it and/or distribute copies of it under
 certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for
 details.
 This GDB was configured as i386-marcel-freebsd...(no debugging
 symbols found)...
 (gdb) run
 Starting program: /usr/local/lib/firefox/firefox-bin -d gdb
 (no debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...[New LWP
 100191]
 (no debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...[New Thread
 0x29a01100 (LWP 100191)]
 (no debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...[New LWP 100191]
 
 Program received signal SIGTRAP, Trace/breakpoint trap.
 [Switching to LWP 100191]
 Cannot remove breakpoints because program is no longer writable.
 It might be running in another process.
 Further execution is probably impossible.
 0x2805c3e0 in ?? () from /libexec/ld-elf.so.1
 
 I did some googling but nothing interesting turned up.  I find it
 curious that the latest build of Thunderbird works, but linux-firefox
 fails like it's native sibling.
 
 All help is appreciated...
 
Thought I'd try installing firefox 2.0.0.10,1 on the whim that it may
fix my problem.  No joy.

BTW, how do I get debugging symbols for firefox so that I may further
debug this?


-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Major filesystem problems after crash on 7.0-BETA3

2007-11-27 Thread Doug Poland

On Mon, November 26, 2007 15:03, Doug Poland wrote:

 On Mon, November 26, 2007 14:26, Doug Poland wrote:
 Hello,

 This morning my 7.0-BETA3 i386 system (Compaq nx7400) reset shortly
 after starting X11.  I didn't think much of it and went to get a cup
 of coffee while the background fsck took care of the file systems.

 Unforunately, something's still broke.  At first, when I tried to
 access the /var or /tmp filesystems, I received panics similar to:

 mode = 0100644, inum = 31127, fs = /tmp
 panic: ffs_valloc: dup alloc
 cpuid = 0
 Uptime: 9s
 Physical memory: 3435 MB
 Dumping 101 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) **
 Automatic reboot in 15 seconds - press a key on the console to abort


 After doing some googling, it looked like my filesystems weren't
 really clean after several manual runs of fsck.  So I disabled
 softupdates on /var and /tmp and ran fsck on those file systems
 again.  After mounting them rw, I attempted to hit the filesystem
 again, this time getting a panic:

 panic: ffs_clusteralloc: map mismatch
 cpuid = 1
 Uptime: 6m40s
 Physical memory: 3435 MB
 Dumping 149 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) **
 Automatic reboot in 15 seconds - press a key on the console to abort

 Is there a way to identify and fix these errors?  I'm thinking a
 newfs of both /var and /tmp is in order.  I don't really care
 about /tmp, and I've backed up /var using dump(8).  My concern is
 if I restore /var on top of a newfs'd filesystem, I'll restore my
 broken files and have the same problem again.

 Just a follow-up...  Everytime I run a  manual fsck on the problem
 filesystems, it returns:

 snip
 BLK(S) MISSING IN BITMAPS
 SALVAGE?
 snip
 * FILE SYSTEM WAS MODIFIED *


 So it would appear that fsck is unable to repair damage, is that
 correct?

Well, having stumped all the experts, I decided to reinstall from
7.0-BETA3 CD-ROM.  After a few minutes of writing to the disk after
newfs, I got more panic: ffs_clusteralloc: map mismatch errors.  Since
the device I'm writing to is a 3-day old Maxtor OneTouch III external
HD, I've decided it must be a hardware failure and am returing the
drive.


-- 
Regards,
Doug

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


Major filesystem problems after crash on 7.0-BETA3

2007-11-26 Thread Doug Poland
Hello,

This morning my 7.0-BETA3 i386 system (Compaq nx7400) reset shortly
after starting X11.  I didn't think much of it and went to get a cup
of coffee while the background fsck took care of the file systems.

Unforunately, something's still broke.  At first, when I tried to
access the /var or /tmp filesystems, I received panics similar to:

mode = 0100644, inum = 31127, fs = /tmp
panic: ffs_valloc: dup alloc
cpuid = 0
Uptime: 9s
Physical memory: 3435 MB
Dumping 101 MB:Aborting dump due to I/O error.
status == 0x4, scsi status == 0x0

** DUMP FAILED (ERROR 5) **
Automatic reboot in 15 seconds - press a key on the console to abort


After doing some googling, it looked like my filesystems weren't
really clean after several manual runs of fsck.  So I disabled
softupdates on /var and /tmp and ran fsck on those file systems again.
 After mounting them rw, I attempted to hit the filesystem again, this
time getting a panic:

panic: ffs_clusteralloc: map mismatch
cpuid = 1
Uptime: 6m40s
Physical memory: 3435 MB
Dumping 149 MB:Aborting dump due to I/O error.
status == 0x4, scsi status == 0x0

** DUMP FAILED (ERROR 5) **
Automatic reboot in 15 seconds - press a key on the console to abort

Is there a way to identify and fix these errors?  I'm thinking a newfs
of both /var and /tmp is in order.  I don't really care about /tmp,
and I've backed up /var using dump(8).  My concern is if I restore
/var on top of a newfs'd filesystem, I'll restore my broken files and
have the same problem again.

Please advise...


-- 
Regards,
Doug

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


Re: Major filesystem problems after crash on 7.0-BETA3

2007-11-26 Thread Doug Poland

On Mon, November 26, 2007 14:26, Doug Poland wrote:
 Hello,

 This morning my 7.0-BETA3 i386 system (Compaq nx7400) reset shortly
 after starting X11.  I didn't think much of it and went to get a cup
 of coffee while the background fsck took care of the file systems.

 Unforunately, something's still broke.  At first, when I tried to
 access the /var or /tmp filesystems, I received panics similar to:

 mode = 0100644, inum = 31127, fs = /tmp
 panic: ffs_valloc: dup alloc
 cpuid = 0
 Uptime: 9s
 Physical memory: 3435 MB
 Dumping 101 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) **
 Automatic reboot in 15 seconds - press a key on the console to abort


 After doing some googling, it looked like my filesystems weren't
 really clean after several manual runs of fsck.  So I disabled
 softupdates on /var and /tmp and ran fsck on those file systems again.
 After mounting them rw, I attempted to hit the filesystem again, this
 time getting a panic:

 panic: ffs_clusteralloc: map mismatch
 cpuid = 1
 Uptime: 6m40s
 Physical memory: 3435 MB
 Dumping 149 MB:Aborting dump due to I/O error.
 status == 0x4, scsi status == 0x0

 ** DUMP FAILED (ERROR 5) **
 Automatic reboot in 15 seconds - press a key on the console to abort

 Is there a way to identify and fix these errors?  I'm thinking a newfs
 of both /var and /tmp is in order.  I don't really care about /tmp,
 and I've backed up /var using dump(8).  My concern is if I restore
 /var on top of a newfs'd filesystem, I'll restore my broken files and
 have the same problem again.

Just a follow-up...  Everytime I run a  manual fsck on the problem
filesystems, it returns:

snip
BLK(S) MISSING IN BITMAPS
SALVAGE?
snip
* FILE SYSTEM WAS MODIFIED *


So it would appear that fsck is unable to repair damage, is that correct?

-- 
Regards,
Doug

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


Re: cups openoffice...bad mojo?

2007-11-20 Thread Doug Poland

Steve Franks wrote:

On Nov 20, 2007 8:15 AM, Doug Poland [EMAIL PROTECTED] wrote:

Steve Franks wrote:

Save me!  The wife can't print, so I've been spooled to the couch!

Originally installed OO around 2.0.  Wouldn't print.  Finally found
some esoteric blog somewhere that said link /usr/local/bin/lpd to
/usr/local/sbin/lpd - voila! prints.

When I upgraded X to 7.3, OO got upgraded to 2.3, and it stopped
printing again.  Now the magical ln lpd command won't fix it either.

FYI, cups-base is 1.1.3


I believe you need to specify the WITH_CUPS tunable when you build OO


 Does everyone just know that, or does no one use cups on freebsd?

I use both CUPS and OO on FreeBSD, that's how I know :)   I probably 
stumbled across this googling and searching the email archives.


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: selfbuild packages repository

2007-11-15 Thread Doug Poland

Jonathan Horne wrote:
lately, ive been exclusively doing 'make package-recursive' and 
'portupgrade -apP', and have thus collected quite a lot of packages over 
the past 6 months (which use to keep multiple systems updated).


on my NFS server, my /usr/ports/packages/All directory has built up many 
incrementing versions of the same packages.  is there a way to keep the 
./All directory culled back match whatever is in ./Latest?


im not a programmer and am about as novice as you can get when it comes 
to shell scripting, but im seeing somethign that could compare ./Latest 
with ./All, and anything that is linked from Latest to All would be 
kept, and anything that no longer has a symlink, would be purged.


can anyone help me out with a nice way of doing this?


I think that's what portsclean -P is all about.

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can anyone recommend an external firewire-based drive?

2007-11-14 Thread Doug Poland

Hello,

I'm looking for an external, firewire-based, hard-drive from which to 
run FreeBSD 7.0 (i386).  Ideally, I'd boot from this device as well, but 
I'm not sure if FreeBSD (or my BIOS) supports booting from firewire.


Can anyone recommend a manufacturer and/or model?


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing console size, vidcontrol only lists 80x25

2007-10-30 Thread Doug Poland

Joshua Isom wrote:
I recently bought a new LCD monitor for my computer.  It handles 
1440x900 and seems to automatically do some scaling(although buggy) to 
utilize the entire screen, resulting in a stretched, blurry, and cropped 
screen for the console.  After some time and playing around, I was about 
to get Xorg to behave and use the native resolution of the monitor.  
When I run vidcontrol -i mode, only 80x25 is displayed for options, 
nothing else.  The option VESA doesn't seem to work in STABLE anymore 
so I'm not sure how to be able to get better support.  I'm currently 
running STABLE on amd64.




You also need

options SC_PIXEL_MODE

in your kernel

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


if_bridge, if_tap and wireless NICs

2007-10-24 Thread Doug Poland

Hello,

I've finally gotten emulators/qemu to work with bridge/tap networking on 
 FreeBSD-7.0-BETA1 i386 using bfe0: Broadcom BCM4401-B0 Fast Ethernet 
For reference, I used the tutorial listed at: 
http://forums.bsdnexus.com/viewtopic.php?id=1563


My issue is, however, that QEMU/bridge/tap does not work with my 
wireless NIC (ath0: Atheros 5212)


The question, is there a work-around for this issue?  My first thought 
was to bridge the loopback device.  I tried adding the loopback device 
lo0 to the bridge (ifconfig bridge0 addm lo0 up) but that failed with an 
error (ifconfig: BRDGADD lo0: Invalid argument).


Any help, pointers is much appreciated.


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   4   >