Re: what kind of freeBSD to download for my pc?

2013-10-12 Thread cikitaluzza
can i run exe files on freeBSD?it spoils fast or not?this question comes from 
fastest ever spoil OS windows which always spoil in a week seven times i think 
with things like errors or dll and many things from blue screen.do you have any 
problems within freeBSD or no problems?i dont like blue screen error or driver 
things and no matter what .how much total ram and bit is my pc of amd 
athlon(tm) 64 x2 dual core processor 4000+ 2.11 GHz 960 MB RAM?im always in 
internet watching live camers,what do you suggest me to use os type?i like to 
save pictures and videos and never lost them,if you think your os is gonna 
spoil and lost my all files then i dont need it.i want stable os and never to 
reinstall or update



On Sunday, October 13, 2013 2:44 AM, cikitaluzza cikita100...@yahoo.com wrote:
 
what kind of freeBSD to download for my pc?amd athlon(tm) 64 x2 dual core 
processor 4000+ 2.11 GHz 960 MB RAM
___
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 kind of freeBSD to download for my pc?

2013-10-12 Thread cikitaluzza
what kind of freeBSD to download for my pc?amd athlon(tm) 64 x2 dual core 
processor 4000+ 2.11 GHz 960 MB RAM
___
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 kind of freeBSD to download for my pc?

2013-10-12 Thread Polytropon
On Sat, 12 Oct 2013 16:44:09 -0700 (PDT), cikitaluzza wrote:
 what kind of freeBSD to download for my pc?amd athlon(tm) 64 x2
 dual core processor 4000+ 2.11 GHz 960 MB RAM

Try 9.2 for AMD64. The i386 version should also work (as
you are low on RAM if that might matter, depending on
what non-OS software you're going to run on that machine).



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


Re: what kind of freeBSD to download for my pc?

2013-10-12 Thread Polytropon
On Sat, 12 Oct 2013 16:50:32 -0700 (PDT), cikitaluzza wrote:
 can i run exe files on freeBSD?

Depends. VMX EXE files may work via the SimH emulator. For
DOS EXE and Windows EXE files, there are dosbox and wine.
Those compatibility packs can be easily installed. They
are not part of the OS.



 it spoils fast or not?this question comes from fastest ever
 spoil OS windows which always spoil in a week seven times i
 think with things like errors or dll and many things from
 blue screen.do you have any problems within freeBSD or no
 problems?i dont like blue screen error or driver things and
 no matter what .

Definitely no bluescreens in FreeBSD. The system will behave
exactly as intended and won't change its mind a few days
after installation. :-)


 how much total ram and bit is my pc of amd athlon(tm) 64 x2
 dual core processor 4000+ 2.11 GHz 960 MB RAM?

That's a 64 bit CPU, if I remember correctly. The AMD64 version
should run fine. But as you are a little bit low on RAM, you
might consider using the i386 version (32 bit version) if you
don't _need_ to run any 64 bit application. Especially as you've
mentioned to run EXE files, this might be the better solution.
From what I've heared, wine (the Windows compatibility pack)
runs better on i386 than on amd64. (I'm running it myself on
the i386 OS on a 64 bit system without any problems.)



 im always in internet watching live camers,what do you suggest
 me to use os type?

Is this via web? In this case, only the web browser matters.
The typical candidates Firefox and Chrome should be fine.
The OS does not matter here.

If you need a proprietary program to watch the live cameras,
often available only for an outdated Windows version, running
it with (the mentioned) wine should work. (I've successfully
tried something like that with a program to watch CCTV cameras
via Internet.)



 i like to save pictures and videos and never lost them,if you
 think your os is gonna spoil and lost my all files then i dont
 need it.

Definitely no problem. But keep in mind: _You_ are responsible
for creating backups! FreeBSD offers excellent tools to do so,
no matter if you want to backup to disks, DVDs, the Cloud, or
even to old-fashioned tape.

Saving pictures from videos is no problem. There is mplayer and
mencoder. It plays, records and converts _everything_.



 i want stable os and never to reinstall or update

That approach is unreasonable, I think. You _should_ update when
security updates become available. It's in _your_ interest to do
so, because effciency, security and usability improves from version
to version. Luckily, FreeBSD has an easy way of updating the OS.
It's _independent_ (!) from your installed applications and of
course from your data. You can also decide to update your programs
independently.

However, a install once, then keep using scenario is easily
possible with FreeBSD. (My home system has been installed in
summer 2011 and worked _flawlessly_ since that point, never
touch a running system.)



I suggest you make yourself familiar with FreeBSD by using the
resources from http://www.freebsd.org/ and you _might_ also want
to check out PC-BSD (might be perfect for what you want) and
VirtualBSD (easy way to try it out without installing it).



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


Re: what kind of freeBSD to download for my pc?

2013-10-12 Thread Ralf Mardorf
On Sat, 2013-10-12 at 16:50 -0700, cikitaluzza wrote:
 can i run exe files on freeBSD?

The raw answer is, no, you can't.

 it spoils fast or not?this question comes from fastest ever spoil OS
 windows which always spoil in a week seven times i think with things
 like errors or dll and many things from blue screen.

This doesn't sound like a Windows only error.

 do you have any problems within freeBSD or no problems?i dont like
 blue screen error or driver things and no matter what .

Regarding to driver issues you better stay with Microsoft or switch to
Apple. Hardware and free/libre and open source software requires the
user to learn and take care if hardware is supported.

 how much total ram and bit is my pc of amd athlon(tm) 64 x2 dual core
 processor 4000+ 2.11 GHz 960 MB RAM?

Around 1 GiB could be ok, but also be not enough RAM, but it seems not
to be an issue.

 im always in internet watching live camers,what do you suggest me to
 use os type?i like to save pictures and videos

Free/libre and open source software does less good support proprietary
codecs and software. At the moment there is a thread about Adobe Flash
on this list. The best choice could be Windows, perhaps installed as
guest to a virtual machine, so that you always can restore it by using
snapshots.

  and never lost them,if you think your os is gonna spoil and lost my
 all files then i dont need it.i want stable os and never to reinstall
 or update

For multimedia Linux might be better than FreeBSD. Neither Linux, nor
FreeBSD tend to lose data, you even shouldn't lose data when using one
of Microsoft's less good Windows versions. It's more likely that users
have less good backup and archiving strategies.

If you want to consume multimedia by the Internet, you likely need to
install security updates and software to use stuff based on proprietary
software. You could set up a text editor and never need to update or to
reinstall something, but the Internet and consuming multimedia likely
need updates from time to time.

Start an adventure ;), nobody will give you a guarantee,
self-responsibility is a catchword for free/libre and open source
software.

FreeBSD and Linux are similar operating systems, on both kernels more or
less the same multimedia applications do run, but the more recent
versions are provided by Linux and multimedia is better supported for
Linux.

I'm an Arch Linux user, it's similar to FreeBSD regarding to a port like
system, however, for your needs IMO Debian Linux stable release might be
the less risky choice. OTOH, why not simply testing FreeBSD?

___
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 kind of freeBSD to download for my pc?

2013-10-12 Thread Polytropon
Typo warning!

On Sun, 13 Oct 2013 03:26:45 +0200, Polytropon wrote:
 On Sat, 12 Oct 2013 16:50:32 -0700 (PDT), cikitaluzza wrote:
  can i run exe files on freeBSD?
 
 Depends. VMX EXE files may work via the SimH emulator. For
   ^^^
 DOS EXE and Windows EXE files, there are dosbox and wine.
 Those compatibility packs can be easily installed. They
 are not part of the OS.

Of course I meant _VMS_ executables.
 ^

Also I don't know if there would be a way to run OS/2 EXE
files. This is probably only possible with a VM running the
appropriate OS/2 version. This approach might also apply
for running Novell NetWare EXE files. There are several
VM systems available for FreeBSD, for example VMWare and
VirtualBox.

I hope I have covered all typical possibilities of what
exe file could mean. :-)




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


Re: what kind of freeBSD to download for my pc?

2013-10-12 Thread Bernt Hansson

On 2013-10-13 01:50, cikitaluzza wrote:

can i run exe files on freeBSD?


Yes, but the files are not called exe files.

it spoils fast or not?

Google translate?

do you have any problems within freeBSD

Yes.

how much total ram and bit is my pc of amd athlon(tm) 64 x2 dual core 
processor 4000+ 2.11 GHz 960 MB RAM?


Download amd64


i want stable os and never to reinstall or update

You should consider pen and paper then.
___
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 Negative permissions

2013-09-23 Thread Leslie Jensen


In the daily security run I see the following:



Checking setuid files and devices:

Checking negative group permissions:
3791965 -rwxr--r-x  1 admin  wheel  172 Mar  9 10:59:55 2011
 /usr/home/admin/bin/noip_update.sh


Is it just a reminder that the group has no x permissions or should I 
give those permissions?


Thanks

/Leslie
___
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 Negative permissions

2013-09-23 Thread Frank Leonhardt

On 23/09/2013 11:54, Leslie Jensen wrote:


In the daily security run I see the following:



Checking setuid files and devices:

Checking negative group permissions:
3791965 -rwxr--r-x  1 admin  wheel  172 Mar  9 10:59:55 2011
 /usr/home/admin/bin/noip_update.sh


Is it just a reminder that the group has no x permissions or should I 
give those permissions?


Yes, basically. It's obviously very odd to give everyone OTHER than 
:wheel members permission to run it. What about user root in group wheel 
- is root allowed to run it? Actually, yes, even though you might think 
you've forbidden members of wheel.


Regards, Frank.

___
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: mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Polytropon
On Fri, 13 Sep 2013 00:54:01 +0200, Per olof Ljungmark wrote:
 I have apart from the boot drives a SATA disk for storage. Usually I
 would mount it with
 mount /dev/ada0p1 /archive
 but as my last reboot into
 FreeBSD 9.1-STABLE #0 r252369
 I cannot mount the disk, I get
 mount: /dev/ada0p1: Device busy
 
 Well, busy with what?
 
 fuser -m /dev/ada0p1
 /dev/ada0p1:
 
 I REALLY need to acces trhis UFS formatted drive, how can I convice it
 that everything is ok and it's not really busy with anything?
 
 Could anyone please help to sort this please?

Maybe a fsck is running on the disk device? Also check mount -v
if the disk is really unmounted. Make sure any running fsck has
been finished and try again. In worst case, manually initiate a
file system check. Then try mounting the disk again.




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


mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Per olof Ljungmark
I have apart from the boot drives a SATA disk for storage. Usually I
would mount it with
mount /dev/ada0p1 /archive
but as my last reboot into
FreeBSD 9.1-STABLE #0 r252369
I cannot mount the disk, I get
mount: /dev/ada0p1: Device busy

Well, busy with what?

fuser -m /dev/ada0p1
/dev/ada0p1:

I REALLY need to acces trhis UFS formatted drive, how can I convice it
that everything is ok and it's not really busy with anything?

Could anyone please help to sort this please?

TIA

//per
___
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: mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Per olof Ljungmark
On 2013-09-13 01:30, Polytropon wrote:
 On Fri, 13 Sep 2013 00:54:01 +0200, Per olof Ljungmark wrote:
 I have apart from the boot drives a SATA disk for storage. Usually I
 would mount it with
 mount /dev/ada0p1 /archive
 but as my last reboot into
 FreeBSD 9.1-STABLE #0 r252369
 I cannot mount the disk, I get
 mount: /dev/ada0p1: Device busy

 Well, busy with what?

 fuser -m /dev/ada0p1
 /dev/ada0p1:

 I REALLY need to acces trhis UFS formatted drive, how can I convice it
 that everything is ok and it's not really busy with anything?

 Could anyone please help to sort this please?
 
 Maybe a fsck is running on the disk device? Also check mount -v
 if the disk is really unmounted. Make sure any running fsck has
 been finished and try again. In worst case, manually initiate a
 file system check. Then try mounting the disk again.

Yes, I've done at least five fsck's with different options and there has
not been any complaints. The drive is not mounted at boot time.

Anyway, mount -v seems to have sorted it. It was already mounted to a
different mountpoint due to my own brain damage apparently although I
cannot recall ever doing it. Problem solved.

Thank you!

//per
___
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 compiler is used to build a port

2013-07-01 Thread Olivier Nicole
Hi,

I have a strange situation: 2 machines, 9.1 p4, on the first machine,
graphicslibfpx build with the stock compiler:

$ make
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===  Configuring for libfpx-1.3.1.1
===  Building for libfpx-1.3.1.1
Warning: Object directory not changed from original 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H...

and on the other machine it insists on using gcc 4.4 (which is
actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc
4.6):

