Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daisuke Aoyama

Hi, all

I updated for 3.1.2_1 and fixed bug of initial pixel format.

Before building, install "ports/net/libvncserver".
I recommend you backup virtualbox-ose directory before doing.
Uncheck QT4, X11, NLS by make config before extracting.

Howto apply the patch:
# cd /usr/ports/emulators/virtualbox-ose
# make config
# make extract
# patch -p < /path/to/VBox-VNC-Makefile.patch
# patch -p < /path/to/VBox-VNC-20100127.patch
# make

Regards,
Daisuke Aoyama
___
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: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daisuke Aoyama

Sorry, I forgot attached files.

- Original Message - 
From: "Daisuke Aoyama" 

To: 
Cc: ; 
Sent: Wednesday, January 27, 2010 7:46 PM
Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer



Hi, all

I updated for 3.1.2_1 and fixed bug of initial pixel format.

Before building, install "ports/net/libvncserver".
I recommend you backup virtualbox-ose directory before doing.
Uncheck QT4, X11, NLS by make config before extracting.

Howto apply the patch:
# cd /usr/ports/emulators/virtualbox-ose
# make config
# make extract
# patch -p < /path/to/VBox-VNC-Makefile.patch
# patch -p < /path/to/VBox-VNC-20100127.patch
# make

Regards,
Daisuke Aoyama

VBox-VNC-Makefile.patch.gz
Description: Binary data


VBox-VNC-20100127.patch.gz
Description: Binary data
___
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: immense delayed write to file system (ZFS and UFS2), performance issues

2010-01-27 Thread Dimitry Andric

On 2010-01-27 00:15, Dan Naumov wrote:

Can anyone confirm that using the WDIDLE3 utility on the 2TB WD20EADS
discs will not cause any issues if these disks are part of a ZFS
mirror pool? I do have backups of data, but I would rather not spend
the time rebuilding the entire system and restoring enormous amounts
of data over a 100mbit network unless I absolutely have to :)


Sorry to bump into this thread so late, but for some of my servers I
have been using a patch for atacontrol, to turn the APM features of the
disk(s) off, for a long time.  This is mostly noticable with 2.5"
notebook disks, which "click" like crazy all the time. :)

E.g. if you run "atacontrol cap $device", and you see in the output that
"advanced power management" is supported, you might be able to stop the
disk from spinning down by turning the APM feature off.

Patch is at .  This
should apply to 8-STABLE, no idea about older branches.

___
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: uma_zalloc_arg complaining about non-sleepable locks

2010-01-27 Thread Marius Strobl
On Wed, Jan 27, 2010 at 05:36:49PM +1100, Peter Jeremy wrote:
> On 2010-Jan-26 15:10:59 -0500, John Baldwin  wrote:
> >On Tuesday 26 January 2010 1:37:56 pm Marius Strobl wrote:
> >> On Tue, Jan 26, 2010 at 09:46:44AM -0500, John Baldwin wrote:
> >> > On Tuesday 26 January 2010 2:33:37 am Peter Jeremy wrote:
> >> > > I have just upgraded to 8-STABLE/amd64 from about 18 hours ago and am
> >> > > now getting regular (the following pair of messages about every
> >> > > minute) compaints as follows:
> >> > > 
> >> > > kernel: uma_zalloc_arg: zone "mbuf" with the following non-sleepable 
> >> > > locks held:
> >> > > kernel: exclusive sleep mutex sp_lock (sp_lock) r = 0 
> >> > > (0xff000460bb00) locked @ /usr/src/sys/rpc/svc.c:1098
> ...
> >> Could you please give the following patch a try?
> >> http://people.freebsd.org/~marius/fha_extract_info_realign2.diff
> 
> That seems to have fixed it - I've booted the new kernel and generated
> some NFS activity and am not getting any messages.  Also,
> vfs.nfs.realign_test is incrementing nicely though
> vfs.nfs.realign_count remains at zero.
> 

Ah, I forgot that using nfsm_aligned() causes nfs_realign() to
be a NOP on architectures without strict alignment requirements
for performance reasons. That's generally fine but unfortunately
that way you don't actually exercise the code which caused the
problem before (unfortunately I still don't manage to hit the
unaligned case myself).
Could you please test with #ifdef __NO_STRICT_ALIGNMENT replaced
with #if 0 in sys/nfs/nfs_common.h? The vfs.nfs.realign_count
counter should also increase then.

