Re: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Gapon
on 08/10/2010 01:24 Andriy Bakay said the following:
> Ok. But how stable (production ready) the FreeBSD-8-STABLE is? What is your 
> opinion?

I use it all the time :-) (And head too).
In general, and this opinion is not only my own, the best FreeBSD "release" is
the latest stable branch.

-- 
Andriy Gapon
___
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.1-RELEASE Announcement - Typo

2010-10-07 Thread Ian Smith
On Thu, 7 Oct 2010, Jeremy Chadwick wrote:
 > On Thu, Oct 07, 2010 at 07:59:21PM +, 1 0 wrote:
 > > There is a typo in FreeBSD 8.1-RELEASE Announcement:
 > > 
 > > # dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync
 > > 
 > > should be
 > > 
 > > # dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1024k conv=sync
 > 
 > AFAIK, this isn't a typo.

10240 is correct (10KiB), but I don't know the rationale for that size.

The typo is that, as per the release announcement, all of the filenames 
are now preceded by 'FreeBSD-'.  I let Ken know ages ago, but suppose I 
should have submitted a PR ..

cheers, Ian
___
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: Multiple zdevs in the root zpool?

2010-10-07 Thread Andriy Gapon
on 08/10/2010 00:35 Matthew Seaman said the following:
> On 07/10/2010 21:28:30, Andriy Gapon wrote:
>> on 07/10/2010 13:45 Matthew Seaman said the following:
>>> However, according to my understanding, if you want to boot from a
>>> zpool, you can only have one vdev in that pool.
>>>
>>> But what exactly does this mean?
>>
>> Yes, exactly, what does that mean? :)
>> Where did your understanding come from?
>>
> 
> It was from reading posts like this:
> http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/211677.html
> 
> Plus the comments in
> cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c and
> sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c  (grep for
> the words 'root pool')

Hmm, it seems like a protection for limitations of OpenSolaris boot loader that
slipped into our sources.
I am pretty sure that our boot code can boot such pools without problems.

-- 
Andriy Gapon
___
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: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Bakay
Ok. But how stable (production ready) the FreeBSD-8-STABLE is? What is your 
opinion?

On 2010-10-07, at 18:12, Andriy Gapon  wrote:

> on 08/10/2010 00:04 Andriy Bakay said the following:
>> Understood, but is it possible to apply "local" ZFS+UFS related
>> changes? Because STABLE will bring all deltas which was accumulated
>> since RELEASE and I really concern about stability of this box (which is
>> router/firewall/mail server). Other people depend on it.
> 
> Nothing is impossible.  But it's up to you to separate the changes you want 
> from
> the changes you don't want.
> 
> -- 
> Andriy Gapon
___
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: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Gapon
on 08/10/2010 00:04 Andriy Bakay said the following:
> Understood, but is it possible to apply "local" ZFS+UFS related
> changes? Because STABLE will bring all deltas which was accumulated
> since RELEASE and I really concern about stability of this box (which is
> router/firewall/mail server). Other people depend on it.

Nothing is impossible.  But it's up to you to separate the changes you want from
the changes you don't want.

-- 
Andriy Gapon
___
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: Multiple zdevs in the root zpool?

2010-10-07 Thread Matthew Seaman
On 07/10/2010 21:28:30, Andriy Gapon wrote:
> on 07/10/2010 13:45 Matthew Seaman said the following:
>> However, according to my understanding, if you want to boot from a
>> zpool, you can only have one vdev in that pool.
>>
>> But what exactly does this mean?
> 
> Yes, exactly, what does that mean? :)
> Where did your understanding come from?
> 

It was from reading posts like this:
http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/211677.html

Plus the comments in
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c and
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c  (grep for
the words 'root pool')

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Bakay
Understood, but is it possible to apply "local" ZFS+UFS related
changes? Because STABLE will bring all deltas which was accumulated
since RELEASE and I really concern about stability of this box (which is
router/firewall/mail server). Other people depend on it.

On Thu, 07 Oct 2010 22:20:18 +0300, Andriy Gapon 
wrote:
> on 07/10/2010 21:47 Andriy Bakay said the following:
>> I expressed myself incorrectly. Sorry. :-(
>>
>> Do you Andriy :-) or anybody else from list(s) have more info how to
>> fix or work around this issue?
> 
> First, I recommend to try to upgrade to the recent stable/8.

___
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.1-RELEASE Announcement - Typo

2010-10-07 Thread Jeremy Chadwick
On Thu, Oct 07, 2010 at 07:59:21PM +, 1 0 wrote:
> There is a typo in FreeBSD 8.1-RELEASE Announcement:
> 
> # dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync
> 
> should be
> 
> # dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1024k conv=sync

AFAIK, this isn't a typo.

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


FreeBSD 8.1-RELEASE Announcement - Typo

2010-10-07 Thread 1 0
Hello!

There is a typo in FreeBSD 8.1-RELEASE Announcement:

# dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync

should be

# dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1024k conv=sync

Best regards,

--
0110001101100100
___
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: Multiple zdevs in the root zpool?

2010-10-07 Thread Andriy Gapon
on 07/10/2010 13:45 Matthew Seaman said the following:
> However, according to my understanding, if you want to boot from a
> zpool, you can only have one vdev in that pool.
> 
> But what exactly does this mean?

Yes, exactly, what does that mean? :)
Where did your understanding come from?

-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Ivan Voras
On 10/07/10 20:25, Andriy Gapon wrote:
> on 07/10/2010 15:35 Ivan Voras said the following:
>> /boot/loader.conf) and 2) disable superpages, they don't get along on a few 
>> models
>> of Opterons (vm.pmap.pg_ps_enabled=0 in /boot/loader.conf).
> 
> Those who follow know that the issue is supposed to be resolved long ago.
> Just in case.