$ make 
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
===Verifying install for gcc46 in /usr/ports/lang/gcc
Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 [c,c++,objc,fortran,java]
===  Found saved configuration for gcc-4.6.3
=== Fetching all distfiles required by gcc-4.6.3 for building
===  Extracting for gcc-4.6.3
= SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - found

What could cause aport to request for a different compiler version
when both machines are very similar?

Best regards,

Olivier
___
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 compiler is used to build a port

2013-07-01 Thread Anton Shterenlikht
Date: Mon, 1 Jul 2013 15:36:46 +0700 (ICT)
From: Olivier Nicole olivier.nic...@cs.ait.ac.th
To: freebsd-questions@freebsd.org
Subject: What compiler is used to build a port

Hi,

I have a strange situation: 2 machines, 9.1 p4, on the first machine,
graphicslibfpx build with the stock compiler:

$ make
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===  Configuring for libfpx-1.3.1.1
===  Building for libfpx-1.3.1.1
Warning: Object directory not changed from original 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H...

and on the other machine it insists on using gcc 4.4 (which is
actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc
4.6):

$ make 
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
===Verifying install for gcc46 in /usr/ports/lang/gcc
Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 [c,c++,objc,fortran,java]
===  Found saved configuration for gcc-4.6.3
=== Fetching all distfiles required by gcc-4.6.3 for building
===  Extracting for gcc-4.6.3
= SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - found

What could cause aport to request for a different compiler version
when both machines are very similar?

Best regards,

Olivier

It seems you have different revisions of the ports
tree on the two boxes. Do

svn info /usr/ports

on both boxes, and see what revisions they have.

On amd64 with ports at r322188 it builds using
the system GCC compiler:

http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log

but looking at the port's svn log
(svn log /usr/ports/graphics/libfpx) shows


r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 lines

- Unbreak build for HEAD

Maybe your gcc-46 build is on a box with ports tree
prior to that revision?

Anton

P.S. In cases like these I usually email the maintainer
and copy to ports@.

___
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 compiler is used to build a port

2013-07-01 Thread Olivier Nicole
Thank you Anto,

   I have a strange situation: 2 machines, 9.1 p4, on the first machine,
   graphicslibfpx build with the stock compiler:
 
   $ make
   === Fetching all distfiles required by libfpx-1.3.1.1 for building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===  Configuring for libfpx-1.3.1.1
   ===  Building for libfpx-1.3.1.1
   Warning: Object directory not changed from original 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
   g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H...
 
   and on the other machine it insists on using gcc 4.4 (which is
   actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc
   4.6):
 
   $ make 
   === Fetching all distfiles required by libfpx-1.3.1.1 for building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
   ===Verifying install for gcc46 in /usr/ports/lang/gcc
   Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 [c,c++,objc,fortran,java]
   ===  Found saved configuration for gcc-4.6.3
   === Fetching all distfiles required by gcc-4.6.3 for building
   ===  Extracting for gcc-4.6.3
   = SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
   ===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - found
 
   What could cause aport to request for a different compiler version
   when both machines are very similar?
 
   Best regards,
 
   Olivier
 
 It seems you have different revisions of the ports
 tree on the two boxes. Do
 
 svn info /usr/ports

I am using portsnap, not svn, but I check the md5 of each files in the
port (there are only 8 files) and they are the same.

And I tried to copy the directory from one machine to the other and
get the same result.

 on both boxes, and see what revisions they have.
 
 On amd64 with ports at r322188 it builds using
 the system GCC compiler:
 
 http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log
 
 but looking at the port's svn log
 (svn log /usr/ports/graphics/libfpx) shows
 
 
 r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 lines
 
 - Unbreak build for HEAD

My portsnap is much newer than February.

Thank you,

Olivier

 
 Maybe your gcc-46 build is on a box with ports tree
 prior to that revision?
 
 Anton
 
 P.S. In cases like these I usually email the maintainer
 and copy to ports@.

I will.
___
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 compiler is used to build a port

2013-07-01 Thread Anton Shterenlikht
From olivier.nic...@cs.ait.ac.th Mon Jul  1 12:12:08 2013

   I have a strange situation: 2 machines, 9.1 p4, on the first 
machine,
   graphicslibfpx build with the stock compiler:
 
   $ make
   === Fetching all distfiles required by libfpx-1.3.1.1 for 
building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===  Configuring for libfpx-1.3.1.1
   ===  Building for libfpx-1.3.1.1
   Warning: Object directory not changed from original 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
   g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H 
-DHAVE_SYS_TIME_H...
 
   and on the other machine it insists on using gcc 4.4 (which is
   actually a mistake, libfpx will *not* compile with gcc 4.4 or 
gcc
   4.6):
 
   $ make 
   === Fetching all distfiles required by libfpx-1.3.1.1 for 
building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
   ===Verifying install for gcc46 in /usr/ports/lang/gcc
   Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 
[c,c++,objc,fortran,java]
   ===  Found saved configuration for gcc-4.6.3
   === Fetching all distfiles required by gcc-4.6.3 for building
   ===  Extracting for gcc-4.6.3
   = SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
   ===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - 
found
 
   What could cause aport to request for a different compiler 
version
   when both machines are very similar?
 
   Best regards,
 
   Olivier
 
 It seems you have different revisions of the ports
 tree on the two boxes. Do
 
 svn info /usr/ports

I am using portsnap, not svn, but I check the md5 of each files in the
port (there are only 8 files) and they are the same.

And I tried to copy the directory from one machine to the other and
get the same result.

 on both boxes, and see what revisions they have.
 
 On amd64 with ports at r322188 it builds using
 the system GCC compiler:
 
 http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log
 
 but looking at the port's svn log
 (svn log /usr/ports/graphics/libfpx) shows
 
 

 r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 
lines
 
 - Unbreak build for HEAD

My portsnap is much newer than February.

ok, what else could be different between the two boxes?

- /etc/make.conf ?

Anton

___
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 compiler is used to build a port

2013-07-01 Thread Olivier Nicole
  I have a strange situation: 2 machines, 9.1 p4, on the first 
 machine,
  graphicslibfpx build with the stock compiler:

  $ make
  === Fetching all distfiles required by libfpx-1.3.1.1 for 
 building
  ===  Extracting for libfpx-1.3.1.1
  = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
  ===  Patching for libfpx-1.3.1.1
  ===  Applying FreeBSD patches for libfpx-1.3.1.1
  /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
  ===  Configuring for libfpx-1.3.1.1
  ===  Building for libfpx-1.3.1.1
  Warning: Object directory not changed from original 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
  g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H 
 -DHAVE_SYS_TIME_H...

  and on the other machine it insists on using gcc 4.4 (which is
  actually a mistake, libfpx will *not* compile with gcc 4.4 or 
 gcc
  4.6):

  $ make 
  === Fetching all distfiles required by libfpx-1.3.1.1 for 
 building
  ===  Extracting for libfpx-1.3.1.1
  = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
  ===  Patching for libfpx-1.3.1.1
  ===  Applying FreeBSD patches for libfpx-1.3.1.1
  /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
  ===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
  ===Verifying install for gcc46 in /usr/ports/lang/gcc
  Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 
 [c,c++,objc,fortran,java]
  ===  Found saved configuration for gcc-4.6.3
  === Fetching all distfiles required by gcc-4.6.3 for building
  ===  Extracting for gcc-4.6.3
  = SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
  ===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - 
 found

  What could cause aport to request for a different compiler 
 version
  when both machines are very similar?

  Best regards,

  Olivier

It seems you have different revisions of the ports
tree on the two boxes. Do

svn info /usr/ports
 
   I am using portsnap, not svn, but I check the md5 of each files in the
   port (there are only 8 files) and they are the same.
 
   And I tried to copy the directory from one machine to the other and
   get the same result.
 
on both boxes, and see what revisions they have.

On amd64 with ports at r322188 it builds using
the system GCC compiler:

http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log

but looking at the port's svn log
(svn log /usr/ports/graphics/libfpx) shows


 
r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 
 lines

- Unbreak build for HEAD
 
   My portsnap is much newer than February.
 
 ok, what else could be different between the two boxes?
 
 - /etc/make.conf ?

No, I have checked that already.

Thanks anyway,

Olivier
___
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 percentage indicators - what are they, why are they so random?

2013-06-25 Thread Mike Brown
 Fetching 1 metadata files...  70.5%
 done.
  70.5%
  70.5%
  74.2%
  74.2%
  81.7%
  81.7%
  70.5%

I think this is a result of having -v in my GZIP environment variable.
I always forget about my GZIP and BZIP2 variables. I should've known.
So, never mind about that.
___
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 percentage indicators - what are they, why are they so random?

2013-06-22 Thread Mike Brown
I'm using freebsd-update to upgrade my system to the latest minor release.

At a couple points in the process, I get weird status indicators (percentages) 
showing me that something is happening:


Fetching 1 metadata files...  70.5%
done.
 70.5%
 70.5%
 74.2%
 74.2%
 81.7%
 81.7%
 70.5%
Inspecting system... done.



Sometimes these numbers are negative, and although not entirely random, they 
don't seem to follow any particular pattern... they don't creep up from 0 to 
100, at least:

Preparing to download files... done.
 -4.7%
 -8.4%
 -9.6%
 35.4%
 30.6%
 30.5%
 45.2%
 43.4%
 43.0%
 68.1%
 68.2%
 68.2%
 44.4%
 43.0%
 43.0%
 72.0%
 71.9%
 71.9%
 69.1%
 69.0%
 69.0%
 72.0%
 71.9%
 71.9%
 69.1%
 69.0%
 69.0%
 52.2%
 50.2%
 49.9%
 53.4%
 56.8%
 57.5%
 59.0%
 55.1%
 56.0%
 91.4%
 94.5%
 94.3%
 90.4%
 94.5%
 94.3%
 54.8%
 54.6%
 55.3%
 28.8%
 24.9%
 24.2%
 57.0%
 53.3%
 55.1%
Attempting to automatically merge changes in files... done.


What is the point of these numbers? Does everyone see them, or is it just me? 
Are they supposed to be on separate lines like this, or are they supposed to 
overwrite each other one line?
___
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 the correct CPUTYPE for this machine?

2013-06-08 Thread Michael Gass
I have an old laptop:

FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
CPU: Mobile AMD Duron(tm) Processor (1096.23-MHz 686-class CPU)
Origin = AuthenticAMD  Id = 0x671  Family = 6  Model = 7  Stepping = 1
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!

What is the correct value for CPUTYPE in make.conf?

Thanks,

mg
-- 
Michael Gass
mg...@csbsju.edu 
___
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 the correct CPUTYPE for this machine?

2013-06-08 Thread ill...@gmail.com
On 8 June 2013 09:34, Michael Gass mg...@csbsju.edu wrote:

 I have an old laptop:

 FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012
 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
 CPU: Mobile AMD Duron(tm) Processor (1096.23-MHz 686-class CPU)
 Origin = AuthenticAMD  Id = 0x671  Family = 6  Model = 7  Stepping = 1

 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
 AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!

 What is the correct value for CPUTYPE in make.conf?


Duron was just a low-cost Athlon, da?

-- 
--
___
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 the correct CPUTYPE for this machine?

