Re: QT4.5 packages

2008-12-06 Thread Warren Liddell

You can find many packages for several releases under

ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386
___
  
Yeah that was the first palced i checked, but there is only 4.4.1 and at 
the least i need 4.4.2, but a lot of things im now running require 4.5 
an being as i can build them i goto add them from pkg .. im running 
AMD64 FreeBSD 7.1-PreRelease KDE 4.1.3

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


Re: UFS partitioning

2008-12-06 Thread Wojciech Puchar


AFAIK the danger is that someone boots the machine with an
installer for some other OS, and that installer treats the
disk as unformatted -- hence obviously containing nothing
important -- because it doesn't have a recognizable MBR.


some people rarely boot other OS :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] Looking @ upgrades mechanisms...

2008-12-06 Thread Frank Shute
On Tue, Dec 02, 2008 at 10:43:39AM -0600, Javier Vasquez wrote:

 On 12/2/08, andrew clarke [EMAIL PROTECTED] wrote:
  On Tue 2008-12-02 00:41:58 UTC-0600, Javier Vasquez ([EMAIL PROTECTED])
  wrote:
 
  I was reading chapter 4 of the handbook, as well as chapters 24 and
  26...  If I got it clear, I pretty much might get the base system
  updated by using freebsd-update script.  Ports collection can get
  updated with portsnap, but that doesn't update neither the intalled
  ports, nor the installed packages.  To upgrade the installed ports,
  portmanager or portmaster or portupgrade can be used...  However only
  portupgrade can be used to upgrade packages, right?
 
  Now, can something like portupgrade -a -PP to upgrade all packages
  without building a thing (might be that some don't get updated due to
  the lack of binary package yet, and in such case would dependencies be
  managed right)?
 
  Right.
 
  More into how things work, as ports and pacakages are not part of the
  base systems, are they somehow associated to a particular release
  (most probably not)?  So that pretty much no matter the release, if
  packages and ports are kept up to date, they might be the same for all
  releases?
 
  There are downloadable packages that are regularly built from the
  latest ports tree.  There are different packages available for
  different releases though (eg. 6.x vs 7.x, i386 vs amd64).
 
  The theory goes that you can use i386 packages built for (for example)
  6.4 on a 6.3 system.  Possibly all the way back to 6.0.  If you're
  relying on prebuilt packages then ideally you should try to keep the
  base system updated where possible.
 
  I'm asking these questions since I'm evaluating moving to BSD, but I
  want to avoid compiling as much as possible since my box is 800MHz
  piii celeron with just 32KB of cache and 512MB of ram, and for it
  source based distributions have proven to be too much to handle, so my
  intention would be to live with binary packages and updates/upgrades
  only...
 
  Those specs should be fine if you're building small software such as
  Squid, Apache, Samba, etc.  I build everything I need (http server +
  http cache + mail server + spam filter + more) from source using a 1
  GHz Pentium III with 256 Mb (using portmaster).
 
  Firefox, GNOME or KDE would take a long time with 800 MHz.  But I
  wouldn't really like to run those big apps at only 800 MHz either.
 
  There's no reason why you can't install the larger software from
  packages then just build the smaller stuff from source.  With
  portupgrade -PP you're still going to have to keep your ports tree
  updated (I use portsnap) so it's not a lot of extra effort to build
  from source.
 
 Actually I don't run desktop managers, just plain fluxbox over X.  And
 I use X mostly to browse the web.  But any ways, I've run source based
 linux distributions in the past, and although it's fun, my box takes
 too much time to keep up with the rolling changes.  So I've learned
 it's better to keep updating through binaries in this good old
 boxes...

I think you'll find that keeping relatively up-to-date on FreeBSD
using ports is fairly easy, even on a lowish powered machine
especially since you don't use the big desktop environments.

Install portaudit so that you only upgrade when there is a security
problem (or a must have feature).

The bigger stuff like Firefox you can run at night.