Yes, it was. OTOH CPU errata lists are so long today I think it's
justified to verify the assumptions.


___
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: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Gapon
on 07/10/2010 21:47 Andriy Bakay said the following:
> I expressed myself incorrectly. Sorry. :-(
> 
> Do you Andriy :-) or anybody else from list(s) have more info how to
> fix or work around this issue?

First, I recommend to try to upgrade to the recent stable/8.

-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread John Hay
On Thu, Oct 07, 2010 at 10:38:58AM -0700, Jeremy Chadwick wrote:
> On Thu, Oct 07, 2010 at 07:31:02PM +0200, John Hay wrote:
> > On Thu, Oct 07, 2010 at 06:19:48PM +0200, Goran Lowkrantz wrote:
> > > --On October 7, 2010 17:50:42 +0200 John Hay  wrote:
> > > 
> > > >On Thu, Oct 07, 2010 at 02:35:31PM +0200, Ivan Voras wrote:
> > > >>On 10/07/10 14:15, John Hay wrote:
> > > >>> Hi,
> > > >>>
> > > >>> I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
> > > >>> FreeBSD 8-stable with zfs on it.
> > > >>>
> > > >>> I have setup the two boot disks in a zfs mirror and then the rest in
> > > >>> a pool of 6 X raidz2 of 7 disks each.
> > > >>>
> > > >>> I have created a 10G file with dd in the second pool, but if I try to
> > > >>> read it with dd, dd will hang in "zio->io_cv)" according to ^T. This
> > > >>> happens everytime. The first time I saw messages about an interrupt
> > > >>> storm, so I have put "hw.intr_storm_threshold=1" in
> > > >>> /etc/sysctl.conf. According to "systat -vm 1" there is atapci for 2-3
> > > >>> seconds and then it is quiet.
> > > >>
> > > >>There are two things you could try: 1) use the AHCI driver
> > > >>(ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they
> > > >>don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in
> > > >>/boot/loader.conf).
> > > >
> > > >ahci does not grab them. According to the ahci man page, it can handle
> > > >Marvell 88SX61xx, while these are MV88SX6081 according to pciconf -lcv:
> > > >
> > > >atap...@pci0:1:1:0: class=0x01 card=0x11ab11ab chip=0x608111ab
> > > >rev=0x09 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo
> > > >Technology Ltd)' device = 'MV88SX6081 8-port SATA II PCI-X
> > > >Controller'
> > > >class  = mass storage
> > > >subclass   = SCSI
> > > >cap 01[40] = powerspec 2  supports D0 D3  current D0
> > > >cap 05[50] = MSI supports 1 message, 64 bit
> > > >cap 07[60] = PCI-X 64-bit supports 133MHz, 512 burst read, 4 split
> > > >transactions
> > > 
> > > Then try mvs_load="YES"
> > > 
> > > m...@pci0:6:2:0:  class=0x01 card=0x11ab11ab chip=0x608111ab 
> > > rev=0x09 hdr=0x00
> > >vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
> > >device = 'MV88SX6081 8-port SATA II PCI-X Controller'
> > >class  = mass storage
> > >subclass   = SCSI
> > > m...@pci0:5:1:0:  class=0x01 card=0x11ab11ab chip=0x608111ab 
> > > rev=0x09 hdr=0x00
> > >vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
> > >device = 'MV88SX6081 8-port SATA II PCI-X Controller'
> > >class  = mass storage
> > >subclass   = SCSI
> > 
> > That helped, thanks. Now the disks are detected as adaXX devices.
> > 
> > The problem still happens though. I think it takes a little longer after
> > I have started dd before it hangs, but it still hangs.
> > 
> > One thing seems a little different though. Occasionaly a short burst of
> > interrupts on the mvsX devices do come through. It also seems that a few
> > seconds after I press ^T in the dd window, I see a burst of mvsX 
> > interrupts happen and dd will report in/out records and bytes. This did
> > not happen with the ata driver. It is still hanging in "zio->io_cv)"
> > though.
> > 
> > I also see these messages in /var/log/messages
> > 
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 16 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 17 (->0) 1 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 18 (->0) 2 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 20 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 21 (->0) 1 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 22 (->0) 2 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 23 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 24 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 25 (->0) 1 4000
> > Oct  7 17:08:04 thumper1 kernel: 
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 26 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 27 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 28 (->0) 1 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 29 (->0) 2 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 30 (->0) 3 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 31 (->0) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 2 (->18) 1 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 5 (->18) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 6 (->18) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 7 (->18) 0 4000
> > Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 8 (->18) 1 4000
> > Oct  7 17:08:05 thumper1 kernel: 
> > Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 9 (->18) 2 4000
> > Oct  7 17:08:05 th

Re: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Bakay
I expressed myself incorrectly. Sorry. :-(

Do you Andriy :-) or anybody else from list(s) have more info how to
fix or work around this issue?

On Thu, 07 Oct 2010 21:29:54 +0300, Andriy Gapon 
wrote:
> on 07/10/2010 18:46 Andriy Bakay said the following:
>> Hi All,
>>
>> Do we have any new information about this issue (fixes, work arounds etc.)? 
>> Any
>> input will be highly useful.
> 
> Yes, _we_ do.  Where have you been? :-)

___
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: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Gapon
on 07/10/2010 18:46 Andriy Bakay said the following:
> Hi All,
> 
> Do we have any new information about this issue (fixes, work arounds etc.)? 
> Any
> input will be highly useful.