2013-06-08 Thread Michael Gass
On Sat, Jun 08, 2013 at 10:10:10AM -0400, ill...@gmail.com wrote:
 On 8 June 2013 09:34, Michael Gass mg...@csbsju.edu wrote:
 
  I have an old laptop:
 
  FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012
  r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
  CPU: Mobile AMD Duron(tm) Processor (1096.23-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x671  Family = 6  Model = 7  Stepping = 1
 
  Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!
 
  What is the correct value for CPUTYPE in make.conf?
 
 
 Duron was just a low-cost Athlon, da?
 
OK, checking the internet, looks like I should use
CPUTYPE?=k7
as the mobile amd duron 1.1G is a k7 group,
but the make.conf example only lists values like
k8, k6-3, k6-2, k6, and k5.
Which should I use?

mg
-- 
Michael Gass
mg...@csbsju.edu 
___
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 the correct CPUTYPE for this machine?

2013-06-08 Thread Matthew Seaman
On 08/06/2013 17:02, Michael Gass wrote:
 On Sat, Jun 08, 2013 at 10:10:10AM -0400, ill...@gmail.com wrote:
 On 8 June 2013 09:34, Michael Gass mg...@csbsju.edu wrote:

 I have an old laptop:

 FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012
 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
 CPU: Mobile AMD Duron(tm) Processor (1096.23-MHz 686-class CPU)
 Origin = AuthenticAMD  Id = 0x671  Family = 6  Model = 7  Stepping = 1

 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
 AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!

 What is the correct value for CPUTYPE in make.conf?


 Duron was just a low-cost Athlon, da?

 OK, checking the internet, looks like I should use
 CPUTYPE?=k7
 as the mobile amd duron 1.1G is a k7 group,
 but the make.conf example only lists values like
 k8, k6-3, k6-2, k6, and k5.
 Which should I use?

CPUTYPE?=   native

Why fret when the computer can work it out for itself?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matt...@infracaninophile.co.uk



signature.asc
Description: OpenPGP digital signature


Re: What is the correct CPUTYPE for this machine?

2013-06-08 Thread ill...@gmail.com
On 8 June 2013 12:02, Michael Gass mg...@csbsju.edu wrote:

 On Sat, Jun 08, 2013 at 10:10:10AM -0400, ill...@gmail.com wrote:
  On 8 June 2013 09:34, Michael Gass mg...@csbsju.edu wrote:
 
   I have an old laptop:
  
   FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012
   r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
   CPU: Mobile AMD Duron(tm) Processor (1096.23-MHz 686-class CPU)
   Origin = AuthenticAMD  Id = 0x671  Family = 6  Model = 7  Stepping =
 1
  
  
 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
   AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!
  
   What is the correct value for CPUTYPE in make.conf?
  
  
  Duron was just a low-cost Athlon, da?
 
 OK, checking the internet, looks like I should use
 CPUTYPE?=k7
 as the mobile amd duron 1.1G is a k7 group,
 but the make.conf example only lists values like
 k8, k6-3, k6-2, k6, and k5.
 Which should I use?


According to /usr/share/mk/bsd.cpu.mk
(qv:
# Handle aliases (not documented in make.conf to avoid user confusion
# between e.g. i586 and pentium)
)
if you set CPUTYPE=k7
it will set CPUTYPE=athlon

native probably works for most cases, too.

-- 
--
___
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 commands show memory usage

2013-05-14 Thread Joe

When stopping vnet jails get message about lost memory pages.
What console commands show available memory pages so I can determine the 
lost memory pages after 100 stopped jails?

Want to find out if that lost memory page message is bogus or not.

Thanks
___
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 commands show memory usage

2013-05-14 Thread Tim Daneliuk

On 05/14/2013 08:56 PM, Joe wrote:

Tim Daneliuk wrote:

On 05/14/2013 08:32 PM, Joe wrote:

When stopping vnet jails get message about lost memory pages.
What console commands show available memory pages so I can determine the lost 
memory pages after 100 stopped jails?
Want to find out if that lost memory page message is bogus or not.



Look at 'vmstat' and 'free' commands.



can't find any free command



Sorry Joe (and everyone), I had a brief bit flip.  The command is
actually called freebsd-memory and is not in the base system.
It's an addon from Ralph Engelshall and can be found here:

   http://people.freebsd.org/~rse/utils/

(If you care, the 'free' command is how you do this on Linux.)

--

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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] recover destroyed zpool - what are the available options?

2013-04-09 Thread Volodymyr Kostyrko

09.04.2013 06:51, Beeblebrox:

Exported the existing zpool  ran # zpool import -D -f -R /bsdr -N -F -X
12018916494219117471 rescue =
Same result unfortunately. 'cannot import 'bsdr' as 'rescue': no such pool
or dataset Destroy and re-create the pool from a backup source.'
I tried the other bsdr zpool as well but result was same error msg.

I feel like I'm overlooking something very simple...


You can try adding verbosity:

vfs.zfs.debug=1
vfs.zfs.recover=1
debug.bootverbose=1

If ZFS doesn't think the pool is eligible to import you are out of luck. 
You can put the disk aside till some sofwtare for data recovering from 
damaged ZFS emerges.


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-08 Thread Volodymyr Kostyrko

05.04.2013 14:13, Beeblebrox:

Thank you for your help Volodymyr,

1. ZPOOL LIST shows that the pool is listed
NAMESIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
bsdr   -  -  -  -  -  FAULTED  -
tank0  49.8G  13.3G  36.5G26%  1.00x  ONLINE  -

2. ZPOOL IMPORT = no pools available to import
3. zpool import -D -f -R /bsdr -N -F -n -X bsdr =
Gives error because of condition (#1)
4. ZPOOL IMPORT -D shows 2 BSDR pools:
A) config:  bsdr   UNAVAIL  insufficient replicas
  5853256800575798014  UNAVAIL  cannot open  (THIS IS NOT THE POOL I 
WANT -
THIS ONE IS OLDER POOL, WHOLE-DISK-RAW)
B) config:  bsdrUNAVAIL  insufficient replicas
  17860002997423999070  UNAVAIL  cannot open (THIS SHOULD BE THE POOL I
NEED, BUT LOOK AT PROBLEM IN #5)
5. ZPOOL STATUS -V BSDR shows different guid!!
config: bsdrUNAVAIL  0 0 0
  12606749387939346898  UNAVAIL  0 0 0  was /dev/ada0p2 
(THIS
GUID DOES NOT MATCH THE GUID OF 4-B)
It is normal in my opinion that the guid should not match, but that is why I
cannot import pool 4-B. I must either delete the BSDR POOL that is shown as
on-line, or import 4-B with another name I think.


Personally I feel you should destroy current BSDR pool before importing 
older one or at least export current one. I don't think ZFS will reuse 
devices that are already used for other pools.


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-08 Thread Beeblebrox
Exported the existing zpool  ran # zpool import -D -f -R /bsdr -N -F -X
12018916494219117471 rescue =
Same result unfortunately. 'cannot import 'bsdr' as 'rescue': no such pool
or dataset Destroy and re-create the pool from a backup source.'
I tried the other bsdr zpool as well but result was same error msg.

I feel like I'm overlooking something very simple...



-
10-Current-amd64-portstree merged with marcuscom.gnome3  xorg.devel
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5802512.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-07 Thread Beeblebrox
The '-n' flag should not be there:  -n   Used with the -F recovery option.
Determines whether a non-importable pool can be made importable again, but
does not actually perform the pool recovery

# zpool import -D -f -R /bsdr -N -F -X 12018916494219117471 rescue =
cannot import 'bsdr' as 'rescue': no such pool or dataset. Destroy and
re-create the pool from a backup source.




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5802063.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-05 Thread Volodymyr Kostyrko

04.04.2013 19:26, Beeblebrox:

test them with `zdb -l device`. When the output would be correct - you

guessed your slice!

LABEL 1

 version: 28
 name: 'bsdr'
 state: 2
 txg: 10
 pool_guid: 12018916494219117471
 hostid: 2193536600
 hostname: 'mfsbsd'
 top_guid: 17860002997423999070
 guid: 17860002997423999070
 vdev_children: 1
 vdev_tree:
 type: 'disk'
 id: 0
 guid: 17860002997423999070
 path: '/dev/ad6p2'
 phys_path: '/dev/ad6p2'
 whole_disk: 1
 metaslab_array: 30
 metaslab_shift: 31
 ashift: 9
 asize: 287855869952
 is_log: 0
 create_txg: 4

Do you mean that in this case 'asize 287855869952' is what I should look at?
But 287855869952 /1024 /1024 /2 = 137.260GB is far smaller than I recall
the geom part to be...


I can't has the math. But looking at ashift I can guess your disk should 
be 287855869952/2**9 == 562218496. Is this one right?


Actually if you see all 4 labels correctly you can try to proceed as ZFS 
would guess the correct disk size anyway.


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-05 Thread Beeblebrox
Actually if you see all 4 labels correctly you can try to proceed as ZFS
would guess the correct disk size anyway. 

I should clarify:  # zdb -l /dev/ada0p2 = all 4 LABELS visible and correct
(zpool name: bsdr)
# zdb -l /dev/ada0p1 = all 4 LABELS visible and correct (zpool name: asp)
# zdb -l /dev/ada0 = only LABEL #2 visible (this is an OLDER zpool with
GUID 5853256800575798014, also named bsdr, the pool was whole-disk-as-raw)
This is the gpt table + partitions as I re-created them immediately after
the gpt delete. It looks like I have re-created the gpt partitions
correctly...

I don't understand what you mean by you can try to proceed?
# zpool import -D -f -R /bsdr -N -F -n -X bsdr 
cannot import 'bsdr': a pool with that name already exists. use the form
'zpool import pool | id newpool' to give it a new name




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801716.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-05 Thread Volodymyr Kostyrko

05.04.2013 11:54, Beeblebrox:

Actually if you see all 4 labels correctly you can try to proceed as ZFS

would guess the correct disk size anyway.

I should clarify:  # zdb -l /dev/ada0p2 = all 4 LABELS visible and correct
(zpool name: bsdr)
# zdb -l /dev/ada0p1 = all 4 LABELS visible and correct (zpool name: asp)
# zdb -l /dev/ada0 = only LABEL #2 visible (this is an OLDER zpool with
GUID 5853256800575798014, also named bsdr, the pool was whole-disk-as-raw)
This is the gpt table + partitions as I re-created them immediately after
the gpt delete. It looks like I have re-created the gpt partitions
correctly...

I don't understand what you mean by you can try to proceed?
# zpool import -D -f -R /bsdr -N -F -n -X bsdr
cannot import 'bsdr': a pool with that name already exists. use the form
'zpool import pool | id newpool' to give it a new name


Ok, let's check a few things:

zpool import

zpool import -D

From your previous mails I saw that pool bsdr is FAULTED but not 
deleted. If the system would list bsdr on `zpool import` you should 
remove -D from the command.


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-05 Thread Beeblebrox
Thank you for your help Volodymyr,

1. ZPOOL LIST shows that the pool is listed
NAMESIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
bsdr   -  -  -  -  -  FAULTED  -
tank0  49.8G  13.3G  36.5G26%  1.00x  ONLINE  -