You will also find that FreeBSD is quite good at multitasking and that
whilst building ports it's perfectly possible to get on with your
work in comfort. More so than Linux.

 
  Also if remaining under -STABLE, is all this possible?  Kind of
  understood that openoffice.org can't be installed with pkg_add -r,
  so most probably if living under -STABLE automatic updates for
  openoffice.org won't show up...  So this kinds of answers one previous
  question about the packages been independent from the base system
  release, it looks like they aren't...
 
  Not too sure what you're asking here, and I've never used -STABLE.
  Keep in mind though that you can't use freebsd-update if you're using
  -STABLE (AFAIK).
 
 Ups, I didn't know that...  so freebsd-update only works on
 -RELEASE's.  I'm not sure that was explicit in the documentation, good
 to know, :)
 
 So the only way to live in -STABLE up to date is to keep the base
 system up to date through compilation...

Yep, but I only track STABLE when it's got some fix for some
hardware/software that I must have, otherwise I track RELEASES  then
you can use freebsd-update.

BTW, I just retired a 300MHz Celeron that I used a combination of
packages  ports (but mainly ports). My new laptop, I just use ports.

I find ports less troublesome than packages.

 
 Thanks,
 
 -- 
 Javier

Regards,

-- 

 Frank 


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

___
freebsd-questions@freebsd.org mailing list

Re: custom kernel

2008-12-06 Thread Michael Powell
PJ wrote:
[snip]
 
 there was
 another error in that kernel at the very beginning - the SCHEDULE_4BSD
 was SCHEDULE_UNO or something like that.. but it was commented
 out...perhaps these glitches happened through some kind of accidental
 typos in vi
 
[snip]

SCHED_4BSD is being replaced by SCHED_ULE. IIRC it will be the new default
beginning with 7.1-Release, which is coming 'real soon now'. You may want to
give it a try.

-Mike



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


Re: cups issue, unsupported format

2008-12-06 Thread Michael Powell
[EMAIL PROTECTED] wrote:

 Hi,
 
 I'm working on getting cups working and I've installed the hplip port
 and the cups program used that to install the printer. At least, there was
 an HPLIP in a list in one of the pages during the setup. My printer is
 an old HP LaserJet 4+ which I've connected through the parallel port. My
 URI for the printer is parallel:/dev/lp0. When I went to do the test page
 I got this error, Unsupported format 'application/postscript'. Here's
 the problem, I chose a driver which, though I don't remember the full
 string in cups, was a 4/5 PCL driver. So, why is it trying to print using
 postscript?
 

It's been a while since I've done a virgin cups install so I'm not real
current on what it might be like now. You start out with installing the
/usr/ports/print/cups metaport and this should pull in a few other sub
ports as dependencies.

The port cups-pstoraster is what coverts postscript print output into
PCL, utilizing (IIRC) one of the ghostscript ports. Perhaps your install
may be incomplete. In the past I've just installed the metaport and it
happily sucked everything else in automagically. 

-Mike



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


Re: Sticky mouse pointer on machine with high load

2008-12-06 Thread Daniel Bye
On Fri, Dec 05, 2008 at 07:23:48PM -0800, Yuri wrote:
 Often when my machine has load is 2 or higher it becomes very visible 
 that mouse motion isn't smooth. Mouse moves in a series of quite long jumps.
 I believe this effect is especially pronounced when some applications 
 read/write a lot of files.
 
 My understanding is that this is because signal from mouse gets stuck in 
 the fifo somewhere and not processed by x-server in time.
 
 Is there any solution to this problem?

Not guaranteed, but it has worked for several people in the past - try
rebuilding your kernel with the SCHED_ULE scheduler, instead of the
SCHED_BSD4 scheduler. Although ostensibly its benefits are more obvious
on multi-processor machines, it does often seem to fix this mouse lag
issue that comes up from time to time.

It has been discussed on the list several times, so you might find some
interesting further reading if you search the archives.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpsCPHbWhT2p.pgp
Description: PGP signature


Disappearing mount point