Yes, _we_ do.  Where have you been? :-)

-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Andriy Gapon
on 07/10/2010 20:31 John Hay said the following:
> Oct  7 17:11:49 thumper1 kernel: mvsch23: EMPTY CRPB 30 (->0) 0 4000

Can you rule out hardware (or driver-level) problems?
E.g. by dd-ing to/from disk directly.
Doing that in parallel on the same and/or different disks.
Running any disk I/O benchmarks.

-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Andriy Gapon
on 07/10/2010 15:35 Ivan Voras said the following:
> /boot/loader.conf) and 2) disable superpages, they don't get along on a few 
> models
> of Opterons (vm.pmap.pg_ps_enabled=0 in /boot/loader.conf).

Those who follow know that the issue is supposed to be resolved long ago.
Just in case.

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


Intel em, SFPs and DDM ?

2010-10-07 Thread Kurt Jaeger
Hi!

Does anyone know how to read SFP DDM values using Intel em cards ?

SFP means Small Form Factor Pluggable fiber transceivers.

DDM is Digital Diagnostics Monitoring
http://en.wikipedia.org/wiki/Small_form-factor_pluggable_transceiver#Digital_Diagnostics_Monitoring

There seems to be a way to read it using i2c(8) ?

Any pointers ?

-- 
p...@opsec.eu+49 171 310137210 years to go !
___
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 dhcp client can set its hostname properly on lease time

2010-10-07 Thread Torfinn Ingolfsen
On Thu, 07 Oct 2010 21:37:52 +0900
Mamoru Iwaki <1wk...@gmail.com> wrote:

> Are there good way for dhcp client to set its hostname properly on lease
> time?

Well, you *can* have the dhcp client on FreeBSD send an identifier, and
with that identifier the dhcp server can assign the client a static ip
lease. If that static ip is registered in your local dns, you're all
set. Doesn't work well if you use the client on another network who
doesn't offer static ip's. YMMV.

> The following will be a possble workaround, but I'm wondering there can
> be a smart answer in FreeBSD itself.
> 
> It is possible to resolve the hostname corresponding to a dhcp-delivered
> ip-address with a local name server. So, (1) resolve the corresponding
> hostname from the local name server, (2) set it as hostname, and (3)
> call them every time when dhcp lease is updated

Isn't the proper way with dns to configure dynamic DNS updates, and
allow the client to do that?

HTH
-- 
Regards,
Torfinn Ingolfsen

___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Andriy Gapon
on 07/10/2010 20:38 Jeremy Chadwick said the following:
> Isn't slow I/O one of the results of ARC starvation?

Slow I/O can be a result of very many things.
Please remove me from CC, thanks :-)

-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Jeremy Chadwick
On Thu, Oct 07, 2010 at 07:31:02PM +0200, John Hay wrote:
> On Thu, Oct 07, 2010 at 06:19:48PM +0200, Goran Lowkrantz wrote:
> > --On October 7, 2010 17:50:42 +0200 John Hay  wrote:
> > 
> > >On Thu, Oct 07, 2010 at 02:35:31PM +0200, Ivan Voras wrote:
> > >>On 10/07/10 14:15, John Hay wrote:
> > >>> Hi,
> > >>>
> > >>> I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
> > >>> FreeBSD 8-stable with zfs on it.
> > >>>
> > >>> I have setup the two boot disks in a zfs mirror and then the rest in
> > >>> a pool of 6 X raidz2 of 7 disks each.
> > >>>
> > >>> I have created a 10G file with dd in the second pool, but if I try to
> > >>> read it with dd, dd will hang in "zio->io_cv)" according to ^T. This
> > >>> happens everytime. The first time I saw messages about an interrupt
> > >>> storm, so I have put "hw.intr_storm_threshold=1" in
> > >>> /etc/sysctl.conf. According to "systat -vm 1" there is atapci for 2-3
> > >>> seconds and then it is quiet.
> > >>
> > >>There are two things you could try: 1) use the AHCI driver
> > >>(ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they
> > >>don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in
> > >>/boot/loader.conf).
> > >
> > >ahci does not grab them. According to the ahci man page, it can handle
> > >Marvell 88SX61xx, while these are MV88SX6081 according to pciconf -lcv:
> > >
> > >atap...@pci0:1:1:0: class=0x01 card=0x11ab11ab chip=0x608111ab
> > >rev=0x09 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo
> > >Technology Ltd)' device = 'MV88SX6081 8-port SATA II PCI-X
> > >Controller'
> > >class  = mass storage
> > >subclass   = SCSI
> > >cap 01[40] = powerspec 2  supports D0 D3  current D0
> > >cap 05[50] = MSI supports 1 message, 64 bit
> > >cap 07[60] = PCI-X 64-bit supports 133MHz, 512 burst read, 4 split
> > >transactions
> > 
> > Then try mvs_load="YES"
> > 
> > m...@pci0:6:2:0:class=0x01 card=0x11ab11ab chip=0x608111ab 
> > rev=0x09 hdr=0x00
> >vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
> >device = 'MV88SX6081 8-port SATA II PCI-X Controller'
> >class  = mass storage
> >subclass   = SCSI
> > m...@pci0:5:1:0:class=0x01 card=0x11ab11ab chip=0x608111ab 
> > rev=0x09 hdr=0x00
> >vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
> >device = 'MV88SX6081 8-port SATA II PCI-X Controller'
> >class  = mass storage
> >subclass   = SCSI
> 
> That helped, thanks. Now the disks are detected as adaXX devices.
> 
> The problem still happens though. I think it takes a little longer after
> I have started dd before it hangs, but it still hangs.
> 
> One thing seems a little different though. Occasionaly a short burst of
> interrupts on the mvsX devices do come through. It also seems that a few
> seconds after I press ^T in the dd window, I see a burst of mvsX 
> interrupts happen and dd will report in/out records and bytes. This did
> not happen with the ata driver. It is still hanging in "zio->io_cv)"
> though.
> 
> I also see these messages in /var/log/messages
> 
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 16 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 17 (->0) 1 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 18 (->0) 2 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 20 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 21 (->0) 1 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 22 (->0) 2 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 23 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 24 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 25 (->0) 1 4000
> Oct  7 17:08:04 thumper1 kernel: 
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 26 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 27 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 28 (->0) 1 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 29 (->0) 2 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 30 (->0) 3 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 31 (->0) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 2 (->18) 1 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 5 (->18) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 6 (->18) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 7 (->18) 0 4000
> Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 8 (->18) 1 4000
> Oct  7 17:08:05 thumper1 kernel: 
> Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 9 (->18) 2 4000
> Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 10 (->18) 0 4000
> Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 11 (->18) 1 4000
> Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 12 (->18) 0 4000
> Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY C