2. ZPOOL IMPORT = no pools available to import
3. zpool import -D -f -R /bsdr -N -F -n -X bsdr =
Gives error because of condition (#1)
4. ZPOOL IMPORT -D shows 2 BSDR pools:
A) config:  bsdr   UNAVAIL  insufficient replicas
  5853256800575798014  UNAVAIL  cannot open  (THIS IS NOT THE POOL I 
WANT -
THIS ONE IS OLDER POOL, WHOLE-DISK-RAW)
B) config:  bsdrUNAVAIL  insufficient replicas
  17860002997423999070  UNAVAIL  cannot open (THIS SHOULD BE THE POOL I
NEED, BUT LOOK AT PROBLEM IN #5)
5. ZPOOL STATUS -V BSDR shows different guid!!
config: bsdrUNAVAIL  0 0 0
  12606749387939346898  UNAVAIL  0 0 0  was /dev/ada0p2 
(THIS
GUID DOES NOT MATCH THE GUID OF 4-B)
It is normal in my opinion that the guid should not match, but that is why I
cannot import pool 4-B. I must either delete the BSDR POOL that is shown as
on-line, or import 4-B with another name I think.

Thanks and Regards.





--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801734.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-05 Thread Beeblebrox
Sadly, the command I ran did nothing - no error message, no output, no
result:
# zpool import -D -f -R /bsdr -N -F -n -X 12018916494219117471 newname



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801851.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-04 Thread Mark

 
 Original Message 
From: Beeblebrox zap...@berentweb.com
To: freebsd-questions@freebsd.org
Sent: Wed, April 3, 2013 10:50:55 AM
Subject: Re: [ZFS] recover destroyed zpool - what are the available options?

Volodymyr, thank you very much for answering.

A strange problem is that ZFS thinks the pool is on-line:
# zpool list
NAMESIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
bsdr   -  -  -  -  -  FAULTED  -

So when I try to import, it objects. I can think of 2 things to do:
a- export the pool first, then re-import
b- Disconnect the original hdd / create pool bsdr on another hdd@s small gpt
partition / re-connect the original hdd / somehow force the import or add
the original pool to the newly created bsdr pool, and maybe the original
data will come back on line??

What would you suggest?  Thanks again.


What does gpart show return?

Are all the pool members there and working?

My guess is that one member is missing or a mbr is bad.

I have used the zfs import function with good results.


--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801356.html

Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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: [ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Volodymyr Kostyrko

04.04.2013 08:08, Beeblebrox пишет:

I had a second pool on another partition of the same HDD, which was in the
same degraded state as the bsdr pool. The data on that pool had been
backed-up previously. I decided to try the export  re-import method on that
pool (-Z gives message: invalid option 'Z'). Result:


Sorry, that was -X aka extreme_rewind.


# zpool export oldpool
# zpool import -D -f -R /mnt -N -F -n  oldpool
Now the pool just disappears.
# zpool list - does not show oldpool
# zpool import -  no pools available to import

So the export  re-import method is NOT the way to do this.


Option -D was intended only for deleted pools, not exported ones.

Try `zpool list -D` or `zpool import -D`.

--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
Hi Mark.

What does gpart show return?
=   34  625142381  ada0  GPT  (298G)
34   62914560 1  freebsd-zfs  (30G)
62914594  562227821 2  freebsd-zfs  (268G)

Are all the pool members there and working?
Yes - ada0p2 is the ONLY pool member.

My guess is that one member is missing or a mbr is bad.
After 'zpool destroy', I also deleted the partition before realising my
mistake, I tried to recover the partition table with testdisk, but this was
not successful. Next I created a new GPT table and the 2 partitions at the
original size as I recalled them - so ada0p1 and ada0p2 have been
re-created.

I just realized a problem: gpart show -r =
62914594  562227821 2  516e7cba-6ecf-11d6-8ff8-00022d09712b  (268G)
The guid (?) that ZFS is looking for is most likely wrong. I need to find
the ID that ZFS is looking for and change the ID of ada0p2 to that number -
am I correct?

Thanks.




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801568.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-04 Thread Volodymyr Kostyrko

2013-04-04 18:50, Beeblebrox wrote:

Hi Mark.


What does gpart show return?

=   34  625142381  ada0  GPT  (298G)
34   62914560 1  freebsd-zfs  (30G)
62914594  562227821 2  freebsd-zfs  (268G)


Are all the pool members there and working?

Yes - ada0p2 is the ONLY pool member.


My guess is that one member is missing or a mbr is bad.

After 'zpool destroy', I also deleted the partition before realising my
mistake, I tried to recover the partition table with testdisk, but this was
not successful. Next I created a new GPT table and the 2 partitions at the
original size as I recalled them - so ada0p1 and ada0p2 have been
re-created.

I just realized a problem: gpart show -r =
62914594  562227821 2  516e7cba-6ecf-11d6-8ff8-00022d09712b  (268G)
The guid (?) that ZFS is looking for is most likely wrong. I need to find
the ID that ZFS is looking for and change the ID of ada0p2 to that number -
am I correct?


ZFS operates on metadata. If ZFS can clearly see one side of the 
partition it would see it all, you can try reconstruct partitions taking 
in account data obtained from zdb. And again - when you obtained correct 
zdb data ZFS was available. Maybe or maybe the slice was too small...


Oh hey, you uzed `zdb -C`, testing what local machine knows about the 
pool. When recreating partitions test them with `zdb -l device`. When 
the output would be correct - you guessed your slice!


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
Thanks Volodymyr.

The pools do not show up as deleted.
# zpool list (the pool that had disappeared has returned)
NAME   SIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
asp   -  -  -  -  -  FAULTED  -
bsdr  -  -  -  -  -  FAULTED  -
bsds  48.8G  12.9G  35.8G26%  1.25x  ONLINE  -

# zpool import
no pools available to import

# zpool import -D
   pool: bsdr
 id: 12018916494219117471
  state: UNAVAIL (DESTROYED)
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
devices and try again.
config:   bsdrUNAVAIL  insufficient replicas
  *17860002997423999070*  UNAVAIL  cannot open

   pool: bsdr
 id: 16018525702691588432
  state: UNAVAIL (DESTROYED)
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
devices and try again.
 config:   bsdr   UNAVAIL  insufficient replicas
  5853256800575798014  UNAVAIL  cannot open

# zpool status -v bsdr
  pool: bsdr
 state: UNAVAIL
status: One or more devices could not be opened.  There are insufficient
replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
config: NAMESTATE READ WRITE CKSUM
bsdrUNAVAIL  0 0 0
  *12606749387939346898*  UNAVAIL  0 0 0  was /dev/ada0p2

Form my post #2 you can check that ZDB record has 2 GUIDs:
guid: *17852168552651762162*  and  guid: *12606749387939346898* 

Thank You.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801581.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
test them with `zdb -l device`. When the output would be correct - you
guessed your slice! 

LABEL 1

version: 28
name: 'bsdr'
state: 2
txg: 10
pool_guid: 12018916494219117471
hostid: 2193536600
hostname: 'mfsbsd'
top_guid: 17860002997423999070
guid: 17860002997423999070
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 17860002997423999070
path: '/dev/ad6p2'
phys_path: '/dev/ad6p2'
whole_disk: 1
metaslab_array: 30
metaslab_shift: 31
ashift: 9
asize: 287855869952
is_log: 0
create_txg: 4

Do you mean that in this case 'asize 287855869952' is what I should look at?
But 287855869952 /1024 /1024 /2 = 137.260GB is far smaller than I recall
the geom part to be...



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801588.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-03 Thread Beeblebrox
If anyone has ideas, zdb -C is now giving me detailed output. zpool status
is:

NAMESTATE READ WRITE CKSUM
bsdrUNAVAIL  0 0 0
12606749387939346898  UNAVAIL  0 0 0  was /dev/ada0p2

zdb -C gives:
bsdr:
version: 5000
name: 'bsdr'
state: 0
txg: 41845
pool_guid: 17852168552651762162
hostid: 2739729201
hostname: ''
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 17852168552651762162
create_txg: 4
vdev_stats[0]: 348476133
vdev_stats[1]: 4
vdev_stats[2]: 3
vdev_stats[3]: 0
vdev_stats[4]: 0
vdev_stats[5]: 0
vdev_stats[6]: 0
vdev_stats[7]: 0
vdev_stats[8]: 0
vdev_stats[9]: 0
vdev_stats[10]: 0
vdev_stats[11]: 0
vdev_stats[12]: 0
vdev_stats[13]: 0
vdev_stats[14]: 0
vdev_stats[15]: 0
vdev_stats[16]: 0
vdev_stats[17]: 0
vdev_stats[18]: 0
vdev_stats[19]: 0
vdev_stats[20]: 0
vdev_stats[21]: 0
vdev_stats[22]: 0
vdev_stats[23]: 0
vdev_stats[24]: 0
vdev_stats[25]: 0
children[0]:
type: 'disk'
id: 0
guid: 12606749387939346898
path: '/dev/ada0p2'
phys_path: '/dev/ada0p2'
whole_disk: 1
metaslab_array: 30
metaslab_shift: 31
ashift: 9
asize: 287855869952
is_log: 0
create_txg: 4
vdev_stats[0]: 348476133
vdev_stats[1]: 4
vdev_stats[2]: 1
vdev_stats[3]: 0
vdev_stats[4]: 0
vdev_stats[5]: 0
vdev_stats[6]: 287767527424
vdev_stats[7]: 18446743785853681664
vdev_stats[8]: 0
vdev_stats[9]: 0
vdev_stats[10]: 0
vdev_stats[11]: 0
vdev_stats[12]: 0
vdev_stats[13]: 0
vdev_stats[14]: 0
vdev_stats[15]: 0
vdev_stats[16]: 0
vdev_stats[17]: 0
vdev_stats[18]: 0
vdev_stats[19]: 0
vdev_stats[20]: 0
vdev_stats[21]: 0
vdev_stats[22]: 0
vdev_stats[23]: 0
vdev_stats[24]: 0
vdev_stats[25]: 0
features_for_read:




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801335.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-03 Thread Volodymyr Kostyrko

2013-04-03 18:17, Beeblebrox wrote:

If anyone has ideas, zdb -C is now giving me detailed output. zpool status
is:


You are mostly out of luck. The worst thing about ZFS is that when 
something happens ZFS just gives you NO.


I posted this before, you can try this too:

zpool import -D -f -R /bsdr -N -F -n -Z bsdr

-D   work on deleted pools
-f   force import
-R   custom root folder to not interfer with your mounts
-N   do not mount filesystems
-F   recovery mode - tries last transactions to find a good one
-n   doesn't modify data on disk while in recovery mode
-Z   (undocumented) verify transactions in recovery mode by doing a 
partial scrub (?).


I hope this will help you... Anyway you can try any other ZFS 
implementation. For example FreeBSD loader can read files too while booting.


--
Sphinx of black quartz, judge my vow.
___
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] recover destroyed zpool - what are the available options?

2013-04-03 Thread Beeblebrox
Volodymyr, thank you very much for answering.

A strange problem is that ZFS thinks the pool is on-line:
# zpool list
NAMESIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
bsdr   -  -  -  -  -  FAULTED  -

So when I try to import, it objects. I can think of 2 things to do:
a- export the pool first, then re-import
b- Disconnect the original hdd / create pool bsdr on another hdd@s small gpt
partition / re-connect the original hdd / somehow force the import or add
the original pool to the newly created bsdr pool, and maybe the original
data will come back on line??

What would you suggest?  Thanks again.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801356.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-04-03 Thread Beeblebrox
I had a second pool on another partition of the same HDD, which was in the
same degraded state as the bsdr pool. The data on that pool had been
backed-up previously. I decided to try the export  re-import method on that
pool (-Z gives message: invalid option 'Z'). Result:
# zpool export oldpool
# zpool import -D -f -R /mnt -N -F -n  oldpool
Now the pool just disappears.
# zpool list - does not show oldpool
# zpool import -  no pools available to import

So the export  re-import method is NOT the way to do this.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801470.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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] recover destroyed zpool - what are the available options?

2013-03-31 Thread Beeblebrox
I destroyed my zpool but forgot to take the tar backup of /home folder. I was
wondering if there's any way to restore the zpool? This was a single-HDD
pool.

zpool import -D  shows the poolname but also shows that pool is unavailable
and faulted.
zdb commands give no records available for poolname
The zpool command also shows the missing device by its ID number.  I have
left the HDD in the untouched state, and I am hopng that zpool may accept
the HDD if I can figure out a way to pass the device number zpool is looking
for to the GPT partition (or whatever ID mechanism zpool looks for) on the
original HDD.

Is there a way to do all that with ZFS?

Thanks for any help.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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 your favorite board for a micro system?

2013-03-11 Thread Jason Fortezzo
On Sat, Mar 09, 2013 at 12:53:27AM +0100, Erik N?rgaard wrote:
 What is your favorite mini/micro/nano/pico-itx platform for home projects?
 
 I currently run a home server on an Intel mini-itx board but was
 looking around for something fun to play with with the following
 specs:
 
 - mini-itx or smaller, low profile
 - fanless
 - low power 12V external PSU
 - 1 LAN, preferably 2
 - 2 USB2/3
 - Flash bootable, but with option for hdd boot
 - GPIO would be fun
 - hdmi out would be nice

I'm using the Intel DQ77KB Thin Mini ITX board and it almost meets all of your
criteria.  The heatsink has a fan but it is silent (even after 12 hours
of Prime95).  This board has AMT so when used with a vPro capable CPU
(I'm using an i7-3770S), you get all sorts of nifty OOB features.

I'm using ESXi 5.1 right now but I'm pretty sure it would boot FreeBSD
fine.

-- 
Jason Fortezzo
forte...@mechanicalism.net
___
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 your favorite board for a micro system?

2013-03-09 Thread Eduardo Morras
On Sat, 09 Mar 2013 00:53:27 +0100
Erik Nørgaard norga...@locolomo.org wrote:

 Hi!
 
 What is your favorite mini/micro/nano/pico-itx platform for home projects?
 
 I currently run a home server on an Intel mini-itx board but was looking 
 around for something fun to play with with the following specs:
 
 - mini-itx or smaller, low profile
 - fanless
 - low power 12V external PSU
 - 1 LAN, preferably 2
 - 2 USB2/3
 - Flash bootable, but with option for hdd boot
 - GPIO would be fun
 - hdmi out would be nice
 
 I have tried VIA boards but found they were flacky...
 
 Any suggestion regarding ARM vs Intel based?
 

I'm playing now with GK802, an arm based one. Freebsd don't run on it :( and 
LAN is wifi b/g/n + bluetooth

https://www.miniand.com/products/GK802%20Android%20Mini%20PC

The advantage over similar ones is that internal flash memory is a micro sd 
card, so you can build your os on other machine plug it in 

 Thanks, Erik
 
 -- 
 M: +34 666 334 818
 T: +34 915 211 157
 ___
 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


---   ---
Eduardo Morras emorr...@yahoo.es
___
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 your favorite board for a micro system?

2013-03-09 Thread Arthur Chance

On 03/08/13 23:53, Erik Nørgaard wrote:

Hi!

What is your favorite mini/micro/nano/pico-itx platform for home projects?

I currently run a home server on an Intel mini-itx board but was looking
around for something fun to play with with the following specs:

- mini-itx or smaller, low profile
- fanless
- low power 12V external PSU
- 1 LAN, preferably 2
- 2 USB2/3
- Flash bootable, but with option for hdd boot
- GPIO would be fun
- hdmi out would be nice

I have tried VIA boards but found they were flacky...

Any suggestion regarding ARM vs Intel based?


Depending exactly how small you want it, how about a Raspberry Pi Model 
B? Dirt cheap, 1 LAN, but you can add others via USB if you want 
(although it will never be high performance), 2 USB, HDMI output, GPIO, 
boot from SD card. Even runs FreeBSD (although still being developed).


___
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 your favorite board for a micro system?

2013-03-09 Thread iamatt
On Sat, Mar 9, 2013 at 8:50 AM, Arthur Chance free...@qeng-ho.org wrote:
 On 03/08/13 23:53, Erik Nørgaard wrote:

 Hi!

 What is your favorite mini/micro/nano/pico-itx platform for home projects?

 I currently run a home server on an Intel mini-itx board but was looking
 around for something fun to play with with the following specs:

 - mini-itx or smaller, low profile
 - fanless
 - low power 12V external PSU
 - 1 LAN, preferably 2
 - 2 USB2/3
 - Flash bootable, but with option for hdd boot
 - GPIO would be fun
 - hdmi out would be nice

 I have tried VIA boards but found they were flacky...

 Any suggestion regarding ARM vs Intel based?


 Depending exactly how small you want it, how about a Raspberry Pi Model B?
 Dirt cheap, 1 LAN, but you can add others via USB if you want (although it
 will never be high performance), 2 USB, HDMI output, GPIO, boot from SD
 card. Even runs FreeBSD (although still being developed).



Hello,

Been running Freebsd on an intel D525 as suggested by a mailing list
user over a year ago.

This box has been running great with the exception of 9.1 not
detecting the onboard ethernet.  Currently running jails on it,  http,
mail,  mincraft server for the kids, and some others.

FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
CPU: Intel(R) Atom(TM) CPU D525   @ 1.80GHz (1800.10-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x106ca  Family = 6  Model = 1c  Stepping = 10
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x40e31dSSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant, performance statistics


I also have a raspberry pi B which I use to stream video and music
from a jail on my 525 but it is not freebsd.

OpenBSD-current on soekris 5501 has been running flawless for years too

Lastly I have a beagleboard system which I won that is not doing
anything but I do hear that netbsd guys can boot on it.  Haven't tried
atm.

There are options out there for sure.  The D525 was under 100 USD ,
not including case and some misc. parts.
___
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 your favorite board for a micro system?

2013-03-08 Thread Erik Nørgaard

Hi!

What is your favorite mini/micro/nano/pico-itx platform for home projects?

I currently run a home server on an Intel mini-itx board but was looking 
around for something fun to play with with the following specs:


- mini-itx or smaller, low profile
- fanless
- low power 12V external PSU
- 1 LAN, preferably 2
- 2 USB2/3
- Flash bootable, but with option for hdd boot
- GPIO would be fun
- hdmi out would be nice

I have tried VIA boards but found they were flacky...

Any suggestion regarding ARM vs Intel based?

Thanks, Erik

--
M: +34 666 334 818
T: +34 915 211 157
___
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 your favorite board for a micro system?

2013-03-08 Thread Zane C. B-H.
On Sat, 09 Mar 2013 00:53:27 +0100
Erik Nørgaard norga...@locolomo.org wrote:

 Hi!
 
 What is your favorite mini/micro/nano/pico-itx platform for home
 projects?
 
 I currently run a home server on an Intel mini-itx board but was
 looking around for something fun to play with with the following
 specs:
 
 - mini-itx or smaller, low profile
 - fanless
 - low power 12V external PSU
 - 1 LAN, preferably 2
 - 2 USB2/3
 - Flash bootable, but with option for hdd boot
 - GPIO would be fun
 - hdmi out would be nice
 
 I have tried VIA boards but found they were flacky...
 
 Any suggestion regarding ARM vs Intel based?

Can't think of any off hand in that small of form factor, but I
strongly suggest looking to see what you can find running an Intel
Atom. I've been very happy with those and their related chipsets so
far for microATX boards.


signature.asc
Description: PGP signature


Re: What is your favorite board for a micro system?

2013-03-08 Thread Doug Hardie

On 8 March 2013, at 15:53, Erik Nørgaard norga...@locolomo.org wrote:

 Hi!
 
 What is your favorite mini/micro/nano/pico-itx platform for home projects?
 
 I currently run a home server on an Intel mini-itx board but was looking 
 around for something fun to play with with the following specs:
 
 - mini-itx or smaller, low profile
 - fanless
 - low power 12V external PSU
 - 1 LAN, preferably 2
 - 2 USB2/3
 - Flash bootable, but with option for hdd boot
 - GPIO would be fun
 - hdmi out would be nice
 
 I have tried VIA boards but found they were flacky...
 
 Any suggestion regarding ARM vs Intel based?

Look at the Mac Mini.  Only has one LAN though.  It does have a fan but I have 
never had it come on.  Runs 9.1 (amd or i386) although booting is currently a 
challenge.  I am working on that.  It does require 120 VAC though.
___
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


process eating up all memory - what should happen next?

2013-03-07 Thread Anton Shterenlikht
I have a process that eats up al memory,
in my case science/paraview if I try to
analyse a large model. What should FreeBSD
do when a process tries to use all RAM or more?

I my case I get a complete freeze, can't even
login from the console, and requiring a cold
reboot. I guess this is not supposed to happen,
but what is supposed to happen in situations like this?

This is on ia64, so it might be something to
do with instability there.

Thanks

Anton
___
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: process eating up all memory - what should happen next?

2013-03-07 Thread Polytropon
On Thu, 7 Mar 2013 10:01:03 GMT, Anton Shterenlikht wrote:
 I have a process that eats up al memory,
 in my case science/paraview if I try to
 analyse a large model. What should FreeBSD
 do when a process tries to use all RAM or more?

In this case, the swap space would be used, until the
system runs out of swap space.



 I my case I get a complete freeze, can't even
 login from the console, and requiring a cold
 reboot. I guess this is not supposed to happen,
 but what is supposed to happen in situations like this?

A normal reboot (including a proper shutdown) should
at least be possible. If the machine seems to freeze
entirely, this simply looks wrong, so maybe it's more
than just eating all the RAM?

You could try to impose a resource limit, see man limits
for details, so you could trigger the undesired behaviour
while e. g. only 50% of the available RAM is being used
by _that_ process (and therefor still leaving enough
resources for other system and user processes). You could
also monitor resource consumption with tools like top,
htop, vmstat or systat in adjacent xterms while you run
the test, seeing trouble pile up...



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


Re: process eating up all memory - what should happen next?

2013-03-07 Thread Nikos Vassiliadis

On 7/3/2013 12:17 μμ, Polytropon wrote:

On Thu, 7 Mar 2013 10:01:03 GMT, Anton Shterenlikht wrote:

I have a process that eats up al memory,
in my case science/paraview if I try to
analyse a large model. What should FreeBSD
do when a process tries to use all RAM or more?


In this case, the swap space would be used, until the
system runs out of swap space.




I my case I get a complete freeze, can't even
login from the console, and requiring a cold
reboot. I guess this is not supposed to happen,
but what is supposed to happen in situations like this?


A normal reboot (including a proper shutdown) should
at least be possible. If the machine seems to freeze
entirely, this simply looks wrong, so maybe it's more
than just eating all the RAM?

You could try to impose a resource limit, see man limits
for details, so you could trigger the undesired behaviour
while e. g. only 50% of the available RAM is being used
by _that_ process (and therefor still leaving enough
resources for other system and user processes). You could
also monitor resource consumption with tools like top,
htop, vmstat or systat in adjacent xterms while you run
the test, seeing trouble pile up...





I think Anton is interested in the system's behavior when there
is no enforced limit. Processes tend to be killed quite quickly
when there is no on-disk swap backing.


root@awethu:/root # swapinfo
Device  1K-blocks UsedAvail Capacity
root@awethu:/root # nice python -c 'a = [f for f in range(8000)]'
Killed


When on-disk swap backing exists and multiple processes are competing
for memory things are are not that straightforward. I think you hit
a bug on ia64. Could you test the behavior using the above program
and report back?

I would run top in one terminal(so i can monitor and kill the program)
and I would use a second terminal to run the program using increasingly
larger values. Also, I wouldn't try that under X, at least i would test
first without X...

HTH, Nikos

___
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

chmod... what am I missing?

2013-03-04 Thread Ronald F. Guilmette

I must not be attending the Right conferences, or else the Right parties,
because I don't get the joke.

Could somebody please explain to me the meaning of the BUGS section of the
chmod(1) man page, as distributed with 9.1-RELEASE?
___
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: chmod... what am I missing?

2013-03-04 Thread Bas Smeelen

On 03/04/2013 12:40 PM, Ronald F. Guilmette wrote:

I must not be attending the Right conferences, or else the Right parties,
because I don't get the joke.

Could somebody please explain to me the meaning of the BUGS section of the
chmod(1) man page, as distributed with 9.1-RELEASE?


http://www.mail-archive.com/svn-src-all@freebsd.org/msg04124.html



___
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


Can anyone direct me to some information about what WITHOUT_PROFILE=YES actually means.

2013-02-04 Thread dweimer


I have ran into a recent issue, after a lot of trouble shooting I have 
narrowed it down to something in my /etc/src.conf


the full file just has:
WITHOUT_BIND=YES
WITHOUT_NTP=YES
WITHOUT_FLOPPY=YES
WITHOUT_FREEBSD_UPDATE=YES
WITHOUT_PROFILE=YES

Of course bind and ntp are added in by ports after the system is built, 
everything compiles, I have a very specific issue with one thing not 
working on an installed port, with no apparent error.  To make a long 
story short though one of my build attempts, I forgot to copy the 
/etc/src.conf file to the new system.  And well the problem was gone, 
when I discovered that's what I did differently, I commented out all 
lines on a different system rebuilt and installed, sure enough it 
worked.  Looking at the src.conf options that I was using, I can't see 
how any option other than the WITHOUT_PROFILE could possibly be causing 
the problem.  Though I am in the process of building systems with 
different options removed in an attempt to find out for sure.


The WITHOUT_PROFILE was added from a help document I read some time ago 
about upgrading from source, and hasn't caused any problems before now.  
I know it instructs the build process to avoid compiling profiled 
libraries.  But my searching hasn't been able to lead me to what the 
difference is between a profiled and non-profiled library is.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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: Can anyone direct me to some information about what WITHOUT_PROFILE=YES actually means.

2013-02-04 Thread Michael Powell
dweimer wrote:

 
 I have ran into a recent issue, after a lot of trouble shooting I have
 narrowed it down to something in my /etc/src.conf
 
 the full file just has:
 WITHOUT_BIND=YES
 WITHOUT_NTP=YES
 WITHOUT_FLOPPY=YES
 WITHOUT_FREEBSD_UPDATE=YES
 WITHOUT_PROFILE=YES
 
 Of course bind and ntp are added in by ports after the system is built,
 everything compiles, I have a very specific issue with one thing not
 working on an installed port, with no apparent error.  To make a long
 story short though one of my build attempts, I forgot to copy the
 /etc/src.conf file to the new system.  And well the problem was gone,
 when I discovered that's what I did differently, I commented out all
 lines on a different system rebuilt and installed, sure enough it
 worked.  Looking at the src.conf options that I was using, I can't see
 how any option other than the WITHOUT_PROFILE could possibly be causing
 the problem.  Though I am in the process of building systems with
 different options removed in an attempt to find out for sure.
 
 The WITHOUT_PROFILE was added from a help document I read some time ago
 about upgrading from source, and hasn't caused any problems before now.
 I know it instructs the build process to avoid compiling profiled
 libraries.  But my searching hasn't been able to lead me to what the
 difference is between a profiled and non-profiled library is.
 

I'm not a code hacker, so take with pinch of salt. In the man page for 
src.conf it declares that variable values would be ignored, and of course I 
missed that. While I have WITHOUT_PROFILE= true in my src.conf, the correct 
use is simply WITHOUT_PROFILE by itself. Since I have never experienced any 
form of difficulty perhaps the difference here is the quotation marks. Maybe 
something is malfunctioning from the .  See if removing these helps?

Also, from what I understand what's in src.conf should only apply to 
building the system, e.g code located under /usr/src. I've always taken this 
to mean it should not apply to building anything in ports. 

My limited understanding is that when you build profiled code you are 
inserting a little extra debug code which is utilized to measure the time 
spent within internal structures, such as functions and other sub-routines. 
Not that I even know how such info would get extracted at runtime, 
programmers use this to look for areas within their code that hog resources 
time-wise and zero in on those to concentrate on makeing more 
efficient/faster.

-Mike


___
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: Can anyone direct me to some information about what WITHOUT_PROFILE=YES actually means.

2013-02-04 Thread dweimer

On 02/04/2013 3:25 pm, Michael Powell wrote:

dweimer wrote:



I have ran into a recent issue, after a lot of trouble shooting I 
have

narrowed it down to something in my /etc/src.conf

the full file just has:
WITHOUT_BIND=YES
WITHOUT_NTP=YES
WITHOUT_FLOPPY=YES
WITHOUT_FREEBSD_UPDATE=YES
WITHOUT_PROFILE=YES

Of course bind and ntp are added in by ports after the system is 
built,

everything compiles, I have a very specific issue with one thing not
working on an installed port, with no apparent error.  To make a long
story short though one of my build attempts, I forgot to copy the
/etc/src.conf file to the new system.  And well the problem was gone,
when I discovered that's what I did differently, I commented out all
lines on a different system rebuilt and installed, sure enough it
worked.  Looking at the src.conf options that I was using, I can't 
see
how any option other than the WITHOUT_PROFILE could possibly be 
causing

the problem.  Though I am in the process of building systems with
different options removed in an attempt to find out for sure.

The WITHOUT_PROFILE was added from a help document I read some time 
ago
about upgrading from source, and hasn't caused any problems before 
now.

I know it instructs the build process to avoid compiling profiled
libraries.  But my searching hasn't been able to lead me to what the
difference is between a profiled and non-profiled library is.



I'm not a code hacker, so take with pinch of salt. In the man page for
src.conf it declares that variable values would be ignored, and of 
course I
missed that. While I have WITHOUT_PROFILE= true in my src.conf, the 
correct
use is simply WITHOUT_PROFILE by itself. Since I have never 
experienced any
form of difficulty perhaps the difference here is the quotation marks. 
Maybe

something is malfunctioning from the .  See if removing these helps?

Also, from what I understand what's in src.conf should only apply to
building the system, e.g code located under /usr/src. I've always 
taken this

to mean it should not apply to building anything in ports.

My limited understanding is that when you build profiled code you are
inserting a little extra debug code which is utilized to measure the 
time
spent within internal structures, such as functions and other 
sub-routines.

Not that I even know how such info would get extracted at runtime,
programmers use this to look for areas within their code that hog 
resources

time-wise and zero in on those to concentrate on makeing more
efficient/faster.

-Mike



if I remember right, from information about src.conf, I believe that

WITHOUT_PROFILE
WITHOUT_PROFILE=
WITHOUT_PROFILE=true
WITHOUT_PROFILE=YES
...

are all functionally equivalent as it does ignore the rest, though I 
could be wrong and this could be my problem.  I do know for sure that 
the WIHTOUT_BIND, WITHOUT_NTP, are working correctly as they are gone 
form the system, prior to me installing the versions from ports after 
the build/install world.


Yes this does apply only to system. With the above options buildworld / 
buildkernel / install kernel / install world/ mergemaster / reinstall 
all ports, I have my problem.  Remove all options, repeat no problem.  
Remove just WITHOUT_PROFILE repeat again, problem is back.  So I was 
wrong as to that line being the cause, at least by itself.


I did a lot of initial testing with port option changes, and changes to 
make.conf on my system, thought maybe it was clang, etc.  Didn't get 
anywhere, the system is running on a ZFS boot partition, and as a last 
effort I tried on UFS.  It worked, but I also realized I forgot the 
src.conf settings.  I copied my ZFS systems boot environment and rebuilt 
without src.conf, it now works as well.


Currently doing a fresh install on ZFS to build from ground up with the 
same process used originally, except without the src.conf and confirm I 
can repeat its success.  Then I can do some more testing with adding 
options back into the src.conf to try and narrow down which of those 
options is causing the problem.  If I can figure out which one, or 
combination of them is the cause, then I will hopefully have something 
that can lead to someone with more knowledge than I have being able to 
discover why its having the problem.


The port doesn't fail to compile it installs fine, and 99.5% of it runs 
perfect, just one little thing that I need to work hangs up for about 5 
minutes, before timing out, but doesn't log an error, even with insanely 
verbose debugging, it acts as if it completed but it didn't.


I posted another message about the specific problem several days ago, 
before I had it figured out to be caused somehow by something in the 
src.conf file.  I am trying to run Squid (version 3.2.6 is the current 
port) in reverse proxy, the problem is only when doing a post via HTTPS 
above a certain size, somewhere between 2k and 3.2k is where it begins.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net

Re: Cronjob Cvsup - What?

2013-01-27 Thread Zyumbilev, Peter


On 27/01/2013 06:34, Lowell Gilbert wrote:
 If you needed version control features on your ports tree (especially if
 you were regularly contributing changes to ports), getting and updating
 your tree through subversion would have some extra features you might
 want, but it doesn't sound as if that is the case for you.
 
 Unless you have a specific reason why portsnap doesn't fit your use
 case, it's definitely the way to go for just keeping a ports tree
 updated regularly.


Last 10 years I am using cvsup. Any good guide for the transition to
subversion  ?

For ports is easy(portsnap), but I for system update I still have
problems saying good bye to old habits and I still use cvsup...:-)

Peter
___
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: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
On 27/01/2013 00:11, W. D. wrote:
 What would be the best Cron command to keep ports updated on a daily
 basis?

Try this as a crontab entry:

0  3  *  *  *  *  /usr/sbin/portsnap cron update

Two points to note:

1) The 'cron' verb is important for anyone setting up an automated job
like this.  It causes portsnap to wait for a random number of seconds
(but less than 1 hour) before connecting to the portsnap server.  Since
the tendency is for people to schedule cron jobs to happen on the hour,
this helps to avoid everyone connecting at once and smooths out the
server load.

2) This assumes that you have previously run

   portsnap fetch extract