Marius

___
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: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daniel O'Connor
On Wed, 27 Jan 2010, Daisuke Aoyama wrote:
> > I updated for 3.1.2_1 and fixed bug of initial pixel format.
> >
> > Before building, install "ports/net/libvncserver".
> > I recommend you backup virtualbox-ose directory before doing.
> > Uncheck QT4, X11, NLS by make config before extracting.
> >
> > Howto apply the patch:
> > # cd /usr/ports/emulators/virtualbox-ose
> > # make config
> > # make extract
> > # patch -p < /path/to/VBox-VNC-Makefile.patch
> > # patch -p < /path/to/VBox-VNC-20100127.patch
> > # make

I put VBox-VNC-20100127.patch in files an modified the paths to be 
acceptable to the ports tree and applied the Makefile patch and it 
works well. (I say this as IMO it's easier to try if you distribute it 
like that :)

Is there any prospect of being able to build the VNC server extension in 
parallel with X11/QT4?

-- 
Daniel O'Con
Thanks.
nor 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: This is a digitally signed message part.


booting off GPT partitions

2010-01-27 Thread Dan Naumov
Hey

I was under the impression that everyone and their dog is using GPT
partitioning in FreeBSD these days, including for boot drives and that
I was just being unlucky with my current NAS motherboard (Intel
D945GCLF2) having supposedly shaky support for GPT boot. But right now
I am having an email exchange with Supermicro support (whom I
contacted since I am pondering their X7SPA-H board for a new system),
who are telling me that booting off GPT requires UEFI BIOS, which is
supposedly a very new thing and that for example NONE of their current
motherboards have support for this.

Am I misunderstanding something or is the Supermicro support tech misguided?


- Sincerely,
Dan Naumov
___
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: booting off GPT partitions

2010-01-27 Thread Jeremy Chadwick
On Wed, Jan 27, 2010 at 06:45:36PM +0200, Dan Naumov wrote:
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
> 
> Am I misunderstanding something or is the Supermicro support tech misguided?

For what it's worth, I've never encountered any production x86 system that
I've worked on (Linux, FreeBSD, Solaris 10, or OpenSolaris) which has
used GPT.

I don't know who's giving you the impression that "everyone and their
dog is using GPT".  Why is this feature a deal-breaker for you?  Why are
you giving it so much attention?

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


Re: booting off GPT partitions

2010-01-27 Thread Ollivier Robert
According to Dan Naumov:
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.

The Dell T3500 I just configured was announced in March 2009 IIRC and it is 
booting off GPT just fine.  Didn't do anything special for that.  Then again, I 
do not see non GPT support as a deal breaker (even for ZFS).

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- robe...@keltia.freenix.fr
In memoriam to Ondine : http://ondine.keltia.net/

___
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: booting off GPT partitions

2010-01-27 Thread Vincent Hoffman
GPT booting is I believe only natively supported using an EFI BIOS.
However if you wish to use GPT booting with FreeBSD its not too hard,
you just cant install using sysinstall.
The Examples section of the gpart manpage is what i used to configure
the disk for my home server, a zotac ion atom based board  (dont have
any production servers at work using it at the moment.) Then i just
installed using the files on the usb image.

>From what I understand gpart installs the pmbr file as a basic bootstrap
in the protective MBR present in the GPT partition scheme, this is
bootable by a standard bios and is able to understand enough GPT to look
for a freebsd boot partition, load the bootcode in that, which loads the
kernel etc.

