LSI 53c1020 (mpt) troubles

2020-12-16 Thread Daniel O'Connor via freebsd-stable
Hi,
I have a system which I've put an LSI 53c1020 (the PCIe version) so I can 
connect an old LTO tape drive (U320 interface) to it.

It detects the tape drive but emits some alarming messages and access to it is 
impossibly slow.

I suspect the cable is dodgy, so I am waiting to get another one to test with 
because it also runs very slowly under Linux.

However on FreeBSD it spams the logs with messages like:
Dec 17 03:09:15 maarsy-acq3 kernel: mpt0: request 0xfe00b9f7b3c0:172 timed 
out for ccb 0xf800073c9000 (req->ccb 0xf800073c9000)
Dec 17 03:09:15 maarsy-acq3 kernel: mpt0: attempting to abort req 
0xfe00b9f7b3c0:172 function 0
Dec 17 03:09:15 maarsy-acq3 kernel: mpt0: abort of req 0xfe00b9f7b3c0:172 
completed
Dec 17 03:09:15 maarsy-acq3 kernel: mpt0: attempting to abort req 
0xfe00b9f7b3c0:172 function 0
Dec 17 03:09:15 maarsy-acq3 kernel: mpt0: abort of req 0xfe00b9f7b3c0:172 
completed

These are repeated many times per second.

Under Linux it does not seem to do this (tested with Ubuntu 20.04 ISO)

If anyone is interested in testing patches to improve the robustness then I can 
test them since the new cable will take a while to arrive :)

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum

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


ZFS hanging on too hard

2013-10-13 Thread Daniel O'Connor
Hi all,
I'm trying to setup a ZFS mirror system with a USB disk as backup. The backup 
disk is a ZFS pool which I am zfs send'ing to.

However I find that if the disk is disconnected while mounted then things go 
pear shaped..
root@gateway:~ # zpool status -v
  pool: backupA
 state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool clear'.
   see: http://illumos.org/msg/ZFS-8000-HC
  scan: none requested
config:

NAME  STATE READ WRITE CKSUM
backupA   UNAVAIL  0 0 0
  1877640355  REMOVED  0 0 0  was /dev/da0

errors: List of errors unavailable (insufficient privileges)

(but I am root..)

root@gateway:~ # zpool online pool /dev/da0
cannot online /dev/da0: no such device in pool

?!

Anyone have any ideas?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: ZFS hanging on too hard

2013-10-13 Thread Daniel O'Connor

On 14/10/2013, at 2:32, Steven Hartland kill...@multiplay.co.uk wrote:
 First pool is not your pool name its backupA so try:
 zpool online backupA /dev/da0
 
 If that still fails try:
 zpool online backupA 1877640355


I get..
root@gateway:~ # zpool online backupA /dev/da0
cannot online /dev/da0: pool I/O is currently suspended
root@gateway:~ # zpool online backupA 1877640355
cannot online 1877640355: pool I/O is currently suspended

It seems that it does not recognise the disk is present :(

I tried zpool export but that hangs, eg
root@gateway:~ # zpool export -f backupA
load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k
load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k
load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: ZFS hanging on too hard

2013-10-13 Thread Daniel O'Connor

On 14/10/2013, at 8:44, Steven Hartland kill...@multiplay.co.uk wrote:
 root@gateway:~ # zpool export -f backupA
 load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k
 load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k
 load: 0.04  cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k
 
 Hmm I guess your going to have to reboot, which is not ideal.


Yeah :(
Also, if I _do_ reboot it hangs on shutdown, the last message is about da0 
having pending buffers..

It rather makes my idea of a zpool on the backup disk a bit risky - if someone 
pulls the disk while it's imported then the server would need to be rebooted.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: ZFS hanging on too hard

2013-10-13 Thread Daniel O'Connor

On 14/10/2013, at 9:00, Steven Hartland kill...@multiplay.co.uk wrote:
 pulls the disk while it's imported then the server would need to be 
 rebooted.
 That could mean the underlying issue may be a USB or CAM scsi_da.
 You didnt say which OS version your running?
 
 The following may help forcing the shutdown if it is a USB problem, although 
 be
 warned you may well loose data in normal operation, so would avoid leaving it
 in your case.
 
 hw.usb.no_shutdown_wait=1


That seems to work around the hang on reboot, thanks.

I am running 9.2 (fresh install from a USB key).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: ZFS hanging on too hard

2013-10-13 Thread Daniel O'Connor

On 14/10/2013, at 9:19, Steven Hartland kill...@multiplay.co.uk wrote:
   hw.usb.no_shutdown_wait=1
 That seems to work around the hang on reboot, thanks.
 I am running 9.2 (fresh install from a USB key).
 
 That does kind of point the finger away from ZFS code, is it reproducable?


Yes, 100% of the time.

I agree the USB behaviour is suboptimal, however I'm not sure if the ZFS code 
is blameless.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


FreeBSD 9.2 ahci under Parallels VM

2013-10-13 Thread Daniel O'Connor
Hi,
I am trying to setup a FreeBSD 9.2 under Parallels and I find that I have to 
tell it to present IDE disks instead of SATA ones otherwise it gets timeouts 
probing for the disks.

Is there some debugging I can enable to gather more information?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


ZFS devd messages

2013-10-11 Thread Daniel O'Connor
Hi,
It seems that the ZFS messages no longer match entries in devd.conf, eg..
notify 10 {
match system  ZFS;
match typevdev;
action logger -p kern.err 'ZFS: vdev failure, zpool=$pool type=$type';
};

Doesn't match anything because messages now look like..
Processing event '!system=ZFS subsystem=ZFS type=resource.fs.zfs.removed  
version=0 class=resource.fs.zfs.removed pool_guid=469710819 vdev_guid=215223839'

Does anyone have an updated set of rules handy?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: ZFS devd messages

2013-10-11 Thread Daniel O'Connor

On 12/10/2013, at 11:21, Daniel O'Connor docon...@gsoft.com.au wrote:
 Doesn't match anything because messages now look like..
 Processing event '!system=ZFS subsystem=ZFS type=resource.fs.zfs.removed  
 version=0 class=resource.fs.zfs.removed pool_guid=469710819 
 vdev_guid=215223839'
 
 Does anyone have an updated set of rules handy?


For now I nuked the entries out of /etc/devd.conf and made some in 
/etc/devd/zfs.conf (where they should have been to start with IMO..) like so..
notify 10 {
match system  ZFS;
action logger -p kern.err 'ZFS notice: type=$type version=$version 
class=$class pool_guid=$pool_guid vdev_guid=$vdev_guid';
action echo 'ZFS notice: type=$type version=$version class=$class 
pool_guid=$pool_guid vdev_guid=$vdev_guid' | mail -s 'ZFS Event' zfs;
};

And added an alias for zfs@.

It would be nice if this was the default, yes it is a bit noisy and not very 
user friendly but at least you get notice something weird is happening out of 
the box.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


GEOM RAID devd events

2013-08-01 Thread Daniel O'Connor
Hi,
Does anyone know if graid generates devd events for 'interesting' RAID events? 
(eg array becoming degraded, rebuild progress  completion, etc). I had a look 
and I couldn't find any devctl_notify* calls but perhaps they are hidden behind 
some GEOM calls.

If there aren't, are there any plans to add some? I am happy to test, or even 
write if I can find some time.

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: GEOM RAID devd events

2013-08-01 Thread Daniel O'Connor

On 01/08/2013, at 19:16, Alexander Motin m...@freebsd.org wrote:
 On 01.08.2013 12:36, Daniel O'Connor wrote:
 
 Does anyone know if graid generates devd events for 'interesting' RAID 
 events? (eg array becoming degraded, rebuild progress  completion, etc). I 
 had a look and I couldn't find any devctl_notify* calls but perhaps they are 
 hidden behind some GEOM calls.
 
 If there aren't, are there any plans to add some? I am happy to test, or 
 even write if I can find some time.
 
 GEOM RAID does not do anything special about devd now. I had no such plans, 
 but probably that is a not a bad idea if do it well.


Do you have a recommendation for where I should start looking? (ie a hint about 
where such a thing would go)

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: GEOM RAID devd events

2013-08-01 Thread Daniel O'Connor

On 01/08/2013, at 19:56, Daniel O'Connor docon...@gsoft.com.au wrote:
 GEOM RAID does not do anything special about devd now. I had no such plans, 
 but probably that is a not a bad idea if do it well.
 
 Do you have a recommendation for where I should start looking? (ie a hint 
 about where such a thing would go)

After doing the reading I should have done before I sent my last message I see 
that g_raid_update_* look good candidates.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Booting FreeBSD with Syslinux

2013-07-31 Thread Daniel O'Connor
Hi,
I am trying to make a FreeBSD 9.2 hybrid image (ie ISO  USB from the same 
file) and as part of that I need to use syslinux. Unfortunately I can't get 
Syslinux's mboot.c32 to run the kernel or loader as suggested at 
http://www.syslinux.org/wiki/index.php/Mboot.c32 - it reports Invalid 
Multiboot image: neither ELF header nor a.out kludge found.

I suspect I would be able to use memdisk as I have used that in the past with 
syslinux (for 7.x) however this was seems a lot cleaner and easier to generate.

Has anyone had any success with this?

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Booting FreeBSD with Syslinux

2013-07-31 Thread Daniel O'Connor

On 01/08/2013, at 1:45, Teske, Devin devin.te...@fisglobal.com wrote:
 Has anyone had any success with this?
 
 
 Absolutely.
 
 You can download and dissect the following to show you how it's done...
 
 http://druidbsd.sourceforge.net/download.shtml#FreeBSD_Druid
 
 It uses syslinux, as you can see here:
 
 http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/boot/freebsd/isolinux.cfg?revision=1.1view=markup
 
 As you can see, I use the memdisk.c32 module.
 
 Notice that I append iso raw as options to memdisk.c32.

Yes, I have used memdisk in the past but I want to avoid it if possible. It 
makes building the image quite a bit more complicated (and tedious to edit).

Have you tried mboot?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Booting FreeBSD with Syslinux

2013-07-31 Thread Daniel O'Connor

On 01/08/2013, at 9:04, dte...@freebsd.org wrote:
 Have you tried mboot?
 
 No I have not.
 
 Do you know anyone that has got it to work?


Supposedly someone got it to work because there is an entry in the syslinux wiki
http://www.syslinux.org/wiki/index.php/Mboot.c32#FreeBSD_example

That was for 7.x though, maybe the kernel has changed a bit.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Booting FreeBSD with Syslinux

2013-07-31 Thread Daniel O'Connor

On 01/08/2013, at 9:41, Adam Vande More amvandem...@gmail.com wrote:
 On Wed, Jul 31, 2013 at 6:43 PM, Daniel O'Connor docon...@gsoft.com.au 
 wrote: 
  
 That was for 7.x though, maybe the kernel has changed a bit.
 
 It doesn't say that at all.  Nor does it say the exact release(even major 
 branch isn't mentioned) which was confirmed to work, when or if it was tried, 
 the precise syntax used, or any other type of useful information.  

Good point, I've asked the original poster for more details.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Booting FreeBSD with Syslinux

2013-07-31 Thread Daniel O'Connor

On 01/08/2013, at 12:15, Warren Block wbl...@wonkity.com wrote:
 Supposedly someone got it to work because there is an entry in the syslinux 
 wiki
 http://www.syslinux.org/wiki/index.php/Mboot.c32#FreeBSD_example
 
 I'm following the threads on both lists, and that example looks more like a 
 generic template than an actual, working command. kernel_option, for 
 example.

Yeah, I also wonder if it's for booting a XENified FreeBSD or something similar 
(no idea really).

Maybe I'll just have to stuff the loader in an MFS and boot that :(

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


kern.geom.conftxt broken in the presence of geom_raid

2013-07-22 Thread Daniel O'Connor
I am trying to write a script which generates a list of devices to install on 
(hopefully with some vaguely descriptive message next to it) and I noticed that 
kern.geom.conftxt is mangled when there is a graid volume present, eg..
root@test92:/root # sysctl kern.geom.conftxt | less
kern.geom.conftxt: 0 DISK ada2 500107862016 512 hd 16 sc 63
1 RAID raid/r0 500104691712 512(null)descrIntel RAID1 volume/descr
(null)LabelVolume0/Label
(null)RAIDLevelRAID1/RAIDLevel
(null)TransformationRAID1/Transformation
(null)Components2/Components
(null)Strip65536/Strip
(null)StateOPTIMAL/State
(null)DirtyNo/Dirty
(null)Subdisksada1 (ACTIVE), ada2 (ACTIVE)/Subdisks

2 PART raid/r0p6 471372660736 512 i 6 o 27917370368 ty freebsd-ufs xs GPT xt 
516e7cb6-6ecf-11d6-8ff8-00022d09712b
3 LABEL gptid/821a18d0-efb3-11e2-855b-002590d071b5 471372660736 512 i 0 o 0
3 LABEL ufsid/51e7fdbd167c3fbb 471372660736 512 i 0 o 0
2 PART raid/r0p5 21474836480 512 i 5 o 6442533888 ty freebsd-ufs xs GPT xt 
516e7cb6-6ecf-11d6-8ff8-00022d09712b

It looks like the config tag has been pushed in where it shouldn't be.

So, I guess I'll have to find some other way to generate my list :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Trouble building release with docs

2013-07-21 Thread Daniel O'Connor

On 21/07/2013, at 16:19, Glen Barber g...@freebsd.org wrote:

 On Sat, Jul 20, 2013 at 04:44:56PM +0930, Daniel O'Connor wrote:
 Hi,
 I am trying to do a full (customised) release of 9.1 but I am
 having trouble building the docs. If I use NODOC it builds fine,
 but without that I get..
 
 [...]
 
 May I ask why 9.1?


Actually that's an excellent question :)

I though 9.1 was coming out not 9.2 but that is not correct.

So, if I rebuild with 9.2 checked out will the docs build?

Thanks

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Trouble building release with docs

2013-07-21 Thread Daniel O'Connor

On 21/07/2013, at 23:56, Warren Block wbl...@wonkity.com wrote:
 So, if I rebuild with 9.2 checked out will the docs build?
 
 
 Yes.
 
 Depending on the use, just downloading the built documents from 
 ftp://ftp.freebsd.org/pub/FreeBSD/doc/en_US.ISO8859-1/ could be more 
 effective.


I can build /usr/doc OK, I am having trouble building /usr/src/release/doc.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Trouble building release with docs

2013-07-21 Thread Daniel O'Connor

On 22/07/2013, at 7:58, Glen Barber g...@freebsd.org wrote:
 On Mon, Jul 22, 2013 at 07:55:03AM +0930, Daniel O'Connor wrote:
 
 On 21/07/2013, at 23:56, Warren Block wbl...@wonkity.com wrote:
 So, if I rebuild with 9.2 checked out will the docs build?
 
 
 Yes.
 
 Depending on the use, just downloading the built documents from
 ftp://ftp.freebsd.org/pub/FreeBSD/doc/en_US.ISO8859-1/ could be
 more effective.
 
 
 I can build /usr/doc OK, I am having trouble building /usr/src/release/doc.
 
 
 doc/ build as of at least r253470 is fine for stable/9 branch.  Are you
 saying you are still having a problem?


No, it builds now (after I checked out r253470). Sorry for the confusion.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








signature.asc
Description: Message signed with OpenPGP using GPGMail


Trouble building release with docs

2013-07-20 Thread Daniel O'Connor
Hi,
I am trying to do a full (customised) release of 9.1 but I am having trouble 
building the docs. If I use NODOC it builds fine, but without that I get..
[andenes 7:04] /usr/src/release #/usr/bin/time make release 
BUILDNAME=$BUILDNAME  
make -C /usr/src/release  BUILDNAME=9.1-GENESIS obj
make -C /usr/src/release  BUILDNAME=9.1-GENESIS ftp cdrom memstick
cd /usr/src/release/doc  make all install clean 'FORMATS=html txt'  
INSTALL_COMPRESSED='' URLS_ABSOLUTE=YES DOCDIR=/usr/obj/usr/src/release/rdoc
=== en_US.ISO8859-1 (all)
=== en_US.ISO8859-1/relnotes (all)
/usr/bin/grep '^?xml version=.*?' article.xml  article.parsed.xml.tmp
grep: article.xml: No such file or directory
*** [article.parsed.xml] Error code 2

Stop in /usr/src/release/doc/en_US.ISO8859-1/relnotes.
*** [all] Error code 1

Stop in /usr/src/release/doc/en_US.ISO8859-1.
*** [all] Error code 1

Stop in /usr/src/release/doc.
*** [reldoc] Error code 1

Stop in /usr/src/release.
*** [release] Error code 1

Stop in /usr/src/release.
0.48 real 0.37 user 0.10 sys

There is article.sgml though.. I have installed textproc/docproj and I can 
build /usr/docs fine.

I have /usr/src r253451 and /usr/doc r42325.

I can copy a doc distfile from a 'real' release since I'm not customising that, 
but it would be nice to know what I'm doing wrong :)

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Trouble building release with docs

2013-07-20 Thread Daniel O'Connor

On 20/07/2013, at 22:47, Warren Block wbl...@wonkity.com wrote:
 There is article.sgml though.. I have installed textproc/docproj and I can 
 build /usr/docs fine.
 
 What does svn say about that file?
 
  % cd /usr/src/release/doc/en_US.ISO8859-1/relnotes/
  % svn stat
?   article.parsed.xml.tmp

 The article.sgml suggests a leftover file from an earlier /usr/src that was 
 not removed before svn checkout.  That does not explain why article.xml is 
 missing, though.  It is present on my 9-stable and 8-stable checkouts.  Maybe 
 a mixed or partial checkout?

I got a response on IRC, apparently my docproj port is too new to build the 
sgml release docs.

I think I'll just skip it for now, none of the documentation there is of 
interest to me anyway.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: portupgrade(1) | portmaster(8) -- which is more effective for large upgrade?

2013-06-26 Thread Daniel O'Connor

On 27/06/2013, at 5:53, Jeremy Chadwick j...@koitsu.org wrote:
 cd /usr/ports/whatever
 make install clean
 {lather rinse repeat until done}

The faster version of this is
find /usr/ports -maxdepth 3 -name work -type d -print0 | xargs -0 rm -rf

Simpler is to put..
WRKDIRPREFIX=/foo/bar
in /etc/make.conf

Then you can just rm -rf /foo/bar/work to delete all of the port build goop.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: zpool labelclear destroys GPT data

2013-06-14 Thread Daniel O'Connor

On 14/06/2013, at 17:05, Johan Hendriks joh.hendr...@gmail.com wrote:
 Of course, zpool(8) will do exactly what you tell it to do. It does
 not know about any partitioning schemes and assumes that the user
 knows that using labelclear on a the whole disk will potentially
 destroy all data on it including any partitioning information.
 
 Well as i found out, zpool(8) does not know what it clears. ! :D
 
 I think an adjustment to the man page is in order here.
 The man page clearly state it removes ZFS labels, not GPT, gmirror and glabel 
 labels.
 It should mention it will remove labels from the disk/device, and that it 
 clears ALL labels.
 
 If a user reads the man page it now looks save to use labelclear.
 I thougt that zpool would know if there was zpool label information on the 
 disk, and if i a case there is no ZFS label information it will tell me that!
 In my case i did not loose anything, so no big deal but there will proberbly 
 be someone who gets bitten by this.
 
 A plus is that  i found a new way to clear my disks fast ! ;)


It only clears ZFS labels, just because GPT  gmirror information sits in a 
similar place doesn't make that incorrect.

You are saying the equivalent of..
Why does dd if=/dev/zero of=/dev/da0 erase my whole disk, not just the first 
partition?

ie you are giving the tool bad options and then complaining when it doesn't do 
what you meant :)