2008-12-06 Thread lhecking

 I have a really weird problem. After changing the mount point of a Linux
 ext3 fs to a different device, the mount point disappears after mounting
 and is inaccessible.

 Disk layout:
 ad4s1 Linux ext3
 ad4s2 FreeBSD
 ad4s3 Linux ext3
 ad4s4 ext
 ad4s5 Linux swap
 ad4s6 Linux ext3
 ad4s7 Linux ext3
 ad4s8 Linux ext3

 Mounting ad4s7 under FreeBSD as

/dev/ad4s7  /gentoo-portage ext2fs  rw  0   0

 Then I moved this data to ad4s8 and changed the fstab entry accordingly:

/dev/ad4s8  /gentoo-portage ext2fs  rw  0   0

 And this happens:

[EMAIL PROTECTED] ~]# cd /
[EMAIL PROTECTED] /]# ls
.cshrc cdrom  etcmnttmp
.profile   compat gentoo-portage proc   usr
.snap  devhome   rescue var
COPYRIGHT  dist   libroot
bindistfiles  libexecsbin
boot   entropymedia  sys
[EMAIL PROTECTED] /]# mount /gentoo-portage 
[EMAIL PROTECTED] /]# df
Filesystem  1K-blocksUsedAvail Capacity  Mounted on
/dev/ad4s2a   1012974  345748   58619037%/
devfs   1   10   100%/dev
/dev/ad4s2f   1010964   22324   907764 2%/home
/dev/ad4s2d   4058062  38  3733380 0%/tmp
/dev/ad4s2e  20308398 6763976 1191975236%/usr
procfs  4   40   100%/proc
linprocfs   4   40   100%/usr/compat/linux/proc
/dev/ad4s89929540 4505212  492390848%/gentoo-portage
[EMAIL PROTECTED] /]# ls
ls: gentoo-portage: Bad file descriptor
.cshrcbin   dev   etc   media root  usr
.profile  boot  dist  home  mnt   sbin  var
.snap cdrom distfiles lib   proc  sys   z
COPYRIGHT compatentropy   libexec   rescuetmp
[EMAIL PROTECTED] /]# uname -a
FreeBSD jeanie.my.domain 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #8: Mon Sep  1 
09:14:51 IST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/JEANIE  i386

 I changed the filesystem on /dev/ad4s8 to ext2, but the problem persists.
 No idea what's going on :-/


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


Re: ipfw and bridged interface

2008-12-06 Thread Ian Smith
On Thu, 4 Dec 2008 10:33:23 +0700 (ICT)
 Olivier Nicole [EMAIL PROTECTED] wrote:

  I remember that I read, many years ago, something about the way ipfw
  interacts with the IP stack. AFAIR, ipfw would be called on layer 2,
  where only certain rules would be applied, then on the IP layer where
  other rules would apply. Is it still the case? Where can I find th
  description?

Hi Olivier,

See the ipfw(8) section PACKET FLOW .. it's all there, with examples of 
how to separate layer2 from layer3 traffic, inbound and outbound.

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


Re: FreeBSD on Cisco IDS 4235

2008-12-06 Thread Peter
Hello,

I have fixed the problem myself. If anyone ever experience this problem
 the solution is:

Replace cisco BIOS with Dell BIOS for Poweredge 1650, revision 32. Then
FreeBSD 7 install like charm.

Link to DELL's site:

http://support.dell.com/support/downloads/download.aspx?c=usl=ens=genreleaseid=R68041SystemID=PWE_PNT_PIII_1650servicetag=os=WNETosl=endeviceid=159devlib=0typecnt=0vercnt=7catid=-1impid=-1formatcnt=4libid=1fileid=88251


Peter