So no they arent completely misguided, but its certainly possible to use
a GPT scheme without an EFI BIOS.
What I would like is an efi bootloader for i386 so I can get my
powerbook to run FreeBSD again as it has got an efi bios and bootcamp
wont boot freebsd for me at the moment :(

Vince


Dan Naumov wrote:
> Hey
>
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
>
> Am I misunderstanding something or is the Supermicro support tech misguided?
>
>
> - Sincerely,
> Dan Naumov
> ___
> 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-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: booting off GPT partitions

2010-01-27 Thread Brooks Davis
On Wed, Jan 27, 2010 at 06:45:36PM +0200, Dan Naumov wrote:
> Hey
> 
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
> 
> Am I misunderstanding something or is the Supermicro support tech misguided?

The compatability MBR should be sufficent to let a non-GPT aware BIOS
boot from GPT.  Once you've loaded code from the boot partition, the
BIOS doesn't need to know anything about the partitions.

-- Brooks


pgp8pD1O6RdfM.pgp
Description: PGP signature


Re: booting off GPT partitions

2010-01-27 Thread Andriy Gapon
on 27/01/2010 18:45 Dan Naumov said the following:
> Hey
> 
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
> 
> Am I misunderstanding something or is the Supermicro support tech misguided?

Perhaps both :-)
It depends on what booting capabilities you need from your BIOS.
With FreeBSD we currently typically don't use "pure" GPT and use Protective MBR
and install real boot code into a special boot partition.  Protective MBR looks
like a "normal" MBR to BIOS, and boot code in Protective MBR is smart to find 
the
boot partition and hand off boot process to code in it.
This way you can almost have the best of both worlds, but with some limitations
(like multibooting).  I don't know what other OSes do or expect in this area.

Obligatory wikipedia link:
http://en.wikipedia.org/wiki/GUID_Partition_Table#Legacy_MBR_.28LBA_0.29

-- 
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.0 stable amd64/x86 needs ~9min to bootup

2010-01-27 Thread Aioanei Rares



On Wed, 27 Jan 2010, Zavam, Vinícius wrote:


noon, all you guys.

well, I'm having some issues during the 8.0-stable bootup process.
it takes ~9min to finish the entire boot process to shows me the
"login:" screen.

since my first installation attempt to get freebsd up and running here
with my dv3-2155mx[1] hp pavilion laptop using 8.0-RC1 amd64 iso I
could not boot freebsd up smooth and nicely as it always did for me in
my last laptop (dv6130us)[2], but I could install it without any
problem.
you may check http://www.youtube.com/watch?v=gqtz7E7u4fA to see what
realy happens.

now I'm using a grub 0.97 from my old gentoo linux installation to
bootstrap the freebsd loader.
I tryed debug and verbose options using grub and freebsd loader.conf
but both just result nothing special.

I've been updated and downgraded my laptop bios (by Insyde Software /
HP) but got no good results either. I tryed versions F1.3A, F1.2, F0.7
and the original F0.6 version that came originally from HP.

to try another way to get into 8.0-stable or 9-current I used 7.2,
7.1, 6.4 and 6.2 release x86 and amd64 iso images to install freebsd
and an it's older btx loader but, unfortunately, got the same. it
always "freezes" ~9min.

I can use freebsd after all the bootup process with no problem.
It's a 8.0-stable amd64 now. but I realy wanna know how could I solve
this issue.

read some cases/PRs/issues with other hp laptops but nothing like this
one I have. one of the problems I read was about dv6000 series -
weird, it was my old laptop serie and everything was just fine
installing, booting and running freebsd into.

what you guys think about it? can you give me a hand or a glue to pass
this through?

thanks.

[1] 
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01777298&cc=us&lc=en&dlc=en
[2] 
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00782284&cc=us&lc=en&dlc=en



--
Zavam, Vinícius


I suppose you tried, but I am gonna ask anyway : you did try with ACPI
disabled, right?>___
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.0 stable amd64/x86 needs ~9min to bootup

2010-01-27 Thread Matt Reimer
2010/1/27 Zavam, Vinícius 

> noon, all you guys.
>
> well, I'm having some issues during the 8.0-stable bootup process.
> it takes ~9min to finish the entire boot process to shows me the
> "login:" screen.
>

Are you using zfsloader? A month or so ago the ZFS code was updated to probe
all 128 possible GPT partitions instead of just four, resulting in a
slow-down, but probably not nine minutes' worth.

Matt
___
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: booting off GPT partitions

2010-01-27 Thread Matt Reimer
On Wed, Jan 27, 2010 at 8:45 AM, Dan Naumov  wrote:

> Hey
>
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
>
> Am I misunderstanding something or is the Supermicro support tech
> misguided?
>
>
I'm booting servers with SuperMicro X8STi-F motherboards just fine using
pmbr + GPT + ZFS.

Matt
___
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: immense delayed write to file system (ZFS and UFS2), performance issues