Re: zfs hang in zio->io_cv) with dd read

2010-10-07 Thread John Hay
On Thu, Oct 07, 2010 at 06:19:48PM +0200, Goran Lowkrantz wrote:
> --On October 7, 2010 17:50:42 +0200 John Hay  wrote:
> 
> >On Thu, Oct 07, 2010 at 02:35:31PM +0200, Ivan Voras wrote:
> >>On 10/07/10 14:15, John Hay wrote:
> >>> Hi,
> >>>
> >>> I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
> >>> FreeBSD 8-stable with zfs on it.
> >>>
> >>> I have setup the two boot disks in a zfs mirror and then the rest in
> >>> a pool of 6 X raidz2 of 7 disks each.
> >>>
> >>> I have created a 10G file with dd in the second pool, but if I try to
> >>> read it with dd, dd will hang in "zio->io_cv)" according to ^T. This
> >>> happens everytime. The first time I saw messages about an interrupt
> >>> storm, so I have put "hw.intr_storm_threshold=1" in
> >>> /etc/sysctl.conf. According to "systat -vm 1" there is atapci for 2-3
> >>> seconds and then it is quiet.
> >>
> >>There are two things you could try: 1) use the AHCI driver
> >>(ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they
> >>don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in
> >>/boot/loader.conf).
> >
> >ahci does not grab them. According to the ahci man page, it can handle
> >Marvell 88SX61xx, while these are MV88SX6081 according to pciconf -lcv:
> >
> >atap...@pci0:1:1:0: class=0x01 card=0x11ab11ab chip=0x608111ab
> >rev=0x09 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo
> >Technology Ltd)' device = 'MV88SX6081 8-port SATA II PCI-X
> >Controller'
> >class  = mass storage
> >subclass   = SCSI
> >cap 01[40] = powerspec 2  supports D0 D3  current D0
> >cap 05[50] = MSI supports 1 message, 64 bit
> >cap 07[60] = PCI-X 64-bit supports 133MHz, 512 burst read, 4 split
> >transactions
> 
> Then try mvs_load="YES"
> 
> m...@pci0:6:2:0:  class=0x01 card=0x11ab11ab chip=0x608111ab 
> rev=0x09 hdr=0x00
>vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
>device = 'MV88SX6081 8-port SATA II PCI-X Controller'
>class  = mass storage
>subclass   = SCSI
> m...@pci0:5:1:0:  class=0x01 card=0x11ab11ab chip=0x608111ab 
> rev=0x09 hdr=0x00
>vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
>device = 'MV88SX6081 8-port SATA II PCI-X Controller'
>class  = mass storage
>subclass   = SCSI

That helped, thanks. Now the disks are detected as adaXX devices.

The problem still happens though. I think it takes a little longer after
I have started dd before it hangs, but it still hangs.

One thing seems a little different though. Occasionaly a short burst of
interrupts on the mvsX devices do come through. It also seems that a few
seconds after I press ^T in the dd window, I see a burst of mvsX 
interrupts happen and dd will report in/out records and bytes. This did
not happen with the ata driver. It is still hanging in "zio->io_cv)"
though.

I also see these messages in /var/log/messages

Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 16 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 17 (->0) 1 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 18 (->0) 2 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 20 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 21 (->0) 1 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 22 (->0) 2 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 23 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 24 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 25 (->0) 1 4000
Oct  7 17:08:04 thumper1 kernel: 
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 26 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 27 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 28 (->0) 1 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 29 (->0) 2 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 30 (->0) 3 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 31 (->0) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 2 (->18) 1 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 5 (->18) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 6 (->18) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 7 (->18) 0 4000
Oct  7 17:08:04 thumper1 kernel: mvsch31: EMPTY CRPB 8 (->18) 1 4000
Oct  7 17:08:05 thumper1 kernel: 
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 9 (->18) 2 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 10 (->18) 0 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 11 (->18) 1 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 12 (->18) 0 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 13 (->18) 0 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 14 (->18) 1 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 15 (->18) 2 4000
Oct  7 17:08:05 thumper1 kernel: mvsch31: EMPTY CRPB 16 (->18) 3 4000
Oct  7 17:08:

Re: Panic: attempted pmap_enter on 2MB page

2010-10-07 Thread Alan Cox

Kurt Alstrup wrote:

Up front disclaimer: I may very well be wrong on this..

  


