Re: geforce 310m CUDA problem

2012-10-08 Thread Shane Ambler

On 08/10/2012 16:24, Ashkan Rahmani wrote:

Unfortunately (for me of course) it has  geforce 310m cuda 1gb VGA,
and it seems this VGA is not supported by FreeBSD.

After installing FreeBSD/PC-BSD resolution is about 800x600 and I
can not change it. Color depth is also terrible. Configuring
xorg.conf automatically or manually can not fix my problem.
installing nvidia driver from ports also can not fix my problem.


some ideas --

The release notes for nvidia-driver 304.51 lists the 310M as supported.
Check that you have the latest version
Maybe try with driver nv instead of nvidia to see if the issue is the
driver.

kldstat | grep nvidia
to check that the nvidia kernel module has loaded.

Is there any helpful info in Xorg.0.log
Lines starting with (EE) are errors.
(WW) warning lines may also be helpful.

dmesg will show the startup log and may highlight any hardware
detection problems.

Have you installed x11/nvidia-settings? It is a gui app that should
show you all available resolutions.

The Xorg.conf from your archlinux install should produce the same
results on FreeBSD. Or at least give hints to what is configured wrong.

There is a chance that your linux install used a newer version of xorg
- 1.7 is default in ports but you can set WITH_NEW_XORG to build 1.10

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


How are things?

2012-10-08 Thread juryviolin
Hi


Hey. How are things? We may be getting down there to your neck of the woods 
soon so maybe we can all go grab a bite to eat or something. I’ll keep you 
posted. Talk to you soon. 

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


Re: [zfs-discuss] How many disk in one pool

2012-10-08 Thread Brad Stone
Here's an example of a ZFS-based product you can buy with a large
number of disks in the volume:

http://www.aberdeeninc.com/abcatg/petarack.htm
360 3T drives
A full petabyte of storage (1080TB) in a single rack, under a single
namespace or volume


On Sat, Oct 6, 2012 at 11:48 AM, Richard Elling
richard.ell...@gmail.com wrote:
 On Oct 5, 2012, at 1:57 PM, Albert Shih albert.s...@obspm.fr wrote:

 Hi all,

 I'm actually running ZFS under FreeBSD. I've a question about how many
 disks I «can» have in one pool.

 At this moment I'm running with one server (FreeBSD 9.0) with 4 MD1200
 (Dell) meaning 48 disks. I've configure with 4 raidz2 in the pool (one on
 each MD1200)

 On what I understand I can add more more MD1200. But if I loose one MD1200
 for any reason I lost the entire pool.

 In your experience what's the «limit» ? 100 disk ?

 I can't speak for current FreeBSD, but I've seen more than 400
 disks (HDDs) in a single pool.

  -- richard

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


Re: Building Ports: Is there a make equivalent for --batch ?

2012-10-08 Thread Jamie Paul Griffin
[ John Levine wrote on Mon  8.Oct'12 at  2:42:33 - ]

 ... Note that setting the BATCH environment variable to yes will answer
 yes to any prompts during this process, removing the need for manual
 intervention during the build process.
 
 (This was said with respect to upgrading ports via portupgrade.)
 
 Or you can use portmaster, which runs through all the ports first and
 does the config dialogs before starting the rebuild.  There are stil
 a few places it can get stuck, but many fewer than portupgrade.
 
 Portmaster is worth a look just out of amazement. It is a 4,000 line
 shell script.

Yes, I use this myself and it is very good. I used to use portupgrade but 
changed when I started using 9.x, i'm not sure why. 
But to learn it's 4000 line shell is quite amazing. Its author must have some 
excellent shell wizardry skills! :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Chesar

2012-10-08 Thread Andrea Venturoli

On 09/22/12 17:43, Andrea Venturoli wrote:


I'm using tomcat-6.0.35 and openjdk6-b24_4, if that helps.


I'll try openjdk either with tomcat6 or 7.


Hi Michale.
I finally got around trying openjdk, but that didn't work either.

I also tried within a jail (which I created from scratch), just to be 
sure there was no conflict, but nothing changes.


 bye  Thanks
av.

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


Re: DVD OPC errors with growisofs

2012-10-08 Thread Fabian Keil
Warren Block wbl...@wonkity.com wrote:

 I'm using growisofs to write DVDs of backup files.  Some combinations of 
 older drives and newer media give :-( unable to PERFORM OPC: 
 Input/output error.

If you are concerned about this, you could try cdrecord
to see if it makes a difference.
 
 Can limiting write speed avoid these errors?

That depends on both the drive and the media.
It's also possible that it makes matters worse, though.

It's a myth that reducing speed guarantees better results.

   And what ways are there to 
 detect the fastest speed supported by both drive and media?

The drive is supposed to figure it out on its own.

If your drive supports it, you can use readcd to measure how
well burned media can be read and do a couple of experiments
with various burn speeds to see if it affects the results for
your drives and the media you care about.

Fabian


signature.asc
Description: PGP signature


Do I need to use sysutils/ataidle to avoid high LCC for my hard drive?

2012-10-08 Thread Denise H. G.
Hi list.

I am currently running FreeBSD 9.1-PRERELEASE on my laptop. And I am
wondering if I still need to use sysutiles/ataidle to avoid high Load
Cyle Count for my hard drive. Is there still a need to run this utility
to avoid LCC under FreeBSD 9.1-PRERELEASE?

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


Re: dd zero on the wrong disk. ZFS over GELI on that disk, recover possible?

2012-10-08 Thread Fabian Keil
Stefano Rossi stefa.ross...@gmail.com wrote:

 I made a tremendous mistake with a dd of=/dev/zero of=/dev/ada1 command. 
 ada1 was the wrong disk.

Ooops ...

 The command was interrupted after a few seconds (I only wanted to erase the 
 partition table), and a gpart create -s gpt ada1 was given before I 
 realized my mistake.
 On ada1 there was a single partition, type freebsd, which was labelled HD4. 
 /dev/label/HD4 was geli encrypted with a keyfile (I still have the keyfile), 
 and /dev/label/HD4.eli was a zpool (named HD4 too).
 
 Is there any way I could save at least some of the data on that zpool? I know 
 geli makes backup of the metadata, I must have them somewhere on my root 
 partition.
 
 Is there any way to recover the few lost megabytes at the start of the disk?
 Or, would it be possible to recreate the same partition table with the single 
 partition, relabel it and restore the geli backup to the labelled partition? 
 Would then zfs recognize it?

The geli and glabel meta data is located at the end of the partition
so it shouldn't be affected by the dd if you only deleted a couple of
MBs at the beginning of the disk.

If you previously weren't using a gpt layout on ada1, however,
the gpart call might have corrupted the meta data for both in
which case you'll have to recreate it.

If the glabel meta data wasn't corrupted, the label should show up
again once you recreated the partition at the previous position.

If the label shows up, it's likely that the geli meta data isn't
affected either and you can try to geli attach the provider and
import the zpool. After a zpool scrub you'll know which files were
damaged.

If the label doesn't show up after the partition table has been
corrected, you'll first have to recreate a label and geli restore
the meta data as documented in geli(8).

I'd recommend that you backup the whole disk and work on the backup
until you know that the recovery process works. This would allow you
to use zfs snapshots to be able to quickly rollback the backup if you
need several attempts to get the partition layout right and decreases
the chances that the damage gets worse.

Out of curiosity I just experimented with a 1 GB disk where the label
was on md0s1 which was created with gpart add using the whole disk
and could thus easily be recreated:

fk@r500 ~ $ls /dev/label/recovery-test 
/dev/label/recovery-test
fk@r500 ~ $zogftw cmd zogftw_clear_device /dev/md0
2012-10-08 13:48:51 zogftw: Clearing /dev/md0. Feel free to abort this with 
ctrl-C
^C28+0 records in
27+0 records out
28311552 bytes transferred in 3.715472 secs (7619907 bytes/sec)
fk@r500 ~ $ls /dev/label/recovery-test 
ls: /dev/label/recovery-test: No such file or directory
fk@r500 ~ $sudo gpart create -s GPT /dev/md0
md0 created
fk@r500 ~ $sudo gpart add -t freebsd /dev/md0
md0s1 added
fk@r500 ~ $ls /dev/label/recovery-test 
/dev/label/recovery-test
fk@r500 ~ $zogftw import
2012-10-08 13:49:57 zogftw: recovery-test's location isn't registered yet!
2012-10-08 13:49:57 zogftw: No pool name specified. Trying all unattached 
labels: recovery-test 
2012-10-08 13:49:57 zogftw: No geli keyfile found at 
/home/fk/.config/zogftw/geli/keyfiles/recovery-test.key. Not using any.

You need a passphrase to unlock the secret key for
user: Fabian Keil f...@fabiankeil.de
4096-bit ELG-E key, ID 351A59E5, created 2006-08-19 (main key ID BF2EA563)

2012-10-08 13:50:04 zogftw: recovery-test attached
2012-10-08 13:50:09 zogftw: recovery-test imported
fk@r500 ~ $sudo zpool status recovery-test
  pool: recovery-test
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: none requested
config:

NAME   STATE READ WRITE CKSUM
recovery-test  ONLINE   0 0 0
  label/recovery-test.eli  ONLINE   0 0   116

errors: No known data errors
# Apparently a bunch of ZFS meta data was corrupted but could be
# corrected, scrub the whole pool to see what else got damaged.
fk@r500 ~ $sudo zpool scrub recovery-test
fk@r500 ~ $sudo zpool status recovery-test
  pool: recovery-test
 state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
entire pool from backup.
   see: http://illumos.org/msg/ZFS-8000-8A
  scan: scrub repaired 1.52M in 0h0m with 3601 errors on Mon Oct  8 13:51:23 
2012
config:

NAME   STATE READ WRITE CKSUM
recovery-test  ONLINE   0 0 3.52K
  label/recovery-test.eli  ONLINE   0 0 7.78K

errors: 3601 data errors, use '-v' for a list

Building a release with custom packages

2012-10-08 Thread Rick Miller
Hi All,

If anyone has interest, I have a new blog post on building a FreeBSD
release with custom packages at
http://blog.hostileadmin.com/2012/10/08/building-freebsd-media-with-custom-packages/

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


Re: compile/install Libreoffice Writer only

2012-10-08 Thread jb
jb jb.1234abcd at gmail.com writes:

 ...

A follow up.
I e-mailed FB office boyz and received a response, which is safe to share
with the list:

 
Baptiste Daroussin b...@freebsd.org

This is almost not doable for many reason:

1/ the ports itself will be over complicated to only allow compiler some part of
libreoffice imho (that is the main reason I didn't make it at first

2/ splitting the build won't give you much

3/ what linux distributions do it splitting the result of the build, not the
build itself, and the ports tree does not allow this for the moment.

regards,
Bapt


Well, if you have an opinion make it count now when this stuff is discussed.
jb


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


Serial console getty broken after upgrading to 9.1-RC2

2012-10-08 Thread Ziyan Maraikar
Hello all, 

I had a working serial console setup on Freebsd 9.0 for remote access via my HP 
server's BMC serial console. I recently built and installed 9.1-RC2 on a 
separate dataset on this machine's ZFS pool and merged in my existing 
configuration from 9.0. 

On 9.1-RC2 I no longer get a login prompt. However, I still do have access to 
the loader prompt and can see the kernel boot messages on the serial console. I 
built my GENERIC kernel and world using clang with default flags. I see that 
the kernel identifies the serial port getty has spawned on the port.

# dmesg |grep uart 
uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 
uart0: console (115200,n,8,1) 

# ps axl|grep ttyu0 
 0 54051   0  20  0  11996  1416 ttyinIs+  u00:00.00 
/usr/libexec/getty std.115200 ttyu0 

Here are the relevant configuration bits I copied over from 9.0 setup that 
works: 

/etc/ttys: 
ttyu0   /usr/libexec/getty std.115200 screen-256color on secure 

/boot/loader.conf: 
boot_multicons=YES 
boot_serial=YES 
comconsole_speed=115200 
console=comconsole,vidconsole 

# kenv |grep uart.0 
hint.uart.0.at=isa 
hint.uart.0.flags=0x10 
hint.uart.0.irq=4 
hint.uart.0.port=0x3F8 

Have there been any changes to the serial console setup in 9.1 or has anybody 
else experienced similar problems? 
__ 
Thanks, 
Ziyan. ___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


4k alignment for attaching new disk to zfs mirror

2012-10-08 Thread Karolis Eigelis
Hi,

Before creating a pool i setup two disks mirror with gnop trick to have
ashift=12 - 4k pool alignment. I also did that for the disk partitions (gpt
-a 4k option) to have partitions 4k alignment (diskinfo -v disk shows
stripesize=4096 for both disks).

Now i replaced one disk with a new one, but cant get the diskinfo or gpart
list to display stripesize=4096 - did everything as usual (gpt -a 4k for
partitions). Or do i have to re-create my pool with gnop trick again ?

Do you have an idea if that at all is needed ? Some other information i
found says that as long as pool is 4k alignment is done (ashif=12) you do
not need to do 4k alignment for new disk for partitions with gpart -a 4k
option. Could someone please comment on that ?

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


FreeBSD update

2012-10-08 Thread Istvan Gabor
Hello:

I updated FreeBSD 9.0 RELEASE
(FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386)
using freebsd-update fetch and freebsd-update install commands.
As I remember correctly during the fetch I saw a message that the current patch 
level is p4.
After rebooting the computer uname gives p3 on the updated system:

# uname -r
9.0-RELEASE-p3

If I run freebsd-update fetch on the updated system I get:

# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 9.0-RELEASE-p4.

The file /usr/src/sys/conf/newvers.sh on the updated system also indicates p4 
state.
TYPE=FreeBSD
REVISION=9.0
BRANCH=RELEASE-p4

Why does uname reports p3 while freebsd-update indicates p4 state?

Regards,

Istvan

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


what is an in-core disklabel ?

2012-10-08 Thread Lucas B. Cohen
Hi,

I've seen the term in-core a couple times while reading up about BSD
disk labels. Does it refer to data that is cached in kernel memory ?

Context examples :

- fdisk(8) outputs parameters extracted from in-core disklabel

- bsdlabel(8)'s manual explains that the -n (dry run) parameter does
not install the new label either in-core or on-disk.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


proxy setup

2012-10-08 Thread Istvan Gabor
Hello:

My FreeBSD 9.0-RELEASE system is behind a institutional firewall.
Obviously I can not change any settings of this firewall.
After installing FreeBSD and not setting any proxy servers I could install
packages using pkg_add -r command.
But when I tried to update the system freebsd-update fetch stopped.
I traced that it stopped because getting the file through ftp failed:
(with failed: Connection refused: messages).
Therefore I have set http_proxy and ftp_proxy variables in my .profile file.
After this the update ran without any problem.
But now pkg_add -r refuses to fetch files with message:
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD: Forbidden
wget with --no-proxy option can fetch the file, that is the problem 
for pkg_add is probably the configured http or ftp proxy.
How can fix this so that I should not every time set/unset proxy when
I want to update the system or install a package?

Thanks,

Istvan

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


ZFS and zpool mistake

2012-10-08 Thread Matthias Fechner
Dear list,

I installed a freebsd with freebsd on a zfs root and only one disk:
  pool: zroot
 state: ONLINE
  scan: none requested
config:

NAME STATE READ WRITE CKSUM
zrootONLINE   0 0 0
  ada0p3 ONLINE   0 0 0

This disk was now insterted into the computer and boots fine.
The next step I wanted was to setup a mirror with a second disk.

So I inserted a second disk, configured everything with gpart and added
the disk to the zroot with:
zpool add zroot gpt/disk1
(I think I had to execute zpool add zroot mirror gpt/disk1, this is not
clear from the man page)

And now I have a problem, it seems not to be a mirror but a stripe:
NAME STATE READ WRITE CKSUM
zrootONLINE   0 0 0
  ada0p3 ONLINE   0 0 0
  gpt/disk1  ONLINE   0 0 0

Is there any chance to get it into a mirror?

I don't think there was anything written to the second disk but I cannot
remove it anymore.

Has anyone a tip for me, howto convert the stripe to a mirror?

Thanks,
Matthias

-- 
Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning. --
Rich Cook
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS and zpool mistake

2012-10-08 Thread Karolis Eigelis
if you want a mirror you need to do attach a new disk :)

On Mon, Oct 8, 2012 at 5:29 PM, Matthias Fechner ide...@fechner.net wrote:

 Dear list,

 I installed a freebsd with freebsd on a zfs root and only one disk:
   pool: zroot
  state: ONLINE
   scan: none requested
 config:

 NAME STATE READ WRITE CKSUM
 zrootONLINE   0 0 0
   ada0p3 ONLINE   0 0 0

 This disk was now insterted into the computer and boots fine.
 The next step I wanted was to setup a mirror with a second disk.

 So I inserted a second disk, configured everything with gpart and added
 the disk to the zroot with:
 zpool add zroot gpt/disk1
 (I think I had to execute zpool add zroot mirror gpt/disk1, this is not
 clear from the man page)

 And now I have a problem, it seems not to be a mirror but a stripe:
 NAME STATE READ WRITE CKSUM
 zrootONLINE   0 0 0
   ada0p3 ONLINE   0 0 0
   gpt/disk1  ONLINE   0 0 0

 Is there any chance to get it into a mirror?

 I don't think there was anything written to the second disk but I cannot
 remove it anymore.

 Has anyone a tip for me, howto convert the stripe to a mirror?

 Thanks,
 Matthias

 --
 Programming today is a race between software engineers striving to
 build bigger and better idiot-proof programs, and the universe trying to
 produce bigger and better idiots. So far, the universe is winning. --
 Rich Cook
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

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


Re: FreeBSD update

2012-10-08 Thread Andreas Rudisch
On Mon, 08 Oct 2012 16:52:24 +0200
Istvan Gabor suseuse...@lajt.hu wrote:

 As I remember correctly during the fetch I saw a message that the current 
 patch level is p4.
 After rebooting the computer uname gives p3 on the updated system:

 Why does uname reports p3 while freebsd-update indicates p4 state?

Hi,

if freebsd-update does not update the kernel uname will not show the
'correct' patch level.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


portmaster backup package

2012-10-08 Thread jb
Hi,
what to do with that backup package (-b option) after installation of new port
failed ?
jb


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


Re: what is an in-core disklabel ?

2012-10-08 Thread Robert Bonomi

 Date: Mon, 08 Oct 2012 17:14:20 +0200
 From: Lucas B. Cohen l...@bnrlabs.com
 Subject: what is an in-core disklabel ?

 Hi,

 I've seen the term in-core a couple times while reading up about BSD
 disk labels. Does it refer to data that is cached in kernel memory ?

 Context examples :

 - fdisk(8) outputs parameters extracted from in-core disklabel

 - bsdlabel(8)'s manual explains that the -n (dry run) parameter does
   not install the new label either in-core or on-disk.

'cached' is not _technically_ exactly accurate, but you have the concept
basically correct.

The O/S reads the label information and stores it in an internal data
structure, Then, when it needs to use that data (frequently!:) it uses
the values in that internal structure, rather than attempting to re-read
from the disk, itself.  

Technically, it's _not_ cached -- cached data is used to short-circuit
a 'read' attempt, using an in-memory block of byte instead of an actual
disk transfer.  

The -effect- is similar, but there are *important* differences.  'Cache'
data is integrated with I/O operations, and a _write_ to the place where
the data was read from -invalidates- the cached data, whereupon, the next
read attempt will *not* be short-circuited, and the actual on-disk data
will be returned.

In the case of the disk label, it is read (once) into the internal data
structure, and only the internal data is used after that.  A userland
app can change the 'on disk' data -- or trash it completely -- and what
the O/S thinks the label info is will NOT be affected by that change
to the 'on disk' data.

The warnings you see in the documentation, are reminders that the 
O/S's 'internal' data and the 'on disk' data are *NOT* necessarily
the same.  That looking at _one_ source of that data does *not* guarantee
that what you see =there= is the same as what is in the other place.



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


Re: ZFS and zpool mistake

2012-10-08 Thread Steve O'Hara-Smith
On Mon, 08 Oct 2012 17:29:46 +0200
Matthias Fechner ide...@fechner.net wrote:

 Dear list,
 
 I installed a freebsd with freebsd on a zfs root and only one disk:
   pool: zroot
  state: ONLINE
   scan: none requested
 config:
 
   NAME STATE READ WRITE CKSUM
   zrootONLINE   0 0 0
 ada0p3 ONLINE   0 0 0
 
 This disk was now insterted into the computer and boots fine.
 The next step I wanted was to setup a mirror with a second disk.
 
 So I inserted a second disk, configured everything with gpart and added
 the disk to the zroot with:
 zpool add zroot gpt/disk1
 (I think I had to execute zpool add zroot mirror gpt/disk1, this is not
 clear from the man page)

You need add for a stripe and attach for a mirror.

 And now I have a problem, it seems not to be a mirror but a stripe:
   NAME STATE READ WRITE CKSUM
   zrootONLINE   0 0 0
 ada0p3 ONLINE   0 0 0
 gpt/disk1  ONLINE   0 0 0
 
 Is there any chance to get it into a mirror?
 
 I don't think there was anything written to the second disk but I cannot
 remove it anymore.

Yep once you've added a stripe there's no way to remove it. You'll
have to copy the data off somewhere and then rebuild the pool.

-- 
Steve O'Hara-Smith at...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portmaster backup package

2012-10-08 Thread Polytropon
On Mon, 8 Oct 2012 16:18:20 + (UTC), jb wrote:
 Hi,
 what to do with that backup package (-b option) after installation of new port
 failed ?

Install it with pkg_add? :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


A strange regression in curl

2012-10-08 Thread Toomas Aas

Hello!

We have a web application running on FreeBSD 7.4 (amd64) which uses  
libcurl to send data to another system via HTTPS POST request. After I  
upgraded curl from 7.19.6 to 7.24, a mysterious problem appeared. When  
the length of the POSTed form exceeds 16121 bytes, sending the POST  
request to another system fails (receiving system responds with Error  
500 and writes in its log 'Invalid POST Request received'). Admin of  
the receiving system says that his system never sees more than 16121  
bytes of the incoming POST request.


The problem does not appear when sending requests over HTTP instead of  
HTTPS, but this is no solution due to security requirements. Also I'm  
told that the problem does not appear when sending requests with curl  
7.24 on Linux (don't know which distro).


I downgraded curl back to 7.21.3, and the problem seems to have  
disappeared. I have output of curl --trace from versions 7.24 and  
7.21.3, but looking at these two outputs they seem rather similar to me.


Interesting thing is that both versions do seem to send the data in  
two batches, as seen in the output of --trace. In my test case,  
after successful SSL negotioation, I see the following actions:


Send header, 263 bytes
Send data, 16121 bytes
Send data, 890 bytes

Note how the first Send data is 16121 bytes, which is also the size  
limit where requests start to fail with curl 7.24. It seems that in  
case of curl 7.24 the receiving server does not receive the second  
part of Send data and thus sees the request as broken. But what is  
actually the problem? I don't think I can remain with curl 7.21.3  
indefinitely...


--
Toomas Aas

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