to get yourself a portsnap-ready copy of the ports tree.  You only need
to do that once, but you should move aside any pre-existing copy of
/usr/ports obtained by any means other than portsnap(8) before you do
(but keep anything under /usr/ports/distfiles and maybe
/usr/ports/packages).  Something like:

   cd /usr
   mv ports ports.old
   mkdir ports
   mv ports.old/distfiles ports/distfiles
   mv ports.old/packages ports/packages
   portsnap fetch extract

Although this may be complicated if any of /usr/ports,
/usr/ports/distfiles or /usr/ports/packages are on a separate partition
or ZFS.

I say 'move aside' due to the caution imbued by having been a
professional sysadmin for more years than I care to remember.  If you
are still convinced of your own infallibility, then you might find rm(1)
an acceptable alternative.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matt...@infracaninophile.co.uk



signature.asc
Description: OpenPGP digital signature


Re: Cronjob Cvsup - What?

2013-01-27 Thread Mike Clarke
On Sunday 27 Jan 2013 09:46:51 Matthew Seaman wrote:

 to get yourself a portsnap-ready copy of the ports tree.  You only need
 to do that once, but you should move aside any pre-existing copy of
 /usr/ports obtained by any means other than portsnap(8) before you do
 (but keep anything under /usr/ports/distfiles and maybe
 /usr/ports/packages).  Something like:
 
cd /usr
mv ports ports.old
mkdir ports
mv ports.old/distfiles ports/distfiles
mv ports.old/packages ports/packages
portsnap fetch extract
 
 Although this may be complicated if any of /usr/ports,
 /usr/ports/distfiles or /usr/ports/packages are on a separate partition
 or ZFS.

I suppose the best approach with ZFS would be to make a snapshot immediately 
prior to running portsnap.

-- 
Mike Clarke
___
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: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
 SVN
 mirror using your chosen protocol:

svn co {proto}://{svn-mirror}/base/{branch} /usr/src

 So, what I would do to checkout 9.1-STABLE from the us-east mirror
 using svn as the protocol is:

svn co svn://svn0.us-east.FreeBSD.org/base/stable/9 /usr/src

 Then wait for that to complete, as it's going to download a few
 hundred MB of code.

Now, you generally only need to do that step one time.  For regular
updates to the sources, just run:

 cd /usr/src
 svn up

This will re-use all the settings you chose above.  If you want to
change any of the settings then use 'svn switch' from the top to the
checked-out tree (ie. cd /usr/src) -- this will avoid downloading the
whole repo all over again...

svn help switch   -- read for clues

svn switch ^stable/8   -- change to the 8.4-STABLE sources

svn switch --relocate svn:// http://  -- use HTTP instead

svn switch --relocate svn://svn0.us-east.FreeBSD.org \
svn://svn0.us-west.FreeBSD.org  -- switch to a different
   mirror

To see what setting are currently in force:

svn info

Working out how to apply these instructions to /usr/ports or /usr/doc is
left as an exercise.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
On 27/01/2013 10:07, Mike Clarke wrote:

 I suppose the best approach with ZFS would be to make a snapshot immediately 
 prior to running portsnap.

Yes.  That would do the trick quite neatly.  In fact, snapshot before
each time you run portsnap.

Cheers

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matt...@infracaninophile.co.uk



signature.asc
Description: OpenPGP digital signature


Re: Cronjob Cvsup - What?

2013-01-27 Thread Zyumbilev, Peter


On 27/01/2013 12:46, Matthew Seaman wrote:

   Cheers,
 
   Matthew
 


Matthew,

Fantastic howto ! Thanks ! Really a good job...as usual :-)

Peter
___
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: Cronjob Cvsup - What?

2013-01-27 Thread MFV
 releng/9.0 releng/8.3 releng/7.4 for other supported
 release versions.
 
  Don't be fooled into pulling down release/9.1.0 or the like --
  this is not a *branch* but a *snapshot*.  If you think you want
  release/9.1.0 then you really want releng/9.1 instead.
 
   4) Make sure /usr/src is empty.  Pre-existing files can cause you
  grief at some unexpected later date even if they don't cause the
  initial checkout to fail.
 
   5) Put it all together.  Run a command like so to check out the
  content of /usr/src for your chosen branch from your chosen SVN
  mirror using your chosen protocol:
 
 svn co {proto}://{svn-mirror}/base/{branch} /usr/src
 
  So, what I would do to checkout 9.1-STABLE from the us-east mirror
  using svn as the protocol is:
 
 svn co svn://svn0.us-east.FreeBSD.org/base/stable/9 /usr/src
 
  Then wait for that to complete, as it's going to download a few
  hundred MB of code.
 
 Now, you generally only need to do that step one time.  For regular
 updates to the sources, just run:
 
  cd /usr/src
  svn up
 
 This will re-use all the settings you chose above.  If you want to
 change any of the settings then use 'svn switch' from the top to the
 checked-out tree (ie. cd /usr/src) -- this will avoid downloading the
 whole repo all over again...
 
 svn help switch   -- read for clues
 
 svn switch ^stable/8   -- change to the 8.4-STABLE sources
 
 svn switch --relocate svn:// http://  -- use HTTP instead
 
 svn switch --relocate svn://svn0.us-east.FreeBSD.org \
 svn://svn0.us-west.FreeBSD.org  -- switch to a different
mirror
 
 To see what setting are currently in force:
 
 svn info
 
 Working out how to apply these instructions to /usr/ports or /usr/doc is
 left as an exercise.
 
   Cheers,
 
   Matthew
___
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: Cronjob Cvsup - What?

2013-01-27 Thread Steve O'Hara-Smith
On Sun, 27 Jan 2013 09:51:12 -0500
MFV mrk...@acm.org wrote:

 The only downside with svn seems to be the 728 MB footprint.

With hard disc space running at around 10c per gigabyte it's a
minor issue.

-- 
Steve O'Hara-Smith st...@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: Cronjob Cvsup - What?

2013-01-27 Thread Robert Huff

Steve O'Hara-Smith writes:

   The only downside with svn seems to be the 728 MB footprint.
  
   With hard disc space running at around 10c per gigabyte it's a
  minor issue.

Doesn't that depend on whose money it is?


Robert Huff

___
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: Cronjob Cvsup - What?

2013-01-27 Thread Warren Block

On Sun, 27 Jan 2013, Matthew Seaman wrote:


 2) Choose a protocol for access the SVN servers.  Your choices in
order of preference are

svn://
https://
http://

Use svn:// for best performance.  If you're concerned about MITM
attacks injecting trojans into the FreeBSD sources, then use
https and be sure to verify the certificate hashes on first
connection.  Otherwise, if you're stuck behind a restrictive
firewall, use http://


HTTPS is preferred.  The SVN mirrors section of the Handbook will soon 
reflect that.


Performance should not be very different from svn://.
___
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: Cronjob Cvsup - What?

2013-01-27 Thread RW
On Sun, 27 Jan 2013 09:51:12 -0500
MFV wrote:

 Hello Matthew,
 
 Thanks for an outstanding piece of documentation.  It resolves a
 number of concerns I had and convinced me to move from portsnap where
 I discovered an apparent bug  that gave me security concerns.  More
 specifically I manually edited /usr/ports/UPDATING and portsnap did
 not recognise the change and download a proper copy.

I don't see why that's a problem. The function of portsnap update is
to update files in the tree that have been updated, deleted or added
in the repository. Resynchronising the tree and it's metadata with the
snapshot is what portsnap extract is for.  
___
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