At a high-level, I agree with much of what you say.  In particular, if 
pmap_enter() is applied to a virtual address that is already mapped by a 
large page, the reported panic could result.  However, barring bugs, for 
example, in memory allocation by the upper levels of the kernel, the 
panic inducing situation shouldn't occur.


At a lower-level, it appears that you are misinterpreting what 
pmap_unuse_pt() does.  It is not pmap_unuse_pt()'s responsibility to 
clear page table entries, either for user-space page tables or the 
kernel page table.  When a region of the kernel virtual address space is 
deallocated, we do clear the kernel page table entries.  See, for 
example, pmap_remove_pte() (or pmap_qremove()).


The special case for the kernel page table in pmap_unuse_pt() has a 
different purpose.  User-space page table pages are reference counted.  
When there are no longer any valid mappings contained in a user-space 
page table page, we remove that page from the page table and free it.  
However, for the kernel page table, we never free unused page table 
pages.  Instead, they persist, but with all of their mappings marked 
invalid.  In other words, the special case for the kernel page table in 
pmap_unuse_pt() is skipping the code that unmaps and frees the unused 
page table page.


This special handling of the kernel page table does create another 
special case when we destroy a large page mapping within the kernel 
address space.  We have to reinsert into the kernel page table the old 
page table page (for small page mappings) that was sitting idle while 
the kernel page table held a large page mapping in its place.  At the 
same time, all of the page table entries in this page must be 
invalidated.  This is handled by pmap_remove_pde().


I'm curious to know more about you were doing when you encountered this 
panic.  Were you also using ISO images containing large MFS roots?


Regards,
Alan

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


acpi_ec: request for review and testing

2010-10-07 Thread Andriy Gapon

FYI: http://article.gmane.org/gmane.os.freebsd.devel.acpi/6440
If you can test and would like to report, please followup to that thread on 
acpi@
mailing list.  Please do not followup to this post.
Thanks!
-- 
Andriy Gapon
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Goran Lowkrantz

--On October 7, 2010 17:50:42 +0200 John Hay  wrote:


On Thu, Oct 07, 2010 at 02:35:31PM +0200, Ivan Voras wrote:

On 10/07/10 14:15, John Hay wrote:
> Hi,
>
> I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
> FreeBSD 8-stable with zfs on it.
>
> I have setup the two boot disks in a zfs mirror and then the rest in
> a pool of 6 X raidz2 of 7 disks each.
>
> I have created a 10G file with dd in the second pool, but if I try to
> read it with dd, dd will hang in "zio->io_cv)" according to ^T. This
> happens everytime. The first time I saw messages about an interrupt
> storm, so I have put "hw.intr_storm_threshold=1" in
> /etc/sysctl.conf. According to "systat -vm 1" there is atapci for 2-3
> seconds and then it is quiet.

There are two things you could try: 1) use the AHCI driver
(ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they
don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in
/boot/loader.conf).


ahci does not grab them. According to the ahci man page, it can handle
Marvell 88SX61xx, while these are MV88SX6081 according to pciconf -lcv:

atap...@pci0:1:1:0: class=0x01 card=0x11ab11ab chip=0x608111ab
rev=0x09 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo
Technology Ltd)' device = 'MV88SX6081 8-port SATA II PCI-X
Controller'
class  = mass storage
subclass   = SCSI
cap 01[40] = powerspec 2  supports D0 D3  current D0
cap 05[50] = MSI supports 1 message, 64 bit
cap 07[60] = PCI-X 64-bit supports 133MHz, 512 burst read, 4 split
transactions


Then try mvs_load="YES"

m...@pci0:6:2:0:	class=0x01 card=0x11ab11ab chip=0x608111ab rev=0x09 
hdr=0x00

   vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
   device = 'MV88SX6081 8-port SATA II PCI-X Controller'
   class  = mass storage
   subclass   = SCSI
m...@pci0:5:1:0:	class=0x01 card=0x11ab11ab chip=0x608111ab rev=0x09 
hdr=0x00

   vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
   device = 'MV88SX6081 8-port SATA II PCI-X Controller'
   class  = mass storage
   subclass   = SCSI



I have also set vm.pmap.pg_ps_enabled=0 in loader.conf, but that did not
make a difference either. :-(

Once dd hang in that "zio->io_cv)" state the rest of the machine is ok
and everything works as long as you stay away from the directory where
the file is that you dd from.

There are no messages in dmesg or /var/log/messages.

John
--
John Hay -- j...@meraka.csir.co.za / j...@freebsd.org
___
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"


/glz


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


Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).

2010-10-07 Thread Andriy Bakay

Hi All,

Do we have any new information about this issue (fixes, work arounds 
etc.)? Any input will be highly useful.


http://lists.freebsd.org/pipermail/freebsd-stable/2010-July/057682.html

I am experiencing kind of same problem on FreeBSD 8.1-RELEASE-p1 i386 
2G RAM.


Thanks,
Andriy

___
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: ISDN4BSD removal (was: FreeBSD 6.4 and 8.0 EoLs coming soon)