Peter wrote:
 Hello,
 
 I am trying to install FreeBSD 7.0 on Cisco IDS 4235(pentium III 1.2
 Ghz, 1 GB ram, the device seems quite simialr to Dell PowerEdge 1750
 Server). However BTX loader dies with this message(see screenshot here:
 http://www.aboutsupport.com/freebsd/btx.jpg)
 
 I tried with both ACPI and Safe mode but still no luck.
 
 Other operating systems I tried:
 
 Debian - installs just fine
 FreeBSD 6.3 - installs just fine
 NetBSD 4 - installs just fine
 FreeBSD 7.1 FAILS, even at earlier stage than 7.0, on loader stage.
 
 Thanks in advance for your help.
 
 Peter
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: QT4.5 packages

2008-12-06 Thread matt donovan
On Sat, Dec 6, 2008 at 3:10 AM, Warren Liddell [EMAIL PROTECTED] wrote:

 You can find many packages for several releases under

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386
 ___


 Yeah that was the first palced i checked, but there is only 4.4.1 and at
 the least i need 4.4.2, but a lot of things im now running require 4.5 an
 being as i can build them i goto add them from pkg .. im running AMD64
 FreeBSD 7.1-PreRelease KDE 4.1.3

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


Qt4.5 has not been ported over yet but they are working on it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sticky mouse pointer on machine with high load

2008-12-06 Thread Wojciech Puchar

Not guaranteed, but it has worked for several people in the past - try
rebuilding your kernel with the SCHED_ULE scheduler, instead of the


make sure you have quite new FreeBSD 7-* branch, as it was quite improved 
few months ago.


you may try to tune it up by changing

kern.sched.interact

sysctl

in short - higher value - interactive processes gets better scheduling


SCHED_BSD4 scheduler. Although ostensibly its benefits are more obvious
on multi-processor machines, it does often seem to fix this mouse lag
issue that comes up from time to time.

It has been discussed on the list several times, so you might find some
interesting further reading if you search the archives.

Dan

--
Daniel Bye
_
 ASCII ribbon campaign ( )
- against HTML, vCards and  X
   - proprietary attachments in e-mail / \


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


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 Wojciech Puchar
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


The FreeBSD Diary: 2008-11-16 - 2008-12-06

2008-12-06 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

2-Dec : Obscuring smtp auth headers
 If you consider your smtp-auth location to be private, this is what you 
want. 
 http://freebsddiary.org/smtp-headers-rewrite-auth.php?2

29-Nov : OpenVPN - creating a routed VPN
 If you have multiple VPN clients, this is a practical solution. 
 http://freebsddiary.org/openvpn-routed.php?2

27-Nov : OpenVPN - getting it running
 Using OpenVPN to create a secure pathway between home and office 
 http://freebsddiary.org/openvpn.php?2

27-Nov : Creating your own Certificate Authority
 How to create a CA and generate your own SSL certificates
 http://freebsddiary.org/openvpn-easy-rsa.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: FreeBSD cannot power down

2008-12-06 Thread Bruce Cran
On Thu, Dec 04, 2008 at 03:42:51AM -0800, Unga wrote:
 --- On Tue, 12/2/08, Unga [EMAIL PROTECTED] wrote:
 
  From: Unga [EMAIL PROTECTED]
  Subject: FreeBSD cannot power down
  To: freebsd-questions@freebsd.org
  Date: Tuesday, December 2, 2008, 11:22 PM
  Hi all
  
  After a kernel recompilation on i386 RELENG_7 (not the
  latest), I cannot power down the machine.
  
  kldstat shows acpi.ko is loaded.
  
  It used to switch off but now the shutdown -p
  now halts the system with following messages:
  The operating system has halted.
  Please press any key to reboot.
  
  What else could I check to identify the cause? 
  
  Appreciate your ideas on this.
  
 
 I had a look at source code. The program flow seems to be is as follows:
 
 shutdown = (signals) init = reboot() = boot() = shutdown_final = 
 shutdown_halt() = cpu_halt()
 
 I did not see which function is called to request a power down.
 
 The __asm__ (hlt) doesn't power down, isn't it?
 
 Could you guys help me to identify how shutdown request a power down.
 

HLT is just an old power-saving instruction that was traditionally run 
in the idle loop.  From reading the code it looks like the system 
should be powered off during poweroff_wait but I can't see where ACPI is 
told to remove power.   You might get more help by asking on the 
freebsd-acpi list.

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


Re: UFS partitioning

2008-12-06 Thread Jerry McAllister
On Fri, Dec 05, 2008 at 11:28:32PM -0800, [EMAIL PROTECTED] wrote:

  Dangerous is probably overstating the issue a bit ...
 
 AFAIK the danger is that someone boots the machine with an
 installer for some other OS, and that installer treats the
 disk as unformatted -- hence obviously containing nothing
 important -- because it doesn't have a recognizable MBR.

Yes, that could happen if you run a non-FreeBSD installer that
doesn't know about FreeBSD and Dangerously Dedicated disks.

jerry


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


Re: UFS partitioning

2008-12-06 Thread Jerry McAllister
On Sat, Dec 06, 2008 at 09:16:00AM +0100, Wojciech Puchar wrote:

 
 AFAIK the danger is that someone boots the machine with an
 installer for some other OS, and that installer treats the
 disk as unformatted -- hence obviously containing nothing
 important -- because it doesn't have a recognizable MBR.
 
 some people rarely boot other OS :)

And, in that case, it probably doesn't matter.

jerry

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


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: Backup complete gmirror/gstripe/gjournal drives, how-to?

2008-12-06 Thread Wojciech Puchar
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?


i don't know how gjournal works but geom data is always at last sector of 
provider

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


Re: IPFilter section in Handbook needs updating

2008-12-06 Thread Fbsd1

G magicman wrote:

And incomplete yes i agree that the doc does need to be updated and examples 
(more) need to be added.

--- On Fri, 12/5/08, Dean Weimer [EMAIL PROTECTED] wrote:
From: Dean Weimer [EMAIL PROTECTED]
Subject: IPFilter section in Handbook needs updating
To: freebsd-questions@freebsd.org
Date: Friday, December 5, 2008, 10:07 AM

I was just setting up ipfilter and ipmon on a FreeBSD 7 server, and noticed that
the ipmon and syslog information under the ipfilter section of the handbook is
incorrect.

The section reads:
-snip-
31.5.7 IPMON Logging
Syslogd uses its own special method for segregation of log data. It uses
special groupings called facility and level. IPMON in
-Ds mode uses security as the facility name. All IPMON logged data
goes to security The following levels can be used to further segregate the
logged data if desired:
LOG_INFO - packets logged using the log keyword as the action
rather than pass or block.
LOG_NOTICE - packets logged which are also passed
LOG_WARNING - packets logged which are also blocked
LOG_ERR - packets which have been logged and which can be considered short
To setup IPFILTER to log all data to /var/log/ipfilter.log, you will need to
create the file. The following command will do that:
# touch /var/log/ipfilter.log
The syslog function is controlled by definition statements in the
/etc/syslog.conf file. The syslog.conf file offers considerable flexibility in
how syslog will deal with system messages issued by software applications like
IPF.
Add the following statement to /etc/syslog.conf:
security.* /var/log/ipfilter.log
The security.* means to write all the logged messages to the coded file
location.
To activate the changes to /etc/syslog.conf you can reboot or bump the syslog
task into re-reading /etc/syslog.conf by running /etc/rc.d/syslogd reload
Do not forget to change /etc/newsyslog.conf to rotate the new log you just
created above.
-snip-

In trying to configure this I found that ipmon -Dsa doesn't log to
security, but logs to local0 instead.  Reading the man page for ipmon does in
fact state this.  However it also list the -L option as being able to change
this default behavior, I tried ipmon -DSa -L security, it excepts this, but
doesn't actually change the logging to use security.  It still only outputs
to the syslog using local0, I also tried using ipmon -DSa -L local7 as well,
still outputs to local0.  It was easy enough to modify my syslog.conf to output
the local0.* as well as security.* to the /var/log/security file.  However it
would be greatly appreciated if someone that actually understands what's
going on here could get this info updated.  It would have saved me some time, as
well as I am sure some other people in the future.  Of course it's always
possible I am missing something simple here that is causing this discrepancy,
please do inform me if I did.  It's probably worth mentioning that I am
starting ipmon using the rc.conf file with ipmon_enable=YES and
ipmon_flags=-DSa, just in case the /etc/rc.d/ipmon script actually
changes the default behavior of ipmon in some way, though I didn't see
anything in it that should.  And ps wwaux | grep ipmon does display the process
running with the flags exactly as stated on the ipmon_flags line of the
/etc/rc.conf file.

Thanks,
 Dean Weimer
 Network Administrator
 Orscheln Management Co



I wrote that whole firewall handbook section. How is the following for 
complete replacement of the 31.5.7 IPMON Logging section?


31.5.7 IPMON Logging
Syslogd uses its own special method for segregation of log data. It uses 
special groupings called ‘facility’ and ‘level’. IPMON in –Ds mode uses 
local0 as the ‘facility’ name. All IPMON logged data goes to local0.
You have to manually configure the /etc/syslog.conf file by adding the 
statements to direct the Local0 'facility' to the log file name 
recording the log records. FBSD keeps all of its syslog files in 
/var/log/ directory.


First allocate the new named log file for the IPFMON logged data.

touch /var/log/ipfilter.log # will allocate the file

The syslog function is controlled by definition statements in the 
/etc/syslog.conf file.

You will have to edit the /etc/syslog.conf file.

Add the following statement to syslog.conf:

local0.* /var/log/ipfilter.log

The local0.* means to write all the logged messages to the coded file 
location.
To activate the changes to /etc/syslog.conf you can reboot or bump the 
syslog task into re-reading /etc/syslog.conf by kill –HUP pid. You get 
the pid (IE: process number) by listing the tasks with the ps ax 
command. Find syslog in the display and the pid number is the number in 
the left column.
Don’t forget to change /etc/newsyslog.conf to rotate the new named 
IPFILTER log you just created above.


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

Error Kernel Compiling

2008-12-06 Thread Federico Cicciarella
linking kernel.debug
if.o(.text+0x1027): In function `if_setlladdr':
/usr/src/sys/net/if.c:2646: undefined reference to `arp_ifinit'
igmp.o(.text+0x45): In function `igmp_sendpkt':
/usr/src/sys/netinet/igmp.c:472: undefined reference to `loif'
ip_output.o(.text+0xae9): In function `ip_output':
/usr/src/sys/netinet/ip_output.c:1196: undefined reference to `if_simloop'
ip_output.o(.text+0xcfe):/usr/src/sys/netinet/ip_output.c:451: undefined 
reference to `loif'
ip6_input.o(.text+0xedf): In function `ip6_input':
/usr/src/sys/netinet6/ip6_input.c:254: undefined reference to `loif'
ip6_output.o(.text+0x10a): In function `ip6_mloopback':
/usr/src/sys/netinet6/ip6_output.c:3258: undefined reference to `if_simloop'
ip6_output.o(.text+0x3bad): In function `ip6_output':
/usr/src/sys/netinet6/ip6_output.c:845: undefined reference to `loif'
nd6.o(.text+0x2d77): In function `nd6_rtrequest':
/usr/src/sys/netinet6/nd6.c:1334: undefined reference to `loif'
*** Error code 1

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

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

Stop in /usr/src.



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


FreeBSD /dev/fd0

2008-12-06 Thread Cynical Nihilist

Hi,

   I am having issues configuring and using my external floppy drive on 
FreeBSD 7.0-RELEASE. It's a parallel port floppy drive. /dev/fd0 is not 
present and dmesg shows
fdc0: floppy drive controller (FDE) port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 
on acpi0

fdc0: [FILTER]

when using dmesg | grep fd

parallel port is working properly and I can read/write from it.

Thank you

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