Perhaps it should be modified to check if there is valid ZFS data there before 
proceeding (although that could be annoying unless there is a way to force it), 
and/or the man page could be amended to say it doesn't do any checks before 
erasing things.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: zpool labelclear destroys GPT data

2013-06-14 Thread Daniel O'Connor

On 14/06/2013, at 17:48, Alban Hertroys haram...@gmail.com wrote:
 IMHO it would be helpful to verify what's there first and warn the user about 
 it if such an operation will overwrite a different type of label than what is 
 about to get written there.
 Perhaps it should even refuse to write (by issuing an error stating that 
 there is already a label there - and preferably also what type) until the 
 label that's already there gets explicitly cleared by the user or until the 
 command gets forced.
 Does that make sense?

The problem with this is that then each label tool needs to know about every 
other label format you want to detect for..

If a label format has a checksum then you could ignore a request to nuke the 
label if there is no valid checksum (with a flag to force). No idea how many 
have checksums though..

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: zpool labelclear destroys GPT data

2013-06-14 Thread Daniel O'Connor

On 14/06/2013, at 18:16, Alban Hertroys haram...@gmail.com wrote:
 The problem with this is that then each label tool needs to know about every 
 other label format you want to detect for..
 
 Isn't it possible to add such information to labels, so that the tools at 
 least know who to ask what they're dealing with?
 
Not really, the format of the labels is fixed, and there is no standard way 
they are arranged.

 If there is no guaranteed method of identifying data on the disk as a 
 label, then you can't warn the user in all cases. That's not particularly 
 helpful for those cases where you can't warn the user. That's possibly a 
 worse situation than what started this thread.

Being warned some of the time seems better than none of the time.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Flow monitoring with PF

2013-06-12 Thread Daniel O'Connor

On 12/06/2013, at 9:47, Scott, Brian brian.sco...@det.nsw.edu.au wrote:
 I was looking at trying out flow monitoring and I found pfflowd, but 
 unfortunately it does not work with FreeBSD 9.0. I thought about ng_netflow 
 but that doesn't see my tun interface which may be related to..
 WARNING: attempt to domain_add(netgraph) after domainfinalize()
 
 Noise message. I've never seen it actually mean anything.
 
 The problem is that tun0 is a generic network interface. Ng_ether only 
 exposes Ethernet devices. The equivalent to tun but for an Ethernet device is 
 tap. Creating a tap device after boot immediately creates the corresponding 
 ng_ether node which can then be plumbed into ng_netflow.

OK, for some reason I thought NG would add nodes to mirror every network 
interface but that was wrong..

 Some software is kind enough to work with either tun or tap as a configurable 
 option.

Unfortunately I am using ppp which doesn't :(

 Does anyone have any recommendations for generating flow information from PF?
 
 I've had great success with ng_netflow. I like the fact that all the 
 processing is in-kernel.


Yeah, that is one reason I looked at it.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Multicast panic caused by elasticsearch

2013-06-12 Thread Daniel O'Connor

On 10/06/2013, at 11:30, Guy Helmer guy.hel...@gmail.com wrote:
 
 FreeBSD maarsy-rdb.maarsy.rocketrange.no 9.0-CURRENT FreeBSD 9.0-CURRENT 
 #0 r224195: Tue Jul 19 17:45:03 CST 2011 
 ra...@maarsy-acq3.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC  amd64
 
 FWIW, I have not had any problem with elasticsearch on 9.1-stable from 
 about mid-May.
 
 
 OK thanks. I need to try it on a crash box and test a few things, thanks 
 for the data point.
 Can you tell me what revision you are running?
 
 
 Also, which JVM?
 
 
 FreeBSD 9.1-stable r250314 (built on May 10)
 openjdk-7.17.02_2
 elasticsearch 0.90.0 (not from ports)
 
 Please let me know if you want me to try anything.


I tried a crash box at work with the same kernel and both OpenJDK 6  7 but I 
have been unable to reproduce the problem :(

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Flow monitoring with PF

2013-06-12 Thread Daniel O'Connor

On 13/06/2013, at 3:06, Ermal Luçi e...@freebsd.org wrote:
 I was looking at trying out flow monitoring and I found pfflowd, but 
 unfortunately it does not work with FreeBSD 9.0. I thought about ng_netflow 
 but that doesn't see my tun interface which may be related to..
 WARNING: attempt to domain_add(netgraph) after domainfinalize()
 
 since tun0 appears after the kernel is all done.
 
 Does anyone have any recommendations for generating flow information from PF?
 
 Here https://github.com/pfsense/pfsense-tools/tree/master/pfPorts/pfflowd-0.8
 is a port that should work ok with pf(4) in FreeBSD 9.0++

Ahh very nice, thanks!

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Flow monitoring with PF

2013-06-11 Thread Daniel O'Connor
Hi,
I was looking at trying out flow monitoring and I found pfflowd, but 
unfortunately it does not work with FreeBSD 9.0. I thought about ng_netflow 
but that doesn't see my tun interface which may be related to..
WARNING: attempt to domain_add(netgraph) after domainfinalize()

since tun0 appears after the kernel is all done.

Does anyone have any recommendations for generating flow information from PF?

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Multicast panic caused by elasticsearch

2013-06-08 Thread Daniel O'Connor
Hi,
I was experimenting with Logstash + elasticsearch on FreeBSD 9 - initially I 
downloaded it by hand (I forgot to check for a port) and it worked fine.

I then tried the port and this forced me to use a different java version (was 
jdk-16.0.3p4_25 now openjdk6-b27) and it seems that the new one causes a panic.

Unfortunately crashdumps aren't working properly, however I did get the panic 
message..
in6p_lookup_mcast_ifp: not multicast

This is from /usr/src/sys/netinet6/in6_mcast.c around line 1775.

Has anyone else seen such a problem? Some quick googling didn't show anything.

uname is..
FreeBSD maarsy-rdb.maarsy.rocketrange.no 9.0-CURRENT FreeBSD 9.0-CURRENT #0 
r224195: Tue Jul 19 17:45:03 CST 2011 
ra...@maarsy-acq3.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC  amd64

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Multicast panic caused by elasticsearch

2013-06-08 Thread Daniel O'Connor

On 09/06/2013, at 3:00, Guy Helmer guy.hel...@gmail.com wrote:
 uname is..
 FreeBSD maarsy-rdb.maarsy.rocketrange.no 9.0-CURRENT FreeBSD 9.0-CURRENT #0 
 r224195: Tue Jul 19 17:45:03 CST 2011 
 ra...@maarsy-acq3.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC  amd64
 
 
 
 FWIW, I have not had any problem with elasticsearch on 9.1-stable from about 
 mid-May.


OK thanks. I need to try it on a crash box and test a few things, thanks for 
the data point.
Can you tell me what revision you are running?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Multicast panic caused by elasticsearch

2013-06-08 Thread Daniel O'Connor

On 09/06/2013, at 11:45, Daniel O'Connor docon...@gsoft.com.au wrote:
 On 09/06/2013, at 3:00, Guy Helmer guy.hel...@gmail.com wrote:
 uname is..
 FreeBSD maarsy-rdb.maarsy.rocketrange.no 9.0-CURRENT FreeBSD 9.0-CURRENT #0 
 r224195: Tue Jul 19 17:45:03 CST 2011 
 ra...@maarsy-acq3.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC  amd64
 
 FWIW, I have not had any problem with elasticsearch on 9.1-stable from about 
 mid-May.
 
 
 OK thanks. I need to try it on a crash box and test a few things, thanks for 
 the data point.
 Can you tell me what revision you are running?


Also, which JVM?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Serial terminal issues

2013-06-06 Thread Daniel O'Connor

On 06/06/2013, at 22:51, Christian Weisgerber na...@mips.inka.de wrote:
 Alban Hertroys haram...@gmail.com wrote:
 
 The new system has a Gigabyte GA970A-UD3 board with just a serial header
 on the board. I bought a serial connector backplate in an electronics
 store and connected it to the board. Could the pinout be different or
 something?
 
 Yes.  There are two different pinouts for motherboard serial headers.


You can probably reverse it yourself if you are careful though - open one end 
and lift the cable out, flip it over and crimp it back in a vice then trim the 
excess cable with a hobby knife.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Serial terminal issues

2013-06-05 Thread Daniel O'Connor

On 06/06/2013, at 4:59, Alban Hertroys haram...@gmail.com wrote:
 It is very possible.  You should have asked Gigabyte what exact product
 (specifically part number) to purchase that provided a
 header-to-backplane DB9 port, or if they could send you one (many will
 for free).  Always use what the mainboard vendor tells you.  Always.
 
 I contacted Gigabyte, but haven't heard from them yet.
 
 For the Dutch readers: their website is at gigabyte.co.nl. You absolutely 
 don't want to go to gigabyte.nl - not safe for work, not at all (guess where 
 I was…).

We make our serial cables at work, it is fairly straightforward. You can see in 
the manual which end of the motherboard connector is pin 1.

We have ribbon cable and insulation displacement D9  2x5 headers on hand 
though..

If you aren't certain the serial hardware works I suggest building or buying a 
serial loopback connector and plugging it in.
Then run..
cu -l /dev/cuXXX -s 9600
and typing and see if you get your typing echoed back.

If you do then you know the serial hardware  driver are working.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: [UART] GPS 18-5Hz LVC and COM1 silence, OK on Linux though...

2013-04-28 Thread Daniel O'Connor

On 29/04/2013, at 3:18, Igor Mozolevsky i...@hybrid-lab.co.uk wrote:
 I'm having issues connecting Garmin GPS 18 to COM1 on 9.1, I get
 nothing but silence. Identical setup works absolutely fine with Linux.
 I've got PPS wire connected to DCD, but that seems to make no
 difference on Linux, so I presume it shouldn't affect fbsd either.
snip
 # cu -l /dev/cuau0 -s 4800
 Connected
 
 and after the 'Connected' there is just silence (should be getting
 $GPGLL every 200ms from the GPS unit)...


Do you have any other serial ports?
They may be probed in a different order between the 2 OSs.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








smime.p7s
Description: S/MIME cryptographic signature


Linux a.out binaries

2013-04-17 Thread Daniel O'Connor
I have some very old Linux a.out binaries that I have run on a FreeBSD 4 box. I 
recently tried them on a 9.1 system but I get an exec format error when trying 
to run them.

[obtuse 11:45] ~ /usr/local/rsi/idl_4/bin/bin.linux/idl
zsh: exec format error: /usr/local/rsi/idl_4/bin/bin.linux/idl
[obtuse 11:45] ~ file /usr/local/rsi/idl_4/bin/bin.linux/idl
/usr/local/rsi/idl_4/bin/bin.linux/idl: Linux/i386 demand-paged executable 
(QMAGIC), stripped

I presume it has rotted and was removed, does anyone know when?

THanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








smime.p7s
Description: S/MIME cryptographic signature


Re: Linux a.out binaries

2013-04-17 Thread Daniel O'Connor

On 18/04/2013, at 13:09, Jeremy Chadwick j...@koitsu.org wrote:
 I presume it has rotted and was removed, does anyone know when?
 
 Good lord, the number of possibilities here are almost endless.  You
 can't be serious...

Perfectly!

I don't think this is any worse than trying to run FreeBSD 1.0 binaries on 
-current :)

 My first inclination is to ask you if that FreeBSD system is amd64 or
 i386.  Your Linux a.out binaries are i386.
 
 If the FreeBSD system is amd64: I don't think this is going to work;
 I see nothing in /sys/amd64/conf/* that indicates a.out is supported.
 Sure, 32-bit binaries might be (with COMPAT_FREEBSD32), but that's
 architecture, not format.

Yeah, I wondered if that was the case. It is an amd64 system.

 If the FreeBSD system is i386: /sys/i386/conf/NOTES mentions a kernel
 option called COMPAT_AOUT, which **is not** enabled in GENERIC.  And of
 course don't forget COMPAT_LINUX.
 
 Also worth noting is the BUGS section of a.out(5).


It's looking like running it inside a FreeBSD 4 VM is the easier solution :)

Thankfully it doesn't get much use these days now the person who needs it can 
run GDL.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








smime.p7s
Description: S/MIME cryptographic signature


Re: SU+J hard recovery failure

2013-03-27 Thread Daniel O'Connor

On 27/03/2013, at 18:43, David Demelier demelier.da...@gmail.com wrote:
 Yesterday I had a panic on my laptop. Unfortunately the SU+J was not
 able to recovery the file system, the error was something like :
 
 Unknown error: Help!
 Could not find directory 9854215
 
 And it went to the single user mode, I needed to fsck_ufs manually to
 recover the disk. What afraid me is what if happens on a headless
 machine? It will be hard to recover.


For headless remote systems I use fsck_y_enable=YES.

In my experience 'fsck -y' almost invariably recovers the disk to a point where 
it can boot and then I can login remotely.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








smime.p7s
Description: S/MIME cryptographic signature


KDE login causing processes stuck in zfs wchan

2013-03-22 Thread Daniel O'Connor
Hi,
I recently updated to KDE 4.9.5 and I've found that unless I disable 
vfs.usermount (which stops gvfs from mounting) everything gets stuck in [zfs] 
eventually.

This is running on..
FreeBSD midget.dons.net.au 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #10 r241435M: 
Thu Oct 11 15:03:22 CST 2012 
dar...@midget.dons.net.au:/usr/obj/usr/src/sys/MIDGET  amd64

Does anyone have a similar experience?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Empty @cwd in some ports

2013-03-20 Thread Daniel O'Connor
I noticed I have a lot of ports which have an empty @cwd line in the +CONTENTS 
file (even after reinstalling).

For example a2ps..
@comment PKG_FORMAT_REVISION:1.1
@name a2ps-a4-4.13b_4
@comment ORIGIN:print/a2ps-a4
@cwd /usr/local
@pkgdep xineramaproto-1.2.1
@comment DEPORIGIN:x11/xineramaproto
snip
@exec /sbin/ldconfig -m /usr/local/lib
@unexec /sbin/ldconfig -R
@comment OPTIONS:+NLS -I18N +EMACS
@cwd 
@dirrm share/licenses/a2ps-a4-4.13b_4

And curl..
@comment PKG_FORMAT_REVISION:1.1
@name curl-7.24.0_2
@comment ORIGIN:ftp/curl
@cwd /usr/local
@pkgdep ca_root_nss-3.14.3
@comment DEPORIGIN:security/ca_root_nss
snip
@comment OPTIONS:-CARES -CURL_DEBUG -GNUTLS +IPV6 -KERBEROS4 -LDAP -LDAPS 
-LIBIDN -LIBSSH2 -NTLM +OPENSSL +CA_BUNDLE +PROXY -RTMP
@comment OPTIONS:-TRACKMEMORY
@cwd 
@dirrm share/licenses/curl-7.24.0_2
@unexec rmdir %D/share/licenses 2/dev/null || true

This seems pretty broken but I am not sure what causes it :(
[midget 21:09] /var/db/pkg egrep -l '@cwd $' */+CONTENTS| wc -l
 300

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Empty @cwd in some ports