2010-10-07 Thread Kevin Oberman
> From: p...@citylink.dinoex.sub.org (Peter Much)
> Date: Thu, 7 Oct 2010 12:35:01 GMT
> Sender: owner-freebsd-sta...@freebsd.org
> 
>  aka Vadim Goncharov schrieb
> mit Datum Wed, 08 Sep 2010 04:31:46 +0700 in m2n.fbsd.stable:
> 
> |You do not understand the problem. It is not in notices & volunteers, but  
> |rather in the Project's policy - delete something which could still work.  
> |Personally, I don't use ISDN, so didn't said anything that time, but now,  
> 
> Hi all,
> 
> at this point I would like to speak up, because I am practically
> using ISDN4BSD.
> 
> I just decided to upgrade to RELENG-8, and found out that I cannot.
> So now I have 1 1/2 years (until 7.3 EOL) to figure out a solution.
> 
> I will not complain, because I think people here do an incredible
> good work, and the only very small thing I can contribute is 
> occasional bug reports and sometimes patches.
> 
> But what I want to say is:
> 
> It is *NOT TRUE* that the I4B feature has become of limited
> usefulness today!
> 
> I am using I4B as an answering machine for my phone-line, with
> the feature to monitor these calls and to download them as MP3
> from anywhere in the world (could even be a web-interface, but 
> I hadn't yet the time to write that). 
> I don't want everybody to know my cellular nr;  I don't want to
> (costly) forward calls to my cellular; but I want to be able to
> monitor and react on calls nevertheless!
> 
> This is very easy and very comfortable - and currently I have no
> idea which other equipment could provide me with such functionality
> (if any would exist at all). And - my router is running anyway, 
> it doesn't consume extra power when doing this - in fact, I think
> this is one of the most useful things one can do with a computer
> that is kept running all the time...
> 
> So, I am sure my demand for this functionality will continue to 
> exist for an indefinite time into the future, and in fact I 
> am sad.
> 
> 
> To be honest, I am quite clueless now. Theoretically I do 
> understand the problem with I4B. (Practically I do not understand 
> it, because for me it has nothing to do with networking - I do
> only use the phone call monitoring/handling.)
> But staying with 7.3 will cut me off from other improvements/fixes,
> which I would much enjoy.
> 
> Anyway, there is another open issue for me: my ISDN adapter card 
> is ISA technology, so I will have to get a PCI type card as soon 
> as I replace the mainboard of that system (which is imminent because
> it's too slow and too power-consuming - the ISDN being the main 
> reason why I didnt do that already).
> 
> But maybe, now I should look for some completely different approach?
> 
> Any clues, ideas, pointers, hints, ressources,... are greatly
> welcomed!!

Please understand that the removal of isdn4bsd has nothing to do with
any belief that it was no longer being used. 

It was removed because it would not work with a modern kernel as it
relied on a locking mechanism that could not be retained if the system
was to remain relevant in the modern world. There were many calls,
though they may have not reached all those with a vested interest in
isdn4bsd, asking if anyone could re-work the code to remove giant locks.

Due to the magnitude of the change to the kernel to support a non-giant
locked world, there was simply no way to make support for giant a build
time option. When no one stepped up to update isdn4bsd, there was really
no choice but to remove it.

Happily, HPS and taken the job and has an isdn4bsd driver that works on
v8 and I hope to see it move back into the base system in the future.
http://www.selasky.org/hans_petter/isdn4bsd/
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: ober...@es.net  Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread John Hay
On Thu, Oct 07, 2010 at 02:35:31PM +0200, Ivan Voras wrote:
> On 10/07/10 14:15, John Hay wrote:
> >Hi,
> >
> >I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
> >FreeBSD 8-stable with zfs on it.
> >
> >I have setup the two boot disks in a zfs mirror and then the rest in
> >a pool of 6 X raidz2 of 7 disks each.
> >
> >I have created a 10G file with dd in the second pool, but if I try to read
> >it with dd, dd will hang in "zio->io_cv)" according to ^T. This happens
> >everytime. The first time I saw messages about an interrupt storm, so I
> >have put "hw.intr_storm_threshold=1" in /etc/sysctl.conf. According to
> >"systat -vm 1" there is atapci for 2-3 seconds and then it is quiet.
> 
> There are two things you could try: 1) use the AHCI driver 
> (ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they 
> don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in 
> /boot/loader.conf).

ahci does not grab them. According to the ahci man page, it can handle
Marvell 88SX61xx, while these are MV88SX6081 according to pciconf -lcv:

atap...@pci0:1:1:0: class=0x01 card=0x11ab11ab chip=0x608111ab rev=0x09 
hdr=0x00
vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
device = 'MV88SX6081 8-port SATA II PCI-X Controller'
class  = mass storage
subclass   = SCSI
cap 01[40] = powerspec 2  supports D0 D3  current D0
cap 05[50] = MSI supports 1 message, 64 bit 
cap 07[60] = PCI-X 64-bit supports 133MHz, 512 burst read, 4 split 
transactions