2010-01-27 Thread Tommi Lätti
Seems that the performance is indeed atrocious. I recently (like 2
days ago) had to rescue my zfs pool under opensolaris to spare disks.
The performance under OpenSol was what I was expecting, 70MB/s reading
and writing at the same time.

Now that I'm restoring the stuff back under FreeBSD 8.0-p2 it seems
that first the array reads from the source disk and then stops reading
and decides to empty the buffer to the destination. There's usually a
2 second pause and after that it goes back to reading. There seems to
be something really wrong with this, fbsd zfs implementation seems to
be unable to move data between 2 zfs pools writing and reading
simultaneously...

I think I'll just boot back to opensol and do the transfers there.

-- 
br,
Tommi
___
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: booting off GPT partitions

2010-01-27 Thread John Baldwin
On Wednesday 27 January 2010 11:45:36 am Dan Naumov wrote:
> Hey
> 
> I was under the impression that everyone and their dog is using GPT
> partitioning in FreeBSD these days, including for boot drives and that
> I was just being unlucky with my current NAS motherboard (Intel
> D945GCLF2) having supposedly shaky support for GPT boot. But right now
> I am having an email exchange with Supermicro support (whom I
> contacted since I am pondering their X7SPA-H board for a new system),
> who are telling me that booting off GPT requires UEFI BIOS, which is
> supposedly a very new thing and that for example NONE of their current
> motherboards have support for this.
> 
> Am I misunderstanding something or is the Supermicro support tech misguided?

GPT was defined along with EFI, so many folks assume that you have to use EFI
to boot a GPT-labelled disk.  However, FreeBSD has its own BIOS-based 
bootstrap that can handle GPT-labelled disks.  I doubt the SuperMicro tech is 
familiar with that case.  I thought I heard that some folks had added GPT 
support to grub as well.

-- 
John Baldwin
___
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: su password prompt ti stdout instead of /dev/tty

2010-01-27 Thread Cyrille Lefevre


jhell a écrit :

On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:


Cyrille Lefevre wrote:


su password prompt is displayed to *stdout* instead of */dev/tty*.

# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
21 15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I suppose this is a getpass() problem ?



This is intended operation as su(1) may not always be affiliated with a 
TTY. This leaves it open for a script to chat with much like what samba 
does with its passwd chat mechanism.


just to feed the debate :

aix 5.2 : prompt to tty
hp-ux : prompt to stderr
netbsd : prompt to tty
solaris 9 : prompt to stderr
solaris 10 : prompt to tty
openbsd : prompt to tty
ubuntu : prompt to stderr

freebsd is the only one which prompt to stdout !
IMHO, it should at least prompt to stderr if not tty...
and report errors to stderr as usually.

CC -standard

Regards,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net



___
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 pool upgrade to v14 broke ZFS booting

2010-01-27 Thread Paul Mather
I have a FreeBSD guest running under VirtualBox 3.1.2 on Mac OS X.  It's 
running a recent 8-STABLE and is a ZFS-only install booting via gptzfsboot.  I 
use this VirtualBox guest as a test install.

A day or so ago I noticed "zpool status" report that my pool could be upgraded 
from v13 to v14.  I did this, via "zfs upgrade -a".

Today, when attempting to fire up this FreeBSD guest in VirtualBox I get this 
on the console:

=
ZFS: unsupported ZFS version 14 (should be 13)
No ZFS pools located, can't boot
_
=

and the boot halts at that point.  I don't see the boot menu I normally see 
that lists the opportunity to boot single-user; disable ACPI; and so on.

Has anyone else experienced this?  Is this a mismatch between gptzfsboot and my 
current pool version?  (Gptzfsboot includes the message I'm seeing.)  Am I 
supposed to rebuild and replace gptzfsboot every time the pool version is 
updated?  (There was no advisory in /usr/src/UPDATING concerning this, nor do I 
remember seeing it elsewhere.)

Now I have to figure out how to dig out from this.  Well, I guess that's what 
test installations are for... :-)

Cheers,

Paul.___
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: su password prompt to stdout instead of /dev/tty

2010-01-27 Thread Cyrille Lefevre


sorry, repost to -standards w/ an s !

jhell a écrit :

On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:


Cyrille Lefevre wrote:


su password prompt is displayed to *stdout* instead of */dev/tty*.

# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
21 15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I suppose this is a getpass() problem ?



This is intended operation as su(1) may not always be affiliated with a 
TTY. This leaves it open for a script to chat with much like what samba 
does with its passwd chat mechanism.


just to feed the debate :

aix 5.2 : prompt to tty
hp-ux : prompt to stderr
netbsd : prompt to tty
solaris 9 : prompt to stderr
solaris 10 : prompt to tty
openbsd : prompt to tty
ubuntu : prompt to stderr

freebsd is the only one which prompt to stdout !
IMHO, it should at least prompt to stderr if not tty...
and report errors to stderr as usually.

CC -standards

Regards,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net



___
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-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 pool upgrade to v14 broke ZFS booting

2010-01-27 Thread Matt Reimer
On Wed, Jan 27, 2010 at 11:18 AM, Paul Mather wrote:

> I have a FreeBSD guest running under VirtualBox 3.1.2 on Mac OS X.  It's
> running a recent 8-STABLE and is a ZFS-only install booting via gptzfsboot.
>  I use this VirtualBox guest as a test install.
>
> A day or so ago I noticed "zpool status" report that my pool could be
> upgraded from v13 to v14.  I did this, via "zfs upgrade -a".
>
> Today, when attempting to fire up this FreeBSD guest in VirtualBox I get
> this on the console:
>
> =
> ZFS: unsupported ZFS version 14 (should be 13)
> No ZFS pools located, can't boot
> _
> =
>
> and the boot halts at that point.  I don't see the boot menu I normally see
> that lists the opportunity to boot single-user; disable ACPI; and so on.
>
> Has anyone else experienced this?  Is this a mismatch between gptzfsboot
> and my current pool version?  (Gptzfsboot includes the message I'm seeing.)
>  Am I supposed to rebuild and replace gptzfsboot every time the pool version
> is updated?  (There was no advisory in /usr/src/UPDATING concerning this,
> nor do I remember seeing it elsewhere.)
>
>
Yes, you're running a version of gptzfsboot that only knows how to run
version 13 and below. The commit that brought in version 14 support also
bumped the version number for gptzfsboot though it doesn't look like any of
the code changed; perhaps version 14 doesn't change anything that gptzfsboot
cares about. Try rebuilding and reinstalling gptzfsboot and zfsloader to see
if that helps:

cd /sys/boot
make cleandir
make cleandir
make obj
make depend
make all
make install
gpart bootcode -p /boot/gptzfsboot -i 1 /dev/somedisk

Of course adjust the gpart command for your setup.

Matt
___
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 pool upgrade to v14 broke ZFS booting

2010-01-27 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On 2010/01/27 11:18, Paul Mather wrote:
> I have a FreeBSD guest running under VirtualBox 3.1.2 on Mac OS X.  It's 
> running a recent 8-STABLE and is a ZFS-only install booting via gptzfsboot.  
> I use this VirtualBox guest as a test install.
> 
> A day or so ago I noticed "zpool status" report that my pool could be 
> upgraded from v13 to v14.  I did this, via "zfs upgrade -a".
> 
> Today, when attempting to fire up this FreeBSD guest in VirtualBox I get this 
> on the console:
> 
> =
> ZFS: unsupported ZFS version 14 (should be 13)
> No ZFS pools located, can't boot
> _
> =
> 
> and the boot halts at that point.  I don't see the boot menu I normally see 
> that lists the opportunity to boot single-user; disable ACPI; and so on.
> 
> Has anyone else experienced this?  Is this a mismatch between gptzfsboot and 
> my current pool version?  (Gptzfsboot includes the message I'm seeing.)  Am I 
> supposed to rebuild and replace gptzfsboot every time the pool version is 
> updated?  (There was no advisory in /usr/src/UPDATING concerning this, nor do 
> I remember seeing it elsewhere.)
> 
> Now I have to figure out how to dig out from this.  Well, I guess that's what 
> test installations are for... :-)

There is no on-disk format change that affects ZFS boot itself, but you
will need to install new gptzfsboot.  If you have another system and
have the file, you can do it by booting from the LiveFS Disc, fetch it
from network, and use gpart to install it.

Cheers,
- -- 
Xin LI http://www.delphij.net/
FreeBSD - The Power to Serve!  Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJLYMZSAAoJEATO+BI/yjfBgNcH/jwK8bZTlX6Dr0wKYRRaaa72
wuTswokvVLCr6xZJbo18/je8F68tXkYqBdPSVm2pZsZs4kBPw8gHzQWNdQcIudVN
m4qhE8QlAZVd8DIXk6hJM+7A/k6k9vo6AtHYY/nvNsKrk9Xxo1rDI5cVo9WMJeB2
6ONbPAG6aDOGEFyICRo4NoB6Qbh/Ylzx4wiLkENrI2SdDDlZQ1YmaXl8RFtCAMoK
LjnNt+G/cAIm/MvYzFbEDa1Ok5YD/Osc74P+fPJvJSYNd/QmJ4PU+Lb4MPsrKBU0
FtAHl5o3f7xz1YTwmybY+9Sw67izDIDc8lalNiguTj77Uj8zLiete91t/c7BmIE=
=6CG3
-END PGP SIGNATURE-
___
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: booting off GPT partitions

2010-01-27 Thread Dimitry Andric

On 2010-01-27 22:27, John Baldwin wrote:

GPT was defined along with EFI, so many folks assume that you have to use EFI
to boot a GPT-labelled disk.  However, FreeBSD has its own BIOS-based
bootstrap that can handle GPT-labelled disks.  I doubt the SuperMicro tech is
familiar with that case.  I thought I heard that some folks had added GPT
support to grub as well.


However, this won't boot disks larger than 2TiB, right?  At least not
without BIOS support...
___
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: immense delayed write to file system (ZFS and UFS2), performance issues

2010-01-27 Thread Adrian Wontroba
On Wed, Jan 27, 2010 at 12:25:58PM +0100, Dimitry Andric wrote:
> On 2010-01-27 00:15, Dan Naumov wrote:
> Sorry to bump into this thread so late, but for some of my servers I
> have been using a patch for atacontrol, to turn the APM features of the
> disk(s) off, for a long time.  This is mostly noticable with 2.5"
> notebook disks, which "click" like crazy all the time. :)

