NFS locks rpcbind port = 0 failed? - try #2

2013-10-14 Thread Rick Romero

This is a continuation of "9.1 VM nfs3 & locks over VPN" - trying a
different angle maybe it'll jostle someones memory.

I now have a FreeBSD 9.2 VM at an offsite hosting company.  hostname
nl101vpn
OpenVPN is installed on it, routed not bridged mode.
I have multiple OSs installed on local network. I'm already exportings NFS
off 9.1 with working locks.

export nfsv3 or nfsv4 from nl101vpn -  locks do not work.
export nfsv3 from any local system, mount on nl101vpn - locks work.
export nfsv3 from locally installed VM, mount on any local host or nl101vpn
- locks work.  No OpenVPN installed on it though.

I even ran a tcpdump to see if something was getting lost - both sides
match, nothing is getting dropped

nl101vpn - /var/log/messages:
Oct 14 12:21:01 nl101 kernel: NLM: failed to contact remote rpcbind, stat =
0, port = 0  (why port 0?)
Oct 14 12:23:02 nl101 last message repeated 109 times
Oct 14 12:25:48 nl101 last message repeated 177 times

So I haven't exhausted every combination, or completely 100% replicated
whats happening offsite, but it's getting pretty ridiculous now... I'm
lost, and I need locking.
Help :)
___
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"

vBSDcon: October 25 - 27. 2013 in Herndon, VA

2013-10-14 Thread Miller, Vincent (Rick)
Just a friendly reminder vBSDcon is less than 2 weeks away from October 25 – 
27, 2013 in Herndon, VA.  Online registrations are open for 9 more days and 
will close on October 23, 2013.  On-site registrations will be available 
throughout the entirety of vBSDcon.  Attendees may register for vBSDcon at 
http://www.vbsdcon.com/ for USD$75.

The US east coast's newest BSD-related conference will feature lightning talks, 
birds of a feather sessions, and plenary speakers.  Speakers include the likes 
of David Chisnall, Luigi Rizzo, Baptiste Daroussin, Henning Brauer, Reyk 
Floeter, among others.  See the full list of speakers and topics at 
http://www.vbsdcon.com/.

All vBSDcon attendees are invited to join Verisign at a reception dinner at the 
conference venue on October 25 from 6:00 – 8:00PM Eastern.  We look forward to 
seeing you all there!

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703-948-4395  m: 703-581-3068
12061 Bluemont Way, Reston, VA  20190

http://www.vbsdcon.com
http://www.verisigninc.com

“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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: 9.1 VM nfs3 & locks over VPN

2013-10-11 Thread Rick Romero

 Update - I've install a 9.1 VM locally, and I don't have the lock issue.
I've also allowed access straight over the internet, and locks don't work.
Now the non-working VM is not pristine like the test VM, but even so the
kernels appear to match based on uname,so I'm guessing it's a problem with
virtio block driver (which is not installed on the local test VM) or
something funky with the hosting providers virtualization.  Does that shed
any light on things?

Quoting Rick Romero :


So let me explain my environment -
I have 1 FreeBSD 7.1 server, multiple Linux boxes, and a FreeBSD 9.0
server.  The 9.0 server is providing NFS3 mounts to all the other

systems.

I've built a remote VM (FreeBSD 9.1 offered by Hosting provider), and
connected it to my network via OpenVPN.  I copied my rc.conf from 9.0
server to 9.1 in order to grab the proper requirements for mount NFS3,

and

it worked fine until I ran my lock test (perl script).  Which really

sucks

because I've already gotten just about everything else I need working :(

I cannot get a lock from any OS on this side of the VPN.  There are no
errors logged anywhere, and adding rpcbind_flags="-l -L" just tells me
that
the local servers are contacted. 
Oct 11 09:43:58 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(mountd)
Oct 11 09:44:07 nl101 rpcbind: connect from 172.16.1.21 to dump()
Oct 11 09:44:15 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(nfs)
Oct 11 09:44:16 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(mountd)
Oct 11 09:44:21 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(nlockmgr)
Yes lockd is running and the logs show a connection is made to it.  I

even

tried binding rpcbind to just the VPN IP.
What I couldn't do was enable debugging, the -d flag just caused rpcbind
to
hang.
So I'm currently here:
nfs_server_enable="YES"
nfs_server_flags=" -u -t -n12"
nfs_client_enable="YES"
portmap_enable="YES"
mountd_enable="YES"
mountd_flags=" -r"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_flags=" -l -L"
#rpc_lockd_flags="-h 10.9.8.6"
#rpc_statd_flags="-h 10.9.8.6"

rpcinfo -p 9.0server
and
rpcinfo -p 9.1server  match
program vers proto   port  service
    10    4   tcp    111  rpcbind
    10    3   tcp    111  rpcbind
    10    2   tcp    111  rpcbind
    10    4   udp    111  rpcbind
    10    3   udp    111  rpcbind
    10    2   udp    111  rpcbind
    10    4 local    111  rpcbind
    10    3 local    111  rpcbind
    10    2 local    111  rpcbind
    15    1   udp    994  mountd
    15    3   udp    994  mountd
    15    1   tcp    994  mountd
    15    3   tcp    994  mountd
    13    2   udp   2049  nfs
    13    3   udp   2049  nfs
    100024    1   udp   1016  status
    100024    1   tcp   1016  status
    13    2   tcp   2049  nfs
    13    3   tcp   2049  nfs
    100021    0   udp    611  nlockmgr
    100021    0   tcp    726  nlockmgr
    100021    1   udp    611  nlockmgr
    100021    1   tcp    726  nlockmgr
    100021    3   udp    611  nlockmgr
    100021    3   tcp    726  nlockmgr
    100021    4   udp    611  nlockmgr
    100021    4   tcp    726  nlockmgr

I'm kinda lost.  I tried getting NFSv4 working, but I couldn't mount the
test export
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
nfs_client_enable="YES"

/nlsysvol/home  -maproot=vpopmail -network 172.16.1.0 -mask

255.255.255.0

V4: /mnt
/mnt/first -maproot=root:  -network 172.16.1.0 -mask 255.255.255.0

The problem with using v4 is that I don't want to upgrade my 7.1 box - it
just works as is :)  But if that's what I have to do, then that's what I
have to do. 
Can someone give me a push in the right direction?  I've been fighting
this for a full day now.

Here's my perl lock script -
#!/usr/bin/perl
use Fcntl qw(:flock);
my $lock_file = 'lockfile';
open(LOCKFILE,">>$lock_file") or die "Cannot open $lock_file: $!\n";
print "Opened file $lock_file\n";
flock(LOCKFILE, LOCK_SH) or die "Can't get shared lock on $lock_file:
$!\n";
print "Got shared lock on file $lock_file\n";
sleep 2;
close LOCKFILE;
print "Closed file $lock_file\n";
exit;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questionsTo
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"

9.1 VM nfs3 & locks over VPN

2013-10-11 Thread Rick Romero

So let me explain my environment -
I have 1 FreeBSD 7.1 server, multiple Linux boxes, and a FreeBSD 9.0
server.  The 9.0 server is providing NFS3 mounts to all the other systems.
I've built a remote VM (FreeBSD 9.1 offered by Hosting provider), and
connected it to my network via OpenVPN.  I copied my rc.conf from 9.0
server to 9.1 in order to grab the proper requirements for mount NFS3, and
it worked fine until I ran my lock test (perl script).  Which really sucks
because I've already gotten just about everything else I need working :(

I cannot get a lock from any OS on this side of the VPN.  There are no
errors logged anywhere, and adding rpcbind_flags="-l -L" just tells me that
the local servers are contacted. 
Oct 11 09:43:58 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(mountd)
Oct 11 09:44:07 nl101 rpcbind: connect from 172.16.1.21 to dump()
Oct 11 09:44:15 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(nfs)
Oct 11 09:44:16 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(mountd)
Oct 11 09:44:21 nl101 rpcbind: connect from 172.16.1.21 to
getport/addr(nlockmgr)
Yes lockd is running and the logs show a connection is made to it.  I even
tried binding rpcbind to just the VPN IP.
What I couldn't do was enable debugging, the -d flag just caused rpcbind to
hang.
So I'm currently here:
nfs_server_enable="YES"
nfs_server_flags=" -u -t -n12"
nfs_client_enable="YES"
portmap_enable="YES"
mountd_enable="YES"
mountd_flags=" -r"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_flags=" -l -L"
#rpc_lockd_flags="-h 10.9.8.6"
#rpc_statd_flags="-h 10.9.8.6"

rpcinfo -p 9.0server
and
rpcinfo -p 9.1server  match
program vers proto   port  service
    10    4   tcp    111  rpcbind
    10    3   tcp    111  rpcbind
    10    2   tcp    111  rpcbind
    10    4   udp    111  rpcbind
    10    3   udp    111  rpcbind
    10    2   udp    111  rpcbind
    10    4 local    111  rpcbind
    10    3 local    111  rpcbind
    10    2 local    111  rpcbind
    15    1   udp    994  mountd
    15    3   udp    994  mountd
    15    1   tcp    994  mountd
    15    3   tcp    994  mountd
    13    2   udp   2049  nfs
    13    3   udp   2049  nfs
    100024    1   udp   1016  status
    100024    1   tcp   1016  status
    13    2   tcp   2049  nfs
    13    3   tcp   2049  nfs
    100021    0   udp    611  nlockmgr
    100021    0   tcp    726  nlockmgr
    100021    1   udp    611  nlockmgr
    100021    1   tcp    726  nlockmgr
    100021    3   udp    611  nlockmgr
    100021    3   tcp    726  nlockmgr
    100021    4   udp    611  nlockmgr
    100021    4   tcp    726  nlockmgr

I'm kinda lost.  I tried getting NFSv4 working, but I couldn't mount the
test export
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
nfs_client_enable="YES"

/nlsysvol/home  -maproot=vpopmail -network 172.16.1.0 -mask 255.255.255.0
V4: /mnt
/mnt/first -maproot=root:  -network 172.16.1.0 -mask 255.255.255.0

The problem with using v4 is that I don't want to upgrade my 7.1 box - it
just works as is :)  But if that's what I have to do, then that's what I
have to do. 
Can someone give me a push in the right direction?  I've been fighting
this for a full day now.

Here's my perl lock script -
#!/usr/bin/perl
use Fcntl qw(:flock);
my $lock_file = 'lockfile';
open(LOCKFILE,">>$lock_file") or die "Cannot open $lock_file: $!\n";
print "Opened file $lock_file\n";
flock(LOCKFILE, LOCK_SH) or die "Can't get shared lock on $lock_file:
$!\n";
print "Got shared lock on file $lock_file\n";
sleep 2;
close LOCKFILE;
print "Closed file $lock_file\n";
exit;
___
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"

OpenBSD at vBSDcon October 25 - 27, 2013 in Herndon, VA

2013-10-07 Thread Miller, Vincent (Rick)
For only USD$75 you can register for vBSDcon hosted by Verisign on October 25 – 
27, 2013 in Herndon, VA.  That is less than 3 weeks away!  If you have not 
registered yet, it is definitely recommended as vBSDcon will feature a series 
of roundtable discussions, educational sessions, best practice conversations, 
and exclusive networking opportunities.  Registrations for vBSDcon will be open 
until October 23, 2013 at http://www.vbsdcon.com/.

vBSDcon will feature developers, Henning Brauer and Reyk Floeter, from the 
OpenBSD project.  Henning and Reyk will be tag teaming a presentation on packet 
inspection with pf in OpenBSD.  pf was introduced in 2001 as an alternative to 
ipf. Over the years, pf has become a mature, secure, and powerful, yet easy to 
use high performance packet filter. In this presentation, Henning Brauer will 
describe some of the features of pf and Reyk Floeter will describe utilizing 
relayd in conjunction with pf. You can expect to hear about using hooks for 
transparent proxies, deep packet inspection, socket splicing, NATs, load 
balancing and more.

Read more about our speakers and their topics, the conference agenda, other 
activities, and registrations at http://www.vbsdcon.com/.  This is an event you 
will not want to miss.  Register now before it's too late!

Follow @VERISIGN and @hostileaddmin on Twitter for more news and updates on 
#vBSDcon

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com<mailto:vmil...@verisign.com>

t: 703-948-4395  m: 703-581-3068
12061 Bluemont Way, Reston, VA  20190

http://www.vbsdcon.com
http://www.verisigninc.com

“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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"


vBSDcon Is Coming: Oct 25 - 27, 2013 in Herndon, VA

2013-10-03 Thread Miller, Vincent (Rick)
vBSDcon is a BSD-related conference occurring *this month* from 25th – 27th, 
just 3 weeks away in the DC Metropolitan area.  At a cost of only USD$75, the 
time to register for this event is now!  vBSDcon has an amazing list of 
speakers from the FreeBSD and OpenBSD communities, but participation from all 
sectors of the community is encouraged.  Our list of speakers and their 
respective topics can be reviewed at http://www.vbsdcon.com/.

In addition to plenary speakers, vBSDcon will also have lightning talks.  The 
topics for these talks is chosen by you!  When attendees register for vBSDcon 
at http://www.vbsdcon.com/, you are given the opportunity to identify subjects 
and areas of interest to you.  This will be translated into a lightning talk to 
be given by one of our attendees.