I have also set vm.pmap.pg_ps_enabled=0 in loader.conf, but that did not
make a difference either. :-(

Once dd hang in that "zio->io_cv)" state the rest of the machine is ok
and everything works as long as you stay away from the directory where
the file is that you dd from.

There are no messages in dmesg or /var/log/messages.

John
-- 
John Hay -- j...@meraka.csir.co.za / j...@freebsd.org
___
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 dhcp client can set its hostname properly on lease time

2010-10-07 Thread Brian Reichert
On Thu, Oct 07, 2010 at 09:37:52PM +0900, Mamoru Iwaki wrote:
> Now, my question is
> 
> Are there good way for dhcp client to set its hostname properly on lease
> time?

Depends on 'properly'.

I've hacked dhclient exit scripts to synthesize a hostname, if one
was not offered by the DHCP server.  The host, under these
circumstances, gets a hostname derived from the IP address and the
supplied domain name, eg: '10-12-34-56.example.com'.

This at least gets the box into a place where it has a hostname
associated with the address on an external interface.

No one else knows that hostname, however.  YMMV.

> 
> Cheers
> 
> --
> -
> Mamoru IWAKI
> Grad. Schl. Sci & Tech./Dept. Biocybernetics, Niigata University

-- 
Brian Reichert  
55 Crystal Ave. #286
Derry NH 03038-1725 USA BSD admin/developer at large
___
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"


How dhcp client can set its hostname properly on lease time

2010-10-07 Thread Kurt Lidl

 Regarding your posting to freebsd-stable.

Probably what you want to do is have the DHCP server send the machine name
when it offers a lease to the client.

-Kurt

___
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: ISDN4BSD removal (was: FreeBSD 6.4 and 8.0 EoLs coming soon)

2010-10-07 Thread Tom Evans
On Thu, Oct 7, 2010 at 1:35 PM, Peter Much  wrote:
>  aka Vadim Goncharov schrieb
> mit Datum Wed, 08 Sep 2010 04:31:46 +0700 in m2n.fbsd.stable:
>
> |You do not understand the problem. It is not in notices & volunteers, but
> |rather in the Project's policy - delete something which could still work.
> |Personally, I don't use ISDN, so didn't said anything that time, but now,
>
> Hi all,
>
> at this point I would like to speak up, because I am practically
> using ISDN4BSD.
>
> I just decided to upgrade to RELENG-8, and found out that I cannot.
> So now I have 1 1/2 years (until 7.3 EOL) to figure out a solution.
>

http://www.selasky.org/hans_petter/isdn4bsd/


HTH

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


ISDN4BSD removal (was: FreeBSD 6.4 and 8.0 EoLs coming soon)

2010-10-07 Thread Peter Much
 aka Vadim Goncharov schrieb
mit Datum Wed, 08 Sep 2010 04:31:46 +0700 in m2n.fbsd.stable:

|You do not understand the problem. It is not in notices & volunteers, but  
|rather in the Project's policy - delete something which could still work.  
|Personally, I don't use ISDN, so didn't said anything that time, but now,  

Hi all,

at this point I would like to speak up, because I am practically
using ISDN4BSD.

I just decided to upgrade to RELENG-8, and found out that I cannot.
So now I have 1 1/2 years (until 7.3 EOL) to figure out a solution.

I will not complain, because I think people here do an incredible
good work, and the only very small thing I can contribute is 
occasional bug reports and sometimes patches.

But what I want to say is:

It is *NOT TRUE* that the I4B feature has become of limited
usefulness today!

I am using I4B as an answering machine for my phone-line, with
the feature to monitor these calls and to download them as MP3
from anywhere in the world (could even be a web-interface, but 
I hadn't yet the time to write that). 
I don't want everybody to know my cellular nr;  I don't want to
(costly) forward calls to my cellular; but I want to be able to
monitor and react on calls nevertheless!

This is very easy and very comfortable - and currently I have no
idea which other equipment could provide me with such functionality
(if any would exist at all). And - my router is running anyway, 
it doesn't consume extra power when doing this - in fact, I think
this is one of the most useful things one can do with a computer
that is kept running all the time...

So, I am sure my demand for this functionality will continue to 
exist for an indefinite time into the future, and in fact I 
am sad.


To be honest, I am quite clueless now. Theoretically I do 
understand the problem with I4B. (Practically I do not understand 
it, because for me it has nothing to do with networking - I do
only use the phone call monitoring/handling.)
But staying with 7.3 will cut me off from other improvements/fixes,
which I would much enjoy.

Anyway, there is another open issue for me: my ISDN adapter card 
is ISA technology, so I will have to get a PCI type card as soon 
as I replace the mainboard of that system (which is imminent because
it's too slow and too power-consuming - the ISDN being the main 
reason why I didnt do that already).

But maybe, now I should look for some completely different approach?

Any clues, ideas, pointers, hints, ressources,... are greatly
welcomed!!

rgds,
PMc
___
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"


How dhcp client can set its hostname properly on lease time

2010-10-07 Thread Mamoru Iwaki
 Hi,

I'm using FreeBSD 8 stable as of 20101006. It is a dhcp client in a
private local network, and xorg staff is installed. When I tried to use
it from a remote pc with X11-forwarding set, xauth failed to set up
.Xauthority as follows.

/usr/local/bin/xauth: creating new authority file /home/hogehoge/.Xauthority
/usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in
"remove" command
/usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add"
command

At this moment, hostname was not set (it's empty) because the FreeBSD
box was a dhcp client. Meanwhile, if the hostname coresponding to the
ip-address assigned by dhcp server was set manually, the above lines
disappeared and X11-forwarding worked well.


Now, my question is

Are there good way for dhcp client to set its hostname properly on lease
time?


The following will be a possble workaround, but I'm wondering there can
be a smart answer in FreeBSD itself.

It is possible to resolve the hostname corresponding to a dhcp-delivered
ip-address with a local name server. So, (1) resolve the corresponding
hostname from the local name server, (2) set it as hostname, and (3)
call them every time when dhcp lease is updated


Cheers

--
-
Mamoru IWAKI
Grad. Schl. Sci & Tech./Dept. Biocybernetics, Niigata University

___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread Ivan Voras

On 10/07/10 14:15, John Hay wrote:

Hi,

I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
FreeBSD 8-stable with zfs on it.

I have setup the two boot disks in a zfs mirror and then the rest in
a pool of 6 X raidz2 of 7 disks each.

I have created a 10G file with dd in the second pool, but if I try to read
it with dd, dd will hang in "zio->io_cv)" according to ^T. This happens
everytime. The first time I saw messages about an interrupt storm, so I
have put "hw.intr_storm_threshold=1" in /etc/sysctl.conf. According to
"systat -vm 1" there is atapci for 2-3 seconds and then it is quiet.


There are two things you could try: 1) use the AHCI driver 
(ahci_load="YES" in /boot/loader.conf) and 2) disable superpages, they 
don't get along on a few models of Opterons (vm.pmap.pg_ps_enabled=0 in 
/boot/loader.conf).