2013-03-20 Thread Daniel O'Connor

On 20/03/2013, at 22:06, Baptiste Daroussin b...@freebsd.org wrote:
 Empty cwd is normal, it is equivalent to @cwd %%PREFIX%%


OK thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Functional KDE desktop

2013-03-18 Thread Daniel O'Connor

On 18/03/2013, at 3:02, Eric S Pulley pul...@dabus.com wrote:
 I have it working fine here. I originally was using it on 9.0 then I
 upgraded everything but that didn't work well for the KDE 4.8-4.9
 update in ports. Too many ports were split and moved around so I ended
 up removing all ports and remaking them all. One big gotcha is make
 sure you force a reconfigure on everything. 
 
 My small nightmare was kdepim,kdepim-runtime and kdepimlibs
 there are now two deferment types of PIM you can built the old 4.8
 style and the new. Make sure you are consistent as these packages are
 deps for many others. For a while I was still picking up settings for
 the old style and it was breaking all over the place.

Ugh I see.
Any idea what these options are called?

 If you want I can send you a list of all the stuff I have installed off
 list and you can see if you're somehow missing important bits...


I ended up nuking all of KDE/Qt and will try again.

I also have had troubles with Python updates and a few things.

I really like ports when installing but they are terrible when upgrading :(

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Functional KDE desktop

2013-03-17 Thread Daniel O'Connor
Hi,
I am in the process of upgrading all the ports on a 9.1-PRERELEASE system and I 
am having a lot of trouble building or running KDE 4.9.5.

I couldn't build it due to x11/xsd not building (didn't make a necessary 
header), or if I worked around that libkonq was not found by cmake. If I manage 
to work around that I get an error dialogue when logging in.

In the end I gave up and installed packages (version 4.8.4) however that does 
work as startkde gives..
[midget 22:10] ~ env PATH=$PATH:/usr/local/kde4/bin 
/usr/local/kde4/bin/startkde
xset:  bad font path element (#12), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
/usr/local/lib/libkdeui.so.7: Undefined symbol 
_ZN6Attica15ProviderManagerC1ERK6QFlagsINS0_12ProviderFlagEE
startkde: Could not start kdeinit4. Check your installation.

c++filt says this symbol is..
Attica::ProviderManager::ProviderManager(QFlagsAttica::ProviderManager::ProviderFlag
 const)

Also, the startkde script does not set the pass so it never finds kcheckrunning.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor
Hi,
I recently updated my 9.1-PRE system's ports and my previous X config now 
results in no mouse (but the keyboard does work).

I found that I needed to add the following..
Section ServerFlags
Option  AllowEmptyInput False
EndSection

I am pretty sure this used to be necessary, then wasn't, but now seems required 
again.. From what I can see this means a 'startx' with no config is broken 
which is a bit of a step backwards.

BTW I have dbus  hald running.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor

On 17/03/2013, at 22:44, Andreas Nilsson andrn...@gmail.com wrote:
 so I think your setup is somehow broken. You didn't mention which version of 
 xorg you are using.

Very possibly :)
I have xorg-server 1.7.7_6,1

 Does lshal show any inputdevices?

I see the following..

udi = '/org/freedesktop/Hal/devices/atkbdc_0'
  freebsd.driver = 'atkbdc'  (string)
  freebsd.unit = 0  (0x0)  (int)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.product = 'Keyboard controller (i8042)'  (string)
  info.subsystem = 'platform'  (string)
  info.udi = '/org/freedesktop/Hal/devices/atkbdc_0'  (string)
  platform.id = 'atkbdc.0'  (string)
  pnp.description = 'IBM Enhanced (101/102-key, PS/2 mouse support)'  (string)
  pnp.id = 'PNP0303'  (string)

udi = '/org/freedesktop/Hal/devices/atkbd_0'
  freebsd.device_file = '/dev/atkbd0'  (string)
  freebsd.driver = 'atkbd'  (string)
  freebsd.unit = 0  (0x0)  (int)
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'input.keyboard', 'input.keys', 'button'} 
(string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/atkbdc_0'  (string)
  info.product = 'AT Keyboard'  (string)
  info.subsystem = 'platform'  (string)
  info.udi = '/org/freedesktop/Hal/devices/atkbd_0'  (string)
  input.device = ''  (string)
  input.x11_driver = 'kbd'  (string)
  platform.id = 'atkbd.0'  (string)


 Have you tried to do the build from a clean environment?

Not really, I can't just nuke the existing packages and do an install (I 
suppose I could do it in a chroot).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor

On 17/03/2013, at 22:47, Chris Rees utis...@gmail.com wrote:
  BTW I have dbus  hald running.
 
 Have you read http://www.wonkity.com/~wblock/docs/html/aei.html ?

I have read it in the past.

I _am_ running hald and am happy to do so, but it now appears broken (this 
system did not need AEI until I updated last week).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor

On 17/03/2013, at 22:47, Daniel O'Connor dar...@dons.net.au wrote:
 Does lshal show any inputdevices?
 
 I see the following..


snip
Oops, I just pasted the keyboard entries instead of the mouse ones..

udi = '/org/freedesktop/Hal/devices/usb_device_46d_c404_noserial_if0'
  freebsd.device_file = '/dev/ums1'  (string)
  freebsd.driver = 'ums'  (string)
  freebsd.unit = 1  (0x1)  (int)
  info.addons = {'hald-addon-mouse-sysmouse'} (string list)
  info.bus = 'usb'  (string)
  info.capabilities = {'input', 'input.mouse'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c404_noserial'  
(string)
  info.product = 'Trackball'  (string)
  info.subsystem = 'usb'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c404_noserial_if0'  
(string)
  info.vendor = 'Logitech'  (string)
  input.device = '/dev/sysmouse'  (string)
  usb.bus_number = 2  (0x2)  (int)
  usb.can_wake_up = true  (bool)
  usb.configuration = ''  (string)
  usb.configuration_value = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.device_revision_bcd = 544  (0x220)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.freebsd.devname = 'ums1'  (string)
  usb.interface.class = 3  (0x3)  (int)
  usb.interface.description = ''  (string)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.protocol = 2  (0x2)  (int)
  usb.interface.subclass = 1  (0x1)  (int)
  usb.is_self_powered = false  (bool)
  usb.level_number = 1  (0x1)  (int)
  usb.max_power = 100  (0x64)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.port_number = 4  (0x4)  (int)
  usb.product = 'Trackball'  (string)
  usb.product_id = 50180  (0xc404)  (int)
  usb.serial = ''  (string)
  usb.speed = 1.5 (1.5) (double)
  usb.speed_bcd = 336  (0x150)  (int)
  usb.vendor = 'Logitech'  (string)
  usb.vendor_id = 1133  (0x46d)  (int)
  usb.version = 1.0 (1) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_46d_c012_noserial_if0'
  freebsd.device_file = '/dev/ums0'  (string)
  freebsd.driver = 'ums'  (string)
  freebsd.unit = 0  (0x0)  (int)
  info.addons = {'hald-addon-mouse-sysmouse'} (string list)
  info.bus = 'usb'  (string)
  info.capabilities = {'input', 'input.mouse'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c012_noserial'  
(string)
  info.product = 'USB-PS2 Optical Mouse'  (string)
  info.subsystem = 'usb'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c012_noserial_if0'  
(string)
  info.vendor = 'Logitech'  (string)
  input.device = '/dev/sysmouse'  (string)
  usb.bus_number = 2  (0x2)  (int)
  usb.can_wake_up = true  (bool)
  usb.configuration = ''  (string)
  usb.configuration_value = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.device_revision_bcd = 4896  (0x1320)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.freebsd.devname = 'ums0'  (string)
  usb.interface.class = 3  (0x3)  (int)
  usb.interface.description = ''  (string)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.protocol = 2  (0x2)  (int)
  usb.interface.subclass = 1  (0x1)  (int)
  usb.is_self_powered = false  (bool)
  usb.level_number = 1  (0x1)  (int)
  usb.max_power = 98  (0x62)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.port_number = 3  (0x3)  (int)
  usb.product = 'USB-PS2 Optical Mouse'  (string)
  usb.product_id = 49170  (0xc012)  (int)
  usb.serial = ''  (string)
  usb.speed = 1.5 (1.5) (double)
  usb.speed_bcd = 336  (0x150)  (int)
  usb.vendor = 'Logitech'  (string)
  usb.vendor_id = 1133  (0x46d)  (int)
  usb.version = 2.0 (2) (double)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor

On 17/03/2013, at 23:00, Andreas Nilsson andrn...@gmail.com wrote:
 Looks promising. Just to make sure, have you verified that hald is still 
 running? Things can crash... 

Yep, it's still running.

  Have you tried to do the build from a clean environment?
 
 Not really, I can't just nuke the existing packages and do an install (I 
 suppose I could do it in a chroot).
 
 That is a problem yes. Have you considered using poudriere to build packages? 
 It is rather nice, it can build old-school and new-school packages, and is 
 very configurable. It does require zfs though ;)

I am using ZFS, I'll take a look :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(™) to run X?

2013-03-17 Thread Daniel O'Connor

On 17/03/2013, at 23:08, Matthew D. Fuller fulle...@over-yonder.net wrote:
 However, some time back, X _did_ start being all stupid about finding
 the mouse for me.  Un/re-plugging it (USB) after starting X made it
 show up working, but that's annoying and stupid (and not an option on
 other systems with e.g. PS/2 meece).  I wound up sticking the other
 half of that oft-cargo-culted incantation:
 
 Section ServerFlags
Option AutoAddDevices off
 EndSection
 
 in my config, and it's worked OK since.  's probably worth a try...


Yeah, that does work too. It's just annoying it's necessary :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way($(Do(B) to run X?

2013-03-17 Thread Daniel O'Connor

On 18/03/2013, at 8:54, Don Lewis truck...@freebsd.org wrote:
 I don't recall if I disabled hald and changed xorg.conf to point to
 /dev/psm0 before I re-enabled moused.  I do know that hald is currently
 disabled and nothing obvious seems to be broken in Gnome.
 
 I haven't had any issues with AllowEmptyInput so I never bothered to
 switch over to the preferred AutoAddDevices.

This sounds exactly like what I have, although I do find it odd that hal 
doesn't manage to open /dev/sysmouse and use that (even if it fails for 
/dev/ums* etc). lshal does show a mount device listed with /dev/sysmouse as the 
device name.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: What is the Right Way(�o) to run X?

2013-03-17 Thread Daniel O'Connor

On 18/03/2013, at 11:51, Kevin Oberman rkober...@gmail.com wrote:
 This sounds exactly like what I have, although I do find it odd that hal 
 doesn't manage to open /dev/sysmouse and use that (even if it fails for 
 /dev/ums* etc). lshal does show a mount device listed with /dev/sysmouse as 
 the device name.
 
 Very odd. I have been running with xorg, sysmouse and hal for a long time 
 with no real issues. No AutoAddDevices or AllowEmptyInput at all.
 
 lshal shows that the magic is working:
 di = '/org/freedesktop/Hal/devices/psm_0'
   freebsd.device_file = '/dev/psm0'  (string)
   freebsd.driver = 'psm'  (string)
   freebsd.unit = 0  (0x0)  (int)
   info.addons = {'hald-addon-mouse-sysmouse'} (string list)
   info.capabilities = {'input', 'input.mouse'} (string list)
   info.category = 'input'  (string)
   info.parent = '/org/freedesktop/Hal/devices/atkbdc_0'  (string)
   info.product = 'PS/2 Mouse'  (string)
   info.subsystem = 'platform'  (string)
   info.udi = '/org/freedesktop/Hal/devices/psm_0'  (string)
   input.device = '/dev/sysmouse'  (string)
   input.x11_driver = 'mouse'  (string)
   platform.id = 'psm.0'  (string)
 
 Note that the input.device is sysmouse and that it works. Does lshal how the 
 input device to be sysmouse on your system?

Yes.
I wonder, I have 2 USB mice maybe that is a problem.
The full output of lshal is at http://www.dons.net.au/~darius/lshal.txt

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-27 Thread Daniel O'Connor

On 23/02/2013, at 24:36, Paul Mather p...@gromit.dlib.vt.edu wrote:
 boot_multicons=YES
 hint.uart.0.flags=0x0
 hint.uart.2.at=isa
 hint.uart.2.port=0x3E8
 #hint.uart.2.disabled=0
 hint.uart.2.flags=0x30
 =

I updated the BIOS  IPMI fiwmare and now it works. Thanks!

Interestingly if you don't have hint.uart.0.flags=0x0 then it goes weird and 
stuff comes out the video console at 1bps..

And it seems to pick uart.0 as the console even though I also put 
comconsole_port in there. So it seems that for 9.1 at least comconsole_port 
doesn't DTRT. I commented it out but left the rest of the UART hints and things 
still worked.

 I don't know whether all of that is needed, but, as you can see from the 
 various commented-out lines, it was a configuration I arrived at that 
 works. :-)

Yep, thanks again for taking the time as it works for me too.

 Usually, I have the VGA console take precedence.  In that case, I get 
 messages on both the VGA console and the IPMI SOL console during the BIOS 
 screen, loader, and kernel boot messages but then only messages on the VGA 
 console during the rc.d boot phase.  I have a serial console enabled in 
 /etc/ttys, so I get output (e.g., getty login) on the IPMI SOL when that is 
 eventually spawned.  If I want to have the serial 
 console take precedence, I usually escape to the loader prompt (via ESC at 
 the loader menu) and issue a set console=comconsole,vidconsole command.  
 Then, the rc.d boot output goes to the serial console and not the VGA 
 console.  (It would be nice to have rc.d init scripts output go to both 
 consoles, but I don't know whether that is possible.)

I guess the rc.d stuff goes out to whatever device is the nominal console, 
rather than to the logical console which then splits the output to all of the 
physical devices attached to it.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-22 Thread Daniel O'Connor

On 23/02/2013, at 24:36, Paul Mather p...@gromit.dlib.vt.edu wrote:
 I don't know whether all of that is needed, but, as you can see from the 
 various commented-out lines, it was a configuration I arrived at that 
 works. :-)
 
 I don't have a /boot.config on this system.

OK, that gives me hope :)

 Usually, I have the VGA console take precedence.  In that case, I get 
 messages on both the VGA console and the IPMI SOL console during the BIOS 
 screen, loader, and kernel boot messages but then only messages on the VGA 
 console during the rc.d boot phase.  I have a serial console enabled in 
 /etc/ttys, so I get output (e.g., getty login) on the IPMI SOL when that is 
 eventually spawned.  If I want to have the serial console take precedence, I 
 usually escape to the loader prompt (via ESC at the loader menu) and issue a 
 set console=comconsole,vidconsole command.  Then, the rc.d boot output 
 goes to the serial console and 


That is basically what I want - I am looking for a way to run fsck or diagnose 
boot issues without having to fire up the Java app and tunnelling into the 
network.

 not the VGA console.  (It would be nice to have rc.d init scripts output go 
 to both consoles, but I don't know whether that is possible.)

Yeah that would be very nice, I will take what you have though :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


IPMI serial console

2013-02-21 Thread Daniel O'Connor
Hi all,
A recent thread inspired me to try getting a proper serial console working on a 
Supermicro X9SCL motherboard with IPMI.

However I find that while I see loader messages and the getty I enabled  after 
boot I don't get any kernel messages which does somewhat limit the utility..

The BMC creates COM3 (/dev/cuau2) which works with getty. I modified 
/boot/loader.conf like so..
boot_multicons=yes
boot_serial=YES
console=comconsole vidconsole
comconsole_speed=115200
# Disable console flags on these 2 ports
hint.uart.0.flags=0x00
hint.uart.1.flags=0x00
# Set console flag
hint.uart.2.flags=0x10

Does anyone have any hints?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 2:19, John Baldwin j...@freebsd.org wrote:
 Does anyone have any hints?
 
 Rather than using all these hints, just use these three in loader.conf:
 
 console=comconsole vidconsole
 console_speed=115200
 console_port=0xblah  (where blah is the correct I/O port for COM3, 
 0x3e8 
 maybe?)


No dice :(

I also tried booting with '-D -h -S 115200' but nothing either.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 8:53, John Baldwin j...@freebsd.org wrote:
 I also tried booting with '-D -h -S 115200' but nothing either.
 
 Sorry, those should be 'comconsole_speed' and 'comconsole_port'.  Also, you 
 should be able to get the loader prompt working if you enter those by hand 
 using an IPMI KVM or some such.


No luck with that either :(

The IPMI serial console works for the BIOS  loader so I guess the comconsole 
parts work, however the kernel doesn't seem to use it even with '-D -h'.

The uart(4) flags are correct (I believe)
uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 on acpi0
uart1: 16550 or compatible port 0x2f8-0x2ff irq 3 on acpi0
uart2: 16550 or compatible port 0x3e8-0x3ef irq 5 flags 0x30 on acpi0


--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 8:37, Navdeep Parhar npar...@gmail.com wrote:
 I also tried booting with '-D -h -S 115200' but nothing either.
 
 What does dmesg | grep uart show?  I have a PCI serial card whose
 serial port I'm using as a console.  I had to setup comconsole_pcidev,
 comconsole_port, and comconsole_speed properly in loader.conf to get it
 to work.


uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 on acpi0
uart1: 16550 or compatible port 0x2f8-0x2ff irq 3 on acpi0
uart2: 16550 or compatible port 0x3e8-0x3ef irq 5 flags 0x30 on acpi0

The loader talks on the serial console fine, it's the kernel that doesn't use 
it which is the problem.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 9:15, Navdeep Parhar npar...@gmail.com wrote:
 uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 on acpi0
 uart1: 16550 or compatible port 0x2f8-0x2ff irq 3 on acpi0
 uart2: 16550 or compatible port 0x3e8-0x3ef irq 5 flags 0x30 on acpi0
 
 The loader talks on the serial console fine, it's the kernel that doesn't 
 use it which is the problem.
 
 And what do you see in kenv | egrep 'uart|com' ?

comconsole_port=0x3e8
comconsole_speed=115200
hint.uart.0.at=isa
hint.uart.0.flags=0x00
hint.uart.0.irq=4
hint.uart.0.port=0x3F8
hint.uart.1.at=isa
hint.uart.1.flags=0x00
hint.uart.1.irq=3
hint.uart.1.port=0x2F8
hint.uart.2.flags=0x30
menu_command[1]=boot
menu_command[2]=goto_prompt
menu_command[4]=toggle_acpi
menu_command[5]=toggle_safemode
menu_command[6]=toggle_singleuser
menu_command[7]=toggle_verbose
menu_timeout_command=boot

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 8:33, Jeremy Chadwick j...@koitsu.org wrote:
 I also tried booting with '-D -h -S 115200' but nothing either.
 
 Try setting the IPMI pieces (in the IPMI device itself) to 9600bps.
 
 Then try using 9600bps in FreeBSD (loader.conf or /boot.config, as well
 as in inittab/getty).
 
 If this works for you, I can expand further on why, if requested.


Well that broke everything :)

- No messages from the BIOS
- No kernel messages
- No getty output

Now to forward a tun interface so I can run the Java faux-VNC client and fix it.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 10:09, Steven Hartland kill...@multiplay.co.uk wrote:
 Now to forward a tun interface so I can run the Java faux-VNC client and fix 
 it.
 
 Not a surprise if it doesnt match the serial IO speed which on all our
 Supermicro machines is: 115200
 
 Which MB, which bios version, and which IPMI FW version are you using?

X9SIL-F BIOS version 1.1 (05/27/10)
IPMI firmware is 2.01.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 10:40, Jeremy Chadwick j...@koitsu.org wrote:
 X9SIL-F BIOS version 1.1 (05/27/10)
 IPMI firmware is 2.01.
 
 I can't find this motherboard listed on Supermicro's site.
 
 kenv | grep smbios output please?


Sorry, brainfart, it's an X8SIL-F 
http://www.supermicro.com/xeon_3400/Motherboard/X8SIL.cfm?IPMI=Y

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 9:59, Jeremy Chadwick j...@koitsu.org wrote:
 The reason I've advocated use of -Sxxx in /boot.config for years is
 because it gets around whatever idiocy there is in the FreeBSD kernel
 pertaining to serial port speed limitation.  Possibly those boot2
 changes I mentioned above have since dealt with this, but the situation
 used to be that without -Sxxx in /boot.config, you had to set
 BOOT_COMCONSOLE_SPEED=115200 in /etc/make.conf (or during buildworld and
 buildkernel) to achieve a serial port speed 9600bps -- otherwise
 FreeBSD would limit/cap the serial speed to 9600bps and you wouldn't see
 any output (even once getty(8) started -- yet switching the serial
 connection to 9600bps instantly made things work).  Like I said,
 possibly this has been dealt with.

Hmm I tried putting '-S 115200' in /boot.config and it broke - the boot process 
didn't run the loader (or kernel).

 Sorry for my rambling Email, but there's a lot of history and crap
 contained here (almost 10 years worth) that's hard to cover tersely.

So much cruft :(

 For Daniel: have you tried a verbose boot, to see if you get *anything*
 prior to the initial Copyright line?  (Keep a raw I/O dump too, to see
 if ANY characters are received, not just printable ones -- that can
 sometimes help determine if some code is initialising something wrong)

I had a look by running ipmitool inside script but I could not see any 
characters after the BIOS prints a countdown to boot.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 10:49, Jeremy Chadwick j...@koitsu.org wrote:
 Sorry, brainfart, it's an X8SIL-F 
 http://www.supermicro.com/xeon_3400/Motherboard/X8SIL.cfm?IPMI=Y
 
 I would start by upgrading the system BIOS (to 1.2a), loading defaults +
 re-assigning whatever you normally change, and then upgrading the IPMI
 firmware (to 2.66) + doing the same.  If you have multiple systems of
 this type, do this on just *one* which you can sacrifice for
 testing.
 
 If the issues you're encountering happen afterward, I won't be
 surprised, but it's good to rule out the above.
 
 Besides, if this turns out to be some weird IPMI bug, Supermicro is
 going to tell you to the above anyway.  :-)


Yeah good point. It will have to wait until Tuesday when I can sit in front of 
it (faster that way).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 9:30, Konstantin Belousov kostik...@gmail.com wrote:
 On Fri, Feb 22, 2013 at 09:18:51AM +1030, Daniel O'Connor wrote:
 
 On 22/02/2013, at 9:15, Navdeep Parhar npar...@gmail.com wrote:
 uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 on acpi0
 uart1: 16550 or compatible port 0x2f8-0x2ff irq 3 on acpi0
 uart2: 16550 or compatible port 0x3e8-0x3ef irq 5 flags 0x30 on acpi0
 
 The loader talks on the serial console fine, it's the kernel that doesn't 
 use it which is the problem.
 
 It might be not the serial port, to which the loader talks. The supermicro
 boards I dealt with, have a feature of VGA text mode redirection to the
 serial port. This is how bios redirection usually works.

Ahh OK, sneaky sneaky..

My has 'Forever', 'Until boot loader', and 'never', so I selected the second 
one.

 You could look at some bios knob which controls the point where the
 said redirection is stopped. It should be like 'after the OS takes
 the control', and not 'forever'. For BIOS, the loader is OS.


I just tried rebuilding the boot blocks to work at 115200 like so..

cd /usr/src/sys/boot
make BOOT_COMCONSOLE_SPEED=115200
sudo make install
sudo gpart bootcode -b /boot/pmbr -b /boot/gptboot -i 1 /dev/da0

However no luck either (with the above change)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 12:02, Jeremy Chadwick j...@koitsu.org wrote:
 Hmm I tried putting '-S 115200' in /boot.config and it broke - the boot 
 process didn't run the loader (or kernel).
 
 I'll talk a bit about this -- again, sorry for the verbosity.  I'll
 explain what I've historically used/done, then speculate a bit about
 your IPMI stuff:
 
 For me, on systems without IPMI, all I had to do was this (and nothing
 else):
 
 * Put the following in /boot.config:
 
 -S115200 -Dh

This breaks the boot for me, boot.config has to contain more than just flags it 
seems. In any case I believe setting boot_multicons and boot_serial is the same 
as -Dh. Not sure about the baud rate though.

snip
  situation may be different because you have 3 serial ports (2
 classic DB9 ports or headers, and one fake via IPMI), so you may need
 to rely entirely on /boot/loader.conf to accomplish use of the IPMI one,
 unless you wanted to set BOOT_COMCONSOLE_PORT.

OK, I made some more progress, I rebuilt the /usr/src/sys/boot with 
BOOT_COMCONSOLE_SPEED=115200  BOOT_COMCONSOLE_PORT=0x3e8 and now the loader 
talks to me without VGA to serial redirection.

 Possibly the reason you see via the IPMI serial port at this stage is
 because IPMI also does VGA-to-IPMI output, so what you're seeing on the
 IPMI serial port is actually from the VGA console (speculation on my
 part).

Yes this was the case until just now.

 Debugging all of this is as you know a PITA because of where during the
 whole startup process it lies.  IPMI just makes this whole thing an even
 bigger mess because it ties itself in to bits/pieces along the way,
 which a kernel (or even a bootloader, depending on what it touches and
 how), can mess up.  This is why I've always stuck with the classic DB9
 serial ports on the backplane; I know how to get FreeBSD to behave right
 with those, everything else is voodoo.  :-)

Yep, it's all kludges bolted on top of hacks.

 Part of me wonders if it's possible to disable, say, COM1 in the BIOS,
 then in the IPMI firmware tell it to user a serial I/O port of 0x3f8,
 IRQ 4 (i.e. COM1) and see if that works with the method I describe
 above.  I don't have much familiarity with IPMI by choice, solely
 because of situations exactly like what you're going through.  I have
 the same opinion of those damn NIC ASF things (see bge(4)) -- which is

Yeah I may look at that if I can't proceed any further.

 exactly why many motherboard vendors that do IPMI now offer a
 *physically separate NIC/RJ45 port* for it, rather than piggybacking:
 the latter caused so much pain/anger that it wasn't worth it.

I assumed that the separate NIC was to avoid this problem, however I have since 
found that the default on the SM boards I looked at is to use the dedicated 
port otherwise share(!). So the worst of both worlds, hooray!

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: IPMI serial console

2013-02-21 Thread Daniel O'Connor

On 22/02/2013, at 14:59, Jeremy Chadwick j...@koitsu.org wrote:
 This breaks the boot for me, boot.config has to contain more than just
 flags it seems. In any case I believe setting boot_multicons and
 boot_serial is the same as -Dh. Not sure about the baud rate though.
 
 Then someone broke something (parser or something else).  This has
 always, *always* worked (just flags).  The last time I verified it was
 with the release of 9.0-RELEASE.  I do have a system I could test this
 on, but I'd need to find a null modem cable first.

Weird, this is 9.1 - I wouldn't expect any changes..

 I have seen some MFCs that touch those bits in the bootloader, but from
 my memory it didn't touch anything other than supporting /boot/config as
 an alternate location to the classic /boot.config file.  I would be very
 surprised if this broke it.
 
 I can assure you that those were the only flags that were needed, and in
 exactly that syntax.  Even the Handbook has this in it, as well as
 boot(8).
 
 I believe your explanation of boot_multicons and boot_serial are correct
 and do correlate with -D and -h.  I could look at the bootstrap code to
 verify.  The options are described in loader(8) but not loader.conf(5).
 
 The drawback to using the /boot/loader.conf variables is that you won't
 get boot2 output because loader is what reads /boot/loader.conf, not
 boot2.  Thus you lose the ability to deal with the system via serial at
 the boot2 stage.  For me, this has always been a deal-breaker.  This is
 why I always advocate /boot.config.  (Note to readers: if I'm wrong
 about this, please correct me, and point me to the relevant code)

Ah that is a fair point.

 BOOT_COMCONSOLE_SPEED=115200  BOOT_COMCONSOLE_PORT=0x3e8 and now the
 loader talks to me without VGA to serial redirection.
 
 Huzzah!  Do you get output from the kernel now, or still just bootstraps
 and loader, then silence until getty runs?

Sadly no, I just the loader then getty.

 I assumed that the separate NIC was to avoid this problem, however I
 have since found that the default on the SM boards I looked at is to
 use the dedicated port otherwise share(!). So the worst of both
 worlds, hooray!
 
 Depends on the board and the IPMI integration.  Most of the newer boards
 (past 3-4 years) I've seen have a dedicated LAN port on their IPMI
 add-on board; e.g. a dual-NIC motherboard has 2 NICs, then there's a 3rd
 NIC on the IPMI card/port.  I have seen the shared ones though, and
 that's where the ASF stuff comes into play (ugh ugh ugh).  I've always
 avoided all the boards that have on-board IPMI of any sort.

I have boards with 3 RJ45 ports, 1 IPMI  2 normal (em devices). The IMPI 
configuration has an option to use the dedicated port only, try that first then 
on failure share em0, or share em0 only.

The default is try the dedicate port then if that fails share em0 :(

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Sound problems with skype in FreeBSD home.encontacto.net 9.1-STABLE FreeBSD 9.1-STABLE #410 r246209M: Sat Feb 16 05:07:32 CST 2013 fr amd64

2013-02-18 Thread Daniel O'Connor

On 19/02/2013, at 10:54, Edwin L. Culp W. edwinlc...@gmail.com wrote:
 cat /compat/linux/etc/alsa/pcm/pcm-oss.conf
 
 pcm.oss1 {
type oss
device /dev/dsp1
hint {
description Open Sound System
}
 }
 
 ctl.oss1 {
type oss
device /dev/mixer1
hint {
description Open Sound System
}
 


Why are you using /dev/dsp1  /dev/mixer1?

I would have thought using /dev/dsp and /dev/mixer would work, and if you 
wanted to change which sound device you're using globally then set the 
hw.snd.default_unit sysctl.

Also, what is the output of cat /dev/sndstat ?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Sound problems with skype in FreeBSD home.encontacto.net 9.1-STABLE FreeBSD 9.1-STABLE #410 r246209M: Sat Feb 16 05:07:32 CST 2013 fr amd64

2013-02-18 Thread Daniel O'Connor

On 19/02/2013, at 11:58, Edwin L. Culp W. edwinlc...@gmail.com wrote:
 On Mon, Feb 18, 2013 at 7:10 PM, Daniel O'Connor docon...@gsoft.com.au 
 wrote:
 Why are you using /dev/dsp1  /dev/mixer1?
 
 Copied from the port.  No logic.  I did try with dsp and mixer only and 
 restarted skype with the same results.

OK

 Also, what is the output of cat /dev/sndstat ?
  
 # cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
 Installed devices:
 pcm0: ATI R6xx (HDMI) (play)
 pcm1: Realtek ALC892 (Analog 5.1/2.0) (play/rec) default
 pcm2: Realtek ALC892 (Front Analog Headphones) (play)
 pcm3: Realtek ALC892 (Rear Digital) (play)
 pcm4: Realtek ALC892 (Rear Digital) (play)
 
  The error that shows on the screen is : Problem with audio playback.

Oh right, Skype actually generates an error..
I am not sure sorry.

Note that your default audio device is HDMI audio (not sure if that is what you 
really want) and if you don't have something connected via HDMI I suppose that 
could cause the error..

Try..
sudo sysctl hw.snd.default_unit=1
(leaving the ALSA config file alone) and then restart skype.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Intel 82574 issue reported on Slashdot

2013-02-09 Thread Daniel O'Connor

On 09/02/2013, at 20:42, Parv p...@pair.com wrote:
 Contact your motherboard manufacturer is much more time
 consuming than Run sysctl... | grep foo | awk ... to see if your
 system is affected.
 
 Gift^WStraight from horse's mouth ...
 
  http://blog.krisk.org/2013/02/packets-of-death.html

I've already read this.

  http://www.kriskinc.com/intel-pod

I'd really rather a test which reads the EEPROM and tells me if it's a problem 
rather than hang the interface on a machine :)

In any case that isn't the point - this may be a vendor issue but it reflects 
poorly on Intel that they didn't take proper ownership of the issue. It would 
be far, far better for their image to say some systems may have the fault, go 
to http:// to find a way to test for your operating system.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Intel 82574 issue reported on Slashdot

2013-02-08 Thread Daniel O'Connor

On 09/02/2013, at 4:46, Jack Vogel jfvo...@gmail.com wrote:

 recommends contacting your motherboard manufacturer if you have continued
 concerns or questions whether your products are impacted.
 Here is the link:
 
 http://communities.intel.com/community/wired/blog/2013/02/07/intel-82574l-gigabit-ethernet-controller-statement
 
 Any questions or concerns may be sent to me.

In all honesty.. The blog post (and your email) are basically information free, 
they don't name names and provide no script or downloadable code that will 
allow end users to check if they are affected.

Contact your motherboard manufacturer is much more time consuming than Run 
sysctl... | grep foo | awk ... to see if your system is affected.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: How to clean up /

2012-11-30 Thread Daniel O'Connor

On 30/11/2012, at 17:46, Kevin Oberman kob6...@gmail.com wrote:
 It would be Really Nice (tm) if they could be put into /usr instead since 
 there is virtually no benefit to them being in / (since they are only used 
 for debugging).
 
 I have long wondered why the kernel debug symbols were moved into
 /kernel. The only thing I can come up with was the desire to retain
 symbols for kernel.old, which the old system deleted. I'm not sure,
 but I think the change was made when the symbols files were added for
 all of the modules. I'd meed to dig back in the archived to track down
 the change.
 
 In any case, it's hardly difficult to come up with a scheme for
 keeping symbols for the current and old kernels and modules in /var or
 /usr and keep / from exceeding a gig on an amd64 system. (No, it's not
 there today, but it's disturbingly close.).

I seem to recall that last time I thought about this the main problem was 
keeping them in sync..

Perhaps if you hashed the kernel and then created /usr//kerneldbg/$hash/ 
and created a symlink in /boot/kernel/debug to  /usr//kerneldbg/$hash

Then the debug tools don't need to be much smarter to find them and they should 
never end up looking at incorrect data. A make target or some other tool to 
clean up old symbol directories might be needed though.

 Moving the Linux emulation shadow root out of root would also help.


Yes, a symlink from /compat to /usr/compat by default would work I think.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








Re: How to clean up /

2012-11-29 Thread Daniel O'Connor

On 30/11/2012, at 12:14, mbsd m...@isgroup.com.ua wrote:
 Ξ ~ → du -sh /boot/kernel
 59M   kernel
 
 Try to recompile your kernel without debug.

Or delete /boot/kernel/*.symbols.

It would be Really Nice (tm) if they could be put into /usr instead since there 
is virtually no benefit to them being in / (since they are only used for 
debugging).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








Re: Increasing the DMESG buffer....

2012-11-21 Thread Daniel O'Connor

On 22/11/2012, at 14:46, Ian Smith smi...@nimnet.asn.au wrote:
 Dumping all nodes and channels is incredibly useful for folks needing to 
 rewire something to get various jacks working and such, but I'd argue is 
 way overkill for a 'normal' verbose boot.  See acpi(4) for examples of 
 selectively logging ACPI_DEBUG components with debug.acpi.{layer,level} 
 and be very glad all of that doesn't appear in every verbose boot ..

Wouldn't it be better to expose that stuff via a sysctl directly (ie the sysctl 
holds the actual data)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








Re: Xorg in swwrt

2012-06-23 Thread Daniel O'Connor

On 23/06/2012, at 19:02, Peter Jeremy wrote:
 On 2011-Feb-06 15:19:12 +1030, Daniel O'Connor dar...@dons.net.au wrote:
 I updated ports (portmaster -a basically) on this 8.2-PRE box and now
 I find X takes a long, long time to start up and uses lots of CPU. It
 shows the wchan as swwrt.
 
 FWIW, I've run into this a couple of times recently when logging out of
 X.  This is with X.Org X Server 1.10.6 and a ATI Radeon HD 2400 Pro
 on 8-STABLE r235229.  The problem seems to go away after a couple of hours.


I think it's a memory fragmentation issue but I am only really guessing.

Certainly after putting more RAM in the system in question the problem happened 
less frequently.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: FreeBSD 8.3-R sysinstall does not see disks that are recognized during boot

2012-04-18 Thread Daniel O'Connor

On 18/04/2012, at 7:32, Andy Dills wrote:
 I've got a new supermicro server I'm trying to get FreeBSD on. It uses the 
 Intel c602 chipset, and it's my understanding that support for that 
 chipset (c60X) was recently added via the isci driver. Ok, great, that 
 explains why 8.2-R and 9.0-R didn't see the drives.
 
 So, I grabbed the memstick image of 8.3-RELEASE that is on the ftp server, 
 booted it up, and sure enough, as the dmesg scrolls I see it now properly 
 recognizes da0 and da1, as it should (the memstick is da2). It sees the 
 disks fine at this point, everything looks good.
 
 However, once the system finishes booting and loads into sysinstall, and I 
 go to partition the drives, I get No disks found! Please verify that your 
 disk controller is being properly loaded at boot time.
 
 Any suggestions for avenues to troubleshoot this?  I have pictures to 
 document if it helps.
 
 Seems very odd. I confirmed the behavior with the SATA set to IDE, AHCI, 
 and RAID modes. (The drives were recognized as da0 and da1 during bootup 
 in all three modes, but not by sysinstall.)


That does seem very odd - if they appear as daX then sysinstall should see them.

Can you go into the holographic shell (or livecd if you have it) and run..
echo /dev/da*
echo /dev/da0
echo /dev/da1

(this will trash the first sector of da0 and da1 but I assume that's OK since 
you're installing on those).

If you could obtain a KLD for isci built for 9.0 you could load it in the 
loader and see if that installer sees it, you might not have the facilities for 
that though..

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: New BSD Installer

2012-02-11 Thread Daniel O'Connor

sync

umount ${TMPDIR}/mnt/local0
umount ${TMPDIR}/mnt/usr
umount ${TMPDIR}/mnt/var
umount ${TMPDIR}/mnt

rm -rf ${TMPDIR}

echo Reboot now

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: can audio CDs be played with ATA_CAM ?

2011-10-26 Thread Daniel O'Connor

On 26/10/2011, at 19:03, Claude Buisson wrote:
 
 [0x2caf2a3c] cdda access error: Could not set block size
 [0x2caf2a3c] cdda access error: cannot read sector n
 
 incrementing each time the sector number.
 
 So I infer that vlc cannot set the correct (audio specific) sector size for 
 the
 cam device.
 
 Thanks for your attention.
 
 Claude Buisson
 
 P.S. As I can see reading GENERIC, ATA_CAM will be the default for 9.X so 
 there
 is a risk of complaints from FreeBSD workstation users (who cares ?) after the
 release..


Does cdparanoia work for you?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: can audio CDs be played with ATA_CAM ?

2011-10-26 Thread Daniel O'Connor

On 26/10/2011, at 20:50, Claude Buisson wrote:
 P.S. As I can see reading GENERIC, ATA_CAM will be the default for 9.X so 
 there
 is a risk of complaints from FreeBSD workstation users (who cares ?) after 
 the
 release..
 
 
 Does cdparanoia work for you?
 
 
 With cdparanoia-3.9.8_9: YES
 
 tested on 8.2 (from Sep 18) and 9.0 (from Sep 25) both with ATA_CAM


Strange, I would have thought VLC would use the same sort of access method as 
VLC..

I don't know what it's trying so it's hard to know why it doesn't work :(

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: can audio CDs be played with ATA_CAM ?

2011-10-25 Thread Daniel O'Connor

On 25/10/2011, at 20:45, Claude Buisson wrote:
 When upgrading a system to 8.2-STABLE, I switched my kernel from atapicam to
 ATA_CAM, and found that vlc could not play audio CDs anymore. Reverting to
 atapicam (and reverting from cdN to acdN of course), vlc was OK again.
 
 It seems that I am not the only one having this kind of problem, as I found 
 (for
 example) this message on questions@ (for releng9):
 
 http://lists.freebsd.org/pipermail/freebsd-questions/2011-October/234737.html
 
 Is this a known problem ? Is somebody working on it ?

Have you tried pointing VLC at /dev/cd0 when using ATA_CAM?

It may be trying old style ATA ioctls based on the device name.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: From 8-stable to 9.0 RC1 iscsi panic

2011-10-25 Thread Daniel O'Connor

On 25/10/2011, at 22:32, Miroslav Lachman wrote:
 
 Well i did use the single user mode !
 And the safe mode !
 But they all gave me that error.
 So the did load the loader.conf file.
 
 I think modules are loaded before displaying boot menu, where you can choose 
 to boot in to single user mode.
 But you can enter the boot loader prompt, where you can unload already loaded 
 modules or load new modules by its name, so you don't need to edit 
 loader.conf for one time boot option.

They aren't loaded before displaying the menu, but the list of modules to load 
is worked out then.

If you want to boot without loading the modules listed in loader.conf you need 
to break into the loader and type..
unload
boot -s
(or whatever options you want)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: can audio CDs be played with ATA_CAM ?

2011-10-25 Thread Daniel O'Connor

On 25/10/2011, at 23:24, Jeremy Chadwick wrote:
 These may not be the same problem, but I think they are related (a not so 
 well
 documented change in the kerm interface).
 
 You want atapicam(4).  This is not the same thing as options ATA_CAM.
 See /sys/conf/NOTES.
 
 Whether or not it works with audio CDs is unknown to me.

atapicam is a bridge for the old ATA code to put ATAPI devices _only_ on CAM 
(as well as the ATA infrastructure). Hence they appear as /dev/cd0 and so on.

ATA_CAM puts _all_ ATA devices on CAM, so you should be able to access your 
audio CD that way. 

I just tried and it ripped a CD fine using cdparanoia and cdcontrol seemed to 
play it OK (although I don't have the analogue output of this drive hooked up 
to the audio system).

This is not to say that there isn't a bug in the ATA_CAM code :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Interpreting MCA error output

2011-10-18 Thread Daniel O'Connor

On 18/10/2011, at 17:49, Jeremy Chadwick wrote:
 That would be absolutely helpful! After all, FreeBSD is primarily a
 server OS, and where would one have ECC if not on servers. Being able
 to determine what's wrong with memory would be certainly very valuable
 for many admins.
 
 This has been done, and it was committed a couple days ago as
 sysutils/mcelog.  There are a couple thing about the port which bother
 me[1], and there is one warning which can be safely ignored (I'm a
 strong advocate of -Werror) but I do have a fix for that, but otherwise
 it's functional.

Do MCA log events cause anything in devd?

It would be _super_ neat if the mcelog port installed a devd rule which emailed 
root@ with the human readable version of an MCA exception :)

I suspect this wouldn't be too difficult to do for a JKH.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: Interpreting MCA error output

2011-10-18 Thread Daniel O'Connor

On 18/10/2011, at 22:03, Jeremy Chadwick wrote:
 It would be _super_ neat if the mcelog port installed a devd rule which 
 emailed root@ with the human readable version of an MCA exception :)
 
 I suspect this wouldn't be too difficult to do for a JKH.
 
 Why?  Most MCEs on FreeBSD will panic the machine.  I would need to go
 through the MCA code to see what all gets handled elegantly, but I
 imagine there isn't much.

If you see an MCA in your log file it didn't panic your machine, I think 
they're not uncommon.

 Also, isn't devd for device removal/insertions?  This would be using
 devd for something it isn't intended for.  I guess I have moral
 objections to it.  What you're really wanting is Solaris's fmd(1m)
 daemon, which I believe is also tied heavily into Solaris's smf(5)
 architecture.

I always thought devd was a fairly general event notification thing.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: valgrind on FreeBSD?

2011-10-05 Thread Daniel O'Connor

On 06/10/2011, at 7:36, Václav Zeman wrote:
 No matter what I try, valgrind on 7.3-STABLE is giving me this, both Valgrind
 ports:
 
 valgrind: Startup or configuration error:
   Can't establish current working directory at startup
 valgrind: Unable to start up properly.  Giving up.
 
 What do I need to do to make it work?

It might need proofs mounted, not sure though.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: valgrind on FreeBSD?

2011-10-05 Thread Daniel O'Connor

On 06/10/2011, at 15:33, Václav Zeman wrote:
 Daniel O'Connor wrote, On 6.10.2011 1:05:
 
 On 06/10/2011, at 7:36, Václav Zeman wrote:
 No matter what I try, valgrind on 7.3-STABLE is giving me this, both 
 Valgrind
 ports:
 
 valgrind: Startup or configuration error:
  Can't establish current working directory at startup
 valgrind: Unable to start up properly.  Giving up.
 
 What do I need to do to make it work?
 
 It might need proofs mounted, not sure though.
 Did you mean procfs? Procfs is mounted:
 
 procfs on /proc (procfs, local)

OK, so much for that idea then :(

 -- 
 VZ
 
 

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: ZFS directory with a large number of files

2011-08-05 Thread Daniel O'Connor

On 06/08/2011, at 5:17, Patrick M. Hausen wrote:
 Am 05.08.2011 um 17:12 schrieb Christian Weisgerber:
 Daniel Kalchev dan...@digsys.bg wrote:
 
 On 02.08.11 12:46, Daniel O'Connor wrote:
 I am pretty sure UFS does not have this problem. i.e. once you 
 delete/move the files out of the directory its performance would be 
 good again. 
 
 UFS would be the classic example of poor performance if you do this.
 
 Classic indeed.  UFS dirhash has pretty much taken care of this
 a decade ago.
 
 While dirhash is quite an improvement, it is definitely no silver bullet.
 
 When I asked Kirk McKusick at last year's EuroBSDCon if having
 a six-figure number of files in a single directory was a clever idea
 (I just had a customer who ran into that situation), he just smiled
 and shook his head.

Ahh, but OP had moved these files away and performance was still poor.. _that_ 
is the bug.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: ZFS directory with a large number of files

2011-08-02 Thread Daniel O'Connor

On 02/08/2011, at 19:12, Jeremy Chadwick wrote:
 When I was being taught the ropes of system administration at Oregon
 State, the team of crotchety UNIX admins there made it quite clear that
 there were things you just Did Not Do(tm) to computer systems.  Shoving
 thousands of files into a single directory with no hierarchy was one of
 them.

Sounds like a terminal case of Stockholm syndrome ;)

It might be avoidable by the user being nice to the computer, but come on.. The 
computer is supposed to do tedious crap that humans don't like.

I am pretty sure UFS does not have this problem. i.e. once you delete/move the 
files out of the directory its performance would be good again.

If it is a limitation in ZFS it would be nice to know that, perhaps it truly, 
really is a bug that can be avoided (or it's inherent in the way ZFS handles 
such things)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: ZFS directory with a large number of files

2011-08-02 Thread Daniel O'Connor

On 02/08/2011, at 18:38, Jeremy Chadwick wrote:
 On Tue, Aug 02, 2011 at 08:39:03AM +0100, seanr...@gmail.com wrote:
 On my FreeBSD 8.2-S machine (built circa 12th June), I created a
 directory and populated it over the course of 3 weeks with about 2
 million individual files.
 
 I'll keep this real simple:
 
 Why did you do this?
 
 I hope this was a stress test of some kind.  If not:
 
 This is the 2nd or 3rd mail in recent months from people saying I
 decided to do something utterly stupid with my filesystem[1] and now I'm
 asking why performance sucks.
 
 Why can people not create proper directory tree layouts to avoid this
 problem regardless of what filesystem is used?  I just don't get it.
 
 [1]: Applies to any filesystem, not just ZFS.  There was a UFS one a
 month or two ago too…

The problem is that he is being punished with shitty FS performance even though 
the directory structure is now non-silly.

It sounds like the FS hasn't GC'd some (now unneeded) metadata..

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: LTO3 tape drive not detected

2011-06-23 Thread Daniel O'Connor

On 24/06/2011, at 6:17, Joe in MPLS wrote:
 This was originally posted on the freebsd-questions list. It was suggested 
 that I post it here:
 
 I have FreeBSD 8.2-RELEASE running on an HP DL360 G5. I recently added an (HP 
 branded) LSI Logic single channel SCSI 320 card and attached an HP Ultrium 
 920 LTO3 tape drive.
 
 The system sees the SCSI controller as mpt0, and it seems to know there's 
 something at SCSI ID 4, but I get an AutoSense Failed for hba/id/lun 0:4:0 
 at boot and subsequent camcontrol rescans.
 
 I checked the supported hardware doc for the release but it doesn't get very 
 specific about tape drives. This is my first experience with LTO3 tape. I was 
 hoping that I'd automagically get a /dev/sa0 device like I always did with my 
 old DLT drives but it wasn't to be this time.
 
 Is there a way to make this drive work?

I'd check the cabling etc..

I have an LTO2 drive that Just works (tm).

Can you boot a Linux ISO and see if that finds it?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: modem support MT9234ZPX-PCIE-NV

2011-05-25 Thread Daniel O'Connor

On 25/05/2011, at 16:10, Willy Offermans wrote:
 According to the manufacturer
 (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/)
 it is not a soft modem, but a ``hardware'' modem. It says: Built-in
 processor does the work, so your computer doesn't have to. I do not know if
 this is sufficient to work under FreeBSD, but it seems to indicate that it
 does not need any proprietary driver. 


Ahh, sounds promising..
You could just try adding the device IDs to the PUC driver and seeing what 
happens.

Failing that ask Multitech if they can help you out.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: modem support MT9234ZPX-PCIE-NV

2011-05-25 Thread Daniel O'Connor

On 25/05/2011, at 16:04, Willy Offermans wrote:
 I'm using FreeBSD 7.2-RELEASE-p2. I have enclosed the dmesg.boot file.
 
 puc was already incorporated into the kernel:
 
 kosmos# kldload -v puc
 kldload: can't load puc: File exists
 
 So I assume puc has already been loaded.

You could try editing /usr/src/sys/dev/puc/pucdata.c to add your card's ID and 
then rebuild  reload the puc module.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: modem support MT9234ZPX-PCIE-NV

2011-05-22 Thread Daniel O'Connor

On 22/05/2011, at 9:16, Jeremy Chadwick wrote:
 However, as the boot process already mentions, there is no driver attached
 and I cannot get the modem to appear as an accessible and functional
 device. Is there someone, who can help me to get this modem to work?
 
 It would be helpful if you could specify what FreeBSD version you're
 using.
 
 Assuming 8.2 or RELENG_8: no promises, but puc(4) is probably what
 you're looking for.  I would try adding:
 
 puc_load=yes
 
 To your /boot/loader.conf, then see what happens after booting.  uart(4)
 may auto-attach to that.  Again, no promises.

I have my doubts it would work though, most likely it's a soft modem which will 
only work with proprietary drivers.

I couldn't find any details on the web page though so you might get lucky I 
suppose :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


calendar(1) problems

2011-05-22 Thread Daniel O'Connor
Hi,
I have the following calendar entry..

Tue+2   test

for the second Tuesday in the month. This used to work in 6.x however it prints 
the following in 7.x and onward
[maarsy-acq2 14:47] ~ calendar -f testcal
Unprocessed:
---
date: |Tue+2|
flags: 10a - dayofweek modifierindex variable 
modifierindex: |+2|
dayofweek: |Tue| (2)
Ignored: Tue+2  test

Although now that I go to test it I find that 4.8 and 6.3 don't print anything 
for..
calendar -f testcal -A 120

which surprises me because I definitely received email from the system when it 
ran calendar -a..

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: setting usb disc to da1

2011-05-15 Thread Daniel O'Connor

On 16/05/2011, at 3:53, Bruce Meier wrote:
 I think I have an answer to your problem.  man glabel.
 
 Backup all data first!
 
 glabel label -v usr /dev/da1
   newfs /dev/label/usr
   mount /dev/label/usr /usr
   [...]
   umount /usr
   glabel stop usr
   glabel unload
 
 I got that unload is unavailable but it everything worked for me.  Check the 
 man page.  Hope this helps.
 
 After testing, it made no difference.

glabel won't change da0 etc.. It just provides an alternate device node to 
mount your file system from - one that doesn't change with probe order.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: setting usb disc to da1

2011-05-14 Thread Daniel O'Connor

On 15/05/2011, at 24:36, Thomas Krause wrote:
 I'm not sure with /boot/devices.hint. Could you give me a hint, how to
 set
 
 # camcontrol devlist
 AMCC 9500S-4LP  DISK 2.08at scbus0 target 0 lun 0 (da0,pass0)
 Samsung G3 Station   at scbus1 target 0 lun 0 (pass1,da1)
 
 the Samsung G3 permanently to da1 (the AMCC must be da0).
 (This is a productive system and I don't want to do tests ...)

I think the following will work..

hint.scbus.0.at=twa0
hint.da.0.at=scbus1

hint.scbus.1.at=umass-sim0
hint.da.1.at=scbus0

Unfortunately I can't check the system I tested this on at the moment.

I would strongly suggest you use glabel  UFS IDs (or GPT IDs if you used GPT 
when installing) in fstab rather than wiring device nodes.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: setting usb disc to da1

2011-05-12 Thread Daniel O'Connor

On 13/05/2011, at 7:08, Thomas Krause wrote:
 I've plugged a USB disc to a FreeBSD System and it's dedected as da1:
 
 da1: Samsung G3 Station  Fixed Direct Access SCSI-2 device
 
 But when rebooting the machine, it becomes da0 and I cannot boot the
 system. What's the trick to set the USB disc to da1 permanent?

You can, to some degree, wire the device with..
hint.scbus.0.at=umass-sim0
hint.da0.at=scbus0

However I would recommend using GPT IDs, UFS IDs or GEOM labels in fstab so the 
underlying device name is irrelevant.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


Re: ZFS vs OSX Time Machine

2011-05-03 Thread Daniel O'Connor

On 29/04/2011, at 10:38, Jeremy Chadwick wrote:
 The OSX box is connected via an Airport Express (11n).
 
 Can you connect something to it via Ethernet and attempt an FTP transfer
 (both PUT (store on server) and GET (retrieve from server)) from a
 client on the wired network?  Make sure whatever you're PUT'ing and
 GET'ing are using the ZFS filesystem.  Don't forget binary mode too.

I tried dd'ing /dev/zero over SMB and got 40MB/sec (although I'm not using AIO 
yet..)

FTP'ing a 300 MB file averages 60-70MB/sec (the speed of my laptop HD)

ttcp between the hosts hits wire speed (100MB/sec)

 OK. I don't think TM can use CIFS, I will try ISCSI as someone else 
 suggested, perhaps it will help.
 
 Be aware there are all sorts of caveats/complexities with iSCSI on
 FreeBSD.  There are past threads on -stable and -fs talking about them
 in great detail.  I personally wouldn't go this route.
 
 Why can't OS X use CIFS?  It has the ability to mount a SMB filesystem,
 right?  Is there some reason you can't mount that, then tell TM to write
 its backups to /mountedcifs?

It looks like I had a dodgy disk which was being tickled by the time machine 
backup (eg dodgy sector where the backup was located) so  I have been chasing a 
ghost :)

However, thanks to everyone for your helpful suggestions!

I still haven't tried iSCSI, given I can't do a bare metal restore from it it 
doesn't seem worth it (also I don't have the time..)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


ZFS vs OSX Time Machine

2011-04-28 Thread Daniel O'Connor
Does anyone else use ZFS to store TM backups?

I find that whenever my laptop (over wifi!) starts a TM the ZFS machine it's 
backing up to grinds to a halt.. Other systems streaming stuff over NFS from it 
also tend to stall..

I presume that TM is doing something which causes ZFS some issues but I'm not 
sure how to find out what the real problem is let alone how to fix it..

I am running FreeBSD midget.dons.net.au 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE 
#8 r217094M: Sat Jan  8 11:15:07 CST 2011 
dar...@midget.dons.net.au:/usr/obj/usr/src/sys/MIDGET  amd64

It is a 5 disk RAIDZ1 with 1.29Tb free using WD10EADS drives.

I don't see any SMART errors or ZFS warnings.

I have the following ZFS related tunables

vfs.zfs.arc_max=3072M
vfs.zfs.prefetch_disable=1 
vfs.zfs.txg.timeout=5
vfs.zfs.cache_flush_disable=1

Any help appreciated, thanks :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






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


  1   2   3   4   5   6   7   8   >