Turning off APM seems to be the LINUX world's solution to this and other
similar problems. I got the impression that Windows also does this.

-- 
Adrian Wontroba
Save energy: be apathetic.
___
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.0 stable amd64/x86 needs ~9min to bootup

2010-01-27 Thread Zavam , Vinícius
2010/1/27 Aioanei Rares :
>
>
> On Wed, 27 Jan 2010, Zavam, Vinícius wrote:
>
>> noon, all you guys.
>>
>> well, I'm having some issues during the 8.0-stable bootup process.
>> it takes ~9min to finish the entire boot process to shows me the
>> "login:" screen.
>>
>> since my first installation attempt to get freebsd up and running here
>> with my dv3-2155mx[1] hp pavilion laptop using 8.0-RC1 amd64 iso I
>> could not boot freebsd up smooth and nicely as it always did for me in
>> my last laptop (dv6130us)[2], but I could install it without any
>> problem.
>> you may check http://www.youtube.com/watch?v=gqtz7E7u4fA to see what
>> realy happens.
>>
>> now I'm using a grub 0.97 from my old gentoo linux installation to
>> bootstrap the freebsd loader.
>> I tryed debug and verbose options using grub and freebsd loader.conf
>> but both just result nothing special.
>>
>> I've been updated and downgraded my laptop bios (by Insyde Software /
>> HP) but got no good results either. I tryed versions F1.3A, F1.2, F0.7
>> and the original F0.6 version that came originally from HP.
>>
>> to try another way to get into 8.0-stable or 9-current I used 7.2,
>> 7.1, 6.4 and 6.2 release x86 and amd64 iso images to install freebsd
>> and an it's older btx loader but, unfortunately, got the same. it
>> always "freezes" ~9min.
>>
>> I can use freebsd after all the bootup process with no problem.
>> It's a 8.0-stable amd64 now. but I realy wanna know how could I solve
>> this issue.
>>
>> read some cases/PRs/issues with other hp laptops but nothing like this
>> one I have. one of the problems I read was about dv6000 series -
>> weird, it was my old laptop serie and everything was just fine
>> installing, booting and running freebsd into.
>>
>> what you guys think about it? can you give me a hand or a glue to pass
>> this through?
>>
>> thanks.
>>
>> [1]
>> http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01777298&cc=us&lc=en&dlc=en
>> [2]
>> http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00782284&cc=us&lc=en&dlc=en
>>
>>
>>
>> --
>> Zavam, Vinícius
>
> I suppose you tried, but I am gonna ask anyway : you did try with ACPI
> disabled, right?