___
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 hang in zio->io_cv) with dd read

2010-10-07 Thread John Hay
Hi,

I got hold of a SunFire X4500 with 48 X 500G disks and thought to try
FreeBSD 8-stable with zfs on it.

I have setup the two boot disks in a zfs mirror and then the rest in
a pool of 6 X raidz2 of 7 disks each.

I have created a 10G file with dd in the second pool, but if I try to read
it with dd, dd will hang in "zio->io_cv)" according to ^T. This happens
everytime. The first time I saw messages about an interrupt storm, so I
have put "hw.intr_storm_threshold=1" in /etc/sysctl.conf. According to
"systat -vm 1" there is atapci for 2-3 seconds and then it is quiet.

The commandline that I use:

> cd /export/bonnie/
> ls -l
total 43812978
-rw---  1 jhay  jhay  34359738368 Oct  5 20:06 Bonnie.20252
-rw-r--r--  1 jhay  jhay  1048576 Oct  5 20:20 tst.dd
> dd if=tst.dd of=/dev/null bs=64k
^T
load: 0.98  cmd: dd 1391 [zio->io_cv)] 17.77r 0.00u 0.88s 0% 880k
^T
load: 0.00  cmd: dd 1391 [zio->io_cv)] 4473.68r 0.00u 0.88s 0% 880k

thumper1# procstat -k 1391
  PIDTID COMM TDNAME   KSTACK   
 1391 100205 dd   -mi_switch sleepq_wait _cv_wait 
zio_wait dmu_buf_hold_array_by_dnode dmu_buf_hold_array dmu_read_uio 
zfs_freebsd_read vn_read dofileread kern_readv read syscall Xfast_syscall 
thumper1#

thumper1# zfs list
NAME USED  AVAIL  REFER  MOUNTPOINT
dam 12.9G   436G21K  none
dam/ROOT12.9G   436G21K  legacy
dam/ROOT/amd64  12.9G   436G  12.9G  legacy
dam/tmp 22.2M   436G  22.2M  /tmp
dam/usr_local   2.19M   436G  2.19M  /usr/local
dam/var 10.4M   436G  10.4M  /var
meer41.8G  13.2T  44.8K  none
meer/export 41.8G  13.2T  41.8G  /export

thumper1# zpool status
  pool: dam
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE 
CKSUM
dam ONLINE   0 0
 0
  mirrorONLINE   0 0
 0
gptid/3c3167d3-cc45-11df-b85d-00144f211378  ONLINE   0 0
 0
gptid/3c6eeb97-cc45-11df-b85d-00144f211378  ONLINE   0 0
 0

errors: No known data errors

  pool: meer
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE 
CKSUM
meerONLINE   0 0
 0
  raidz2ONLINE   0 0
 0
gptid/6e4ae922-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6e647dae-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6e7c905b-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6e961440-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6ed0304d-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6ee9d7cb-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f0341a4-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
  raidz2ONLINE   0 0
 0
gptid/6f1fbb2b-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f3530cc-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f4f7635-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f6342f8-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f78bd12-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6f8ec2d0-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6fa35b89-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
  raidz2ONLINE   0 0
 0
gptid/6fd319f7-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/6fefa464-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70084d1a-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70225bd7-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/703b892d-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/705649a0-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/706f0a93-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
  raidz2ONLINE   0 0
 0
gptid/7087f6c9-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70a04cca-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70bbdc2d-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70d4b6ed-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
gptid/70eabeba-d067-11df-bc29-00144f211378  ONLINE   0 0
 0
  

Multiple zdevs in the root zpool?

2010-10-07 Thread Matthew Seaman

Hi, folks,

Currently we have a RAIDZ1 system using 6 x 1TB drives, which we use as
a bacula storage device.  We now have another 6 x 1TB drives to increase
capacity.  I'd originally planned to just create another zpool and have
two partitions mounted for bacula to store stuff in.  However, it would
be better in many ways if we could just add the capacity to the existing
setup, presumably by creating a second vdev in the original pool.

However, according to my understanding, if you want to boot from a
zpool, you can only have one vdev in that pool.

But what exactly does this mean?  Is it really mounting the root fs
that's the problem, or is it reading the kernel out of /boot ?

Originally I followed the recipe in

   http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1

for creating a system using a RAIDZ1 pool, so I have small freebsd-boot
and -swap partitions on every drive. I don't really need that much swap
space, so is there a way of parlaying that into something like the UFS
/boot setup described in http://wiki.freebsd.org/RootOnZFS/UFSBoot ?

Except I don't care about BIOS level compatibility with other OSes and
so would happily forgo installing a MBR.

Cheers

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: ZFS root pool backup and recovery

2010-10-07 Thread Svein Skogen (Listmail account)
On 07.10.2010 07:32, Marcus Reid wrote:
> Hi,
> 
> The process of creating a backup of the ZFS root pool on Solaris
> is simple and straightforward:
> 
> http://docs.sun.com/app/docs/doc/819-5461/ghzwu?l=en&a=view
> 
> So is restoring it on bare metal:
> 
> http://docs.sun.com/app/docs/doc/819-5461/ghzur?a=view
> 

How well does that method handle a single bit being toggled in transit?

//Svein

-- 
+---+---
  /"\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature