Re: after pkgng update, daily run still using pkg_info

2013-09-30 Thread Matthew Seaman
On 30/09/2013 06:09, Gary Aitken wrote:
 On 09/28/13 10:52, Gary Aitken wrote:
 After switching to pkgng, I noticed that my daily run output constantly
 complains about the installed packages being corrupt, e.g.:
   pkg_info: the package info for package 'asciidoc-8.6.8_1' is corrupt

 The problem is with
   etc/periodic/daily/490.status-pkg-changes
 which is still using pkg_info instead of pkg info

 Was this script supposed to be automatically updated as part of the
 conversion?  What's the right way to upgrade this on a 9.1 release
 system?  Or should I just edit the script by hand and be done with it?

 On 09/28/13 13:57, Mark Felder wrote:
 Run pkg_info. If there is anything listed you have not fully converted
 to pkgng and have some old broken/corrupt packages. You'll want to clean
 this up.
 
 What does clean this up mean, and how does one go about it, given the
 system is converted to using pkgng?  There is no /var/db/pkg/pkgdb.db
 
 Some of the packages reported as corrupt were installed *after* the
 conversion to pkgng, so why is pkg_info even noticing them?
 pkg info reports 705 packages installed, and installs and re-installs
 using portmaster seem to be working.  pkg_info reports 14 good
 packages and 658 corrupt packages.  If pkg_info is picking up packages
 installed after the conversion, why doesn't the sum of good and corrupt
 packages equal the number pkg reports?
 
 It was my understanding that after switching to pkgng, the pkg_* cmds should
 no longer be used.  If that's the case, shouldn't the daily script have been
 modified by the upgrade process?

Hi, Gary,

Yes, you're correct that the pkg_info command should no longer be used
after pkgng-ifying your system.  Not because it's harmful or lead to any
sort of breakage but simply because it won't return any meaningful
information.

Ideally, there shouldn't really be any of the old style package metadata
left in /var/db/pkg after running pkg2ng but the conversion process may
occasionaly stumble over the odd port or two.  (In which case force the
port in question to re-install.  If you're using a package repository,
that's 'pkg install -f pkgname' -- otherwise, just
use the normal portmaster / portupgrade command you'ld have used pre-pkgng.)

If you are a portmaster user be aware that it does store various bits to
do with managing distfiles in /var/db/pkg/pkgname-ver/ subdirectories.
These shouldn't be confused with old style pkg_install metadata -- the
distinguishing feature is if they contain a +CONTENTS file.

As to why pkg2ng doesn't disable pkg_install related periodic jobs --
pretty much because no one has implemented that. pkg comes with it's own
set of periodic job scripts which should give you the equivalent set of
reports via the pkg local database, so all we'd need to do is turn off
any old pkg_install script and turn on the pkg equivalent.

I've just created a new issue on github for that:

https://github.com/freebsd/pkg/issues/599

Patches -- or even better, pull requests -- are welcome.

Cheers,

Matthew

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




signature.asc
Description: OpenPGP digital signature


Re: after pkgng update, daily run still using pkg_info

2013-09-30 Thread Mark Felder
On Sun, Sep 29, 2013, at 23:09, Gary Aitken wrote:

 Some of the packages reported as corrupt were installed *after* the
 conversion to pkgng, so why is pkg_info even noticing them?


The only way this is possible is if they are in the old package format.
Did you happen to convert your packages to pkgng and then install some
software from ports without putting WITH_PKGNG=YES in your make.conf?
___
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


Contributing to FreeBSD

2013-09-30 Thread karan garg
Hi all,

I am an open source enthusiast and new to freeBSD community. I am an RHCE
and have a reasonable knowledge of linux administration, database, Bash
Scripting, and C/C++.

I want to contribute to the community. I have gone through the FreeBSD
handbook, and list of various projects under the community. However, I was
unable to determine a suitable project for me to get started. So, I would
really appreciate if you could help me find a project that would require my
field of knowledge.

Also, I wish to apply for GSOC-2014 and have checked the ideas page but
found the similar problems as above.

Also, if you could give me a link of resources and handbook for me to go
through before starting to contribute.

-- 
Regards :)
Karan
___
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: Contributing to FreeBSD