rares,
the issue happens before the beastie menu shows up.


-- 
Zavam, Vinícius
___
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.0 stable amd64/x86 needs ~9min to bootup

2010-01-27 Thread Zavam , Vinícius
2010/1/27 Matt Reimer :
> 2010/1/27 Zavam, Vinícius 
>>
>> noon, all you guys.
>>
>> well, I'm having some issues during the 8.0-stable bootup process.
>> it takes ~9min to finish the entire boot process to shows me the
>> "login:" screen.
>
> Are you using zfsloader? A month or so ago the ZFS code was updated to probe
> all 128 possible GPT partitions instead of just four, resulting in a
> slow-down, but probably not nine minutes' worth.
> Matt

no. I'm not using zfsloader or/and ZFS.


-- 
Zavam, Vinícius
___
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: booting off GPT partitions

2010-01-27 Thread Brooks Davis
On Thu, Jan 28, 2010 at 12:27:54AM +0100, Dimitry Andric wrote:
> On 2010-01-27 22:27, John Baldwin wrote:
>> GPT was defined along with EFI, so many folks assume that you have to use EFI
>> to boot a GPT-labelled disk.  However, FreeBSD has its own BIOS-based
>> bootstrap that can handle GPT-labelled disks.  I doubt the SuperMicro tech is
>> familiar with that case.  I thought I heard that some folks had added GPT
>> support to grub as well.
> 
> However, this won't boot disks larger than 2TiB, right?  At least not
> without BIOS support...

You won't be able to boot from a partition more than 2TiB in, but you
should still be able to boot as long as you boot from the front part of
the disk.

-- Brook


pgpj5hBEqRLpB.pgp
Description: PGP signature


Re: ZFS pool upgrade to v14 broke ZFS booting

2010-01-27 Thread Zaphod Beeblebrox
On Wed, Jan 27, 2010 at 6:03 PM, Xin LI  wrote:
> On 2010/01/27 11:18, Paul Mather wrote:

>> I have a FreeBSD guest running under VirtualBox 3.1.2 on Mac OS X.  It's 
>> running a recent 8-STABLE and is a ZFS-only install booting via gptzfsboot.  
>> I use this VirtualBox guest as a test install.

>> A day or so ago I noticed "zpool status" report that my pool could be 
>> upgraded from v13 to v14.  I did this, via "zfs upgrade -a".

>> Today, when attempting to fire up this FreeBSD guest in VirtualBox I get 
>> this on the console:

>> ZFS: unsupported ZFS version 14 (should be 13)
>> No ZFS pools located, can't boot

> There is no on-disk format change that affects ZFS boot itself, but you
> will need to install new gptzfsboot.  If you have another system and
> have the file, you can do it by booting from the LiveFS Disc, fetch it
> from network, and use gpart to install it.

Since this is so fatal, you might want to give them the option to
continue here.  I suspect that zpool format changes that truly break
the boot loader (which is read-only at any rate) are uncommon where
the chances of ending up in this situation (with an unbootable
machine) are much more common.
___
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 pool upgrade to v14 broke ZFS booting

2010-01-27 Thread Andrey V. Elsukov

On 28.01.2010 2:03, Xin LI wrote:

There is no on-disk format change that affects ZFS boot itself, but you
will need to install new gptzfsboot.  If you have another system and
have the file, you can do it by booting from the LiveFS Disc, fetch it
from network, and use gpart to install it.


Some time ago i had the same problem. I think it is good idea to add a note 
about
updating gptzfsboot in src/UPDATING.

--
WBR, Andrey V. Elsukov
___
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.0 stable amd64/x86 needs ~9min to bootup

2010-01-27 Thread Bruce Simpson
Try GRUB4DOS. I use this so on boxes where I have Windows installed, I 
can keep GRUB in the NTFS partition.


I haven't seen this issue and am tracking -STABLE on an ASUS V-series 
machine.

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