Cronjob Cvsup - What?

2013-01-26 Thread W. D.
According to:

  http://www.freebsd.org/news/2012-compromise.html

Cvsup is deprecated.  If I have a Cron entry like:

#-
#Min   HrDOM   Mnth  DOW   Command

#   At 3:46 in the morning, everyday, as root, update the ports tree:
46 3 * * * /usr/local/bin/cvsup   -h   cvsup12.FreeBSD.org  
/usr/share/examples/cvsup/ports-supfile 
#-

What should I use: freebsd-update, Subversion, portsnap, or what?

What would be the best Cron command to keep ports updated on a daily
basis?

Thanks for any help you can provide.







Start Here to Find It Fast!™ - http://www.US-Webmasters.com/best-start-page/
$9.99 Domain Names - http://domains.us-webmasters.com/

___
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: Cronjob Cvsup - What?

2013-01-26 Thread Lowell Gilbert
W. D. w...@us-webmasters.com writes:

 According to:

   http://www.freebsd.org/news/2012-compromise.html

 Cvsup is deprecated.  If I have a Cron entry like:

 #-
 #Min   HrDOM   Mnth  DOW   Command

 #   At 3:46 in the morning, everyday, as root, update the ports tree:
 46 3 * * * /usr/local/bin/cvsup   -h   
 cvsup12.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile 
 #-

 What should I use: freebsd-update, Subversion, portsnap, or what?

 What would be the best Cron command to keep ports updated on a daily
 basis?

portsnap is almost certainly the best answer for you.

freebsd-update is for the base system, not ports. 

If you needed version control features on your ports tree (especially if
you were regularly contributing changes to ports), getting and updating
your tree through subversion would have some extra features you might
want, but it doesn't sound as if that is the case for you.

Unless you have a specific reason why portsnap doesn't fit your use
case, it's definitely the way to go for just keeping a ports tree
updated regularly.
___
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 the timeout of TCP in freeBSD?

2013-01-21 Thread Adam Vande More
On Sun, Jan 20, 2013 at 9:38 PM, Karthik Reddy 22karthikre...@gmail.comwrote:

 When I change the kern.hz to 50, the timeout is happening at 76sec. Could
 you please elaborate on kern.hz and how does it effect timing.


Lower frequency so less opportunities for errors to be introduced, although
you may have greater network latency at that setting.

Some setting under sysctl kern.timecounter and/or sysctl kern.eventtimer
should be able to allow the guest to run better if the hypervisor can't do
it.

-- 
Adam Vande More
___
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 the timeout of TCP in freeBSD?

2013-01-20 Thread Karthik Reddy
I was doing a experiment on FreeBSD for testing TCP timeout and RTO. OS is
being run from two different VMware versions 4.0 and 5.0.

Present Scenario: VMware Player 4.0
I'll start a telnet session to a non-existing system in the network. When I
look at the tcpdump the RTO starts at every 3 seconds and after some
exponential backoff starts. In this scenario after 75 seconds the TCP gives
up and tells me that there is no system existing with the IP and telnet
session terminates.

Next Scenario: VMware Player 5.0
In this scenario, I did the same but the RTO starts at 5 sec and then
varies. In this scenario, it takes more than 120 seconds for telnet session
to tell me that there is no system is available in the network.

I have seen sysctl in both VM's. net.inet.tcp.keepinit = 75000

Is this problem something related to timing of the VM's or any other issue?

-- 
Karthik Reddy
I'm not the best, but I'm not like the Rest
___
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 the timeout of TCP in freeBSD?

2013-01-20 Thread Adam Vande More
On Sun, Jan 20, 2013 at 8:50 AM, Karthik Reddy 22karthikre...@gmail.comwrote:

 I was doing a experiment on FreeBSD for testing TCP timeout and RTO. OS is
 being run from two different VMware versions 4.0 and 5.0.

 Present Scenario: VMware Player 4.0
 I'll start a telnet session to a non-existing system in the network. When I
 look at the tcpdump the RTO starts at every 3 seconds and after some
 exponential backoff starts. In this scenario after 75 seconds the TCP gives
 up and tells me that there is no system existing with the IP and telnet
 session terminates.

 Next Scenario: VMware Player 5.0
 In this scenario, I did the same but the RTO starts at 5 sec and then
 varies. In this scenario, it takes more than 120 seconds for telnet session
 to tell me that there is no system is available in the network.

 I have seen sysctl in both VM's. net.inet.tcp.keepinit = 75000

 Is this problem something related to timing of the VM's or any other issue?


What's the wallclock delta during such a test?  Have you tried setting
'kern.hz=50' or fiddling other TC options?  UP VM's tend to keep time
better than other multicore configs.

-- 
Adam Vande More
___
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 the timeout of TCP in freeBSD?

2013-01-20 Thread Karthik Reddy
When I change the kern.hz to 50, the timeout is happening at 76sec. Could
you please elaborate on kern.hz and how does it effect timing.


On Sun, Jan 20, 2013 at 10:12 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Sun, Jan 20, 2013 at 8:50 AM, Karthik Reddy 
 22karthikre...@gmail.comwrote:

 I was doing a experiment on FreeBSD for testing TCP timeout and RTO. OS is
 being run from two different VMware versions 4.0 and 5.0.

 Present Scenario: VMware Player 4.0
 I'll start a telnet session to a non-existing system in the network. When
 I
 look at the tcpdump the RTO starts at every 3 seconds and after some
 exponential backoff starts. In this scenario after 75 seconds the TCP
 gives
 up and tells me that there is no system existing with the IP and telnet
 session terminates.

 Next Scenario: VMware Player 5.0
 In this scenario, I did the same but the RTO starts at 5 sec and then
 varies. In this scenario, it takes more than 120 seconds for telnet
 session
 to tell me that there is no system is available in the network.

 I have seen sysctl in both VM's. net.inet.tcp.keepinit = 75000

 Is this problem something related to timing of the VM's or any other
 issue?


 What's the wallclock delta during such a test?  Have you tried setting
 'kern.hz=50' or fiddling other TC options?  UP VM's tend to keep time
 better than other multicore configs.

 --
 Adam Vande More




-- 
Karthik Reddy
I'm not the best, but I'm not like the Rest
___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Jan 16 22:08:13 2013
 Date: Wed, 16 Jan 2013 22:04:15 -0600
 From: Tim Daneliuk tun...@tundraware.com
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: OT: What Might Break getbostbyname() ?

 This is not really a FreeBSD problem ... in fact, it's happening on
 a Solaris 10 machine. But because the TCP stack and its userland
 interface came from BSD, I am hoping some kind soul might have
 an insight into what's going on ...

 The machine in question does DNS lookups fine via dig or nslookup.
 I believe these connect directly to the DNS server(s) specified
 in /etc/resolv.conf.

 However, any program that uses gethostbyname() - like ping - fails
 and says it cannot resolve the name.

 I'm looking for hints here on why or how gethostbyname() and/or
 the network stack could get clobbered so as to not be able to talk
 to the DNS servers which I know are reachable via dig and nslookup.

dig and nslookup use THEIR OWN resolver routines, =not= the 'standard
library' routines.  Something that fouls the library routines will not
affect dig and nslookup.