2013-09-30 Thread Fernando Apesteguía
On Mon, Sep 30, 2013 at 1:46 PM, karan garg karangar...@gmail.com wrote:

 Hi all,

 I am an open source enthusiast and new to freeBSD community. I am an RHCE
 and have a reasonable knowledge of linux administration, database, Bash
 Scripting, and C/C++.

 I want to contribute to the community. I have gone through the FreeBSD
 handbook, and list of various projects under the community. However, I was
 unable to determine a suitable project for me to get started. So, I would
 really appreciate if you could help me find a project that would require my
 field of knowledge.


I suppose that depends on your interests and your habilities.

You can check the Ideas Page:

https://wiki.freebsd.org/IdeasPage

Ports need work too, so you can try to port something new that people want:

https://wiki.freebsd.org/WantedPorts

or adopt an orphaned port:

http://forums.freebsd.org/showthread.php?t=36243


Contributing documentation is always welcomed AFAIK.

Cheers.



 Also, I wish to apply for GSOC-2014 and have checked the ideas page but
 found the similar problems as above.

 Also, if you could give me a link of resources and handbook for me to go
 through before starting to contribute.






 --
 Regards :)
 Karan
 ___
 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: Contributing to FreeBSD

2013-09-30 Thread Jerry
On Mon, 30 Sep 2013 17:16:54 +0530
karan garg articulated:

 Hi all,
 
 I am an open source enthusiast and new to freeBSD community. I am an
 RHCE and have a reasonable knowledge of linux administration,
 database, Bash Scripting, and C/C++.
 
 I want to contribute to the community. I have gone through the FreeBSD
 handbook, and list of various projects under the community. However,
 I was unable to determine a suitable project for me to get started.
 So, I would really appreciate if you could help me find a project
 that would require my field of knowledge.
 
 Also, I wish to apply for GSOC-2014 and have checked the ideas page
 but found the similar problems as above.
 
 Also, if you could give me a link of resources and handbook for me to
 go through before starting to contribute.

Well, if you really want a suggestion, you could try updating the
linux_base-f10-10_7 port that was released by Fedora on November 25,
2008 to something newer, say the Fedora 19, released July 2, 2013.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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

Vulnerability

2013-09-30 Thread Jerry
Has this been rectified:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-5710

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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

cause of reboot

2013-09-30 Thread Emre Çamalan
Hi,
my server reboots every night and same o'clock last 10 days. But this machine's 
uptime was 96days.

Suddenly reboot this machine and now this continue every night again and again.

I didn't find any reason and I didn't change anything else.

I looked last command, 
reboot ~ ~   AM 03.15  ~


I checked dmesg -a , it has only generic things no other things.

I checked /var/log/messages

I wrote script and checked swapinfo , cpu and memory but all of them was normal 
before reboot.

I checked crontab and scripts.

I checked crashinfo  but no dump from kernel.

I didn't find any useful info from this commands.

I checked praudit /var/audir/20130930..CrashRecovery  
and I didn't understand very well from this file but I think this means my 
machine crash and reboot isn't it??

And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

Please help I need to find cause of reboot..
___
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: Contributing to FreeBSD

2013-09-30 Thread karan garg
On Mon, Sep 30, 2013 at 6:00 PM, Jerry je...@seibercom.net wrote:

 On Mon, 30 Sep 2013 17:16:54 +0530
 karan garg articulated:

  Hi all,
 
  I am an open source enthusiast and new to freeBSD community. I am an
  RHCE and have a reasonable knowledge of linux administration,
  database, Bash Scripting, and C/C++.
 
  I want to contribute to the community. I have gone through the FreeBSD
  handbook, and list of various projects under the community. However,
  I was unable to determine a suitable project for me to get started.
  So, I would really appreciate if you could help me find a project
  that would require my field of knowledge.
 
  Also, I wish to apply for GSOC-2014 and have checked the ideas page
  but found the similar problems as above.
 
  Also, if you could give me a link of resources and handbook for me to
  go through before starting to contribute.

 Well, if you really want a suggestion, you could try updating the
 linux_base-f10-10_7 port that was released by Fedora on November 25,
 2008 to something newer, say the Fedora 19, released July 2, 2013.

 Thanks Jerry,
But as this is my first experience, can you give me some links to go
through before I start?
According to what I found, portsnap is one of the tools that will help me
for this.

Also, is this the correct mailing list to keep posting on for this purpose?

 --
 Jerry ♔

 Disclaimer: off-list followups get on-list replies or get ignored.
 Please do not ignore the Reply-To header.
 __

 ___
 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




-- 
Regards :)
Karan
___
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: cause of reboot