Be sure not to miss this event hosted by Verisign!  This is your opportunity to 
come together with others in the BSD communities for a series of roundtable 
discussions, educational sessions, best practice conversations, and exclusive 
networking opportunities.

Registrations will be accepted now through October 23rd at 
http://www.vbsdcon.com/.  We look forward to seeing you all there!

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com<mailto:vmil...@verisign.com>

t: 703-948-4395  m: 703-581-3068
12061 Bluemont Way, Reston, VA  20190

http://www.vbsdcon.com
http://www.verisigninc.com

“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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"


vBSDcon Registrations Only Open For 30 More Days!

2013-09-23 Thread Miller, Vincent (Rick)
Hi all,

There are only 30 more days left to register for Verisign's vBSDcon.  Online 
registrations will become unavailable October 23, 2013.  For those planning to 
attend, we encourage you to register soon at http://www.vbsdcon.com/.  You will 
not want to miss this event.  There will presentations by several well seasoned 
technologists such as Baptiste Darroussin on the subject of "PkgNG", a new 
packaging system for FreeBSD based system such as FreeBSD, PC-BSD, and 
Dragonfly BSD.

Baptiste has a background in UNIX Systems Engineering and is involved in 
multiple facets of the FreeBSD project including being a Ports committer for 3 
years and a src committer for 2 years. His involvement also includes being a 
member of the Port management team. PkgNG, a new package management framework 
for FreeBSD, is one of Baptiste's primary roles where he is a lead developer.

In addition to plenary speakers, vBSDcon will also feature after conference 
hours Hacker Lounges and Doc Sprints.  These sessions will be available for the 
entire BSD communities to include NetBSD, OpenBSD, FreeBSD, and other BSD based 
distributions to have a collaborative space to work and communicate with one 
another.  Complimentary wireless internet access will also be available.

We look forward to seeing you all there for this opportunity to come together 
as a community.  Remember, online registrations will close on October 23, 2013. 
 Register for vBSDcon at http://www.vbsdcon.com/.

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703.948.4395   m: 703.581.3068
12061 Bluemont Way, Reston, VA  20190

http://www.vbsdcon.com/
http://www.verisigninc.com/


"This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately."
___
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"


vBSDcon Registrations Remain Open!

2013-09-19 Thread Rick Miller
Hi all,

As many of you are aware, the social aspect of BSD-related conferences is
very important and offers opportunities to meet and socialize with one
another.  Maintaining that tradition, Verisign's vBSDcon will feature a
mid-conference social, brought to you exclusively by Juniper, and will be
celebrating 20 years of FreeBSD.  We encourage all attendees to join
Verisign and Juniper to celebrate this milestone for the FreeBSD project.

Conference activities start on October 25, 2013 at 6:00PM Eastern with a
reception dinner hosted by Verisign at the Dulles Hyatt.  General
conference activities start the following morning with a presentation by
David Chisnall, FreeBSD Core Team member, on the migration from GCC to
LLVM/Clang within FreeBSD.  David Chisnall is a Research Associate at the
University of Cambridge, where he works on the interface between languages,
operating systems, and hardware. He is also a member of the FreeBSD Core
Team and an LLVM/Clang committer. He is the author of several books,
including the Definitive Guide to the Xen Hypervisor. He created the
current GNUstep implementation of Objective-C and has maintained it for
some years, and is now mostly responsible for the C++ stack in FreeBSD,
having implemented the ABI library and ported the STL implementation.

We are in high gear planning for vBSDcon 2013 hosted by Verisign at the
Dulles Hyatt in Herndon, VA and we are drawing closer by the week with 5
weeks left to register.  Registrations are being accepted on the conference
web site at http://www.vbsdcon.com/ through October 23, 2013 after which
registrations will only be taken in person at the event.

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


Re: how to log sshd access in a single file

2013-09-16 Thread Rick Miller
On Mon, Sep 16, 2013 at 2:44 PM, aurikus grande  wrote:

> >Most web servers handle their own logging.
> I do _not_ want the web server acces to be logged (at least as of now).
>

Which is fine, but still configured via your web server.


>Have you looked at /var/log/auth.log?
> yes, and as you mentioned in your previous update, it logs the success
> login (only). Unsuccessfull attempts are being sent to  /var/log/messages .
> So there are 2 separate files. I would like to have all sshd access
> attempts in one single file - regardless if they are successfull or
> unsuccessfull.
>

> Quotation: "I believe FreeBSD defaults to failed ssh authentication is
> logged to /var/log/messages while successful authentication is written to
> /var/log/auth.log."
>

I was incorrect.  Fail and success are both recorded here.  Even if this
were the case, the best way to accomplish what you're looking for is still
syslog.


> >Can you elaborate on your reasons for running sshd via inetd? I'm curious
> as I've never even heard of anyone attempting this.
> When i searched how to setup / configure sshd on internet, i found many
> hints to start it using inetd. Since it worked for me there was no reason
> to change it.
>

In general, most administrators will not run ssh via inetd.  A more common
configuration is detailed in the FreeBSD handbook at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html

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


Re: how to log sshd access in a single file

2013-09-16 Thread Rick Miller
Hi Aurikus,

Selecting "Reply all" when replying to messages on the list allows the
entire list to benefit from the discussion.


On Mon, Sep 16, 2013 at 11:05 AM, aurikus grande  wrote:

> Hello Rick.
>
> thanks a lot for your quick reply.
>
> Does your recommendation - to use syslog.conf mean instead - that i cant
> accomplish what i want with hosts.allow and twist ?
>

I am unfamiliar with twist and cannot authoritatively answer this question.
 Not to mention, it does not appear to be in base

I´m still reading through the man pages and try to understand how to
> configure syslog.conf.
>

I recommended syslog, because it is the stock logging mechanism for FreeBSD.

On my 9.1 system, /etc/syslog.conf contains:

auth.info;authpriv.info /var/log/auth.log

These facilities are both logging to /var/log/auth.log.

Your stated goal was logging of failed ssh attempts to your host.  The
above line in syslog.conf accomplishes this by sending the message to
/var/log/auth.log.

TCPWrappers will have no effect on logging of failed ssh attempts unless
sshd is configured to run via inetd.

I recommend pf or ipfw for filtering access to ssh.

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


Re: how to log sshd access in a single file

2013-09-16 Thread Rick Miller
On Mon, Sep 16, 2013 at 1:57 PM, aurikus grande  wrote:

> Hello Rick,
>
> sorry that i did not reply to all, from now on i will use "reply to all".
> Thanks for pointing it out.
>
> I will also open port 80 for web access, but i do not want to log those.
> Because i expect a huge amount of traffic on my server.
>

Most web servers handle their own logging.

So i only want to log successfull and unsuccessfull sshd access.
>

Have you looked at /var/log/auth.log?

twist is part of the FreeBSD 9.1 base installation, i did not yet install
> any other package.
>

That was my mistake, I sent the email before editing that out as I had
intended.

The idea behind using hosts.allow was because i could specify the rule by
> the service (and not by the level of the message).
>
> And yes, in my case sshd is configured to run via inetd.
>
> You are correct, my main goal is to log all failed sshd attempts. If it is
> easier to log successfull and failed attempts (to the same file), this
> would also be fine for me.
>

Can you elaborate on your reasons for running sshd via inetd?  I'm curious
as I've never even heard of anyone attempting this.


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


Re: how to log sshd access in a single file

2013-09-16 Thread Rick Miller
On Mon, Sep 16, 2013 at 9:36 AM, aurikus grande  wrote:

> Hello,
>
> just a few days ago i setup my first FreeBSD server, so i am new to this
> OS.
>
> I already tried to find the information i was looking for, but to no luck.
>
> I try to add a line in /etc/hosts.allow which would allow and log all
> attempts using SSH (sshd).


[ snip ]

I would recommend using the auth and authpriv facilities for syslog.  Check
the syslog.conf manpage for configuring such activity.  I believe FreeBSD
defaults to failed ssh authentication is logged to /var/log/messages while
successful authentication is written to /var/log/auth.log.

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


vBSDcon 2013 Registrations Open

2013-09-09 Thread Miller, Vincent (Rick)
With approximately six (6) weeks until the event, Registrations for vBSDcon 
2013 remain open until October 23rd, 2013.  Register now for this BSD 
conference scheduled to take place at the Dulles Hyatt in Herndon, VA from 
October 25 – 27, 2013.

Users and developers from across the BSD communities are encouraged to attend 
the event intended bring together members of the BSD community for a series of 
roundtable discussions, educational sessions, best practice conversations, and 
exclusive networking opportunities.  Those interested in such an opportunity to 
learn, experience, and meet others involved in the BSD communities should plan 
to attend vBSDcon 2013.

vBSDcon is proud to bring such prolific speakers such as:

  *   David Chisnall, a member of FreeBSD's Core Team, speaking on the 
migration from GCC to LLVM/CLANG within the FreeBSD project.
  *   Luigi Rizzo, FreeBSD source committer and project developer for netmap, 
speaking on the Evolution of the Netmaps Framework
  *   Baptiste Daroussin, FreeBSD source committer and project developer for 
PkgNG, speaking on the topic of PkgNG
  *   Henning Brauer & Reyk Floeter, OpenBSD developers, speaking on deep 
packet inspection with OpenBSD and PF
  *   Scott Long, FreeBSD source committer, speaking on "Disspelling the Stigma 
of the "Dot-oh" Release
  *   Devin Teske, FreeBSD source committer, with "A Comprehensive Look at 
bsdconfig"
  *   Kris Moore, PC-BSD Director of Development, speaking on automating 
deployment of FreeBSD and PC-BSD systems
  *   John Hixson, of iXsystems, speaking on the topic of FreeNAS plugins

vBSDcon is being hosted at the Dulles Hyatt in Herndon, VA making it extremely 
convenient for attendees who book their room at the venue.  The venue is also 
just minutes from Dulles International Airport with regular shuttles to/from 
the hotel and airport terminal during the day.  Breakfast, lunch, and snacks 
will be provided on-site by the hotel's on premise restaurant.

The schedule includes a reception dinner at the Dulles Hyatt on the evening of 
October 25th provided by Verisign and a mid-conference social the following 
evening celebrating 20 years of FreeBSD.  Space for off hours hacker lounges 
and doc sprints will be available in the conference facilities with 
complimentary wireless internet access.  The BSD Certification Group will also 
be hosting a BSDA certification exam on Saturday evening following the 
completion of conference activities for the day.

All are invited to take part in this event and are encouraged to register at 
the vBSDcon web site at http://www.vbsdcon.com/.  Simply click the "Register 
now" button to begin your registration!  We look forward to meeting you all 
there!

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703.948.4395   m: 703.581.3068
12061 Bluemont Way, Reston, VA  20190

http://www.vbsdcon.com/
http://www.verisigninc.com/


“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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"


vBSDcon 2013 Registration Opens!

2013-08-12 Thread Miller, Vincent (Rick)
In April 2013, Verisign announced vBSDcon 2013 to be held October 25 – 27, 2013 
in Dulles, VA.  The conference, formatted to resemble an unConference concept, 
will feature speakers such as David Chisnall, Luigi Rizzo, Baptiste Daroussin, 
Henning Brauer, Reyk Floeter, and others.  vBSDcon will include events like 
hacker lounges, doc sprints, BSDA exams, and a mid-conference social*.

In these most recent months, we have been developing the vBSDcon conference 
website hosted at http://www.vbsdcon.com/.  It includes full details 
surrounding the schedule, agenda, and speakers for vBSDcon.  The most recent 
addition to the conference website is that registrations are now open!  We look 
forward to seeing many of you from the various BSD communities at vBSDcon 2013!

* Schedule is subject to change without notice, The BSDA exams are hosted by 
the BSD Certification group and not an official part of vBSDcon

--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com<mailto:vmil...@verisign.com>

t: 703.948.4395   m: 703.581.3068
12061 Bluemont Way, Reston, VA  20190

http://www.verisigninc.com
“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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: Make Release

2013-08-05 Thread Rick Miller
On Thu, Aug 1, 2013 at 12:40 PM, Amitabh Kant  wrote:
> Devin Teske & Rick Miller have a fairly extensive explanation on their
> blogs on how to create your own modified iso's. Search the archives for
> links. Hopefully they can chime in with their respective links.

Sorry to show up late for the discussion...

Devin Teske definitely has more experience and knowledge than I.
However, several of my blog posts may have relevant and helpful
information on customizing images.  There's not really one single
answer as it depends largely on what you're looking to do.

My customized images use a scripted sysinstall install.cfg that
fetches a dynamically generated answer file from Cobbler.  The answer
file is based on a text template which includes Cheetah calls to
Cobbler snippets for various things, including modifying the rc.conf.
All lines modifying the rc.conf are placed in the answer file
following the installCommit resword.

Also understand that we replaced the http media type module with our
own permitting direct http installs.  In 8.4 or newer, there is a new
media type called httpDirect (or similar) that accomplishes this as
well.

Here are some posts you may find helpful:

http://blog.hostileadmin.com/2013/04/11/installing-freebsd-via-cobbler/
http://blog.hostileadmin.com/2012/10/08/building-freebsd-media-with-custom-packages/
http://blog.hostileadmin.com/2012/05/08/using-sysinstall-for-automated-freebsd-8-x-installs/

Bear in mind this applies specifically to FreeBSD 8.x.  I will begin
attacking 9.x in the coming months and anticipate more blog posts on
accomplishing similar tasks within 9.x.

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


Re: vBSDcon Website Update

2013-07-22 Thread Rick Miller
I just checked it out.  Seems to be up for me...

On Monday, July 22, 2013, Виталий Туровец wrote:

> The site seems down from here (AS58054).
>
>
> 2013/7/22 Rick Miller  'cvml', 'vmil...@hostileadmin.com');>>
>
>> Hi all,
>>
>> For those interested in vBSDcon, a BSD-related conference scheduled
>> for October 2013 in the Washington DC area, the web site has been
>> updated to include a detailed schedule and speaker line-up including
>> descriptions of their presentations.  Registrations will begin in the
>> coming month.  Please feel free to check it out at
>> http://www.vbsdcon.com/.
>>
>> --
>> Take care
>> Rick Miller
>> ___
>> freebsd-questions@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 > 'freebsd-questions-unsubscr...@freebsd.org');>"
>>
>
>
>
> --
>
>
>
>
> ~~~
> WBR,
> Vitaliy Turovets
> NOC Lead @TV-Net ISP
> +38(093)265-70-55
> VITU-RIPE
> X-NCC-RegID: ua.tv
>


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

vBSDcon Website Update

2013-07-22 Thread Rick Miller
Hi all,

For those interested in vBSDcon, a BSD-related conference scheduled
for October 2013 in the Washington DC area, the web site has been
updated to include a detailed schedule and speaker line-up including
descriptions of their presentations.  Registrations will begin in the
coming month.  Please feel free to check it out at
http://www.vbsdcon.com/.

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


vBSDcon Website Update

2013-07-22 Thread Rick Miller
Hi all,

The vBSDcon website has been updated with a full speaker line-up and
schedule for the BSD-related conference October 25 - 27, 2013.  Check
it out at http://www.vbsdcon.com/.  Registrations will begin in the
coming weeks.

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


Mirroring Binary Packages

2013-07-01 Thread Rick Miller
Hi all,

I want to mirror binary packages for 8.x amd64 internally on an
isolated network.  It appears the appropriate source would be on an
official mirror at pub/FreeBSD/ports/amd64/packages-8-stable/ for the
most recent updates.  However, it does not appear to have been updated
since October 2012 as seen by the dates of files.  Is this the
appropriate source to mirror for the most recently built binary
packages for 8.x amd64?

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


8.4-RELEASE buildworld failure

2013-06-13 Thread Rick Miller
Hi all,

I checked out releng/8.4, executed buildworld, and received the following
error.  Wondering if someone might have experience with this scenario.

===> share/doc/psd/13.rcs/rcs_func (all)
groff -Tascii -P-c  -mtty-char -ms
 /usr/src/share/doc/psd/13.rcs/rcs_func/../../../../../gnu/usr.bin/rcs/doc/
rcs_func.ms | gzip -cn > rcs_func.ascii.gz
===> share/doc/psd/15.yacc (all)
touch _stamp.extra
make: don't know how to make ssA. Stop
*** Error code 2

Stop in /usr/src/share/doc/psd.
*** Error code 1

Stop in /usr/src/share/doc.
*** Error code 1

Stop in /usr/src/share.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

There is no src.conf and make.conf only sets PERL_VERSION.



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


Re: looking for command to display default route ip address

2013-05-29 Thread Rick Miller
On Wed, May 29, 2013 at 2:03 PM, Joe  wrote:
> Hello list
>
> How do I find the ip address of the default route?

The following examples return the next hop, usually a router.

# grep defaultrouter /etc/rc.conf
defaultrouter="192.168.0.1"

or

# netstat -r
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1   UGS 0  192em0
...

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


Re: freebsd-stable/release?

2013-05-21 Thread Rick Miller
On Tue, May 21, 2013 at 2:18 PM, Pol Hallen  wrote:
> Hi all :-)
>
> quick question: for a production server, what it best way?

I've done work with organizations that will not install anything that
is considered a development branch, of which stable/ is.  Therefore,
for production environments, those organizations will only install
-RELEASE or releng/ releases.  It comes down to a decision you and/or
your organization must make and that decision will be based on a
risk/reward analysis.

Hope that helps.

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


vBSDCon Announcement

2013-04-17 Thread Miller, Vincent (Rick)
vBSDCon  •  SAVE THE DATE!

Dulles, VA  •  October 25-27, 2013

Please join us October 25-27, 2013 at the Hyatt in Dulles, Virginia for the 
first biennial vBSDCon event. This exciting weekend will bring together members 
of the BSD community for a series of roundtable discussions, educational 
sessions, best practice conversations, and exclusive networking opportunities. 
See below for details on this industry weekend not to be missed:

AGENDA
   • Friday, October 25: Evening Reception
   • Saturday, October 26: General Session, Birds of a Feather Sessions
   • Sunday, October 27: General Session, Breakout Sessions

WHO SHOULD ATTEND
   • Developers
   • Engineers
   • Administrators
   • Innovators

TOPICS
   • PkgNG w/ Baptiste Daroussin
   • A comprehensive look at bsdinstall with Devin Teske
   • Netflix Demo/Presentation with Scott Long
   • netmap with Luigi Rizzo
   • Migration from GCC to LLVM/Clang with David Chisnall

Registration information will be sent to you in May!
Questions? Please contact: 
eventst...@verisign.com<mailto:eventst...@verisign.com>


--
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703.948.4395   m: 703.581.3068
12061 Bluemont Way, Reston, VA  20190

http://www.verisigninc.com
“This message (including any attachments) is intended only for the use of the 
individual or entity to which it is addressed, and may contain information that 
is non-public, proprietary, privileged, confidential and exempt from disclosure 
under applicable law or may be constituted as attorney work product. If you are 
not the intended recipient, you are hereby notified that any use, 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this message in error, notify sender 
immediately and delete this message immediately.”
___
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"


Installing FreeBSD via Cobbler

2013-04-15 Thread Rick Miller
Hi All,

For anyone interested, I posted a blog article explaining how to install
FreeBSD via Cobbler posted at
http://blog.hostileadmin.com/2013/04/11/installing-freebsd-via-cobbler/.

I'd like to thank Devin Teske for his help with this project.

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


Re: building crunchgen fails

2013-03-07 Thread Rick Miller
Hi All,

In the thread below, my custom boot_crunch.conf works in releng/8, but
fails in stable/8.  Here is the failure message:

cc -static -o boot_crunch boot_crunch.o hostname.lo pwd.lo rm.lo sh.lo
ls.lo test.lo cat.lo df.lo sleep.lo camcontrol.lo dhclient.lo
fsck_ffs.lo ifconfig.lo mount_nfs.lo newfs.lo route.lo rtsol.lo
tunefs.lo kenv.lo sysctl.lo mdmfs.lo mdconfig.lo mount.lo dmesg.lo
fdisk.lo bsdlabel.lo uname.lo cpio.lo find.lo minigzip.lo sed.lo
awk.lo fetch.lo arp.lo sysinstall.lo usbconfig.lo grep.lo -ll -ledit
-lfetch -lmd -lcrypt -lftpio -lz -lnetgraph -ldialog -lncurses -lcam
-lsbuf -lutil -ldisk -lufs -ldevinfo -lkvm -lgeom -lbsdxml -larchive
-lbz2 -lusb -lgnuregex -llzma -lssl -lcrypto -ljail -lm
camcontrol.lo(.text+0x13fe): In function `mode_list':
: undefined reference to `mode_sense'
camcontrol.lo(.text+0x1e93): In function `mode_edit':
: undefined reference to `mode_sense'
camcontrol.lo(.text+0x1ee7): In function `mode_edit':
: undefined reference to `mode_sense'
camcontrol.lo(.text+0x1f6a): In function `mode_edit':
: undefined reference to `mode_sense'
camcontrol.lo(.text+0x209e): In function `mode_edit':
: undefined reference to `mode_sense'
camcontrol.lo(.text+0x2118): In function `mode_edit':
: undefined reference to `mode_select'
*** Error code 1

Stop in /usr/obj/usr/src/release/boot_crunch.
*** Error code 1

Stop in /usr/src/release.
+ umount /dev
*** Error code 1

Stop in /usr/src/release.

I attempted my custom boot_crunch.conf as well as the default.  Both
fail with the same error.  My custom boot_crunch.conf is @
http://pastebin.com/jfcJKb08

Note the "special" line included as Devin recommends the thread below.

mode_sense and mode_select appear to be defined (but I am far from
proficient with C to declare with any authority what the problem might
be.  I'm hoping someone could help me understand and correct the
problem.

On Wed, Jan 23, 2013 at 11:01 AM, Devin Teske  wrote:
>
> On Jan 23, 2013, at 7:22 AM, Rick Miller wrote:
>
>> Hi All,
>>
>> When executing crunchgen -o boot_crunch.conf && make -f boot_crunch.mk
>> I get the following error:
>>
>> cc -static -o boot_crunch boot_crunch.o hostname.lo pwd.lo rm.lo sh.lo
>> ls.lo test.lo cat.lo df.lo sleep.lo camcontrol.lo dhclient.lo
>> fsck_ffs.lo ifconfig.lo mount_nfs.lo newfs.lo route.lo rtsol.lo
>> tunefs.lo kenv.lo sysctl.lo mdmfs.lo dmesg.lo fdisk.lo bsdlabel.lo
>> uname.lo cpio.lo find.lo minigzip.lo sed.lo awk.lo fetch.lo arp.lo
>> sysinstall.lo usbconfig.lo grep.lo -lcam -lsbuf -lutil -ll -ledit
>> -lfetch -lmd -lcrypt -lftpio -lz -lnetgraph -ldialog -lncurses -ldisk
>> -lufs -ldevinfo -lkvm -lgeom -lbsdxml -larchive -lbz2 -lusb -lgnuregex
>> -llzma -lssl -lcrypto -ljail -lm
>> camcontrol.lo(.text+0x730b): In function `main':
>> : undefined reference to `mode_edit'
>> camcontrol.lo(.text+0x73fa): In function `main':
>> : undefined reference to `mode_list'
>> *** Error code 1
>>
>> Stop in /tmp/crunchtmp.
>>
>> I understand that there may need to be some shuffling of the libraries
>> in the boot_crunch.conf, but I've done that to no avail.  Wondering if
>> anyone else may be able to shed some light on this...
>>
>> The boot_crunch.conf can be viewed at http://pastebin.com/ZwVPQn3h
>>
>
> According to the Makefile, if RELEASE_CRUNCH is defined, then modeedit.o 
> object is omitted (causing your undefined references).
>
> I perceive the long-term real solution would be to patch camcontrol.c (and 
> pedantically camcontrol.h) to not use mode_edit()/mode_list() when 
> RELEASE_CRUNCH is defined.
>
> However, you should be able to get through your problem by adjusting your 
> boot_crunch.conf slightly:
>
> Try http://pastebin.com/Ge6UCZEZ
>
> The difference being:
>
> --- boot_crunch.conf.orig   2013-01-03 16:29:20.0 -0800
> +++ boot_crunch.conf2013-01-03 16:29:13.0 -0800
> @@ -17,6 +17,7 @@
>
>  srcdirs /usr/src/sbin
>  progs camcontrol
> +special camcontrol objs camcontrol.o modeedit.o util.o
>  progs dhclient
>  progs fsck_ffs
>  progs ifconfig
>
> --
> Devin
>
> _
> The information contained in this message is proprietary and/or confidential. 
> If you are not the intended recipient, please: (i) delete the message and all 
> copies; (ii) do not disclose, distribute or use the message in any manner; 
> and (iii) notify the sender immediately. In addition, please be aware that 
> any message addressed to our domain is subject to archiving and review by 
> persons other than the intended recipient. Thank you.



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


Re: Cannot resolve localhost

2013-02-14 Thread Rick Miller
Does the 'hosts' line in the nsswitch.conf direct the resolver to try
'files' before 'dns'?



On 2/14/13, Martin Pola  wrote:
> Hi,
>
> I'm trying to get my FreeBSD system to resolve localhost into 127.0.0.1, but
> unfortunately it doesn't work. It appears the resolver is never reading from
> /etc/hosts, where I have this line:
> 127.0.0.1 localhost
>
> Here's a sample output of what I get when I try to resolve the name:
> $ nslookup localhost
> ;; Got recursion not available from 91.90.24.250, trying next server
> Server: 8.8.8.8
> Address:8.8.8.8#53
>
> ** server can't find localhost: NXDOMAIN
>
> What am I missing?
>
> Kind regards,
> Martin
> ___
> 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"
>

-- 
Sent from my mobile device

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


Re: about unatteneded installation

2013-02-14 Thread Rick Miller
On Thu, Feb 14, 2013 at 12:34 PM, Teske, Devin
 wrote:
> On Thu, 14 Feb 2013, Rick Miller wrote:
>
> No worries on time lapse. In fact, I had been needing to get back to you on 
> assuaging those 4 failed
> patch hunks on your sysinstall work.
>
> FreeBSD Druid (both 8.x and 9.x) use sysinstall for disk partitioning. What 
> does sysinstall use, you say?
> Glad you asked. sysinstall(8) uses a combination of:

I anticipated this.  I am under the impression one cannot force proper
slice alignment on 4K sector drives with sysinstall (see
http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html).
 Is it safe to assume that this also applies to 9.x when utilizing
sysinstall based installer?

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


Re: about unatteneded installation

2013-02-14 Thread Rick Miller
Hi Devin,

On 12/20/12 1:10 PM, "Devin Teske"  wrote:
>
> For now, people that prefer sysinstall can use my FreeBSD Druid pre-built 
> install media:
>
> For 9.0:
> http://sourceforge.net/projects/druidbsd/files/FreeBSD-9.0_Druid-1.0b60.iso/download
>
> For 8.3:
> http://sourceforge.net/projects/druidbsd/files/FreeBSD-8.3_Druid-1.0b60.iso/download
>
> As for 10.0 (when it comes out), expect bsdinstall to surpass sysinstall (in 
> many many great ways) in every way (unlike the current status in 9.x).

I had begun evaluating FreeBSD Druid and DruidBSD, but was sidetracked
with a different project.  I'm hoping to return to this in the coming
weeks.  Having said that, I am wondering what disk partition utilities
FreeBSD Druid/DruidBSD use when installing 9.x.  Is it using
fdisk/bsdlabel or gpart?

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


Re: sh script ?

2013-01-24 Thread Rick Miller
On Thu, Jan 24, 2013 at 1:07 PM, Fbsd8  wrote:
> I get this message [: 10.0.10.21: bad number on this code
>
>[ "${saved_ip}" -eq "${used_ip}" ] && echo "good match"
>
> Both variables have valid ip addresses in them.
> Why does it think the variable content is a number and not text?
> What am I doing wrong?

The -eq operator is used to compare integers.  When comparing strings,
use the == operator.


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


Re: building crunchgen fails

2013-01-23 Thread Rick Miller
On Wed, Jan 23, 2013 at 11:01 AM, Devin Teske  wrote:
>
> On Jan 23, 2013, at 7:22 AM, Rick Miller wrote:
>
>> Hi All,
>>
>> When executing crunchgen -o boot_crunch.conf && make -f boot_crunch.mk
>> I get the following error:
>>
>> cc -static -o boot_crunch boot_crunch.o hostname.lo pwd.lo rm.lo sh.lo
>> ls.lo test.lo cat.lo df.lo sleep.lo camcontrol.lo dhclient.lo
>> fsck_ffs.lo ifconfig.lo mount_nfs.lo newfs.lo route.lo rtsol.lo
>> tunefs.lo kenv.lo sysctl.lo mdmfs.lo dmesg.lo fdisk.lo bsdlabel.lo
>> uname.lo cpio.lo find.lo minigzip.lo sed.lo awk.lo fetch.lo arp.lo
>> sysinstall.lo usbconfig.lo grep.lo -lcam -lsbuf -lutil -ll -ledit
>> -lfetch -lmd -lcrypt -lftpio -lz -lnetgraph -ldialog -lncurses -ldisk
>> -lufs -ldevinfo -lkvm -lgeom -lbsdxml -larchive -lbz2 -lusb -lgnuregex
>> -llzma -lssl -lcrypto -ljail -lm
>> camcontrol.lo(.text+0x730b): In function `main':
>> : undefined reference to `mode_edit'
>> camcontrol.lo(.text+0x73fa): In function `main':
>> : undefined reference to `mode_list'
>> *** Error code 1
>>
>> Stop in /tmp/crunchtmp.
>>
>> I understand that there may need to be some shuffling of the libraries
>> in the boot_crunch.conf, but I've done that to no avail.  Wondering if
>> anyone else may be able to shed some light on this...
>>
>> The boot_crunch.conf can be viewed at http://pastebin.com/ZwVPQn3h
>>
>
> According to the Makefile, if RELEASE_CRUNCH is defined, then modeedit.o 
> object is omitted (causing your undefined references).
>
> I perceive the long-term real solution would be to patch camcontrol.c (and 
> pedantically camcontrol.h) to not use mode_edit()/mode_list() when 
> RELEASE_CRUNCH is defined.
>
> However, you should be able to get through your problem by adjusting your 
> boot_crunch.conf slightly:
>
> Try http://pastebin.com/Ge6UCZEZ
>
> The difference being:
>
> --- boot_crunch.conf.orig   2013-01-03 16:29:20.0 -0800
> +++ boot_crunch.conf2013-01-03 16:29:13.0 -0800
> @@ -17,6 +17,7 @@
>
>  srcdirs /usr/src/sbin
>  progs camcontrol
> +special camcontrol objs camcontrol.o modeedit.o util.o
>  progs dhclient
>  progs fsck_ffs
>  progs ifconfig

Thanks, Devin!  That worked...which Makefile did you find this in?

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


building crunchgen fails

2013-01-23 Thread Rick Miller
Hi All,

When executing crunchgen -o boot_crunch.conf && make -f boot_crunch.mk
I get the following error:

cc -static -o boot_crunch boot_crunch.o hostname.lo pwd.lo rm.lo sh.lo
ls.lo test.lo cat.lo df.lo sleep.lo camcontrol.lo dhclient.lo
fsck_ffs.lo ifconfig.lo mount_nfs.lo newfs.lo route.lo rtsol.lo
tunefs.lo kenv.lo sysctl.lo mdmfs.lo dmesg.lo fdisk.lo bsdlabel.lo
uname.lo cpio.lo find.lo minigzip.lo sed.lo awk.lo fetch.lo arp.lo
sysinstall.lo usbconfig.lo grep.lo -lcam -lsbuf -lutil -ll -ledit
-lfetch -lmd -lcrypt -lftpio -lz -lnetgraph -ldialog -lncurses -ldisk
-lufs -ldevinfo -lkvm -lgeom -lbsdxml -larchive -lbz2 -lusb -lgnuregex
-llzma -lssl -lcrypto -ljail -lm
camcontrol.lo(.text+0x730b): In function `main':
: undefined reference to `mode_edit'
camcontrol.lo(.text+0x73fa): In function `main':
: undefined reference to `mode_list'
*** Error code 1

Stop in /tmp/crunchtmp.

I understand that there may need to be some shuffling of the libraries
in the boot_crunch.conf, but I've done that to no avail.  Wondering if
anyone else may be able to shed some light on this...

The boot_crunch.conf can be viewed at http://pastebin.com/ZwVPQn3h


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


FreeBSD 8 or 9 on HP ML350 G8

2012-12-20 Thread Rick Miller
Hi all,

I'm just wondering if anyone has any experience running 8 or 9 on the
ML350 G8.  Is there anything that should be taken into consideration
while using these chassis' such as having 2 or more of the built-in
RAID controllers activated?  Potential issues with disk volumes of
varying sizes (like, 2T or more)?  Any special BIOS settings or
firmware versions?

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


mfsroot starts sysinstall how?

2012-12-18 Thread Rick Miller
Hi all,

For anyone interested, I posted a blog with regards to how sysinstall
is run from mfsroot.  URL is
http://blog.hostileadmin.com/2012/12/18/mfsroot-starts-sysinstall-how/

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


Re: mfsroot starts sysinstall how?

2012-12-12 Thread Rick Miller
On Wed, Dec 12, 2012 at 10:44 AM, Rick Miller  wrote:
> Hi All,
>
> How is sysinstall invoked in a FreeBSD 8.x mfsroot.gz?

To explain more, I would like to boot into a shell as opposed to
sysinstall.  safe mode and single user don't seem to.


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


mfsroot starts sysinstall how?

2012-12-12 Thread Rick Miller
Hi All,

How is sysinstall invoked in a FreeBSD 8.x mfsroot.gz?

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


Re: make release and mfsroot

2012-12-11 Thread Rick Miller
On Tue, Dec 11, 2012 at 5:05 PM, Devin Teske  wrote:
>
> Though, to resize the mfsroot, I still rely on release(7) and the above
> patches.

Here's another question, have you applied this approach to
boot_crunch.conf?  I simply replaced the default boot_crunch.conf with
my own in the source tree.  This is how I discovered MFSSIZE, because
the resulting boot_crunch binary was larger than the available space.

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


Re: make release and mfsroot

2012-12-11 Thread Rick Miller
Hi Devin,

On Tue, Dec 11, 2012 at 4:22 PM, Devin Teske  wrote:
> Hi Rick,
>
> If you want, you could follow my approach which is to take the completed
> mfsroot.gz and use a Makefile to manage the creation of custom mfsroots
> (keeping the original unmodified, making it simpler to test different
> iterations).

Very interesting approach.  I like it and will test it.

It looks as though I would need to add code to the Makefile if files
copied in later are greater in size than the space available.  Would
you agree?

> The advantage is that you don't have to re-perform the release(7) process
> each time you want to make a change to your mfsroot.

This is a very compelling advantage.

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


make release and mfsroot

2012-12-11 Thread Rick Miller
Hi All,

I generate a bootonly ISO and want to add files to the mfsroot.gz
created by the release.8 target.  I want sysinstall to load an
install.cfg which makes a call to doconfig.sh.  The target destination
for the files is stand/.  My question is will the below patch
accomplish this for me provided install.cfg and doconfig.sh exist in
/usr/src/release?

# diff -u Makefile.orig Makefile
--- Makefile.orig   2012-12-11 18:15:29.0 +
+++ Makefile2012-12-11 19:01:46.0 +
@@ -509,6 +509,7 @@
rm foo; \
fi
-test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release
+   -test -f doconfig.sh && cp doconfig.sh ${CHROOTDIR}/usr/src/release
echo "#!/bin/sh"> ${_MK}
echo "set -ex"  >> ${_MK}
echo "trap 'umount /dev || true' 0" >> ${_MK}
@@ -823,7 +824,9 @@
done
 .endif
-test -f ${.CURDIR}/install.cfg \
-   && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
+   && cp ${.CURDIR}/install.cfg ${RD}/mfsfd/stand
+   -test -f ${.CURDIR}/doconfig.sh \
+   && cp ${.CURDIR}/doconfig.sh ${RD}/mfsfd/stand
@mkdir -p ${RD}/mfsfd/boot
 .if ${TARGET_ARCH} != "ia64" && ${TARGET_ARCH} != "powerpc"
@cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot


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


FreeBSD Ports Batch Install

2012-12-10 Thread Rick Miller
For those interested...

hostileadmin.com has published a new blog entitled FreeBSD Ports Batch
Install at http://blog.hostileadmin.com/2012/12/10/freebsd-ports-batch-install/

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


Re: root filesystem and soft-update

2012-12-07 Thread Rick Miller
On Tue, Dec 4, 2012 at 4:50 PM, Rick Miller  wrote:
> Hi all,
>
> I remember one time seeing a site that explained why soft-updates was
> not enabled for the root filesystem.  I tried looking for it earlier,
> but failed to locate it.  Is there someone who knows where it is?

Thanks Steve and Bas.  Both answers were helpful.


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


Re: gPXE booting FreeBSD?

2012-12-07 Thread Rick Miller
On Tue, Dec 4, 2012 at 10:55 AM, Rick Miller  wrote:
> Hi All,
>
> Does anyone have any experience booting FreeBSD via gPXE and have
> pointers to relevant documentation and/or blog posts?

Thanks for all your replies.  Our current direction appears to be one
of modifying the FreeBSD bootonly ISO to perform installs and load it
from gPXE as follows...

The menu will appear something like (from memory, syntax may be wrong):

kernel memdisk
imgargs memdisk raw iso
initrd http path to the ISO

Once we have it tested and implemented, I'll likely blog the subject
at http://blog.hostileadmin.com/

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


root filesystem and soft-update

2012-12-04 Thread Rick Miller
Hi all,

I remember one time seeing a site that explained why soft-updates was
not enabled for the root filesystem.  I tried looking for it earlier,
but failed to locate it.  Is there someone who knows where it is?

--
Rick

-- 
Sent from my mobile device

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


Re: gPXE booting FreeBSD?

2012-12-04 Thread Rick Miller
Hi Dan,

On Tue, Dec 4, 2012 at 11:44 AM, Daniel Feenberg  wrote:
>
>
> On Tue, 4 Dec 2012, Rick Miller wrote:
>
>> Hi All,
>>
>> Does anyone have any experience booting FreeBSD via gPXE and have
>> pointers to relevant documentation and/or blog posts?
>>
>
> In the last paragraph of our description of PXE booting FreeBSD:
>
>   http://www.nber.org/sys-admin/FreeBSD-diskless.html
>
> we report that "gpxelinux did not work for us. (It hangs once a menu item is
> selected, or if more than one choice is available)." Have you tried and
> gotten better/worse/similar results? Our trial was about a year ago, it
> would be worth trying again.

Thanks for the reply and link.  We've not tried booting FreeBSD from gPXE yet.

Our goal is to PXE boot clients into a non-interactive FreeBSD
installation.  We do this now utilizing pxegrub from Grub2 to pass
environment/kernel variables to stage 2 as documented at
http://blog.hostileadmin.com/2012/05/04/pxe-booting-into-a-freebsd-installation/

Where $kernel_path is the FreeBSD kernel and $initrd_path is the
mfsroot from the release build.  The rest of the environment variables
are dynamically derived based on data stored in a database for each
host.

We want to replace pxegrub with gPXE with the hope that we can still
pass the environment/kernel variables to stage 2.

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


gPXE booting FreeBSD?

2012-12-04 Thread Rick Miller
Hi All,

Does anyone have any experience booting FreeBSD via gPXE and have
pointers to relevant documentation and/or blog posts?

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


ipfwNG project?

2012-12-04 Thread Rick Miller
I came across the wiki doc for ipfwNG (http://wiki.freebsd.org/IpfwNg)
and wondered if any of the concepts of this project are currently
being developed for FreeBSD and when we might start seeing those
concepts included in releng/ code.

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


Re: gpart and FreeBSD 8.x

2012-12-03 Thread Rick Miller
On Mon, Dec 3, 2012 at 7:49 AM, Julien Cigar  wrote:
>
> gpart is in BASE on 8.x so there is nothing to install
>

Thanks, Julien!  I added a comment to this effect on the post!

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


gpart and FreeBSD 8.x

2012-12-03 Thread Rick Miller
For anyone interested, Posted a new blog with regards to gpart on
FreeBSD 8.x (with a link to one of Warren's blog posts):

http://blog.hostileadmin.com/2012/12/03/freebsd-partitions-and-filesystems-with-gpart/

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


How do you manage jails?

2012-11-29 Thread Rick Miller
Hi All,

I want to inquire how the majority of users manage jails within their
own environments.  Do you use the utilities described in the handbook
in chapter 16 or some other management facility like qjail or ezjail?

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


filesystem size does not equal free space

2012-11-21 Thread Rick Miller
Hi All,

I install FreeBSD 8.3-R on a DL360 G8 with two disk volumes, the 2nd
of which is 3TB.  The fdisk partition editor shows the disk geometry
as 812160 cyl/255 heads/32 sectors = 6627225600 sectors (3235950MB).
sysinstall creates a slice on the 3TB volume that uses the entire
disk.  However, when the filesystem is labelled and mounted, it is
slightly over 1TB in size.  Am I correct in assuming that it's only
1TB because the disk geometry is greater than what is supported by
sysinstall and/or bsdlabel?

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


computing kern.maxfilesperproc and kern.maxfiles

2012-11-12 Thread Rick Miller
Hi All,

I just posted a blog about how kern.maxfilesperproc and kern.maxfiles
are computed at
http://blog.hostileadmin.com/2012/11/12/freebsd-computing-kern-maxfilesperproc-and-kern-maxfiles/
for anyone who may be interested...

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


Fault in Terminal Server causing server to hang on boot?

2012-11-08 Thread Rick Miller
Hi All,

I'm reaching out in hopes that someone may have seen something similar
and can shed some light.  Consider an HP DL360p G8 with FreeBSD
8.3-RELEASE-p4, serial port cabled to a Cisco 2800 series terminal
server.  Console is configured in the following manner:

/boot/loader.conf: console="comconsole"
/etc/ttys: ttyu0   "/usr/libexec/getty std.9600"   vt100  on secure

The system hangs at boot while the terminal server is cabled to the
serial port.  Output is displayed on the video console to the point
that loader loads /boot/loader.conf.  The system freezes.  I have no
visibility into the terminal server configuration or port which the
hardware is cabled, but as soon as the serial cable is pulled from the
serial port, the system resumes booting and is remotely accessible
(via ssh) when it has come up.

Attached to a different terminal server (same model), the system boots
fine.  Not sure what the fault is on the terminal server.  What
possible conditions would cause the system to freeze while the serial
port is attached?  Why would loader care about these conditions?  The
desired result would be that the system boots completely despite any
fault with the terminal server.

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


FreeBSD 8.3 udp_input() kernel panic

2012-11-06 Thread Rick Miller
Hi All,

I posted a blog yesterday with regards to a FreeBSD kernel panic in
FreeBSD 8.3 at 
http://blog.hostileadmin.com/2012/11/05/freebsd-kernel-panic-in-udp_input/
in case anyone has any interest...

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


Re: Burning .iso DVD's

2012-11-03 Thread Rick Miller
On Fri, Nov 2, 2012 at 5:12 PM, Al Plant  wrote:
>
> Aloha,
>
> I am not able to get a successfull burn of .iso DVD's  9.0 or higher
> FreeBSD.
>
>
> Chapter 19.7 ... of Handbook says to use growisofs with ATAPI support same
> as I do for 7.* 8.* FreeBSD etc.
>
> I get error of no growisofs ..when I run growisofs -dvd-compat -Z
> /dev/cd0=image.iso

growisofs is part of the dvd+rw-tools port/package.

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


Re: PXE tftp - double boot

2012-10-29 Thread Rick Miller
On Mon, Oct 29, 2012 at 4:57 PM, Vagner  wrote:
> Hello!
> Tell me please, how can i boot from tftp server (throught pxe) several
> copies FreeBSD from different path (For example: /pxeroot/freebsd1 and
> /pxeroot/freebsd2)?
> I see variale rootpath at source sys/boot/i386/libi386/pxe.c. I
> compiled several pxeboot files (there i changed variable rootpath from "/" to 
> "/pxeroot/freebsd[1-2]"), and i booted this files throught pxelinux.
> Booting stoped at boot kernel.

This blog post may help
you...http://blog.hostileadmin.com/2012/05/04/pxe-booting-into-a-freebsd-installation/

In the grub2pxe Configuration section, you can see that the kernel and
"initrd" (or mfsroot) images are variable-ized (if that's a word).
Perhaps you could use a similar approach to accomplish the same.

Obviously, in that post, Grub2pxe replaced FreeBSD's pxeboot.bs and
was chained to pxelinux.

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


Re: FreeBSD help require for DellpowerEdge R620

2012-10-26 Thread Rick Miller
On Fri, Oct 26, 2012 at 6:54 AM, Md Samadul Sarker
 wrote:
>
> I have got DELL PowerEdge R620 which raid controller is  H710. Can anyone
> help me that is there any chance to install FreeBSD on this and how? Any
> suggestions will be highly appreciated.

I have a couple blog posts related to running FreeBSD on the R620.
You may want to read through them.

http://blog.hostileadmin.com/2012/05/22/freebsd-on-dell-poweredge-12g-servers/
http://blog.hostileadmin.com/2012/06/30/freebsd-dell-12g-x520-da2-10g-nic/

As far as I am aware, the mfi driver needed to support the H710 RAID
controller is only in stable/8 and stable/9 right now.  I believe it
should be in 9.1-RELEASE, but I could be wrong.  If/when 8.4-RELEASE
is dropped, it should be in there too.

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


Re: MFS root filesystem and static binaries size

2012-10-16 Thread Rick Miller
Kudos to Devin for his explanation!

On Tue, Oct 16, 2012 at 4:13 PM, Devin Teske  wrote:
>
> On Oct 16, 2012, at 11:13 AM, Stanislav Zaharov wrote:
>
>> Hello,
>>
>> I have a question regarding the mfsroot file system organization on
>> installation cd.
>> How is it possible that we have bigger binary files in ls list while actual
>> occupied space is less.
>
> The beauty of crunchgen(1).
>
> If you use the "-i" flag to ls, you'll see the inode numbers (and 
> subsequently notice that a great-many inodes are identical).
>
> When two files have the same inode, they are "hard links" to each other. 
> Unlike a "soft link" (or "symbolic link" as they are more appropriately 
> called), which stores a destination-path of the target, a hard link instead 
> looks and acts no different than the original in every way.
>
> So, I can hear you asking, if all these binaries are linked to the same file, 
> what file is that?
>
> /stand/boot_crunch
>
> This is a "crunched" binary (produced by crunchgen(1)).
>
> Here's the configuration file that is fed to crunchgen(1) that produces this 
> binary:
>
> http://svn.freebsd.org/base/stable/9/release/i386/boot_crunch.conf
>
> Quite simply, crunchgen(1) takes a list of programs (progs) and libraries 
> (libs) and produces a "crunched" binary.
>
> You then create links (hard or soft) to the crunched binary. The crunched 
> binary knows by argv[0] which main() subroutine to invoke.
>
> This ultimately allows things to stay nice and tight (storage space-wise).
>
>
>
>> But when we try to copy these files on similar
>> filesystem using cp or dd the actual used space is bigger?
>>
>
> cp(1) doesn't track hard-links.
>
> tar(1) does.
>
> If you want to copy /stand out of the mfsroot, you can do this:
>
> mkdir /stand2
> tar cf - /stand | tar xf - -C /stand2
>
> A corresponding "ls -li /stand2" should show that the majority of files all 
> have the same inode (whereas if you use cp, "ls -li" will instead show 
> different inodes for every file that was copied, because again, cp(1) does 
> not support retention of hard-links).
>
>
>
>
>> For example when we mount mfsroot image we get:
>>
>> $ df -h /mnt/
>>
>> FilesystemSizeUsed   Avail Capacity  Mounted on
>> /dev/md0  3.9M3.3M534k86%/mnt
>>
>> $ ls -lhs /mnt/stand
>> ...
>>  766 -r-xr-xr-x  30 root  wheel 3M 10 apr  2012 dhclient
>>  766 -r-xr-xr-x  30 root  wheel 3M 10 apr  2012 cpio
>>  766 -r-xr-xr-x  30 root  wheel 3M 10 apr  2012 camcontrol
>>  766 -r-xr-xr-x  30 root  wheel 3M 10 apr  2012 boot_crunch
>> ...
>>
>> But:
>>
>> $ du -hc /mnt/stand
>> ...
>> 3,2Mtotal
>>
>>
>> But if we copy these files onto another UFS filesystem we really consume
>> the space:
>>
>> $ cp -a /mnt/stand /tmp/stand
>>
>> $ du -hc /tmp/stand
>> ...
>> 91Mtotal
>>
>>
>> How is it possible and why does it matter for mfsroot?
>>
>
> The reason crunchgen(1) is used to create /stand/boot_crunch for the install 
> media (mfsroot) is to save space and simplify the environment. When using a 
> crunched binary, there are no libraries to worry about for example (all the 
> libraries are compiled-in).
> --
> Cheers,
> Devin
>
> _
> The information contained in this message is proprietary and/or confidential. 
> If you are not the intended recipient, please: (i) delete the message and all 
> copies; (ii) do not disclose, distribute or use the message in any manner; 
> and (iii) notify the sender immediately. In addition, please be aware that 
> any message addressed to our domain is subject to archiving and review by 
> persons other than the intended recipient. Thank you.
> ___
> 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"



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


Re: MFS root filesystem and static binaries size

2012-10-16 Thread Rick Miller
On Tue, Oct 16, 2012 at 2:13 PM, Stanislav Zaharov
 wrote:
> Hello,
>
> I have a question regarding the mfsroot file system organization on
> installation cd.
> How is it possible that we have bigger binary files in ls list while actual
> occupied space is less. But when we try to copy these files on similar
> filesystem using cp or dd the actual used space is bigger?

They are hardlinks.

I have a blog post at
http://blog.hostileadmin.com/2012/08/21/automating-generation-of-the-mfsroot-gz/
that touches on the subject...read the comments starting at line #76.

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


Adding boot options to the loader menu

2012-10-11 Thread Rick Miller
Hi All,

If you have any interest, I have posted a blog about adding boot
options to the loader menu...

http://blog.hostileadmin.com/2012/10/11/so-you-want-a-new-freebsd-boot-loader-option/

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


Building a release with custom packages

2012-10-08 Thread Rick Miller
Hi All,

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

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


Re: FreeBSD 8.3 with LSI MegaRAID 9265-8i

2012-10-04 Thread Rick Miller
On Thu, Oct 4, 2012 at 1:52 PM, Joseph Mays  wrote:
> Trying to load FreeBSD 8.3 on to an LSI MegaRAID 9265i volume -- 3 3TB disks
> for a total volume size of 8.8 TB. The installer program runs from the DVD
> (we are using 8.3 because we couldn't get a 9.0 boot disk to load at all,
> actually.) But when it gets to the point of creating partitions it says no
> hard disk is present. Is this something I should have expected, or am I
> missing something?

That device is based on the SAS2208 chip.  I had the same issue
(different card, same chip).  Check out the blog post below, it may
help.

http://blog.hostileadmin.com/2012/05/22/freebsd-on-dell-poweredge-12g-servers/

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


Re: FreeBSD 8.x sysisntall dists

2012-10-03 Thread Rick Miller
>> Patch was approved. PR should be closed within the hour.
>
> All patched.
>
> http://svn.freebsd.org/changeset/base/240972
>
> Can you test? I'll close the PR upon success.

Thanks to Devin for getting this patch submitted and approved so
quickly.  It was a great help to me at work!

For everyone else that may have interest, I have a blog post with
regards to generating a release with multiple kernel distributions:

http://blog.hostileadmin.com/2012/10/01/building-freebsd-with-multiple-kernels/

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


Re: FreeBSD 8.x sysisntall dists

2012-09-27 Thread Rick Miller
On Wed, Sep 26, 2012 at 4:19 PM, Devin Teske  wrote:
>
>
> All patched.
>
> http://svn.freebsd.org/changeset/base/240972
>
> Can you test? I'll close the PR upon success.

Success!  Thanks!

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


Re: FreeBSD 8.x sysisntall dists

2012-09-26 Thread Rick Miller
>> > >
>> > > Confirmed. I'll raise a PR with a patch to correct this.
>> >
>> > Awesome!  Thanks for the quick reply, Devin!  If you don't mind, will
>> > you pass on the PR so I can track it?
>>
>> Sure, no prob. It should appear in GNATS within 15-20 minutes. I'll get you
> the
>> PR number when I get my response from GNATS.
>>
>
> bin/172096: sysinstall does not support new DEBUG kernel distribution in 8.x
>
>
>> >  I am also considering
>> > approaching one of our developers to ask if they can write a patch,
>> > would that be helpful?
>> >
>>
>> No need. Patch is already written.
>>
>> I'll be submitting it to my mentor for review/approval shortly.
>
> Submitted.

Excellent, 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: FreeBSD 8.x sysisntall dists

2012-09-26 Thread Rick Miller
>> dists=base kernels GENERIC SMP DEBUG doc catpages
>>
>> DEBUG was added to the above along with the new release build.  All
>> distributions get installed with the exception of DEBUG.  In looking
>> through sysinstall sources (I am not much of a C programmer to begin
>> with) and it appears as though the sources need to be modified to
>> support a new DEBUG distribution.
>>
>> I wonder if you might be able to confirm or refute this...
>>
>
> Confirmed. I'll raise a PR with a patch to correct this.

Awesome!  Thanks for the quick reply, Devin!  If you don't mind, will
you pass on the PR so I can track it?  I am also considering
approaching one of our developers to ask if they can write a patch,
would that be helpful?

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


FreeBSD 8.x sysisntall dists

2012-09-26 Thread Rick Miller
Hi All,

I performed a `make release` with FreeBSD 8.3p4 sources that built a
secondary kernel (called DEBUG).  It ended up in the release inside
kernels/ as expected.  The install.cfg file includes the line:

dists=base kernels GENERIC SMP DEBUG doc catpages

DEBUG was added to the above along with the new release build.  All
distributions get installed with the exception of DEBUG.  In looking
through sysinstall sources (I am not much of a C programmer to begin
with) and it appears as though the sources need to be modified to
support a new DEBUG distribution.

I wonder if you might be able to confirm or refute this...

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


Creating kernel distribution from sources

2012-09-24 Thread Rick Miller
Hi All,

I've generated a DVD iso and imported it into a provisioning platform.
 After this integration, a decision was made to rebuild the kernel
with an option enabled.  As opposed to executing a full `make
release`, I just want to build the kernel distribution.  In reading
the manpage, it looks like I can just run `make release.3 && make
release.5 && make release.6` to accomplish this.  Is this correct?
Would the resulting files be installed in ${CHROOTDIR}/R?

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


Installation Logs for FreeBSD 8.x?

2012-09-12 Thread Rick Miller
Hi All,

Is it possible to write FreeBSD 8.x installation logs onto a resulting
FreeBSD 8.x host via sysinstall or some scripting method?  I am
interested in output one sees during a normal installation plus any
warning/error conditions.  Ideally, this information will end up on
the installed host in a directory within /var.  sysinstall docs don't
seem to explain any sort of facility to accomplish this.  Perhaps
there is someone out there who has done something similar that might
be able to share their knowledge?

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


Unable to get crash dump

2012-08-24 Thread Rick Miller
Hi All,

Running 8.3-STABLE 5/21/2012 on HP DL360.  While testing crash dump
functionality, the dump aborts with the following message:

Aborting dump due to I/O error.
status == 0xb, scsi status == 0x0

** DUMP FAILED (ERROR 5) **
Automatic reboot in 5 seconds - press a key on the console to abort

Googling and searching freebsd.org have produced what appeared to be
some what relevant messages, but I found nothing pointing to a cause
and fix.  I'm hoping someone might be able to point me in a direction
to figuring this out.

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


Re: vlan tagging in releng/8.3 not working

2012-08-15 Thread Rick Miller
On Mon, Aug 13, 2012 at 3:39 PM, Rick Miller  wrote:
> Hi All,
>
> I am running the latest releng/8.3 on a HP DL360 with an Intel 82599
> 10G NIC using the ixgbe driver.  Without vlan tagging, tcpdump sees
> traffic on the default vlan.  With vlan tagging there is no traffic on
> the interface.  Wondering if anyone else has seen similar and/or might
> be able to provide some additional information?
>
> I'm not seeing anything in syslog.  The interface is configured via rc.conf:
>
> cloned_interfaces="vlan0"
> ifconfig_vlan0="inet 10.x.x.x  netmask=255.255.255.0 vlan $id vlandev ix0"

I was missing ifconfig_ix0="up" in rc.conf.  After inserting this, it worked!

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


vlan tagging in releng/8.3 not working

2012-08-13 Thread Rick Miller
Hi All,

I am running the latest releng/8.3 on a HP DL360 with an Intel 82599
10G NIC using the ixgbe driver.  Without vlan tagging, tcpdump sees
traffic on the default vlan.  With vlan tagging there is no traffic on
the interface.  Wondering if anyone else has seen similar and/or might
be able to provide some additional information?

I'm not seeing anything in syslog.  The interface is configured via rc.conf:

cloned_interfaces="vlan0"
ifconfig_vlan0="inet 10.x.x.x  netmask=255.255.255.0 vlan $id vlandev ix0"

Where $id is our vlan id.

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


Re: Does FreeBSD start slices at head boundaries?

2012-07-06 Thread Rick Miller
I went through this exercise to determine if there were boundary
issues installing FreeBSD on disks.  I concluded that FreeBSD was
indeed installing at head boundaries.  A colleague then pointed me to
http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html
which calls into question whether sysinstall and fdisk really are
installing FreeBSD's slice at the 64th cylinder.  Should I be
concerned with this?

This came about due to a scenario where Linux would start its
filesystem at sector 63, right before the head boundary.  On I/O
intensive applications, it was common for reads/write to cross the
head boundary resulting in unnecessary disk thrashing and long I/O
wait times.  The issue was corrected in Linux by changing the start
cylinder to 2048.  Some theorized that FreeBSD was vulnerable to this
scenario.

Thoughts/feedback?

On Fri, Jul 6, 2012 at 11:09 AM, Rick Miller  wrote:
> Hi All,
>
> Installing FreeBSD 8.x I select "A" at the fdisk partition editor to
> use the entire disk.  It creates an unused slice with offset 0 and 63
> sectors in size.  Then partition 1 starts at sector 63 and utilizes
> the remaining disk space.  Does sysinstall's diskPartitonEditor macro
> automatically start partitions at head boundaries?  The reason I ask
> is because I am most familiar with sector 64 being the start of a head
> boundary as opposed to 63.  Is my understanding incorrect?
>
> --
> Take care
> Rick Miller



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


Re: Does FreeBSD start slices at head boundaries?

2012-07-06 Thread Rick Miller
[snip]

>> I think Ryan means partition and not slice?
>> I would not recommend no slices at all, It's deprecated to use
>> "dangerously dedicated disks"
>
> First of all, it's "dedicated disks", there's nothing dangerous
> related. :-)
>
> If you are using the MBR approach ("old way"), you can do
> either creating a "DOS primary partition", a slice, which
> then will contain your partitions: a swap partition and
> one or more UFS partitions. So you have ad0s1a, ad0s1b
> and so on.
>
> When you omit the slice and create the partitions on the "bare
> disk", you have a dedicated layout. FreeBSD will run with
> it without any problem. It _may_ be possible that some
> systems like "Windows" have trouble with this approach,
> but if you're going to use FreeBSD only on that disk, there
> is no danger, no problem. You have ad0a, ad0b and so on.
>
> If you are using the GPT approach ("new way"), you create
> partitions using a different tool set, setting them to be
> a file system or a swap partition. You end up in ad0p1,
> ad0p2 and so on. Note that those aren't "DOS primary
> partitions" anymore, outdated systems may not properly
> recognize them.
>
> If you label your partitions (you can do that with both
> approaches), you don't need to deal with device names at
> all.

Thanks for this explanation.

Is there any performance advantage to using a "dedicated disk" layout
over the old way of creating a slice and having your partitions within
it?

[snip]

> To OP:
>
> If you omit the slice and just create two partitions (one for
> FS and one for swap), FreeBSD will use this fine. Just make
> sure to set the boot parameters properly. Or simply use the
> GPT-related tools, so you don't have to deal with the question
> at all.

Thanks again for the concise explanation.
___
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: Does FreeBSD start slices at head boundaries?

2012-07-06 Thread Rick Miller
On Fri, Jul 6, 2012 at 11:19 AM, Ryan Coleman  wrote:
> Sector 64 is sector 63 when you start at 0.

OMG, so right...I cannot believe that went over my head!  Thanks for
pointing it out.  It lets me know that diskPartitionEditor is
automatically selecting start and end sectors at boundaries.  Thanks!

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


Does FreeBSD start slices at head boundaries?

2012-07-06 Thread Rick Miller
Hi All,

Installing FreeBSD 8.x I select "A" at the fdisk partition editor to
use the entire disk.  It creates an unused slice with offset 0 and 63
sectors in size.  Then partition 1 starts at sector 63 and utilizes
the remaining disk space.  Does sysinstall's diskPartitonEditor macro
automatically start partitions at head boundaries?  The reason I ask
is because I am most familiar with sector 64 being the start of a head
boundary as opposed to 63.  Is my understanding incorrect?

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


Re: FreeBSD 8-STABLE on R620 w/ X520-DA2/Intel 82599

2012-06-29 Thread Rick Miller
On Fri, Jun 29, 2012 at 11:56 AM, Gary Palmer  wrote:
> On Fri, Jun 29, 2012 at 10:50:52AM -0400, Rick Miller wrote:
>> Hi All,
>>
>> I have 2 hosts, HP DL360 G8 and Dell R620.  Both have the
>> X520-DA2/Intel 82599 10G Fiber NIC.  Both also have the same FreeBSD
>> 8-STABLE image.  The Dell displays the following in dmesg and we are
>> unable to configure the ix0 or ix1 interfaces where the HP works just
>> fine.  Wondering if anyone else has experienced this?
>>
>> pci4:  at device 0.0 (no driver attached)
>> pci4:  at device 0.1 (no driver attached)
>
> Please see
>
> http://lists.freebsd.org/pipermail/freebsd-net/2012-June/032579.html
>
> it may be of some assistance.  It looks like adding the Dell specific
> PCI IDs may be all thats required.

We removed an Intel branded equivalent from the DL360 and tried it in
the R620.  It detected it no problem.  Only problem was we could not
see it in the BIOS, not a huge deal to us.

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


Re: FreeBSD 8-STABLE on R620 w/ X520-DA2/Intel 82599

2012-06-29 Thread Rick Miller
On Fri, Jun 29, 2012 at 11:56 AM, Gary Palmer  wrote:
> On Fri, Jun 29, 2012 at 10:50:52AM -0400, Rick Miller wrote:
>> Hi All,
>>
>> I have 2 hosts, HP DL360 G8 and Dell R620.  Both have the
>> X520-DA2/Intel 82599 10G Fiber NIC.  Both also have the same FreeBSD
>> 8-STABLE image.  The Dell displays the following in dmesg and we are
>> unable to configure the ix0 or ix1 interfaces where the HP works just
>> fine.  Wondering if anyone else has experienced this?
>>
>> pci4:  at device 0.0 (no driver attached)
>> pci4:  at device 0.1 (no driver attached)
>
> Please see
>
> http://lists.freebsd.org/pipermail/freebsd-net/2012-June/032579.html
>
> it may be of some assistance.  It looks like adding the Dell specific
> PCI IDs may be all thats required.

Hrmm, very interesting indeed.

How do I identify if/when/where the source has been updated?

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


FreeBSD 8-STABLE on R620 w/ X520-DA2/Intel 82599

2012-06-29 Thread Rick Miller
Hi All,

I have 2 hosts, HP DL360 G8 and Dell R620.  Both have the
X520-DA2/Intel 82599 10G Fiber NIC.  Both also have the same FreeBSD
8-STABLE image.  The Dell displays the following in dmesg and we are
unable to configure the ix0 or ix1 interfaces where the HP works just
fine.  Wondering if anyone else has experienced this?

pci4:  at device 0.0 (no driver attached)
pci4:  at device 0.1 (no driver attached)


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


Re: sysinstall diskPartitionEditor Question

2012-06-27 Thread Rick Miller
On Tue, Jun 26, 2012 at 10:30 AM, Rick Miller  wrote:
> Hi All,
>
> I'd like to set the offset/starting cylinder in install.cfg so that
> partitions begin on appropriate boundaries.  The applicable section of
> install.cfg looks like the following.  My assumption is that I need to
> make the changes in the "partition" section.  Is this correct?  Is the
> format of this value the same as a typical fdisk config file?

After copious amounts of reading and experimenting.  It seems as
though diskPartitionEdit doesn't support specifying a starting
cylinder.  When I specify partition=all, it starts that slice at
sector 63.  I'd like to start it at 64 or above.  Is it feasible to
include gpart in the mfsroot and use that to partition the drive
before sysinstall continues with the installation?

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


sysinstall diskPartitionEditor Question

2012-06-26 Thread Rick Miller
Hi All,

I'd like to set the offset/starting cylinder in install.cfg so that
partitions begin on appropriate boundaries.  The applicable section of
install.cfg looks like the following.  My assumption is that I need to
make the changes in the "partition" section.  Is this correct?  Is the
format of this value the same as a typical fdisk config file?

### Begin install.cfg snippet

disk=\${disk}
partition=all
bootManager=standard
diskPartitionEditor

# root
\${disk}s1-1=ufs 12582912 /

# swap
\${disk}s1-2=swap ${swap} none

# tmp
\${disk}s1-3=ufs 2097152 /tmp 1

# 2 GB var
\${disk}s1-4=ufs 4194304 /var 1

# 2 GB home
\${disk}s1-5=ufs 4194304 /home 1

diskLabelEditor
### End snippet

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


Re: Intel X520-DA2 Supported in stable/8?

2012-06-25 Thread Rick Miller
Turns out the gbic in the switch was bad...I didn't think there was a
problem on the host, but you all still gave me some good info.  I
appreciate it!



On 6/25/12, Rick Miller  wrote:
> On Fri, Jun 22, 2012 at 7:23 PM, Jack Vogel  wrote:
>> Would probably be good to take care of the storm threshold if you
>> haven't,
>> set it to 0
>> and you disable the check, that's what we do internally. As for the
>> queues
>> and number
>> of descriptors, that's kind of up to you, different work loads and
>> environments work best
>> with different setups.
>>
>> Hopefully, when you get rid of the rx ring setup failure you will get
>> things
>> working.
>
> Thanks, Jack.  I did get rid of the rx ring failure.  Link status
> still shows no carrier.  I think everything looks right from the
> host's perspective.
>
> --
> Take care
> Rick Miller
>

-- 
Sent from my mobile device

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


Re: Intel X520-DA2 Supported in stable/8?

2012-06-25 Thread Rick Miller
On Fri, Jun 22, 2012 at 7:23 PM, Jack Vogel  wrote:
> Would probably be good to take care of the storm threshold if you haven't,
> set it to 0
> and you disable the check, that's what we do internally. As for the queues
> and number
> of descriptors, that's kind of up to you, different work loads and
> environments work best
> with different setups.
>
> Hopefully, when you get rid of the rx ring setup failure you will get things
> working.

Thanks, Jack.  I did get rid of the rx ring failure.  Link status
still shows no carrier.  I think everything looks right from the
host's perspective.

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


Re: Intel X520-DA2 Supported in stable/8?

2012-06-22 Thread Rick Miller
On Fri, Jun 22, 2012 at 5:21 PM, Jack Vogel  wrote:
> Increase your system mbuf pool size, you do not want that failure to happen.

Thanks, Jack.  I saw a thread where you discussed this.  You are
referring to kern.ipc.nmbclusters, correct?

Should I also adjust the following?

hw.ixgbe.rxd
hw.ixgbe.txd
hw.ixgbe.num_queues
hw.intr_storm_threshold
___
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: Intel X520-DA2 Supported in stable/8?

2012-06-22 Thread Rick Miller
dmesg and ifconfig output below...

On Fri, Jun 22, 2012 at 4:02 PM, Rick Miller  wrote:
> On Fri, Jun 22, 2012 at 3:54 PM, Andrew Boyer  wrote:
>> The ixgbe driver creates devices named ix0, etc.
>>
>> I believe you need to run 'ifconfig ix0 up' before it will attempt to get 
>> link.
>
> Thanks for clarifying that tidbit.  At least I know the driver loading
> is the correct driver :)
>
> I did try ifup'ing the interface...it shows the interface up, status
> is still no carrier.  I've had confirmation that the cable itself is
> good.  I wonder if it matters that the upstream switch has VLAN
> tagging enabled?

ix0: 
port 0x7000-0x701f mem 0xf6b8-0xf6bf,0xf6b7-0xf6b73fff irq
40 at device 0.0 on pci7
ix0: Using MSIX interrupts with 9 vectors
ix0: RX Descriptors exceed system mbuf max, using default instead!
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: [ITHREAD]
ix0: Ethernet address: 90:e2:ba:15:e2:60
ix0: PCI Express Bus: Speed 5.0Gb/s Width x8
ix1: 
port 0x7020-0x703f mem 0xf6a8-0xf6af,0xf6a7-0xf6a73fff irq
44 at device 0.1 on pci7
ix1: Using MSIX interrupts with 9 vectors
ix1: RX Descriptors exceed system mbuf max, using default instead!
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: [ITHREAD]
ix1: Ethernet address: 90:e2:ba:15:e2:61
ix1: PCI Express Bus: Speed 5.0Gb/s Width x8


ix0: flags=8843 metric 0 mtu 1500

options=401bb
ether 90:e2:ba:XX:XX:XX
inet 10.1.2.50 netmask 0xfe00 broadcast 10.1.3.255
media: Ethernet autoselect
status: no carrier
ix1: flags=8802 metric 0 mtu 1500

options=401bb
ether 90:e2:ba:XX:XX:XX
    media: Ethernet autoselect
status: no carrier


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


Re: Intel X520-DA2 Supported in stable/8?

2012-06-22 Thread Rick Miller
On Fri, Jun 22, 2012 at 3:54 PM, Andrew Boyer  wrote:
> The ixgbe driver creates devices named ix0, etc.
>
> I believe you need to run 'ifconfig ix0 up' before it will attempt to get 
> link.

Thanks for clarifying that tidbit.  At least I know the driver loading
is the correct driver :)

I did try ifup'ing the interface...it shows the interface up, status
is still no carrier.  I've had confirmation that the cable itself is
good.  I wonder if it matters that the upstream switch has VLAN
tagging enabled?
___
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: Intel X520-DA2 Supported in stable/8?

2012-06-22 Thread Rick Miller
On Fri, Jun 22, 2012 at 3:13 PM, Rick Miller  wrote:
> Hi All,
>
> Wondering if the Intel X520-DA2 10G Fibre NIC is supported in
> stable/8.  Hardware notes don't specify it, but I have a system up and
> the interfaces appear to be loaded by the ix driver.  However, status
> indicates "no carrier".

Ok, brain fart.  Please forgive my ineptitude.  I once sent an email
inquiring about the Intel 82599, which is this NIC.  Responses to that
mail say it's supported by the ixgbe driver.  My stable/8 installation
(5/21/2012) probes it with an ix driver that I cannot find any info
on.  The ixgbe manage indicates it only supports 82598 based
controllers.  Not sure what to think 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"


Intel X520-DA2 Supported in stable/8?

2012-06-22 Thread Rick Miller
Hi All,

Wondering if the Intel X520-DA2 10G Fibre NIC is supported in
stable/8.  Hardware notes don't specify it, but I have a system up and
the interfaces appear to be loaded by the ix driver.  However, status
indicates "no carrier".

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


Re: FreeBSD compatibility with HP ProLiant DL360p Generation 8 (Gen8) ?

2012-06-14 Thread Rick Miller
Reply inline...

On Thu, Jun 14, 2012 at 6:41 AM, Olivier Mueller  wrote:
> Hello,
>
> I need to order a few more servers for an internal project, and instead
> of the usual DL360G7 we now use without any problem with FreeBSD, there
> would now be the next generation, called "Gen8".
>
> Intel® C600 Series Chipset
> Intel® E5-2600 Processor Family
> Storage Controller : HP Smart Array P420i/1GB
> Network Controller : HP Ethernet 1Gb 4-port 331FLR Adapter
> (full specs: 
> http://h18000.www1.hp.com/products/quickspecs/14211_na/14211_na.pdf )

I cannot comment on 9.x as we have not yet tested it on the 360p G8.
I can, however, say that we did not have problems with the RAID
controller with stable/8.  We did have problems with the on-board NIC,
I don't remember what model it is, but it is based on the BCM5719
controller.  We ordered a few PCIe Intel NICs and tried the 82571
which did work with stable/8.  We've got on order a few of the HP
NC361T, which is based on the Intel i350, which we tested in a Dell
and it worked there.  Again, all this is with stable/8, but generally
if the driver works in 8, it will work in 9.


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


Re: How do I determine support for $xx?

2012-06-08 Thread Rick Miller
Matthew/Devin,  Thanks for the feedback.

After I sent this email, I determined that the Intel i350 is indeed
supported as a machine I built with FreeBSD was utilizing this NIC.

I've tried the BCM5719 with stable/8 (5/21/2012) and it kernel panics
when the interface is configured.  I was told by a source contributor
that the BCM5720 does not work (confirmed as recently as within the
last week), but I've not tested it.  I'm just passing this on as
information...I don't expect any feedback with regards to this.

On Fri, Jun 8, 2012 at 1:06 PM, Devin Teske  wrote:
>
> On Jun 8, 2012, at 9:45 AM, Devin Teske wrote:
>
>> Hi Rick (!),
>>
>> On Jun 8, 2012, at 8:07 AM, Rick Miller wrote:
>>
>
> [snip]
>
>>>
>>> I browsed the source and found many references to the BCM5719 and
>>> BCM5720.  However, I am unfamiliar enough with driver programming in C
>>> to identify if a controller is fully supported.
>>>
>>
>
> [snip]
>
>> If you were running, say, 8.0-R, even if you have the bge(4) driver loaded, 
>> you would see this in /var/run/dmesg.boot:
>>
>>       pciN:  (vendor=0x1106, dev=0x165f) at X.Y
>>
>
> Correction, (specific to BCM5720) you'd see:
>
>        pciN:  (vendor=0x14e4, dev=0x165f) at X.Y
>
> Which, btw, you can confirm to yourself by executing the following within 
> 8.3-R (with attached bge(4)):
>
> $ pciconf -lv | awk '/^bge/{print $1,$4}'
> bge0@pciN:A:B:C: chip=0x165f14e4
>
> Otherwise, you can see an unknown (non-working bge(4)) Broadcom BCM5720 
> hardware by executing (on 8.0-R for example):
>
> $ grep unk /var/run/dmesg.boot | grep 0x14e4
> pciN:  (vendor=0x14e4, dev=0x165f) at X.Y
>
> NOTE: On a system where all hardware is probed/attached, "grep unk 
> /var/run/dmesg.boot" should not produce any results. In this case, pciconf is 
> your tool for probing vendor/device IDs.
>
>
>> NOTE: Insert random numbers for "N", and "X.Y"
>>
>> How you know that 8.3-R's bge(4) driver supports the BCM5720 is because this 
>> source file:
>>
>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?annotate=1.83.2.35.2.1
>>
>> NOTE: I specifically pointed you at CVS instead of SVN so that you can see 
>> the version tagged for 8.3-R
>>
>> Specifically, this line:
>>
>>       2309: #define        BCOM_DEVICEID_BCM5720           0x165F
>
> [snip]
>
> --
> Devin
>
> _
> The information contained in this message is proprietary and/or confidential. 
> If you are not the intended recipient, please: (i) delete the message and all 
> copies; (ii) do not disclose, distribute or use the message in any manner; 
> and (iii) notify the sender immediately. In addition, please be aware that 
> any message addressed to our domain is subject to archiving and review by 
> persons other than the intended recipient. Thank you.



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


How do I determine support for $xx?

2012-06-08 Thread Rick Miller
Hi All,

If this question is better suited for a different list please let me
know.  Simply stated, my question is 'What is the best source for
identifying supported hardware?'.  Having said that, allow me to pose
an example...

I've attempted to identify if various ethernet controllers are
supported by FreeBSD and the drivers.  I used the hardware notes and
manpages for the respective ethernet drivers.  The information between
the two sometimes seems inconsistent and/or inaccurate.  For example,
the BCM5719 and BCM5720 are unsupported in FreeBSD at this time.  The
hardware notes at freebsd.org do not specify these controllers are
supported.  Inspection of the bge(4) manpage implies that the
controllers are supported as seen in the description section where it
states:

"The bge driver provides support for various NICs based on the
Broadcom BCM570x, 571x, 572x, 575x, 576x, 578x, 5776x and 5778x
Gigabit Ethernet controller chips and the 590x and 5779x Fast Ethernet
controller chips."

I browsed the source and found many references to the BCM5719 and
BCM5720.  However, I am unfamiliar enough with driver programming in C
to identify if a controller is fully supported.

Also, I attempted to identify whether the Intel i350 is supported.
It's not listed in the hardware notes or the igb(4) manpage so I
suspect it is not supported.  When I view the igb source, the i350 is
referenced numerous times.  Are these references simply code in
preparation for support of the i350?

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


Re: Support for Intel 82599ES?

2012-06-01 Thread Rick Miller
Thanks, Michael!

I took a look at the manpage and it does appear that it is supported
by the bge driver.  It also states that the 572x controller is also
supported, but I heard a rumor stating that the BCM5720 in particular
did not work even though the manpage indicates it is supported.  I was
unable to verify this, but that's why I was asking for clarification.

I will assume it works at this point.

On Fri, Jun 1, 2012 at 1:25 PM, Michael Butler
 wrote:
> On 06/01/12 13:06, Rick Miller wrote:
>> Thanks, Jack!
>>
>> Also another support question for the listsIs the Broadcom BCM5719
>> supported?  I can find neither in the hardware notes for 8.3 nor 9.0.
>
> man bge
>
>



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


Re: Support for Intel 82599ES?

2012-06-01 Thread Rick Miller
Thanks, Jack!

Also another support question for the listsIs the Broadcom BCM5719
supported?  I can find neither in the hardware notes for 8.3 nor 9.0.

On Fri, Jun 1, 2012 at 12:49 PM, Jack Vogel  wrote:
> Yes, it is supported in the ixgbe driver.
>
> Jack
>
>
> On Fri, Jun 1, 2012 at 8:36 AM, Rick Miller 
> wrote:
>>
>> Hi All,
>>
>> I did not see the Intel 82599ES chipset in the hardware release notes
>> for 8.3 or 9.0.  Are these controllers supported at this time?
>>
>> --
>> Take care
>> Rick Miller
>> ___
>> freebsd-sta...@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
>



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


Support for Intel 82599ES?

2012-06-01 Thread Rick Miller
Hi All,

I did not see the Intel 82599ES chipset in the hardware release notes
for 8.3 or 9.0.  Are these controllers supported at this time?

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


Re: Need some help building bootcrunch

2012-05-30 Thread Rick Miller
I changed some things around in the bootcrunch.conf and got it to
work.  It was building 'fetch'.  I moved -lfetch before -lmd and it
compiled fine.

On Wed, May 30, 2012 at 10:36 AM, Rick Miller  wrote:
> Hi All,
>
> I am attempting to build a bootcrunch file that I will inject into an
> mfsroot.  I'm unable to get it built completely and hoping someone
> might be able to help me identify the issue.
>
> crunchgen runs and exits without issue.  Running make fails with the
> following error indicating it's not able to find, presumably, libmd
> which exists.
>
> /usr/lib/libfetch.a(http.o)(.text+0x8c0): In function
> `http_authorize':: undefined reference to `MD5Init'
> /usr/lib/libfetch.a(http.o)(.text+0x8d5): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x8e7): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x8fc): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x90e): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x923): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x933): In function
> `http_authorize':: undefined reference to `MD5Final'
> /usr/lib/libfetch.a(http.o)(.text+0x991): In function
> `http_authorize':: undefined reference to `MD5Init'
> /usr/lib/libfetch.a(http.o)(.text+0x9a3): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x9b5): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x9ca): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0x9f9): In function
> `http_authorize':: undefined reference to `MD5Final'
> /usr/lib/libfetch.a(http.o)(.text+0xa11): In function
> `http_authorize':: undefined reference to `MD5Init'
> /usr/lib/libfetch.a(http.o)(.text+0xa21): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xa33): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xa48): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xa5a): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xa88): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xa93): In function
> `http_authorize':: undefined reference to `MD5Final'
> /usr/lib/libfetch.a(http.o)(.text+0xcc0): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xcd2): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xd1c): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xd2e): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xd47): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xd59): more undefined references to
> `MD5Update' follow
> /usr/lib/libfetch.a(http.o)(.text+0xdaa): In function
> `http_authorize':: undefined reference to `MD5Init'
> /usr/lib/libfetch.a(http.o)(.text+0xdbf): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xdd1): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xdea): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xdfc): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xe46): In function
> `http_authorize':: undefined reference to `MD5Update'
> /usr/lib/libfetch.a(http.o)(.text+0xe56): In function
> `http_authorize':: undefined reference to `MD5Final'
> *** Error code 1
>
> Stop in bootcrunch.
>
> This is the bootcrunch.conf (as you can see, -lmd exists on the libs lines):
>
> buildopts -DRELEASE_CRUNCH -Dlint
>
> srcdirs /usr/src/bin
> progs hostname
> progs pwd
> progs rm
> progs sh
> progs ls
> progs test
> progs cat

Need some help building bootcrunch

2012-05-30 Thread Rick Miller
Hi All,

I am attempting to build a bootcrunch file that I will inject into an
mfsroot.  I'm unable to get it built completely and hoping someone
might be able to help me identify the issue.

crunchgen runs and exits without issue.  Running make fails with the
following error indicating it's not able to find, presumably, libmd
which exists.

/usr/lib/libfetch.a(http.o)(.text+0x8c0): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0x8d5): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x8e7): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x8fc): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x90e): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x923): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x933): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0x991): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0x9a3): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9b5): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9ca): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9f9): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0xa11): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0xa21): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa33): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa48): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa5a): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa88): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa93): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0xcc0): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xcd2): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd1c): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd2e): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd47): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd59): more undefined references to
`MD5Update' follow
/usr/lib/libfetch.a(http.o)(.text+0xdaa): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0xdbf): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdd1): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdea): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdfc): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xe46): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xe56): In function
`http_authorize':: undefined reference to `MD5Final'
*** Error code 1

Stop in bootcrunch.

This is the bootcrunch.conf (as you can see, -lmd exists on the libs lines):

buildopts -DRELEASE_CRUNCH -Dlint

srcdirs /usr/src/bin
progs hostname
progs pwd
progs rm
progs sh
progs ls
progs test
progs cat
progs df
progs sleep
ln sh -sh
ln test [

srcdirs /usr/src/sbin
#progs camcontrol
progs dhclient
progs fsck_ffs
progs ifconfig
progs mount_nfs
progs newfs
progs route
progs rtsol
progs tunefs
progs kenv
progs sysctl
progs mdmfs
progs dmesg
ln fsck_ffs fsck_4.2bsd
ln fsck_ffs fsck_ufs

srcdirs /usr/src/usr.bin
progs uname
progs cpio
progs find
progs minigzip
progs sed
progs awk
progs fetch
progs ifconfig
ln minigzip gzip
ln minigzip gunzip
ln minigzip zcat

srcdirs /usr/src/usr.sbin
progs arp
progs sysinstall
progs usbconfig

srcdirs /usr/src/gnu/usr.bin
progs grep

libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
libs -ldialog -ln

Re: Running OS tftp vs. pxeboot tftp

2012-05-16 Thread Rick Miller
Thanks for your feedback.  I agree that separating the networks and
isolating the build network thus eliminating the need for VLAN tagging
is the ideal scenario.  Unfortunately, influencing those changes are
beyond my sphere of influence in this particular case.

At the end of the day, our solution was to replace pxeboot.bs with
Grub2pxe.  I have a blog post detailing the scenario at
https://hostileadmin.wordpress.com/2012/05/04/pxe-booting-into-a-freebsd-installation/

On Wed, Mar 14, 2012 at 9:30 AM, Erik Nørgaard  wrote:
> Hi
>
>
> On 14/03/2012 11:44, Rick Miller wrote:
>>
>> I thought I would follow up on this as a couple individuals expressed
>> an interest in it...
>>
>> We have isolated the configuration in which this occurs under.  It
>> occurs during the execution of pxeboot.bs on brocade switches with
>> vlan tagging enabled.
>
>
> You might save yourself time and money buying a cheap switch and doing your
> jumpstart install on a separate closed network completely isolated from the
> rest of your networks, without VLAN tagging required.
>
> If you have lots of nodes to install it makes sense to maintain your own
> repository of freebsd and packages, and it's good practice to keep your
> preproduction systems separate from production, so there is no need for
> network access.
>
>
> BR, 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"



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


FreeBSD 8.3 support for LSI SAS 2208 based controllers/Dell PERC 710

2012-05-16 Thread Rick Miller
Hi All,

I have a Dell R620 which utilizes the PERC H710 controller based on
the LSI SAS 2208 chip.  According to the hardware notes for
8.3-RELEASE, this chip is supported by the mps driver.  Unfortunately,
when I attempt to install 8.3-RELEASE via DVD, it does not recognize
the controller and no disks are found and the install exits.

The manpage indicates the driver was introduced in 9.0-RELEASE
suggesting it was backported to 8.3?  Would this be correct?  A search
for related bug reports did not return anything useful.

Would anyone else out there have any experience with installing
FreeBSD on the R620 and be able to provide any tips for
troubleshooting?

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


Re: pxegrub + FreeBSD install

2012-04-25 Thread Rick Miller
I was able to figure out how to pass the variables to the FreeBSD
mfsroot.  I did so by modifying the grub.cfg file like the below:

menuentry "freebsd82-x86_64" {
   kfreebsd /boot/kernel/kernel
   kfreebsd_loadenv /boot/device.hints
   kfreebsd_module /boot/mfsroot.gz type=mfs_root
   set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0c
   set kFreeBSD.boot.nfsroot.server=$pxe_default_server
   set kFreeBSD.boot.netif.hwaddr=$net_pxe_mac
   set kFreeBSD.boot.netif.ip=$net_pxe_ip
   set kFreeBSD.dhcp.host-name=$net_pxe_hostname
}


On Tue, Apr 24, 2012 at 2:10 PM, Rick Miller  wrote:
> Hi All,
>
> I am attempting to build FreeBSD 8.x-RELEASE over the network via PXE.
>  I chain pxegrub to pxelinux and load the FreeBSD kernel and mfsroot
> through pxegrub with the following:
>
> menuentry "freebsd-x86_64" {
>   kfreebsd /boot/kernel/kernel
>   kfreebsd_loadenv /boot/device.hints
>   kfreebsd_module /boot/mfsroot.gz type=mfs_root
>   set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0c
> }
>
> The mfsroot.gz is from the installation DVD with a couple of scripts
> and an install.cfg which result in a non-interactive install.  I set
> variables necessary to allow sysinstall to retrieve the expected
> files.  The variables (previously) are populated as follows:
>
> server=`kenv -q boot.nfsroot.server`
> mac=`kenv -q boot.netif.hwaddr`
> ip=`kenv -q boot.netif.ip`
> nm=`kenv -q boot.netif.netmask`
> gw=`kenv -q boot.netif.gateway`
> name=`kenv -q dhcp.host-name`
> route=`kenv -q dhcp.routers`
>
>
> The mfsroot.gz does not see these as set when the environment loads
> through pxegrub.  If I load the environment through pxeboot.bs, the
> variables populate ok.  Unfortunately, with pxeboot.bs I experience
> extremely high tftp failure rates when compared to pxegrub.
>
> My question is how should I populate these variables in the mfsroot.gz
> when loading via pxegrub?
>
>
> --
> Take care
> Rick Miller



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


pxegrub + FreeBSD install

2012-04-24 Thread Rick Miller
Hi All,

I am attempting to build FreeBSD 8.x-RELEASE over the network via PXE.
 I chain pxegrub to pxelinux and load the FreeBSD kernel and mfsroot
through pxegrub with the following:

menuentry "freebsd-x86_64" {
   kfreebsd /boot/kernel/kernel
   kfreebsd_loadenv /boot/device.hints
   kfreebsd_module /boot/mfsroot.gz type=mfs_root
   set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0c
}

The mfsroot.gz is from the installation DVD with a couple of scripts
and an install.cfg which result in a non-interactive install.  I set
variables necessary to allow sysinstall to retrieve the expected
files.  The variables (previously) are populated as follows:

server=`kenv -q boot.nfsroot.server`
mac=`kenv -q boot.netif.hwaddr`
ip=`kenv -q boot.netif.ip`
nm=`kenv -q boot.netif.netmask`
gw=`kenv -q boot.netif.gateway`
name=`kenv -q dhcp.host-name`
route=`kenv -q dhcp.routers`


The mfsroot.gz does not see these as set when the environment loads
through pxegrub.  If I load the environment through pxeboot.bs, the
variables populate ok.  Unfortunately, with pxeboot.bs I experience
extremely high tftp failure rates when compared to pxegrub.

My question is how should I populate these variables in the mfsroot.gz
when loading via pxegrub?


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


Re: Find run-time dependancies recursively for FreeBSD port

2012-03-21 Thread Rick Miller
> Yes it does.

pebcak, thanks.


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


Re: Find run-time dependancies recursively for FreeBSD port

2012-03-21 Thread Rick Miller
Thanks Matthew...

On Wed, Mar 21, 2012 at 2:35 PM, Matthew Seaman
 wrote:
> On 21/03/2012 16:51, Rick Miller wrote:
>> I can get run-time depends by executing make run-depends-list or all
>> dependancies by running make all-depends-list.  Is there a way to get
>> all run-time depends recursively (I don't need the build depends or
>> their depends)?
>
> If your INDEX is up to date:
>
>   % cd /usr/ports
>   % make search name=packagename-1.2.3 display=rdeps
>
> or
>
>   % make search path=devel/foo display=rdeps

The problem here is that this does not return recursive results,
meaning run-time dependancies of run-time dependancies.  Having said
that, These commands provide me some alternatives in a script I am
writing to ascertain this data for me.

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


  1   2   3   >