Given this is Solaris, check /etc/nis.switch (may not be the exactly
correct name, but close -- I haven't used Solaris in a decade). check
both the file content, and permissions.

You may have to run truss on ping to see what it's getting wrong.


___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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


OT: What Might Break getbostbyname() ?

2013-01-16 Thread Tim Daneliuk

This is not really a FreeBSD problem ... in fact, it's happening on
a Solaris 10 machine. But because the TCP stack and its userland
interface came from BSD, I am hoping some kind soul might have
an insight into what's going on ...

The machine in question does DNS lookups fine via dig or nslookup.
I believe these connect directly to the DNS server(s) specified
in /etc/resolv.conf.

However, any program that uses gethostbyname() - like ping - fails
and says it cannot resolve the name.

I'm looking for hints here on why or how gethostbyname() and/or
the network stack could get clobbered so as to not be able to talk
to the DNS servers which I know are reachable via dig and nslookup.

TIA,
--

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: OT: What Might Break getbostbyname() ?

2013-01-16 Thread Dan Nelson
In the last episode (Jan 16), Tim Daneliuk said:
 This is not really a FreeBSD problem ... in fact, it's happening on a
 Solaris 10 machine.  But because the TCP stack and its userland interface
 came from BSD, I am hoping some kind soul might have an insight into
 what's going on ...

Solaris hasn't used a BSD TCP stack for many many years afaik..

 The machine in question does DNS lookups fine via dig or nslookup.  I
 believe these connect directly to the DNS server(s) specified in
 /etc/resolv.conf.
 
 However, any program that uses gethostbyname() - like ping - fails and
 says it cannot resolve the name.
 
 I'm looking for hints here on why or how gethostbyname() and/or the
 network stack could get clobbered so as to not be able to talk to the DNS
 servers which I know are reachable via dig and nslookup.

First, check /etc/nsswitch.conf and verify that dns is listed on the
hosts: line.  Next, try disabling nscd (svcadm disable
name-service-cache) , and then running truss ping www.google.com (make
sure to reenable nscd when you're done debugging).  You should see syscalls
to open /etc/resolv.conf, read the contents, and then open a socket to the
nameserver listed in that file.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Erich Dollansky
Hi,

On Sun, 13 Jan 2013 01:36:21 -0500
kpn...@pobox.com wrote:

 On Sun, Jan 13, 2013 at 08:09:00AM +0700, Erich Dollansky wrote:
  For what is glabel then still good?
 
 It is still useful for partition schemes that don't have labels (eg,
 MBR) AND the filesystem used doesn't support labels itself AND the
 end of the partition does not get touched by the filesystem.
 
 Note that UFS in FreeBSD does support labels. I believe it is the '-L'
 option to newfs. ZFS does not in this sense, and ZFS touches the end
 of the partition.
 
 That's a long list of conditions. So, really, glabel should typically
 be avoided.
 

thanks for the explaination. I am not able to use the labels outside
gpart but if they work for me - as it currently looks like - I will
stick with them.

I will later report in more detail when I have finished my scripts.

Erich
___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Warren Block

On Sun, 13 Jan 2013, kpn...@pobox.com wrote:


On Sun, Jan 13, 2013 at 08:09:00AM +0700, Erich Dollansky wrote:

For what is glabel then still good?


It is still useful for partition schemes that don't have labels (eg, MBR)
AND the filesystem used doesn't support labels itself AND the end of the
partition does not get touched by the filesystem.


But it doesn't matter what the filesystem does.  Access to the last 
block is not allowed by the label device.  The filesystem does not even 
see it.  See my reply in -fs:

http://lists.freebsd.org/pipermail/freebsd-fs/2013-January/016113.html
___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Warren Block

On Sun, 13 Jan 2013, Warren Block wrote:


On Sun, 13 Jan 2013, kpn...@pobox.com wrote:


On Sun, Jan 13, 2013 at 08:09:00AM +0700, Erich Dollansky wrote:

For what is glabel then still good?


It is still useful for partition schemes that don't have labels (eg, MBR)
AND the filesystem used doesn't support labels itself AND the end of the
partition does not get touched by the filesystem.


But it doesn't matter what the filesystem does.  Access to the last block is 
not allowed by the label device.  The filesystem does not even see it.  See 
my reply in -fs:

http://lists.freebsd.org/pipermail/freebsd-fs/2013-January/016113.html


Sorry, forgot to mention that one possible use for glabel is to label a 
swap partition on an MBR drive.


  # glabel label myswap /dev/ada0s1b

And then in /etc/fstab:

  /dev/label/myswap noneswapsw  0   0

One block is used for metadata at the end of ada0s1b, but it's safe from 
overwriting because /dev/label/myswap does not include that block.

___
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


gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Erich Dollansky
Hi,

in general, I try to create the partitions with gpart, add a label with
glabel and put a filesystem. I think that I am doing something very
simple the wrong way but I cannot see the error.

I try to do it in the following way:

# gpart destroy -F da0
# gpart create -s GPT da0
# gpart add -t freebsd-boot -s 64k da0
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0
# gpart add -t freebsd-ufs -s 512m -a 4k -l Toshiba16GB2boot da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2root da0
# gpart add -t freebsd-swap -s 10m -a 4k -l Toshiba16GB2swap da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2var da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2tmp da0
# gpart add -t freebsd-ufs -a 4k -l Toshiba16GB2usr da0

Label the partitions:

# glabel label Toshiba16GB2boot /dev/da0p2
# glabel label Toshiba16GB2root /dev/da0p3
# glabel label Toshiba16GB2swap /dev/da0p4
# glabel label Toshiba16GB2var /dev/da0p5
# glabel label Toshiba16GB2tmp /dev/da0p6
# glabel label Toshiba16GB2usr /dev/da0p7

And put a file system onto the partitions.

# newfs /dev/label/Toshiba16GB2boo
# newfs /dev/label/Toshiba16GB2roo
# newfs /dev/label/Toshiba16GB2var
# newfs /dev/label/Toshiba16GB2tmp
# newfs /dev/label/Toshiba16GB2usr

But newfs on the first partition results in this:

Filesystem size 15  minimum size of 48

When I ran the newfs directly on the device, I get this:

[X220]/home/erich (root)  newfs /dev/da0p2
/dev/da0p2: 512.0MB (1048576 sectors) block size 32768, fragment size
4096 using 4 cylinder groups of 128.03MB, 4097 blks, 16512 inodes.
super-block backups (for fsck -b #) at:
 192, 262400, 524608, 786816

Of course, this is what I expect.

I believe that it is something simple but I am not able to see my
mistake.

Erich
___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Mardorf Ralf
FWIW I could not partition using the FreeBSD 9.0 amd64 install DVD. I 
partitioned with the PcBSD  8.2 DVD and then tried to install from 9.0, but it 
anyway caused partitioning issues.
After that I partitioned using FreeBSD 8.3, installed 8.3 and then updated to 
9.1.

Regards,
Ralf

___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Warren Block

On Sat, 12 Jan 2013, Erich Dollansky wrote:


in general, I try to create the partitions with gpart, add a label with
glabel and put a filesystem. I think that I am doing something very
simple the wrong way but I cannot see the error.

I try to do it in the following way:

# gpart destroy -F da0
# gpart create -s GPT da0
# gpart add -t freebsd-boot -s 64k da0
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0
# gpart add -t freebsd-ufs -s 512m -a 4k -l Toshiba16GB2boot da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2root da0
# gpart add -t freebsd-swap -s 10m -a 4k -l Toshiba16GB2swap da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2var da0
# gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2tmp da0
# gpart add -t freebsd-ufs -a 4k -l Toshiba16GB2usr da0

Label the partitions:

# glabel label Toshiba16GB2boot /dev/da0p2
# glabel label Toshiba16GB2root /dev/da0p3
# glabel label Toshiba16GB2swap /dev/da0p4
# glabel label Toshiba16GB2var /dev/da0p5
# glabel label Toshiba16GB2tmp /dev/da0p6
# glabel label Toshiba16GB2usr /dev/da0p7


There is no need for all this.  You already created GPT labels with
'gpt -l' above.  And those labels don't need extra metadata at the end 
of the partition.



And put a file system onto the partitions.

# newfs /dev/label/Toshiba16GB2boo
# newfs /dev/label/Toshiba16GB2roo
# newfs /dev/label/Toshiba16GB2var
# newfs /dev/label/Toshiba16GB2tmp
# newfs /dev/label/Toshiba16GB2usr


Those look cut off.  And there's surely a limit to the length of label 
names, but I'm not sure what it is.  Anyway, use


  # newfs /dev/gpt/Toshiba16GB2boot

And consider using -U with newfs.
___
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: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Erich Dollansky
Hi,

On Sat, 12 Jan 2013 09:56:39 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Sat, 12 Jan 2013, Erich Dollansky wrote:
 
  in general, I try to create the partitions with gpart, add a label
  with glabel and put a filesystem. I think that I am doing something
  very simple the wrong way but I cannot see the error.
 
  I try to do it in the following way:
 
  # gpart destroy -F da0
  # gpart create -s GPT da0
  # gpart add -t freebsd-boot -s 64k da0
  # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0
  # gpart add -t freebsd-ufs -s 512m -a 4k -l Toshiba16GB2boot da0
  # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2root da0
  # gpart add -t freebsd-swap -s 10m -a 4k -l Toshiba16GB2swap da0
  # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2var da0
  # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2tmp da0
  # gpart add -t freebsd-ufs -a 4k -l Toshiba16GB2usr da0
 
  Label the partitions:
 
  # glabel label Toshiba16GB2boot /dev/da0p2
  # glabel label Toshiba16GB2root /dev/da0p3
  # glabel label Toshiba16GB2swap /dev/da0p4
  # glabel label Toshiba16GB2var /dev/da0p5
  # glabel label Toshiba16GB2tmp /dev/da0p6
  # glabel label Toshiba16GB2usr /dev/da0p7
 
 There is no need for all this.  You already created GPT labels with
 'gpt -l' above.  And those labels don't need extra metadata at the
 end of the partition.
 
For what is glabel then still good?

 And consider using -U with newfs.

Do not worry, this was just for the test.

Erich
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-12-07 Thread Antonio Olivares
On Thu, Dec 6, 2012 at 3:46 PM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (Dec 06), Antonio Olivares said:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603
 
  I apply the suggested fix:
 
  $ sh -x `which itweb-javaws` jviewer.jnlp
  + JAVA=/usr/local/openjdk6/jre/bin/java
  + 
  LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
  + LAUNCHER_FLAGS=-Xms8m
  + CLASSNAME=net.sourceforge.jnlp.runtime.Boot
  + BINARY_LOCATION=/usr/local/bin/itweb-javaws
  + PROGRAM_NAME=itweb-javaws
  + CP=/usr/local/openjdk6/jre/lib/rt.jar
  /usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name
 
 I try once more on another machine not 64 bit, it returns the same
 error and java web start does not work :(

 $ sh -x `which itweb-javaws` jviewer.jnlp
 + JAVA=/usr/local/openjdk6/jre/bin/java
 + 
 LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
 + LAUNCHER_FLAGS=-Xms8m
 + CLASSNAME=net.sourceforge.jnlp.runtime.Boot
 + BINARY_LOCATION=/usr/local/bin/itweb-javaws
 + PROGRAM_NAME=itweb-javaws
 + CP=/usr/local/openjdk6/jre/lib/rt.jar
 /usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name

 Any other ideas as to how to fix this?

 Don't try and run it through /bin/sh .  The script uses bash-isms (array
 syntax specifically).  Just run itweb-javaws jviewer.jnlp.

 --
 Dan Nelson
 dnel...@allantgroup.com

This is what I get when I run it:

$ itweb-javaws jviewer.jnlp
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
$

E-213-3W# pkg_version  | grep 'openjdk'
bootstrap-openjdk   =
openjdk6=
E-213-3W# pkg_version  | grep 'icedtea-web'
icedtea-web =
E-213-3W#

Thanks for helping.

Regards,


Antonio
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-12-06 Thread Antonio Olivares
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603


 I apply the suggested fix:

 $ sh -x `which itweb-javaws` jviewer.jnlp
 + JAVA=/usr/local/openjdk6/jre/bin/java
 + 
 LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
 + LAUNCHER_FLAGS=-Xms8m
 + CLASSNAME=net.sourceforge.jnlp.runtime.Boot
 + BINARY_LOCATION=/usr/local/bin/itweb-javaws
 + PROGRAM_NAME=itweb-javaws
 + CP=/usr/local/openjdk6/jre/lib/rt.jar
 /usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name

I try once more on another machine not 64 bit, it returns the same
error and java web start does not work :(

$ sh -x `which itweb-javaws` jviewer.jnlp
+ JAVA=/usr/local/openjdk6/jre/bin/java
+ LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
+ LAUNCHER_FLAGS=-Xms8m
+ CLASSNAME=net.sourceforge.jnlp.runtime.Boot
+ BINARY_LOCATION=/usr/local/bin/itweb-javaws
+ PROGRAM_NAME=itweb-javaws
+ CP=/usr/local/openjdk6/jre/lib/rt.jar
/usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name

Any other ideas as to how to fix this?

TIA,


Antonio
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-12-06 Thread Dan Nelson
In the last episode (Dec 06), Antonio Olivares said:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603
 
  I apply the suggested fix:
 
  $ sh -x `which itweb-javaws` jviewer.jnlp
  + JAVA=/usr/local/openjdk6/jre/bin/java
  + 
  LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
  + LAUNCHER_FLAGS=-Xms8m
  + CLASSNAME=net.sourceforge.jnlp.runtime.Boot
  + BINARY_LOCATION=/usr/local/bin/itweb-javaws
  + PROGRAM_NAME=itweb-javaws
  + CP=/usr/local/openjdk6/jre/lib/rt.jar
  /usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name
 
 I try once more on another machine not 64 bit, it returns the same
 error and java web start does not work :(
 
 $ sh -x `which itweb-javaws` jviewer.jnlp
 + JAVA=/usr/local/openjdk6/jre/bin/java
 + 
 LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
 + LAUNCHER_FLAGS=-Xms8m
 + CLASSNAME=net.sourceforge.jnlp.runtime.Boot
 + BINARY_LOCATION=/usr/local/bin/itweb-javaws
 + PROGRAM_NAME=itweb-javaws
 + CP=/usr/local/openjdk6/jre/lib/rt.jar
 /usr/local/bin/itweb-javaws: 11: Syntax error: Bad function name
 
 Any other ideas as to how to fix this?

Don't try and run it through /bin/sh .  The script uses bash-isms (array
syntax specifically).  Just run itweb-javaws jviewer.jnlp.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-11-30 Thread Volodymyr Kostyrko

30.11.2012 18:39, Antonio Olivares:

/usr/ports/java/icedtea-web/work/icedtea-web-1.3.1/netx.build/lib/classes.jar
/usr/local/share/icedtea-web/netx.jar
install  -o root -g wheel -m 555 launcher.build/itweb-javaws /usr/local/bin

  

install  -o root -g wheel -m 444 extra-lib/about.jar
/usr/local/share/icedtea-web/about.jar
install  -o root -g wheel -m 555 launcher.build/itweb-settings /usr/local/bin
/usr/local/bin/bash



I need an application that requires /usr/local/bin/javaws and it is
not found what should I do to install it or substitute it to make it
work?


--
Sphinx of black quartz, judge my vow.
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-11-30 Thread Antonio Olivares
On Fri, Nov 30, 2012 at 10:53 AM, Volodymyr Kostyrko c.kw...@gmail.com wrote:
 30.11.2012 18:39, Antonio Olivares:


 /usr/ports/java/icedtea-web/work/icedtea-web-1.3.1/netx.build/lib/classes.jar
 /usr/local/share/icedtea-web/netx.jar
 install  -o root -g wheel -m 555 launcher.build/itweb-javaws
 /usr/local/bin

   

I have tried this itweb-javaws , but it does not work :(
It does nothing, the application does not open :(

How should I troubleshoot it?


Thanks for helping,


Antonio


 install  -o root -g wheel -m 444 extra-lib/about.jar
 /usr/local/share/icedtea-web/about.jar
 install  -o root -g wheel -m 555 launcher.build/itweb-settings
 /usr/local/bin
 /usr/local/bin/bash


 I need an application that requires /usr/local/bin/javaws and it is
 not found what should I do to install it or substitute it to make it
 work?


 --
 Sphinx of black quartz, judge my vow.
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-11-30 Thread Mike Clarke
On Friday 30 November 2012 16:39:17 Antonio Olivares wrote:

 I need an application that requires /usr/local/bin/javaws and it is
 not found what should I do to install it or substitute it to make it
 work?

curlew:/tmp% ls -l /usr/local/bin/javaws
lrwxr-xr-x  1 root  wheel  21  6 Nov 09:32 /usr/local/bin/javaws@ - 
/usr/local/bin/javavm
curlew:/tmp% pkg_info -W /usr/local/bin/javavm
/usr/local/bin/javavm was installed by package javavmwrapper-2.4_2

-- 
Mike Clarke
___
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 replaces javaws? using icedtea-web and openjdk6.

2012-11-30 Thread Volodymyr Kostyrko

30.11.2012 19:05, Antonio Olivares:

On Fri, Nov 30, 2012 at 10:53 AM, Volodymyr Kostyrko c.kw...@gmail.com wrote:

30.11.2012 18:39, Antonio Olivares:



/usr/ports/java/icedtea-web/work/icedtea-web-1.3.1/netx.build/lib/classes.jar
/usr/local/share/icedtea-web/netx.jar
install  -o root -g wheel -m 555 launcher.build/itweb-javaws
/usr/local/bin


   


I have tried this itweb-javaws , but it does not work :(
It does nothing, the application does not open :(

How should I troubleshoot it?


http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603

--
Sphinx of black quartz, judge my vow.
___
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-09 Thread Lucas B. Cohen
On 2012.10.08 18:22, Robert Bonomi wrote:
 'cached' is not _technically_ exactly accurate, but you have the concept
 basically correct.

Thanks for the detailed explanation, Robert. Maybe shadowed would be
have been a more accurate term. But in-core also has a nice ring to it!
___
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


  1   2   3   4   5   6   7   8   9   10   >