2013-09-30 Thread Jason Hellenthal
Did you check for the command reboot in all of the periodic scripts and cron 
jobs as well as the command shutdown ?



On Sep 30, 2013, at 10:24, Emre Çamalan mail...@yandex.com wrote:

Hi,
my server reboots every night and same o'clock last 10 days. But this machine's 
uptime was 96days.

Suddenly reboot this machine and now this continue every night again and again.

I didn't find any reason and I didn't change anything else.

I looked last command, 
reboot ~ ~   AM 03.15  ~


I checked dmesg -a , it has only generic things no other things.

I checked /var/log/messages

I wrote script and checked swapinfo , cpu and memory but all of them was normal 
before reboot.

I checked crontab and scripts.

I checked crashinfo  but no dump from kernel.

I didn't find any useful info from this commands.

I checked praudit /var/audir/20130930..CrashRecovery
and I didn't understand very well from this file but I think this means my 
machine crash and reboot isn't it??

And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

Please help I need to find cause of reboot..
___
freebsd-hack...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


smime.p7s
Description: S/MIME cryptographic signature


Re: cause of reboot

2013-09-30 Thread Steve O'Hara-Smith
On Mon, 30 Sep 2013 17:24:18 +0300
Emre Çamalan mail...@yandex.com wrote:

 Hi,
 my server reboots every night and same o'clock last 10 days. But this
 machine's uptime was 96days.
 
 Suddenly reboot this machine and now this continue every night again and
 again.
 
 I didn't find any reason and I didn't change anything else.
 
 I looked last command, 
 reboot ~ ~   AM 03.15  ~

That's likely something in the daily run going wrong, try disabling
items in there one by one (by editing /etc/periodic.conf - which probably
doesn't yet exist so create it and look in /etc/defaults/periodic.conf for
details) until you get through a night without a reboot. Then the next step
is to figure out why whatever is crashing the system does so, but first
let's find out what.

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

2013-09-30 Thread staticsafe

On 9/30/2013 10:05, Jerry wrote:

Has this been rectified:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-5710


Yes.
http://www.freebsd.org/security/advisories/FreeBSD-SA-13:13.nullfs.asc
http://svnweb.freebsd.org/base?view=revisionrevision=255442

--
staticsafe
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post. It is not logical.
Please don't CC me! I'm subscribed to whatever list I just posted on.
___
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: Vulnerability

2013-09-30 Thread Lowell Gilbert
Jerry je...@seibercom.net writes:

 Has this been rectified:
 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-5710

If you read the page at that link, you will find the answer.
___
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: cause of reboot

2013-09-30 Thread Emre Çamalan
Yes I checked also it , such as ;
grep -i 'reboot' /root/scripts/* -R
grep -i 'halt' /root/scripts/* -R
grep -i 'shutdown' /root/scripts/* -R


30.09.2013, 17:33, Jason Hellenthal jhellent...@dataix.net:
 Did you check for the command reboot in all of the periodic scripts and cron 
 jobs as well as the command shutdown ?

 On Sep 30, 2013, at 10:24, Emre Çamalan mail...@yandex.com wrote:

 Hi,
 my server reboots every night and same o'clock last 10 days. But this 
 machine's uptime was 96days.

 Suddenly reboot this machine and now this continue every night again and 
 again.

 I didn't find any reason and I didn't change anything else.

 I looked last command,
 reboot ~ ~   AM 03.15  ~

 I checked dmesg -a , it has only generic things no other things.

 I checked /var/log/messages

 I wrote script and checked swapinfo , cpu and memory but all of them was 
 normal before reboot.

 I checked crontab and scripts.

 I checked crashinfo  but no dump from kernel.

 I didn't find any useful info from this commands.

 I checked praudit /var/audir/20130930..CrashRecovery
 and I didn't understand very well from this file but I think this means my 
 machine crash and reboot isn't it??

 And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

 Please help I need to find cause of reboot..
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-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: Vulnerability

2013-09-30 Thread Jason Birch
This was announced on security-advisor...@freebsd.org on September 10th,
2013.

The relevant commits, as taken from the announcement, are:

Branch/path  Revision
- -
stable/8/ r255445
releng/8.3/   r255446
releng/8.4/   r255447
stable/9/ r255443
releng/9.1/   r255448
releng/9.2/   r255444
- -


On Tue, Oct 1, 2013 at 12:05 AM, Jerry je...@seibercom.net wrote:

 Has this been rectified:
 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-5710

 --
 Jerry ♔

 Disclaimer: off-list followups get on-list replies or get ignored.
 Please do not ignore the Reply-To header.
 __

 ___
 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: cause of reboot

2013-09-30 Thread Jason Hellenthal
And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan mail...@yandex.com wrote:

Yes I checked also it , such as ;
grep -i 'reboot' /root/scripts/* -R
grep -i 'halt' /root/scripts/* -R
grep -i 'shutdown' /root/scripts/* -R


30.09.2013, 17:33, Jason Hellenthal jhellent...@dataix.net:
 Did you check for the command reboot in all of the periodic scripts and cron 
 jobs as well as the command shutdown ?
 
 On Sep 30, 2013, at 10:24, Emre Çamalan mail...@yandex.com wrote:
 
 Hi,
 my server reboots every night and same o'clock last 10 days. But this 
 machine's uptime was 96days.
 
 Suddenly reboot this machine and now this continue every night again and 
 again.
 
 I didn't find any reason and I didn't change anything else.
 
 I looked last command,
 reboot ~ ~   AM 03.15  ~
 
 I checked dmesg -a , it has only generic things no other things.
 
 I checked /var/log/messages
 
 I wrote script and checked swapinfo , cpu and memory but all of them was 
 normal before reboot.
 
 I checked crontab and scripts.
 
 I checked crashinfo  but no dump from kernel.
 
 I didn't find any useful info from this commands.
 
 I checked praudit /var/audir/20130930..CrashRecovery
 and I didn't understand very well from this file but I think this means my 
 machine crash and reboot isn't it??
 
 And How can I understand what is the reason of rebooting my FreeBSD8.3 server.
 
 Please help I need to find cause of reboot..
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


smime.p7s
Description: S/MIME cryptographic signature


Re: cause of reboot

2013-09-30 Thread Jason Hellenthal
Also  . . . grep -ri  . . . 



On Sep 30, 2013, at 11:06, Jason Hellenthal jhellent...@dataix.net wrote:

And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan mail...@yandex.com wrote:

Yes I checked also it , such as ;
grep -i 'reboot' /root/scripts/* -R
grep -i 'halt' /root/scripts/* -R
grep -i 'shutdown' /root/scripts/* -R


30.09.2013, 17:33, Jason Hellenthal jhellent...@dataix.net:
 Did you check for the command reboot in all of the periodic scripts and cron 
 jobs as well as the command shutdown ?
 
 On Sep 30, 2013, at 10:24, Emre Çamalan mail...@yandex.com wrote:
 
 Hi,
 my server reboots every night and same o'clock last 10 days. But this 
 machine's uptime was 96days.
 
 Suddenly reboot this machine and now this continue every night again and 
 again.
 
 I didn't find any reason and I didn't change anything else.
 
 I looked last command,
 reboot ~ ~   AM 03.15  ~
 
 I checked dmesg -a , it has only generic things no other things.
 
 I checked /var/log/messages
 
 I wrote script and checked swapinfo , cpu and memory but all of them was 
 normal before reboot.
 
 I checked crontab and scripts.
 
 I checked crashinfo  but no dump from kernel.
 
 I didn't find any useful info from this commands.
 
 I checked praudit /var/audir/20130930..CrashRecovery
 and I didn't understand very well from this file but I think this means my 
 machine crash and reboot isn't it??
 
 And How can I understand what is the reason of rebooting my FreeBSD8.3 server.
 
 Please help I need to find cause of reboot..
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


smime.p7s
Description: S/MIME cryptographic signature


Re: cause of reboot

2013-09-30 Thread Julian Elischer

On 9/30/13 11:08 PM, Jason Hellenthal wrote:

Also  . . . grep -ri  . . .



On Sep 30, 2013, at 11:06, Jason Hellenthal jhellent...@dataix.net wrote:

And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan mail...@yandex.com wrote:

Yes I checked also it , such as ;
grep -i 'reboot' /root/scripts/* -R
grep -i 'halt' /root/scripts/* -R
grep -i 'shutdown' /root/scripts/* -R


30.09.2013, 17:33, Jason Hellenthal jhellent...@dataix.net:

Did you check for the command reboot in all of the periodic scripts and cron 
jobs as well as the command shutdown ?

On Sep 30, 2013, at 10:24, Emre Çamalan mail...@yandex.com wrote:

Hi,
my server reboots every night and same o'clock last 10 days. But this machine's 
uptime was 96days.

Suddenly reboot this machine and now this continue every night again and again.

I didn't find any reason and I didn't change anything else.

I looked last command,
reboot ~ ~   AM 03.15  ~

I checked dmesg -a , it has only generic things no other things.

I checked /var/log/messages

I wrote script and checked swapinfo , cpu and memory but all of them was normal 
before reboot.

I checked crontab and scripts.

I checked crashinfo  but no dump from kernel.

I didn't find any useful info from this commands.

I checked praudit /var/audir/20130930..CrashRecovery
and I didn't understand very well from this file but I think this means my 
machine crash and reboot isn't it??

And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

Please help I need to find cause of reboot..
___
freebsd-hack...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Firstly, does this machine have the kernel debugger installed?
if not then a kernel page fault will look like a reboot.

if you know when this is going to occur, then I suggest that you
set up some logging of every new process run, to a second machine, or 
possibly

you might just ssh int the machine and leave 'top' running
when it reboots you shoud get a snapshot of what's going on.

you could just rename 'reboot' and see if it still happens.
If not, then replace reboot (and friends) with a script that reports 
who called 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

Re: cause of reboot

2013-09-30 Thread Patrick Lamaiziere
Le Mon, 30 Sep 2013 17:24:18 +0300,
Emre Çamalan mail...@yandex.com a écrit :

 Hi,
 my server reboots every night and same o'clock last 10 days. But this
 machine's uptime was 96days.
 
 Suddenly reboot this machine and now this continue every night again
 and again.
 
 I didn't find any reason and I didn't change anything else.
 
 I looked last command, 
 reboot ~ ~   AM 03.15  ~

The last time It happened (one month ago) to me it was the hard disk
(periodic scripts read a large part of the disk).

If the disk is smart capable try a full test with smartctl
(sysutils/smartmontools)

HTH, regards
___
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: cause of reboot

2013-09-30 Thread Michael Powell
Patrick Lamaiziere wrote:
[snip]
 
 I looked last command,
 reboot ~ ~   AM 03.15  ~
 
 The last time It happened (one month ago) to me it was the hard disk
 (periodic scripts read a large part of the disk).
 
 If the disk is smart capable try a full test with smartctl
 (sysutils/smartmontools)

My gateway/firewall/mail/ids router box at home has 2 GB RAM in it, so 
normally it has enough extra room that nothing ever pushes over into swap 
with one exception: the periodic run at 0300. It is generally never more 
than just a few kilobytes, but I find it slightly surprising nonetheless.

If a sector (or more) on the drive that is backing the swap partition has 
gone bad it might not even be noticeable until something pages out to swap 
(like my 0300 periodic run). 

If the drive is a WD the 'Quick' test using the manufacturers' wddiags 
utility should spot it, and is non-destructive. I have occasionally seen the 
full test not destroy data - but I wouldn't count on it being non-
destructive. However, as long as the remap area isn't full the long test 
will repair the drive by relocating and mapping out the bad spot. When this 
silent fading away of magnetic media occurs wrt to higher-end RAID 
controllers the scrub function in the controller BIOS is where you would 
want to go.

The other problem relative to this that I've run into is the apple before 
the cart syndrome around backups. I have seen dump fail to allow for backing 
up data prior to using the full wddiags to repair a drive so you kinda get 
stuck. If the full test is going to wipe the drive and you can't generate a 
fresh current backup you're stuck only being able to restore whatever is the 
last good backup you have on hand.

Wouldn't surpise me at all if this were to turn out to be the drive just 
recently grew one or more bad spots. A bad spot or few on an old drive that 
gets repaired I might continue to use the drive for a while, maybe even for 
like a year time-frame wise. If 2 months later it starts growing more bad 
spots the drive goes in the rubbish bin.

-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


CAM / FC Security features

2013-09-30 Thread Outback Dingo
what, if any security features are capable using cam and ctladm for fiber
channel targets ?? I dont see alot of documentation on it, and it appears a
lun appears on all available WWPNs... is this correct
___
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 9.2-RELEASE stability?

2013-09-30 Thread Brett Glass
How stable are folks finding FreeBSD 9.2-RELEASE to be? The 
improvements are welcome, but there have been a few troubling 
messages about kernel panics and VM issues on the various mailing 
lists. It's never clear until the release drops whether these are 
actual problems with the software or hardware defects in individual 
systems, so I am eager to hear how the new release is working for everyone.


--Brett Glass

___
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 9.2-RELEASE stability?

2013-09-30 Thread staticsafe

On 9/30/2013 15:01, Brett Glass wrote:

How stable are folks finding FreeBSD 9.2-RELEASE to be? The improvements
are welcome, but there have been a few troubling messages about kernel
panics and VM issues on the various mailing lists. It's never clear
until the release drops whether these are actual problems with the
software or hardware defects in individual systems, so I am eager to
hear how the new release is working for everyone.

--Brett Glass


Just upgraded a system running in KVM, working like a charm.

--
staticsafe
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post. It is not logical.
Please don't CC me! I'm subscribed to whatever list I just posted on.
___
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


9.2

2013-09-30 Thread ajtiM
Hi!

I have to used FreeBSD 10.0-ALPHA1 for a while but it was to difficult for me. 
I run FreeBSD on iMac 11,1 which has:
Chipset Model:  ATI Radeon HD 4850
  Type: GPU
  Bus:  PCIe
  PCIe Lane Width:  x16
  VRAM (Total): 512 MB
  Vendor:   ATI (0x1002)
  Device ID:0x944a
  Revision ID:  0x
  ROM Revision: 113-B9110C-425
  EFI Driver Version:   01.00.383
  Displays:
iMac:
  Display Type: LCD
  Resolution:   2560 x 1440
  Pixel Depth:  32-Bit Color (ARGB)
  Main Display: Yes
  Mirror:   Off
  Online:   Yes
  Built-In: Yes
  Connection Type:  DisplayPort

On FreeBSD 10.0-ALPHA1 it worked very good but for me 3D is not important. I 
installed FreeBSD 9.2 one hour ago without problem and run portsnap fetch 
extract and I like to install Xorg and KDE. Do I need to have in make.conf 
with_new_xorg=yes, please? Does xorg t need hal?.  Does anyone has Radeon 
4850 GPU type, please and it works?
I had problems with sound settings on CURRENT and I note that will be better 
now.

Thank you very much.


Mitja

http://www.redbubble.com/people/lumiwa

___
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: Contributing to FreeBSD

2013-09-30 Thread Pascal Schmid
On 09/30/2013 04:30 PM, karan garg wrote:
 On Mon, Sep 30, 2013 at 6:00 PM, Jerry je...@seibercom.net wrote:
 
 On Mon, 30 Sep 2013 17:16:54 +0530
 karan garg articulated:

 Hi all,

 I am an open source enthusiast and new to freeBSD community. I am an
 RHCE and have a reasonable knowledge of linux administration,
 database, Bash Scripting, and C/C++.

 I want to contribute to the community. I have gone through the FreeBSD
 handbook, and list of various projects under the community. However,
 I was unable to determine a suitable project for me to get started.
 So, I would really appreciate if you could help me find a project
 that would require my field of knowledge.

 Also, I wish to apply for GSOC-2014 and have checked the ideas page
 but found the similar problems as above.

 Also, if you could give me a link of resources and handbook for me to
 go through before starting to contribute.

 Well, if you really want a suggestion, you could try updating the
 linux_base-f10-10_7 port that was released by Fedora on November 25,
 2008 to something newer, say the Fedora 19, released July 2, 2013.

 Thanks Jerry,
 But as this is my first experience, can you give me some links to go
 through before I start?
 According to what I found, portsnap is one of the tools that will help me
 for this.
 
 Also, is this the correct mailing list to keep posting on for this purpose?
 
 --
 Jerry ♔

 Disclaimer: off-list followups get on-list replies or get ignored.
 Please do not ignore the Reply-To header.
 __

 ___
 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

 
 
 
Hi Karan,

you should take a look at the FreeBSD porter's handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

and I think questions@ is the general purpose mailing list for all things :)

If your uncertain about some options in your first port I'm sure the friendly 
people over at ports@
will help you!

Greetings,
Pascal


___
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 9.2-RELEASE stability?

2013-09-30 Thread Patrick Lamaiziere
Le Mon, 30 Sep 2013 13:01:26 -0600,
Brett Glass br...@lariat.net a écrit :

Hello,

 How stable are folks finding FreeBSD 9.2-RELEASE to be? The 
 improvements are welcome, but there have been a few troubling 
 messages about kernel panics and VM issues on the various mailing 
 lists. It's never clear until the release drops whether these are 
 actual problems with the software or hardware defects in individual 
 systems, so I am eager to hear how the new release is working for
 everyone.

I've seen two problems if you use poudriere (on ZFS only?) which
occur in some loads (ie desktop running gvfsd). One fix is in 9-STABLE
and the other one should be mfced soon.

May be there will be an errata for 9.2-RELEASE for
this ? I think that would be nice because 9.2 is stable as a
Windows 3.11 with my load :-)

Regards.
___
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: after pkgng update, daily run still using pkg_info

2013-09-30 Thread Gary Aitken
 On 09/30/13 07:15, Mathew Seaman wrote:
 On 09/28/13 10:52, Gary Aitken wrote:
 After switching to pkgng, I
 noticed that my daily run output constantly complains about the
 installed packages being corrupt, e.g.: pkg_info: the package
 info for package 'asciidoc-8.6.8_1' is corrupt
 
 The problem is with etc/periodic/daily/490.status-pkg-changes 
 which is still using pkg_info instead of pkg info
 
 Was this script supposed to be automatically updated as part of
 the conversion?  What's the right way to upgrade this on a 9.1
 release system?  Or should I just edit the script by hand and be
 done with it?
 
 On 09/28/13 13:57, Mark Felder wrote: Run pkg_info. If there is
 anything listed you have not fully converted to pkgng and have some
 old broken/corrupt packages. You'll want to clean this up.
 
 What does clean this up mean, and how does one go about it, given
 the system is converted to using pkgng?  There is no
 /var/db/pkg/pkgdb.db
 
 Some of the packages reported as corrupt were installed *after* the 
 conversion to pkgng, so why is pkg_info even noticing them? pkg
 info reports 705 packages installed, and installs and re-installs 
 using portmaster seem to be working.  pkg_info reports 14 good 
 packages and 658 corrupt packages.  If pkg_info is picking up
 packages installed after the conversion, why doesn't the sum of good
 and corrupt packages equal the number pkg reports?
 
 It was my understanding that after switching to pkgng, the pkg_* cmds
 should no longer be used.  If that's the case, shouldn't the daily
 script have been modified by the upgrade process?

 Yes, you're correct that the pkg_info command should no longer be used
 after pkgng-ifying your system.  Not because it's harmful or lead to any
 sort of breakage but simply because it won't return any meaningful
 information.
 
 Ideally, there shouldn't really be any of the old style package metadata
 left in /var/db/pkg after running pkg2ng but the conversion process may
 occasionaly stumble over the odd port or two.  (In which case force the
 port in question to re-install.  If you're using a package repository,
 that's 'pkg install -f pkgname' -- otherwise, just
 use the normal portmaster / portupgrade command you'ld have used pre-pkgng.)

thanks.
I was a bit confused; the ones that need to be reinstalled are the
ones which pkg_info does *not* complain about.
So now the daily/490.status-pkg-changes script will complain about all
of them :-)  Consistency is good.

 If you are a portmaster user be aware that it does store various bits to
 do with managing distfiles in /var/db/pkg/pkgname-ver/ subdirectories.
 These shouldn't be confused with old style pkg_install metadata -- the
 distinguishing feature is if they contain a +CONTENTS file.
 
 As to why pkg2ng doesn't disable pkg_install related periodic jobs --
 pretty much because no one has implemented that. pkg comes with it's own
 set of periodic job scripts which should give you the equivalent set of
 reports via the pkg local database, so all we'd need to do is turn off
 any old pkg_install script and turn on the pkg equivalent.
 
 I've just created a new issue on github for that:
 
 https://github.com/freebsd/pkg/issues/599
 
 Patches -- or even better, pull requests -- are welcome.

Thanks for the clarification.
Bit of a delay responding because something's screwed up with my mail service.

It's been a while since I converted, so I'm fuzzy on what pkg2ng actually did.
However, 
  $ which pkg
  /usr/sbin/pkg
  $ pkg info pkg
  pkg-1.1.4_6
  $ pkg which /usr/sbin/pkg
  /usr/sbin/pkg was not found in the database

I was trying to find the set of pkg's own periodic job scripts but I don't
see them, and I'm not really sure what to look for.  I tried grepping for
similarly numbered 490.status and similarly named status-pkg-changes 
and came up empty, although I see the file 490.status-pkg-changes.in in 
the distfile.

Questions:

1. Is there some reason pkg which doesn't find itself?
2. Where is pkg supposed to install its own set of periodic job scripts
   and what do the names look like?
3. After reinstalling the ports reported by pkg_info as ok, 
   one of them,
 x11-toolkits/wxgtk28
   reinstalls fine but when done 
 /var/db/pkg/wxgtk2-2.8.12_2
   still contains old format files:
 -rw-r--r--  1 root  wheel 45 Aug 26 22:43 +COMMENT
 -rw-r--r--  1 root  wheel   3609 Aug 26 22:43 +CONTENTS
 -rw-r--r--  1 root  wheel178 Aug 26 22:43 +DESC
 -rw-r--r--  1 root  wheel  17553 Aug 26 22:43 +MTREE_DIRS
 -rw-r--r--  1 root  wheel137 Sep 30 13:54 distfiles

Is it safe to simply delete the first four?

Wasn't sure whether to file a bug on this or not, so I haven't.

Gary

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


# portmaster -r pixman fails with !#/bin/sh list too long

2013-09-30 Thread Antonio Olivares
Dear folks,

In updating ports I encounter above issue and cannot proceed.

20130929:
  AFFECTS: users of x11/pixman
  AUTHOR: zeis...@freebsd.org

  The library version of x11/pixman has changed, and portrevision has
  been bumped in all dependent ports.  If you have external software that
  depends on pixman, this software needs to be recompiled.
  To recompile all software dependent on pixman, run:

  # portmaster -r pixman
  or
  # portupgrade -rf pixman

The messages are that a pkg texlive-ub* and that #!/bin/sh list
too long.  I try to run
# portmaster -d -r pixman -x 'texlive-*'
but it still fails in the same place :(
I am using texlive-freebsd from Romain Tartiere's googlecode page in
case it is important.  Please advice me so I can succeed to fix these
issue.  I lost X because I failed to read the /usr/src/UPDATING advice
and then I realized that I overlooked this :(

Best 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: cause of reboot

2013-09-30 Thread Michael Powell
kpn...@pobox.com wrote:
[snip]
 While we're throwing ideas onto the table let me mention power supplies.
 Power supplies and hard drives are in a race to see which one will fail
 first. It may be that the power supply is marginal and added load from
 the drives being hit hard may send it over the edge. How heavily loaded
 is the machine in question?

Absolute and total agreement with this. As they age and the filter caps leak 
and dry out more it will eventually become apparent. But in the meantime the 
output DC can just about meet spec up until really loaded. Then the ripple 
becomes so excessive it's not quite DC any longer. You can clearly see it 
using an oscilloscope. 

The 0300 AM periodic does hammer a machine enough to possibly push a 
marginal power supply over the edge. I once had a box where the RAM chips 
would sing with a high-pitched whistle only during the 0300 periodic run. 
It sounded just like the horizontal output on a television right before 
destruction.  :-) 
 
[snip]

-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: cause of reboot

2013-09-30 Thread Polytropon
On Mon, 30 Sep 2013 20:32:39 -0400, Michael Powell wrote:
 kpn...@pobox.com wrote:
 [snip]
  While we're throwing ideas onto the table let me mention power supplies.
  Power supplies and hard drives are in a race to see which one will fail
  first. It may be that the power supply is marginal and added load from
  the drives being hit hard may send it over the edge. How heavily loaded
  is the machine in question?
 
 Absolute and total agreement with this.

The idea of a hardware problem looks more and more obvious here.

A software configuration problem could be located by diff'ing
the currently used files against stock files, or by checking
the logs of a versioning system (if you use one to track your
local configuration file changes, for example in a CVS reposi-
tory).

It could be a matter of power (by more than usual drain when
the machine is heavily loaded), but also a file system inconsis-
tency is possible. In case the machine is using a background
fsck that silently fails to deal with a specific damage, using
background_fsck=NO in /etc/rc.conf to _definitely_ bring the
file systems up _clean_ prior to multi-user mode booting would
probably be a good idea. Using smartctl to check the hard disks
SMART data would make sure the disk is not dying (and the reboot
is an effect of that).

Monitoring the server when (or while) it reboots would surely be
interesting. Maybe open some sessions to have a close look at
programs like top, systat -v and mbmon (to check for
temperatures and voltages) - and when run at 1 second intervals,
it should be possible to obtain a good system status diagram
of the last state before reboot, when the connection drops.



 I once had a box where the RAM chips 
 would sing with a high-pitched whistle only during the 0300 periodic run. 
 It sounded just like the horizontal output on a television right before 
 destruction.  :-) 

I have heared something comparable from a graphics card when
developing some OpenGL demo stuff. :-)




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